ControlBox Labels - Alignment
rhjpires
I've been experiencing this issue for quite some time, but I've been delaying posting it here since it is not the biggest of my problems.
It has to do with the alignment of the
GroupBox
label (TitleStr) that leaves a margin which is not centered with the dimensions given to a given box. It seems there is no option to control alignment of the text with respect to the dimensions of the box, nor it seems to be possible to give exact coordinates of where the TitleStr should be placed. Is there any way to do this better? Attached an illustrative example taken from a
ControlBar
of a graph.Many thanks,
R.
DrawText
February 19, 2018 at 05:50 am - Permalink
PauseUpdate; Silent 1 // building window...
NewPanel /W=(150,77,349,351)
Slider slider0,pos={23.00,61.00},size={62.00,194.00},limits={0,100,5},value= 0
GroupBox justABox,pos={13.00,51.00},size={94.00,212.00},frame=0
TitleBox title0,pos={18.00,42.00},size={80.00,15.00},title=" Threshold (%) "
TitleBox title0,labelBack=(61166,61166,61166),frame=0
EndMacro
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
February 19, 2018 at 08:21 am - Permalink
R.
February 19, 2018 at 10:04 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
February 21, 2018 at 10:41 am - Permalink