Re: Help!!!!(Rob Craig, there's something here for you)

new topic     » goto parent     » topic index » view thread      » older message » newer message

--- "Darth Maul, aka Matt" <uglyfish87 at HOTMAIL.COM> wrote:
> I just downloaded Matt Lewis' Win32lib 0.50c, and the toolbars are all
> messed
> up! He creates picture buttons on toolbars all wierd - it just doesn't make
> sense! And whenever I try to create a toolbar and put a picture button on
> it, I just get an empty toolbar. Just pick up a copy of IniEdit, download
> Win32lib 0.50c from www.download.sourceforge.net/win32libex and try it.
> Please, you've gotta help! Matt Lewis' examples work fine, but my programs
> just won't work.
>

I assume you're referring to the FlatToolBar.  It works a little differently
than the other win32lib class of toolbar.  Toolbars are actually designed to
handle the buttons themselves, although Dave didn't implement them this way,
since it was a bit easier to let the user add normal buttons.  Actually, you
can put any sort of control you want on a toolbar--including FlatToolBars.

The idea behind the FlatToolBar, however, was to allow 'hot tracking,' where
different images are displayed when the mouse passes over them.  To do this,
you have to let the toolbar create and manage the buttons.

Images have to be tracked using an image list.  You can use any image format
you'd like (xpm, icon, euBmp, DIB--although DIB's don't come out very good).
I've even made it so you don't have to use 32x32 size images--win32lib will
resize them for you.

Since the buttons aren't normal buttons, you can't really do much with them.
They don't have windows handles or anything, and all messages have to go
through the toolbar.

I'd say try to create the buttons just like it's done in the examples.  If this
doesn't make sense, or you can't get it to work, send me your code, and I'll
take a look at it.


> [Note to Rob]
> I observed something EXTREMELY strange. I had downloaded the newest copy of
> Win32lib, which doesn't have ANYTHING called getSysMetrics. Yet when I tried
> to declare it in my program, it said it had already been declared in
> win32lib.ew.
> And when I tried to call it getSystemMetrics, again it didn't work, but be-
> cause it was already declared in Win32lib.ew. But when I tried using that
> function, it said it hadn't been declared, even though it was *global*!

I don't know what to tell you here.  The only thing I can think of is that you
tried to call/declare it before you included win32lib.  I've never had this
problem.

Matt

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu