Table of Contents

Enum NumberBoxStyles

Namespace
Hymma.Solidworks.Addins
Assembly
Hymma.Solidworks.Addins.dll

PropertyManager page number box styles.Bitmask.

[Flags]
public enum NumberBoxStyles

Fields

AvoidSelectionText = 4

The item the user selects in the attached drop-down list does not appear in the number box. Instead, the user's selection causes the add-in to get a callback via SelectionChanged
the Id argument will be the number box; the add-in is expected to respond by setting the value for the number box using Value.

ComboEditBox = 1

Enables the attached drop-down list for the number box; user can type a value or select a value from the attached drop-down list for the number box

Default = 0

the number box appears with two scrow arrows on the right side

EditBoxReadOnly = 2

User can only select a value from the attached drop-down list for the number box

You can set EditBoxReadOnly either before or after the PropertyManager page is displayed.
If set after the PropertyManager page is displayed and the number box contains editable text, then that text cannot be edited by the user

NoScrollArrows = 8

Do not show the up and down arrows in the number box, thus, disallowing incrementing or decrementing the value in the number box

Slider = 16

Slider

SuppressNotifyWhileTracking = 64

Suppress sending multiple notifications when a user is dragging or spinning the slider of a number box on a PropertyManager page; instead, send only one notification; see IPropertyManagerPage2Handler9::OnNumberboxChanged for details

Thumbwheel = 32

Thumbwheel

Remarks

When the user selects an item in the attached drop-down list, SOLIDWORKS attempts to use that item as a value in the number box.
Thus, the items in the attached drop-down list should be numeric values and optionally include their units.
The add-in then gets a callback via Changing as if the user had typed a value in the number box or clicked the up-arrow or down-arrow buttons to increment or decrement the value.
If you do not want your add-in to directly use items in the attached drop-down list in the number box, but instead want it to react to the user selecting a computed or linked value in the number box,
then use AvoidSelectionText