Print Page | Close Window

Ribbon when Maximized Issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4854
Printed Date: 20 May 2024 at 12:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon when Maximized Issue
Posted By: daveED
Subject: Ribbon when Maximized Issue
Date Posted: 22 August 2006 at 3:07pm
Hellow,
 
When i open a file with the RibbonSample when Maximized the title bar resorts back to the winXp Defualt title bar,
 
But only when Maximized, it fine other wise.
 
 
Have You got any idears how to get the window to maximize just below
ClientHeight ClientWidth 
 
 
regards, David
 
 



Replies:
Posted By: Oleg
Date Posted: 22 August 2006 at 3:16pm
Hi,
So you opened RibbonSample, slect System Button->Open (Message Box appeared) and after see standard title?
 
Can you attach screenshot?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: daveED
Date Posted: 22 August 2006 at 4:50pm

hi, no mate i have added a open dialog happens when eg 900K txt files

after it hit open from the dialog,

Regards,
Dave
 
 


Posted By: daveED
Date Posted: 23 August 2006 at 7:58am
 Hi olge,
 


Posted By: Oleg
Date Posted: 23 August 2006 at 8:46am
Sorry, don't see attachment. :(
 
ok, as I understand you changed code to allow open file, can you show what exactly you changed?
 
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: daveED
Date Posted: 23 August 2006 at 8:59am
all i did for for the samlpe wwas add to ;
 
Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)

Was
 
Case ID_FILE_OPEN: mnuFileOpen_Click
 
 
'----------------------------------------------------------------------
and to Form_Load()
 
    SkinFramework.LoadSkin App.Path + "\Office2007.cjstyles", ""
 
 
SkinFramework.ApplyOptions = SkinFramework.ApplyOptions Or xtpSkinApplyMetrics
 
------------------------------------------------------------------------
Private Sub mnuFileOpen_Click()
    Dim sFile As String
        CommonDialog1.DialogTitle = "Open"
        CommonDialog1.CancelError = False
        CommonDialog1.Filter = "Text Documents (*.txt)|*.txt"
        CommonDialog1.ShowOpen
        If Len(CommonDialog1.FileName) = 0 Then
       End If
              
     sFile = CommonDialog1.FileName
    txtClient.LoadFile sFile
Caption = CommonDialog1.FileTitle
End Sub


Posted By: daveED
Date Posted: 23 August 2006 at 9:02am
try adding this add a common dialog
 
run it. maximize window, open file, and then re open a file
can you tell me what you see ?
 
 
Ps can i send you a  email attachment of the screen shot?


Posted By: daveED
Date Posted: 23 August 2006 at 9:11am

try hitting this

 

http://210.10.216.122/test/ - http://210.10.216.122/test/



Posted By: SuperMario
Date Posted: 23 August 2006 at 9:14am
That link doe snot work for me


Posted By: SuperMario
Date Posted: 23 August 2006 at 9:15am
Originally posted by daveED daveED wrote:

try adding this add a common dialog
 
run it. maximize window, open file, and then re open a file
can you tell me what you see ?
 
 
Ps can i send you a  email attachment of the screen shot?


You can sent to support@codejock.com


Posted By: daveED
Date Posted: 23 August 2006 at 9:23am

 

I have sent a email with attachment i hope you receve it



Posted By: daveED
Date Posted: 23 August 2006 at 9:57am
Here This Link should Work
 
 
http://daveed.50webs.com/ - http://daveed.50webs.com/ http://members.dodo.com.au/~esther4/screenshots/ -


Posted By: Oleg
Date Posted: 23 August 2006 at 10:54am
Thanks a lot. I see problem
 
Actually problem in Form.Caption property -
seems when calling this property Visual Basic not only change Window Caption but also change styles of frame... if you comment
Caption = dlgCommonDialog.FileTitle
you will see that problem will gone....
 
 
Workaround now instead Caption property use API SetWindowText:
 
Private Declare Function SetWindowText Lib "user32.dll" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
 
SetWindowText Me.hwnd, dlgCommonDialog.FileTitle
 
 
Thanks a lot for this issue.
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: daveED
Date Posted: 23 August 2006 at 10:57am
Thanks for the help
 
you have been great help
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net