Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - [SOLVED] MDI Form Me.Arrange issue (Tile, etc)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] MDI Form Me.Arrange issue (Tile, etc)

 Post Reply Post Reply
Author
Message
Hemesh View Drop Down
Senior Member
Senior Member


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] MDI Form Me.Arrange issue (Tile, etc)
    Posted: 30 September 2010 at 10:47am
Hi,

After applying a skin to my vb6 project the window manipulation commands on the mdi window break. i.e. Me.Arrange FormArrangeConstants.vbTileVertical does not work?!?



Anyone have any ideas?

Cheers
Product: Xtreme SuitePro (ActiveX) version 18.5.0

Platform: Windows 7 Enterprise (64-bit)

Language: Visual Basic 6.0
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2010 at 12:02pm
Hi,

I have created a SQL Query Tool that uses this option and it also uses the SkinFramework control. However I don't have any issues using the following code:


    Me.Arrange vbTileVertical



Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
Hemesh View Drop Down
Senior Member
Senior Member


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2010 at 4:09am
Hi Xander75,

Does my example project work on your version 13.4.  I'm currently using 13.3 and cannot upgrade as we are in a code freeze for one of our other products.

If it doesn't can you see any differences between the code?

I know its going to a tiny thing I've done wrong but I'm pulling my hair out and I just can not see it!??!
Product: Xtreme SuitePro (ActiveX) version 18.5.0

Platform: Windows 7 Enterprise (64-bit)

Language: Visual Basic 6.0
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2010 at 4:47am
Hi Hemesh,
 
Your Project did not work, however I figured out the reason why... but I believe this was removed in response to the MDI Skinning Issue you posted earlier in the following link: http://forum.codejock.com/forum_posts.asp?TID=17297&title=mdi-skinning-issue
 
To get it to work I added the following line of code:

    SkinFramework1.ApplyWindow Me.hWnd
This makes the vbCascade, vbTileHorizontal, vbTileVertical work, however this means the MDI Skinning Issue you had is back!
 
So in order to resolve both issues I did the following:
 

Private Sub MDIForm_Load()
    ' Load your SkinFramework
    SkinFramework1.LoadSkin App.Path & "\Styles\" & "Office2007.cjstyles", "NORMALBLACK.INI"
    SkinFramework1.ApplyWindow Me.hWnd
    SkinFramework1.ApplyOptions = xtpSkinApplyMetrics Or xtpSkinApplyFrame Or xtpSkinApplyColors Or xtpSkinApplyMenus
    SkinFramework1.RemoveWindow Me.hWnd
End Sub
Notice the lines in red? Add these to your project and this will resolve both issues in one hit!
 
 
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
Hemesh View Drop Down
Senior Member
Senior Member


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2010 at 7:18am
Thanks Xander75. That works !?!?  I would never have thought of that!  

Its a little naughty but I'll take it to keep my hair :o)
Product: Xtreme SuitePro (ActiveX) version 18.5.0

Platform: Windows 7 Enterprise (64-bit)

Language: Visual Basic 6.0
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2010 at 7:28am
Hi Hemesh,

Yeah I thought so too! But I am glad I could help.

P.S. If you're finished with this thread could you please change the Title to have the word "[SOLVED]". It would be nice if a thread that is solved can be clearly seen by it's title in these forums as it would help with searching and helping others. Sorry to nag! Wink
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
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.186 seconds.