how to move an item to a ribbon tab
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=14282
Printed Date: 16 June 2025 at 1:09pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: how to move an item to a ribbon tab
Posted By: fc41
Subject: how to move an item to a ribbon tab
Date 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
|
Replies:
Posted By: Oleg
Date Posted: 14 May 2009 at 1:40am
So why you call AddButton and not GroupFile.Add ?
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: fc41
Date 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
|
Posted By: fc41
Date Posted: 14 May 2009 at 2:58am
ok i made it
------------- Vb6Sp6
|
|