Progress
ADM 2 Reference


movebuttons (toolbar.p)

Calculates start positions for left, right, and centre aligned bands in the toolbar according to the current width of the toolbar frame, then move the existing buttons into their new positions. This is called from resizeObject so it is always current for the actual size of the toolbar frame.

Parameters:

INPUT pcForceMove AS LOGICAL

YES if the buttons should be forced to move

Returns: Nothing (procedure).

Notes: This routine expects already-built buttons. The first thing done is see if there are any right-aligned or center-aligned bands and if not, we can just exist as there is nothing to do. Also if all buttons are left aligned there is nothing to do. We must ignore hidden buttons. When called from viewHideActions procedure after buttons have been viewed/hidden, then we must force this procedure to run in order to correctly position buttons and not leave any gaps.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095