Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Adding More Sub Button in popup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding More Sub Button in popup

 Post Reply Post Reply
Author
Message
uangonline View Drop Down
Newbie
Newbie
Avatar

Joined: 04 February 2009
Location: Indonesia
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote uangonline Quote  Post ReplyReply Direct Link To This Post Topic: Adding More Sub Button in popup
    Posted: 04 February 2009 at 2:53pm
hello there, i want to add more sub button after xtpcontrolpopup, can anyone help me?
below is my code
sorry for my bad english.

Quote Public Function popup_me()
Dim Popup As CommandBar
Dim control As CommandBarControl

Set Popup = utama.combar.Add("Popup", xtpBarPopup)

With Popup
        Set control = AddButton(.Controls, xtpControlButton, ID_GUEST_LOG, "Guest Login")
        Set control = AddButton(.Controls, xtpControlButton, ID_MOVE_CUSTOMER, "Move Customer")
        control.BeginGroup = True
        Set control = AddButton(.Controls, xtpControlButton, ID_LOGOUT, "Logout")
        Set control = AddButton(.Controls, xtpControlButton, ID_CANCEL, "Cancel")
        Set control = AddButton(.Controls, xtpControlPopup, 0, "Edit Login")
            control.CommandBar.Controls.Add xtpControlButton, ID, "blala"
            control.CommandBar.Controls.Add xtpControlPopup, 0, "bla"

           " I want to add more button for this xtpcontrolpopup "bla"
           
          control.CommandBar.Controls.Add xtpControlButton, id, "LL"

End With

Dim nCommand As Long
    nCommand = Popup.ShowPopup(TPM_RETURNCMD)
    
    If (nCommand = 0) Then Exit Function
       
    Select Case (nCommand)
        Case ID_GUEST_LOG:
        msgbox"ll"
        Case ID_SHORTCUT_SHOW_FEWER:
        MsgBox "kk"
    End Select
End Function
 


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: 05 February 2009 at 6:07am
Same:
 
Set control2 = control.CommandBar.Controls.Add (xtpControlPopup, 0, "bla")
control2.CommandBar.Controls.Add xtpControlPopup, 0, "bla2"
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
uangonline View Drop Down
Newbie
Newbie
Avatar

Joined: 04 February 2009
Location: Indonesia
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote uangonline Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2009 at 8:26am
Originally posted by oleg oleg wrote:

Same:
 
Set control2 = control.CommandBar.Controls.Add (xtpControlPopup, 0, "bla")
control2.CommandBar.Controls.Add xtpControlPopup, 0, "bla2"


do i have to make
Quote
dim control2 as commandbar

 again?
Back to Top
uangonline View Drop Down
Newbie
Newbie
Avatar

Joined: 04 February 2009
Location: Indonesia
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote uangonline Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2009 at 8:51am
Originally posted by oleg oleg wrote:

Same:
 
Set control2 = control.CommandBar.Controls.Add (xtpControlPopup, 0, "bla")
control2.CommandBar.Controls.Add xtpControlPopup, 0, "bla2"

Problem solved thanks a lot
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.