Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Incorrect resizing with WinXP.Luna.cjstyles file?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Incorrect resizing with WinXP.Luna.cjstyles file?

 Post Reply Post Reply
Author
Message
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Topic: Incorrect resizing with WinXP.Luna.cjstyles file?
    Posted: 19 December 2006 at 2:47am
SkinFramework doesn't resize correct.
 
The button is not completely drawn because the form is too short.  
I use the "WinXP.Luna.cjstyles" file from the CodeJock samples.
Is this only a problem in the deployed stylefile?
Take a look at the screenshot.

Source Code:
Private Sub Form_Load()
  SkinFramework1.ApplyWindow Me.hWnd
  SkinFramework1.ApplyOptions = SkinFramework1.ApplyOptions Or xtpSkinApplyMetrics
  SkinFramework1.LoadSkin App.Path & "\WinXP.Luna.cjstyles", "Normalblue.ini"
End Sub
 
VB6 SP6 on Win2k SP4
SkinFramework 10.3.1
 
Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 19 December 2006 at 6:14am
Jean,
 
This is normal. The title bar and form borders are bigger in the Windows XP Luna theme than on the Windows Classic theme. This is not a SkinFramework problem.
 
An easy way to find out what the border size is for the current theme: BorderSize = (Form.Width - Form.ScaleWidth) / 2
 
You can see that these values are different depending on which skin is active... Hope this helps.
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 19 December 2006 at 7:59am
Without SkinFramework:
I create an executable on my Win2k and run it. Everything looks fine (Win 2k Style). :D
If I run this executable on a WinXP PC with Luna style activated it looks fine too. Without any Code to correct Borders or Size!
And the titlebar and the borders of the form are Luna style!
Only the button looks like Win2k style.
 
With SkinFramework --> Luna Style (look above)
On my Win2K PC: Button not drawn completely.  :(
 
So it looks like VB does the size correction of the form itself. But SkinFramework doesn't?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 19 December 2006 at 8:53am
Hi,
SkinFramework automatically resize forms that was skinned automatically, if you skin form with ApplyWindow then not. try to open another form from Form1 - it will be resized automatically.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 19 December 2006 at 10:45am
Form2 has no ApplyWindow and it doesn't resize correct.
Screenshots on Win2K PC.
 
I tested the same on a WinXP PC. If I change the display setting of my WindowsXP to Luna style theme then the form is resized correct.
But if I chance the display settings to Windows2K style there's the same resize problem.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.