Good morning,
I'm having trouble working with Property Page Manager, I am creating a group of buttonsthat need to be aligned, a button, a label, a numerbox.
However, when they create are distributed between the lines, not on the same line.
Below the code I used to create components ...
' BOTAO 1
controlType = swPropertyManagerPageControlType_e.swControlType_Button
leftAlign = swPropertyManagerPageControlLeftAlign_e.swControlAlign_LeftEdge
options = swAddControlOptions_e.swControlOptions_SmallGapAbove + swAddControlOptions_e.swControlOptions_Enabled + swAddControlOptions_e.swControlOptions_Visible
vBUTTON1 = group1.AddControl(vBUTTON1ID, controlType, "", leftAlign, options, "test 123")
vBUTTON1.width = 20
' LABEL 1
controlType = swPropertyManagerPageControlType_e.swControlType_Label
leftAlign = swPropertyManagerPageControlLeftAlign_e.swControlAlign_Indent
options = swAddControlOptions_e.swControlOptions_Enabled + swAddControlOptions_e.swControlOptions_Visible
vLABEL1 = group1.AddControl(vLABEL1ID, controlType, "test", leftAlign, options, "test 123")
' CAMPO NUMERICO 1
controlType = swPropertyManagerPageControlType_e.swControlType_Numberbox
leftAlign = swPropertyManagerPageControlLeftAlign_e.swControlAlign_DoubleIndent
options = swAddControlOptions_e.swControlOptions_Enabled + swAddControlOptions_e.swControlOptions_Visible
vNUM1 = group1.AddControl(vNUM1ID, controlType, "Sample Numberbox", leftAlign, options, "Allows numerical input")
If Not vNUM1 Is Nothing Then
vNUM1.SetRange(swNumberboxUnitType_e.swNumberBox_UnitlessDouble, 100.0, 0.0, 0.01, True)
vNUM1.Value = 0.0
End If
Also like to place an image on the button ...
Thanks
Danilo