Ribbon when Maximized Issue |
Post Reply |
Author | |
daveED
Newbie Joined: 16 August 2006 Location: Australia Status: Offline Points: 37 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
daveED
Newbie Joined: 16 August 2006 Location: Australia Status: Offline Points: 37 |
Post Options
Thanks(0)
|
hi, no mate i have added a open dialog happens when eg 900K txt files after it hit open from the dialog, Regards,
Dave
|
|
daveED
Newbie Joined: 16 August 2006 Location: Australia Status: Offline Points: 37 |
Post Options
Thanks(0)
|
Hi olge,
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
daveED
Newbie Joined: 16 August 2006 Location: Australia Status: Offline Points: 37 |
Post Options
Thanks(0)
|
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 |
|
daveED
Newbie Joined: 16 August 2006 Location: Australia Status: Offline Points: 37 |
Post Options
Thanks(0)
|
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?
|
|
daveED
Newbie Joined: 16 August 2006 Location: Australia Status: Offline Points: 37 |
Post Options
Thanks(0)
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
That link doe snot work for me
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
You can sent to support@codejock.com |
|
daveED
Newbie Joined: 16 August 2006 Location: Australia Status: Offline Points: 37 |
Post Options
Thanks(0)
|
I have sent a email with attachment i hope you receve it |
|
daveED
Newbie Joined: 16 August 2006 Location: Australia Status: Offline Points: 37 |
Post Options
Thanks(0)
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
daveED
Newbie Joined: 16 August 2006 Location: Australia Status: Offline Points: 37 |
Post Options
Thanks(0)
|
Thanks for the help
you have been great help
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |