| jase439 | posted: Wed Aug 03, 2005 8:56 am | |
Member since: 2005-03-16 Posts: 93
| Can anyone explain why all my form controls that are marked as "Visual Style Support = true" show up with white backgrounds? My static edit boxes, text, tab controls, etc. When I load these same forms in devstudio, they look perfectly normal.
If I set Visual Style Support = false, the background returns to the default "gray" we know and love. Any ideas why this might be occurring? This is with the sources as of 8/2/05 and SimPE Classic.exe.
Functionally its fine, but it does give SimPE sort of a nasty Windows 3.1-esque look to it.
J |
| Inge Jones | posted: Wed Aug 03, 2005 9:34 am | |
Member since: 2005-03-06 Posts: 1899
| Yeah we had that puzzle with Pete's plugins, and then he found the solution. I dare say he'll be along later to say what it was. |
| jase439 | posted: Wed Aug 03, 2005 9:52 am | |
Member since: 2005-03-16 Posts: 93
| On a somewhat tangential subject...is it possible to build all the resource DLL's for a given language by changing a single entry somewhere at the solution level (I couldn't find one), or do you really have to go through form by from and change the language property on each form resource? |
| quaxi | posted: Wed Aug 03, 2005 12:28 pm | |
Member since: 2006-04-28 Posts: 3154
| It's a Form by Form task.
And this transparent Control thing is a .NET Bug. CheckBoxes for example can't be made transparent by default. Using the styles Library (i just can't remember the name at the moment) included with SimPE, isn't the solution either. As CheckBoxes won't update automatically when the check state changes, and TabPages look strange when you use the silver Theme in XP.
More than that, we want to get rig of that library, so it won't be around in the future. |
| jase439 | posted: Wed Aug 03, 2005 3:35 pm | |
Member since: 2005-03-16 Posts: 93
| LOL. .NET has bugs? :D
I use the Silver XP theme, so that explains the funkiness on the tab controls. What changed between .40 and the current build with respect to these controls - just the transparency bits? I noticed that .40 also applied the Visual Style Support = true property on these controls, but it does not appear to suffer from the same problem plaguing the current build.
Presumably it is safe to just disable all the "Visual Style" bits then?
J
EDIT: Well, I just killed the reference to the Visual Styles DLL from the form and everything went back to normal. Thanks. |
| pljones | posted: Fri Aug 05, 2005 6:36 pm | |
Member since: 2005-04-02 From: London, UK Posts: 610
| The problem we had with PJSE was that, by default, .Net wasn't setting the background colour on some controls - such as panels - so they're transparent. You want to set the colour to "Control". With the Visual Style dll enabled, you get its default background - white - rather than .Net's default background, which comes from the Windows colour scheme. |