Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - how to move an item to a ribbon tab
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to move an item to a ribbon tab

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

Joined: 05 July 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fc41 Quote  Post ReplyReply Direct Link To This Post Topic: how to move an item to a ribbon tab
    Posted: 13 May 2009 at 3:43am
hi guyz.

i want to move my passwordchar style editbox to Welcome tab, under username editbox.
you can see screenshot and code.




Public Sub RibbonLoad()
    Dim Don, PassEdit As CommandBarEdit
    Dim GroupFile As RibbonGroup
    Dim ControlFile As CommandBarPopup
    Dim rTab As RibbonTab
    Set RibbonBar = FMain.CMBar.AddRibbonBar("The Ribbon")
    Set rTab = RibbonBar.InsertTab(0, "Welcome")
        Set GroupFile = rTab.Groups.AddGroup("", 0)
        GroupFile.Add XtremeCommandBars.XTPControlType.xtpControlLabel, 501, "Username:", False, False
        GroupFile.Add XtremeCommandBars.XTPControlType.xtpControlLabel, 502, "Password:", False, False
        GroupFile.Add XtremeCommandBars.XTPControlType.xtpControlLabel, 503, "", False, False
        GroupFile.Add XtremeCommandBars.XTPControlType.xtpControlEdit, 504, "", False, False
        Set PassEdit = AddButton(RibbonBar.Controls, xtpControlEdit, 505, "")
        PassEdit.EditStyle = xtpEditStylePassword

thanx
Vb6Sp6
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: 14 May 2009 at 1:40am
So why you call AddButton and not GroupFile.Add  ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
fc41 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 July 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fc41 Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2009 at 2:27am
cos i saw a post of you about
- you need addbutton for passwordchar style
am i wrong?
Vb6Sp6
Back to Top
fc41 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 July 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fc41 Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2009 at 2:58am
ok i made it
Vb6Sp6
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.047 seconds.