1. Color Changing On Window Control Text
- Posted by brian_keene at yahoo.com Aug 09, 2001
- 426 views
Hi All I'm brand new to Euphoria & this list. So please excuse questions that have probably been asked here 1,000's of times before. But here goes: How do I change the color of text that appears on a control in a window using win32lib? I've tried: setTextColor( ChkBox, BrightWhite ) after creating the window & check box, but nothing changes. Whereas that same command used on the main window setTextColor( MainWindow, BrightWhite ) works fine. I can't seem to find anything in the docs on how to do this for controls. Any help would be greatly appreciated. Regards Brian Keene
2. Re: Color Changing On Window Control Text
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Aug 09, 2001
- 405 views
Brian, I'm not 100% sure, but I don't think you *can* change the color of what amounts to the "caption" of a control with Win32Lib. Dan Moyer ----- Original Message ----- From: <brian_keene at yahoo.com> To: "EUforum" <EUforum at topica.com> Subject: Color Changing On Window Control Text > > Hi All > I'm brand new to Euphoria & this list. So please excuse questions that > have probably been asked here 1,000's of times before. But here goes: > > How do I change the color of text that appears on a control in a > window using win32lib? I've tried: > > setTextColor( ChkBox, BrightWhite ) > > after creating the window & check box, but nothing changes. Whereas > that same command used on the main window > > setTextColor( MainWindow, BrightWhite ) > > works fine. I can't seem to find anything in the docs on how to do > this for controls. Any help would be greatly appreciated. > > Regards > Brian Keene > > > > >
3. Re: Color Changing On Window Control Text
- Posted by Irv Mullins <irvm at ellijay.com> Aug 10, 2001
- 423 views
Dan Moyer wrote: > Brian, > > I'm not 100% sure, but I don't think you *can* change the color of what > amounts to the "caption" of a control with Win32Lib. AFAIK, you are correct. Delphi does this, in much the same way as selecting the font, so it is possible in Windows. The appropriate code just needs to be added to Win32Lib. Regards, Irv
4. Re: Color Changing On Window Control Text
- Posted by brian_keene at yahoo.com Aug 10, 2001
- 413 views
Hi Dan & Irv: Thanks for the clarification. I'm glad to hear that I'm not going crazy . But since I'm still stuck with the problem of not being able to set the color of the "caption". And I'm not at all familiar with the Windows API. Could you do me a favor and tell me (code-wise) how to change the caption color? If I can get the syntax of the proper API calls to do this, I would be glad to write a function/procedure that would do this generically for any control. And then submit it back to the group so everyone can get the benefit of it. Any help is much appreciated. Regards Brian Keene > At 09:00 AM 8/10/01 -0400, you wrote: > > Dan Moyer wrote: > > > Brian, > > > > I'm not 100% sure, but I don't think you *can* change the color of > > what amounts to the "caption" of a control with Win32Lib. > > AFAIK, you are correct. Delphi does this, in much the same way as > selecting the font, so it is possible in Windows. The appropriate code > just needs to be added to Win32Lib. > > Regards, > Irv
5. Re: Color Changing On Window Control Text
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 10, 2001
- 414 views
Hi Brian, ----- Original Message ----- From: <brian_keene at yahoo.com> To: "EUforum" <EUforum at topica.com> Subject: Color Changing On Window Control Text > > Hi All > I'm brand new to Euphoria & this list. So please excuse questions that > have probably been asked here 1,000's of times before. But here goes: > > How do I change the color of text that appears on a control in a > window using win32lib? I've tried: > > setTextColor( ChkBox, BrightWhite ) > > after creating the window & check box, but nothing changes. Whereas > that same command used on the main window > > setTextColor( MainWindow, BrightWhite ) > > works fine. I can't seem to find anything in the docs on how to do > this for controls. Any help would be greatly appreciated. This functionality is not in Win32lib because I haven't figured out how to do it yet. I've tried the obvious ways but with no luck. I've read some Windows programming books but they just avoid this area too. I think it has to do with owner-drawn controls but that looks complicated. I know that a lot of apps can do this type of thing but I haven't a clue really on how to do it. If anyone has some ideas, don't be bashful. ---- Derek.