Print Page | Close Window

VB Menus

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5956
Printed Date: 16 June 2024 at 1:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VB Menus
Posted By: Shragel
Subject: VB Menus
Date Posted: 01 January 2007 at 2:10pm
Updated to the latest version and i still cant see the vb menus. I just added the control to the form.



Replies:
Posted By: Shragel
Date Posted: 11 January 2007 at 2:27pm
Is there anything else that i need to do except just adding the control?


Posted By: moe188
Date Posted: 11 January 2007 at 5:06pm
hi,
try this sample:

Private Sub Form_Load()

    Dim ControlFile As CommandBarPopup
    Dim Control As CommandBarControl
   
    Set ControlFile = CommandBars1.ActiveMenuBar.Controls.Add(xtpControlPopup, 0, "&File")
    With ControlPatient.CommandBar.Controls
        .Add xtpControlButton, FILE_NEW, "New..."
        Set Control = .Add(xtpControlButton, FILE_OPEN, "Open...")
        Set Control = .Add(xtpControlButton, FILE_SAVE, "Save...")
        Set Control = .Add(xtpControlButton, FILE_CLOSE, "Close")
        Set Control = .Add(xtpControlButton, FILE_PRINT, "Print"): Control.BeginGroup = True: Control.Enabled = False
        Set Control = .Add(xtpControlButton, FILE_PRINT_SETUP, "Print Setup"): Control.Enabled = False
        Set Control = .Add(xtpControlButton, FILE_EXIT, "Exit"): Control.BeginGroup = True
    End With
End Sub



Posted By: Shragel
Date Posted: 11 January 2007 at 5:11pm
I don't want to create new menus. I want it should use the existing VB menus.


Posted By: joeliner
Date Posted: 16 January 2007 at 10:46am
Hi shragel,

Are you using the skinframework? I tested the same on some of my progs. and vb menus wont show on prog. that has skin applied. Try to remove skin, they appear.


thanks


-------------
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6


Posted By: Shragel
Date Posted: 16 January 2007 at 1:26pm
I dont have the skinframework control.


Posted By: Oleg
Date Posted: 16 January 2007 at 1:42pm
Hi,
Attach application you tried.


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


Posted By: Shragel
Date Posted: 16 January 2007 at 2:10pm
Here is the app

uploads/20070116_141015_Test_Commandbar.zip - uploads/20070116_141015_Test_Commandbar.zip


Posted By: Oleg
Date Posted: 16 January 2007 at 2:39pm
Hi,
move controls down. They overlap menu.


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


Posted By: Shragel
Date Posted: 16 January 2007 at 2:42pm
Why doesn't it do it automatically. The same way vb handles the menus. It would be very hard for me to go in to each screen make it a little bigger move down all controls. Also will the screen stay the same size?


Posted By: Oleg
Date Posted: 16 January 2007 at 2:56pm

Hi,

it is not possible. standard menu is non client area.


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


Posted By: Shragel
Date Posted: 16 January 2007 at 3:13pm
Also when changing checked it doesn't get shown.

Also it moves alot up and down the screen on repaint.



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