model_server/gala/src/controlObjects.cxx
// this function will set indicator bounds in dots.
// the indicator will be placed at the left side of the
// checkbox rectangle with the up and down offsets = yOffset
// and left offset and distance to the text title = xOffset.
// default is 1,1.
this function will set indicator bounds in dots.
the indicator will be placed at the left side of the
checkbox rectangle with the up and down offsets = yOffset
and left offset and distance to the text title = xOffset.
default is 1,1.
this function will set indicator bounds in dots . the indicator will be placed at the left side of the checkbox rectangle with the up and down offsets = yOffset and left offset and distance to the text title = xOffset . default is 1 1 .
void gdListCheck::SetIndicatorOffsets(int xOffset,int yOffset) {
	x_shift=xOffset-1;
	if(x_shift<0) x_shift=0;
	y_shift=yOffset+1;
	if(y_shift<0) y_shift=0;
	indicator.x=windowRect.x+x_shift;
	indicator.y=windowRect.y+y_shift;
	if(indicator.x>windowRect.x+windowRect.w)
		indicator.x=windowRect.x+windowRect.w;
	if(indicator.y>windowRect.y+windowRect.h)
		indicator.y=windowRect.y+windowRect.h;
	int d=windowRect.h-2*y_shift;
	if(d<5) d=5;
	indicator.w=indicator.h=d;
}
void gdListCheck :: SetIndicatorOffsets ( int xOffset , int yOffset ) { x_shift = xOffset - 1 ; if ( x_shift < 0 ) x_shift = 0 ; y_shift = yOffset + 1 ; if ( y_shift < 0 ) y_shift = 0 ; indicator . x = windowRect . x + x_shift ; indicator . y = windowRect . y + y_shift ; if ( indicator . x > windowRect . x + windowRect . w ) indicator . x = windowRect . x + windowRect . w ; if ( indicator . y > windowRect . y + windowRect . h ) indicator . y = windowRect . y + windowRect . h ; int d = windowRect . h - 2 * y_shift ; if ( d < 5 ) d = 5 ; indicator . w = indicator . h = d ; }
this function will set indicator bounds in dots.
this function will set indicator bounds in dots .