Re: Display issues migrating from v3.1.1 to v4.0.3
- Posted by mattlewis (admin) Jan 11, 2012
- 1339 views
Rad said...
Hi,
My setup is WinXP Pro SP3 + Win32Lib v0.7.20 + Eu4.0.3.
I also have v3.1.1 installed on my machine.
I am trying to migrate my application from v3.1.1 to v4.0.3.
But the same code gives different display results.
Eu3.1.1 works fine bur Eu4.0.3 has display issues as can be seen in the linked jpg files.
...
Any suggessions what can be going wrong?
I suspect the difference is that euphoria 4.0 is linked with a manifest, so you get the default theme applied to your application. Try adding this (maybe before you create anything):
include std/dll.e constant UXTHEME = open_dll("uxtheme.dll"), SETTHEMEAPPPROPERTIES = define_c_proc( UXTHEME, "SetThemeAppProperties", {C_UINT}) c_proc( SETTHEMEAPPPROPERTIES, {0} )
That should prevent any themes from being applied to any part of your application. The parameter can be altered based on the flags:
Name | Value | Meaning |
---|---|---|
STAP_ALLOW_NONCLIENT | 1 | Specifies that the nonclient areas of application windows will have visual styles applied. |
STAP_ALLOW_CONTROLS | 2 | Specifies that the common controls used in an application will have visual styles applied. |
STAP_ALLOW_WEBCONTENT | 4 | Specifies that web content displayed in an application will have visual styles applied. |
So, basically, values from 0 to 7.
Matt