Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - VB Menus
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

VB Menus

 Post Reply Post Reply
Author
Message
Shragel View Drop Down
Groupie
Groupie


Joined: 15 May 2006
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shragel Quote  Post ReplyReply Direct Link To This Post Topic: VB Menus
    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.
Back to Top
Shragel View Drop Down
Groupie
Groupie


Joined: 15 May 2006
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shragel Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2007 at 2:27pm
Is there anything else that i need to do except just adding the control?
Back to Top
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Shragel View Drop Down
Groupie
Groupie


Joined: 15 May 2006
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shragel Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2007 at 5:11pm
I don't want to create new menus. I want it should use the existing VB menus.
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Shragel View Drop Down
Groupie
Groupie


Joined: 15 May 2006
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shragel Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2007 at 1:26pm
I dont have the skinframework control.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2007 at 1:42pm
Hi,
Attach application you tried.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Shragel View Drop Down
Groupie
Groupie


Joined: 15 May 2006
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shragel Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2007 at 2:10pm
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2007 at 2:39pm
Hi,
move controls down. They overlap menu.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Shragel View Drop Down
Groupie
Groupie


Joined: 15 May 2006
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shragel Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2007 at 2:56pm

Hi,

it is not possible. standard menu is non client area.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Shragel View Drop Down
Groupie
Groupie


Joined: 15 May 2006
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shragel Quote  Post ReplyReply Direct Link To This Post 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.
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.156 seconds.