Print Page | Close Window

MDI form

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Shortcut Bar
Forum Description: Topics Related to Codejock Shortcut Bar
URL: http://forum.codejock.com/forum_posts.asp?TID=6101
Printed Date: 23 November 2024 at 11:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI form
Posted By: moe188
Subject: MDI form
Date Posted: 12 January 2007 at 8:06pm
hi,
I do have a mdi form, an i added to it a commandbar to, but I want to add the shortcutbar also and placing it under the commandbar (the look of outlook 2003), but everytime I try to add the shortcutbar to mdi form the control will be addedto the top of the form.
how can fix this problem?
thank you




Replies:
Posted By: Oleg
Date Posted: 13 January 2007 at 3:58am
Hi,
for visual basic 6:
 
Private Sub CommandBars1_RepositionAlignedControls(Left As Long, Top As Long, Right As Long, Bottom As Long)
    CommandBars1.MoveAlignedControl ShortcutBar1, Left, Top, Right, Bottom
End Sub


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


Posted By: moe188
Date Posted: 13 January 2007 at 11:58am
thank you for the quick response.
now there is another issue, and I don't know if it's me or code. when I click a "New" button on the commandbar to open a new window, the window is open on the top of the shortcutbar, then when I maximize the main window the shortcutbar appears with no problems and the new form appears on the side of the shotcutbar (just as expected).
So, am I doing something wrong?
there is my code to open the new form (MDI Child)

Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)

Select Case Control.Id
    Case ID_FILE_NEW ' open new window
        Dim f As Form
        Set f = New Form1
        f.WindowState = 2
        RibbonBar.SelectedTab = TabUser
    Case 1 ' exit
        End
End Select
End Sub




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