![]() |
WinForms |
Post Reply ![]() |
Author | |
rdhd ![]() Senior Member ![]() ![]() Joined: 13 August 2007 Location: United States Status: Offline Points: 903 |
![]() ![]() ![]() ![]() ![]() 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? |
|
![]() |
|
rdhd ![]() Senior Member ![]() ![]() Joined: 13 August 2007 Location: United States Status: Offline Points: 903 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |