Simple Slider |
Post Reply |
Author | |
XpatTech
Groupie Joined: 26 November 2007 Location: United Kingdom Status: Offline Points: 37 |
Post Options
Thanks(0)
Posted: 08 December 2007 at 7:16am |
Is it possible to add a slider to a RibbonTab and if so how ?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Try this code:
Dim ControlSlider As XtremeCommandBars.CommandBarSlider
Set ControlSlider = CommandBars.CreateCommandBarControl("CXTPControlSlider") ControlFile.CommandBar.Controls.AddControl ControlSlider |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
XpatTech
Groupie Joined: 26 November 2007 Location: United Kingdom Status: Offline Points: 37 |
Post Options
Thanks(0)
|
No joy in VB6...
Any chance of a working example in vb6 ? |
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
Here's another example which works in 11.2.1 ('cb' is the CommandBars control):
Dim oRibbonBar As RibbonBar Dim oTab As RibbonTab Dim oGrp As RibbonGroup Dim oSlider As CommandBarSlider Set oRibbonBar = cb.AddRibbonBar("Main") Set oTab = oRibbonBar.InsertTab(99, "Test") Set oGrp = oTab.Groups.AddGroup("Test Group", 999) With oGrp Set oSlider = cb.CreateCommandBarControl("CXTPControlSlider") oSlider.Min = 0 oSlider.Max = 10 oSlider.Pos = 5 'this is the current value oSlider.Id = 9999 'give it an ID .AddControl oSlider End With Oleg, I can't find a way to add tooltip or caption for the slider. In the end I added a Label control, enabled actions and updated caption as necessary. Can slider have tooltip and caption? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |