1. new win32lib.ew Generic.exw (toolbar edition)

I finally got around to loading the newest win32lib.ew and am getting funny
results with the Generic.exw program and am wondering if anyone else is
having the same problem.

The toolbars appear as follows:
a radial button on a white background followed by the first half of the tool
 bmp on buttoncolor background, a radial button on a white background
followed by the first half of the tool bmp on buttoncolor background. etc,
etc.

I am running under windows98. I have not modified any programs in the
download.

Thanks,
Judith

new topic     » topic index » view message » categorize

2. Re: new win32lib.ew Generic.exw (toolbar edition)

Judith Evans wondered:


>I finally got around to loading the newest win32lib.ew and am getting funny
>results with the Generic.exw program and am wondering if anyone else is
>having the same problem.


It's a *stupid* bug in Win32Lib. Look on line 2271, and comment out (or
remove) the BS_AUTORADIOBUTTON attribute.

I was trying to figure out how to make the PushButton behave like a toggle
button, and forgot to remove the flag. I only tested the odd-numbered demos,
so the bug slipped through. Sorry; I'll try to be more thorough in the
future.

Does anyone know the *correct* flag(s) to get a button to behave like a
toggle? There's a toggle flag, a tri-state toggle flag, and one that
auto-dims the image. I know they exist, because during development I
accidentally used the bitmap pointers as flags, and some buttons acted like
toggle buttons in those states.

Thanks, and sorry for the inconvenience. I'll get it fixed soon.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

3. Re: new win32lib.ew Generic.exw (toolbar edition)

Hi David and Everyone.

I found that toggled pushbuttons can be made by using Radiobuttons or
Checkboxes and giving them the BS_PUSHLIKE style.  From Win32 Programmers
Reference about midway down the CreateWindow topic:

BS_PUSHLIKE     Windows 95 only: Makes a button (such as a check box,
three-state check box, or radio button) look and act like a push button.
The button looks raised when it isn't pushed or checked, and sunken when it
is pushed or checked.

I know the "Windows 95 only" portion is not exactly what you were looking
for...

John Cannon
High Top Mountain Cottages
http://www.mountaindog.net

new topic     » goto parent     » topic index » view message » categorize

4. Re: new win32lib.ew Generic.exw (toolbar edition)

John Cannon wrote:

> I know the "Windows 95 only" portion is not exactly
> what you were looking for...

Thanks. I had gotten the toggles working yesterday, but was not aware that they
were Win95 only. sad

Perhaps I'll make them owner-drawn, since pushbuttons are fairly easy to
emulate.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu