1. RE: Win32Lib and Common Controls version 6
- Posted by "Andrew Hall" <barnacle83-euforum at yahoo.com> Jul 07, 2004
- 545 views
Brian Broker wrote: > I've noticed some Common Control quirks when using an exw.exe.manifest > file and Win32Lib. I'm trying to figure out how to fix it but maybe > somebody has some suggestions. For an example of what I see running > combo.exw see http://cnw.com/~bkb/Eu/combo.html. Brian, I've looked into this thoroughly and haven't come up with much. Here's something to consider (sorry about the mangled URL): http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/ xptheming.asp I know all the ButtonBase controls (buttons, checkboxes, radios, groups, etc.) have to have their FlatStyle property set to System, but I have no idea how to accomplish this in Euphoria. As for DropDownLists, I don't know what can be done. Andrew
2. RE: Win32Lib and Common Controls version 6
- Posted by Brian Broker <bkb at cnw.com> Jul 07, 2004
- 497 views
Andrew Hall wrote: > > > Brian Broker wrote: > > I've noticed some Common Control quirks when using an exw.exe.manifest > > file and Win32Lib. I'm trying to figure out how to fix it but maybe > > somebody has some suggestions. For an example of what I see running > > combo.exw see http://cnw.com/~bkb/Eu/combo.html. > > Brian, I've looked into this thoroughly and haven't come up with much. > Here's something to consider (sorry about the mangled URL): > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/ > > xptheming.asp > > I know all the ButtonBase controls (buttons, checkboxes, radios, groups, > etc.) have to have their FlatStyle property set to System, but I have no > idea how to accomplish this in Euphoria. As for DropDownLists, I don't > know > what can be done. > > Andrew Thanks Andrew, I've been studying this info but still haven't come up with a solution. I think that the FlatStyle property stuff is related to .NET (oop) programming. But I'm still open to other suggestions... -- Brian
3. RE: Win32Lib and Common Controls version 6
- Posted by "Andrew Hall" <barnacle83-euforum at yahoo.com> Jul 08, 2004
- 498 views
Brian Broker wrote: > Thanks Andrew, > > I've been studying this info but still haven't come up with a solution. > I think that the FlatStyle property stuff is related to .NET (oop) > programming. But I'm still open to other suggestions... I've been wondering (and researching) a way to change the FlatStyle (OOP) property in win32lib. I thought maybe there's a flag that can be set with the Flags or ExFlags in a createEx(), but I haven't found it. Andrew
4. RE: Win32Lib and Common Controls version 6
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Jul 08, 2004
- 492 views
>From: Brian Broker <bkb at cnw.com> >Reply-To: EUforum at topica.com >To: EUforum at topica.com >Subject: Win32Lib and Common Controls version 6 >Date: Wed, 7 Jul 2004 20:24:21 +0000 > >I've noticed some Common Control quirks when using an exw.exe.manifest >file and Win32Lib. I'm trying to figure out how to fix it but maybe >somebody has some suggestions. For an example of what I see running >combo.exw see http://cnw.com/~bkb/Eu/combo.html. > I think this is caused by Win32lib catching the WM_CTLCOLORSTATIC=20 message and returning a value that would make it transparent. I tried=20 EuWinGUI, and it doesn't have some weird redraw problems. I think this has= =20 to do with it /not/ processing the message. I remember this used to happen= =20 with RadioButtons, eg, on Groups. There are no such problems in EuWinGUI.= =20 This is really a bug in Windows. There are some weird things with=20 TabControls, too, like this: http://www.codeproject.com/wtl/ThemedDialog.as= p=20 and this (but only .NET)=20 http://www.codeproject.com/cs/miscctrl/themedtabpage.asp >Thanks, >-- Brian > ~[ WingZone ]~ http://wingzone.tripod.com/ hs=20 FREE*=20=20=20 http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=10= 34&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
5. RE: Win32Lib and Common Controls version 6
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Jul 08, 2004
- 479 views
>From: Andrew Hall <barnacle83-euforum at yahoo.com> >Reply-To: EUforum at topica.com >To: EUforum at topica.com >Subject: RE: Win32Lib and Common Controls version 6 >Date: Wed, 7 Jul 2004 17:08:55 -0700 > >Brian Broker wrote: > > Thanks Andrew, > > > > I've been studying this info but still haven't come up with a solution. > > I think that the FlatStyle property stuff is related to .NET (oop) > > programming. But I'm still open to other suggestions... > >I've been wondering (and researching) a way to change the FlatStyle (OOP) >property in win32lib. I thought maybe there's a flag that can be set with >the Flags or ExFlags in a createEx(), but I haven't found it. > FlatStyle is not Windows. It is .NET only. ButtonBase is Windows Forms. Windows controls have other styles, like BS_FLAT for buttons. >Andrew > ~[ WingZone ]~ http://wingzone.tripod.com/
6. RE: Win32Lib and Common Controls version 6
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Jul 09, 2004
- 511 views
As I had suspected, if you comment out the WM_CTLCOLOREDIT and WM_CTLCOLORLISTBOX handlers, there is no longer that black box drawing problem on combo boxes (with Common Controls 6.) You could probably comment out the WM_CTLCOLORBTN and WM_CTLCOLORSTATIC, but those have more chance of having a different colour set up... ~[ WingZone ]~ http://wingzone.tripod.com/
7. RE: Win32Lib and Common Controls version 6
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Jul 09, 2004
- 503 views
>From: Elliott Sales de Andrade <quantum_analyst at hotmail.com> >Reply-To: EUforum at topica.com >To: EUforum at topica.com >Subject: RE: Win32Lib and Common Controls version 6 >Date: Fri, 09 Jul 2004 18:24:37 -0400 > > As I had suspected, if you comment out the WM_CTLCOLOREDIT and >WM_CTLCOLORLISTBOX handlers, there is no longer that black box drawing >problem on combo boxes (with Common Controls 6.) You could probably comment >out the WM_CTLCOLORBTN and WM_CTLCOLORSTATIC, but those have more chance of >having a different colour set up... > Oh, I forgot... That still doesn't fix the problem with Radio Buttons in groups, even with all WM_CTLCOLOR* message handler commented out. ~[ WingZone ]~ http://wingzone.tripod.com/
8. RE: Win32Lib and Common Controls version 6
- Posted by "Andrew Hall" <barnacle83-euforum at yahoo.com> Jul 09, 2004
- 524 views
Elliott Sales de Andrade wrote: > FlatStyle is not Windows. It is .NET only. ButtonBase is Windows Forms. > Windows controls have other styles, like BS_FLAT for buttons. Oops, OK. This is why I'm not a real GUI programmer! :D Andrew
9. RE: Win32Lib and Common Controls version 6
- Posted by Brian Broker <bkb at cnw.com> Jul 10, 2004
- 531 views
Elliott S. de Andrade wrote: > > > As I had suspected, if you comment out the WM_CTLCOLOREDIT and > WM_CTLCOLORLISTBOX handlers, there is no longer that black box drawing > problem on combo boxes (with Common Controls 6.) You could probably > comment > out the WM_CTLCOLORBTN and WM_CTLCOLORSTATIC, but those have more chance > of > having a different colour set up... > > ~[ WingZone ]~ > http://wingzone.tripod.com/ Thanks, that's at least a start... just commenting the WM_CTLCOLORLISTBOX by itself seems to fix the dropdown portion. Commenting WM_CTLCOLOREDIT gets rid of the black line under the text in the actual control. I did read the following but wasn't sure what to change in Win32Lib: A combo box in a version 3.x application uses the WM_CTLCOLORLISTBOX message to retrieve the text and background colors. In a version 4.0 or later application, a combo box uses the WM_CTLCOLOREDIT or WM_CTLCOLORSTATIC message instead. Derek, if this doesn't break anything else, can we eliminate these handlers? -- Brian