Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - WinForms
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

WinForms

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 903
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: WinForms
    Posted: 21 March 2025 at 2:39pm
I'm skinning our app and have hit a bit of a snag with WindowsForms. I see CJ code parsing the classname and detecting the fact a window is a winform. For a winform list control that it encounters it attaches the hook. But I have an issue with text displaying dark as WinForms isn't using the system color we supply. This is making text hard to see. I have tried removing the only window I have direct access to from skinning. The problem is though that later when all the child windows get created by the clr they all are captured by the cbt hook CJ has and get tagged for skinning. It would be great if removing a window would keep all the child windows created at any point after than being skinned. I can't disable skinning in some cases because I don't have knowledge of when to turn it back on.

I also have issues with the WindowsForm ComboBox as I scroll thru it as the text is white on a white background. Compare this WindowsForm ComboBox skinning result to the one after it which is just a win32 ComboBox.



So, how do I address the WindowsForm Combobox issue and address this dark text in the WindowsForm list control?

Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 903
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 7 hours 51 minutes ago at 11:50am
I got hold of the VB code and found there was some hard coded "White" and "Black" settings on the controls. I changed that to use SystemColors.Window/WindowText etc. Worked fine for the Forms ListView but isn't always working for the Forms ComboBox.

These .NET controls are like the rich edit control where I have to find all instances where specific API calls to the control are made and make sure they use system colors where appropriate.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.