Message 1 of 3
MiniToolbarValueEditor. ValueEditor and integers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm puzzled. How to properly configure MiniToolbarValueEditor to accept only integers with automatic highlighting of fractional values in red, but without having to create new functions?
I tried writing MiniToolbarValueEditor.Precision Property, but I get an error
Sub Main()
Dim Inventor As Inventor.Application = ThisApplication
Dim interactEvents As InteractionEvents
Dim stillSelecting As Boolean = True
Dim toolBar As MiniToolbar
Dim valueEditor As MiniToolbarValueEditor
interactEvents = inventor.CommandManager.CreateInteractionEvents
interactEvents.InteractionDisabled = False
toolBar = interactEvents.CreateMiniToolbar()
valueEditor = toolBar.Controls.AddValueEditor("MyValueControl", "", ValueUnitsTypeEnum.kLengthUnits, "123")
valueEditor.MinimumValue = 0.1
valueEditor.CanValueBeEqualToMinimumValue = True
AddHandler interactEvents.OnTerminate, Sub()
stillSelecting = False
End Sub
toolBar.ShowApply = False
toolBar.ShowOptionBox = False
toolBar.ShowOK = False
toolBar.Visible = True
interactEvents.Start()
Do While stillSelecting
inventor.UserInterfaceManager.DoEvents()
Loop
interactEvents.Stop()
inventor.CommandManager.StopActiveCommand()
toolBar.Delete()
End Sub
INV 2025.3