1. new win32lib.ew Generic.exw (toolbar edition)
- Posted by Judith Evans <camping at FLASH.NET> Sep 06, 1999
- 304 views
- Last edited Sep 07, 1999
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
2. Re: new win32lib.ew Generic.exw (toolbar edition)
- Posted by David Cuny <dcuny at LANSET.COM> Sep 06, 1999
- 305 views
- Last edited Sep 07, 1999
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
3. Re: new win32lib.ew Generic.exw (toolbar edition)
- Posted by John Cannon <jzcndd at EARTHLINK.NET> Sep 08, 1999
- 303 views
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
4. Re: new win32lib.ew Generic.exw (toolbar edition)
- Posted by david cuny <dcuny at LANSET.COM> Sep 08, 1999
- 307 views
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. Perhaps I'll make them owner-drawn, since pushbuttons are fairly easy to emulate. -- David Cuny