MoveTBbutton

Syntax:

MoveTBbutton( #ButtonID, Position )

Parameters:

#ButtonID

=

your ButtonNumber (ID)

Position

=

new position where the Button is

inserted/moved to, starting with 1.

0 = move at the end of all Buttons.


Description:

With this command you can move a TB-Button

to a new position between the other buttons.

When you specify 0 to the Position parameter, the

Button is moved to the end of all Buttons.


Example:

  AddTBbutton(500,1,#TBpro_BUTTON)
  AddTBbutton(501,2,#TBpro_BUTTON)
  AddTBseparator()
  AddTBbutton(502,3,#TBpro_BUTTON)
  AddTBbutton(503,4,#TBpro_BUTTON)
  AddTBseparator()

  ; the actual Order of the buttons:
  ; 500 | 501 | SEP | 502 | 503 | SEP

  MoveTBbutton(500,0) ; move first  button to the end
  MoveTBbutton(501,0) ; move second button to the end

  ; now the new Order is:
  ; SEP | 502 | 503 | SEP | 500 | 501


Supported OS:   Windows