Re: Form changes style when size adjusted
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Wed, 21 Feb 2007 22:41:56 -0600
John P wrote:
Hans-Peter Diettrich wrote:
I just noticed that forms created in D4 will change their style when they
are adjusted smaller in size so that scroll bars appear to view hidden
Visual "enhancements" in WinXP can have strange effects on legacy (non
XP aware) applications. I'm not experienced with themes and the like,
but perhaps adding an XP manifest to the application might help?
I would also be interested to hear that will adding one Manifest
component to the application's MainForm or maybe on each of the Forms
automatically solve these.
Delphi 4 doesn't come with a manifest component.
Delphi versions that do come with manifest components do not need one for every form. The *only* thing TXPManifest does is force the XPMan unit onto the "uses" clause of the form's unit. The XPMan unit is linked to a RES file that contains a general-purpose manifest. Thus, adding a TXPManifest component anywhere in your project implicitly links the manifest into your program. The component is a direct descendant of TComponent and adds no fields, methods, or properties of its own.
Mike Lischke's free TThemeManager component does considerably more. It hooks into all the visual controls in the application and alters how some of them paint themselves. It does not add a manifest, though. You have to link that in yourself, or provide a standalone file. The component doesn't work in Delphi versions greater than 6, though, since those come with native theme support.
I'm running Win XP. Any reason why this is happening, and any suggestions
to fix it?
This problem most often appears with laptop computers with wide screen,
and Themes in XP machine turned on. A quick cure to tell to the customer
ist to ask him to use 'Windows Classic' as his desktop theme and this
problem usually disappears.
Of course it disappears. If themes are already disabled system-wide, then you won't notice when resizing a form disables themes for that form.
This happens on my laptop, which has a 1024x768 screen.
--
Rob
.
- References:
- Form changes style when size adjusted
- From: Paul E. Schoen
- Re: Form changes style when size adjusted
- From: Hans-Peter Diettrich
- Re: Form changes style when size adjusted
- From: John P
- Form changes style when size adjusted
- Prev by Date: Re: Can't access Application variable in TWebModule...
- Next by Date: Re: Can't access Application variable in TWebModule...
- Previous by thread: Re: Form changes style when size adjusted
- Next by thread: Can't access Application variable in TWebModule...
- Index(es):