1. Display issues migrating from v3.1.1 to v4.0.3

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.

v3.1.1
http://www.fileden.com/files/2007/12/6/1628066/Eu311Win.jpg

v4.0.3
http://www.fileden.com/files/2007/12/6/1628066/Eu403Win.jpg

1] EditText get extra border.
2] PushButtons have different surface colour.
3] Group Headings are Bold/Coloured and Group border runs through the heading.

Previously I had SP2 on my WinXP, so I upgraded to SP3 thinking it might solve the issue.
But that didn't work out.

Any suggessions what can be going wrong?

Thanks & Regards,
Rad.

new topic     » topic index » view message » categorize

2. Re: Display issues migrating from v3.1.1 to v4.0.3

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Display issues migrating from v3.1.1 to v4.0.3

Thanks a lot, Matt.

This just worked fine. I was breaking my head over this since long time, even removed some code from my application. Fortunately I have backup. Don't think there will be any issues with my original code.

Thanks & Regards, Rad.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Display issues migrating from v3.1.1 to v4.0.3

Rad said...

This just worked fine. I was breaking my head over this since long time, even removed some code from my application. Fortunately I have backup.

I'd recommend putting all of your (and also to everyone else!) projects into source control. That makes it easier to try out changes, but still have a comprehensive record of the past states of your code. Check in early and often!

And then back up the repositories. My current favorite system is Mercurial, which we also currently use for euphoria.

Matt

new topic     » goto parent     » topic index » view message » categorize

5. Re: Display issues migrating from v3.1.1 to v4.0.3

Thanks Matt.

Currently I am using CVSNT (Zen v2.5.04 - last free version but outdated) + TortoiseCVS v1.12.5.

I will check out Mercurial.

Thanks & Regards,
Rad.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Display issues migrating from v3.1.1 to v4.0.3

If you use dropbox - www.dropbox.com - then whenever you change a file it automatically updates the saved file at dropbox. But - and this is the nice bit - they keep umpteen previous versions of each file. So you can go back and select which previous version by date/time you want to restore. I just love it because it avoids the need to remember to backup in your version control system; just change the file and it is backed up.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu