BoxButtonKill

 

Removes a push-button from a WinBatch box.

Syntax:

BoxButtonKill(box ID, button ID)

Parameters:

(i) box ID the ID number of the desired WinBatch box.

(i) button ID the ID number of the desired push-button.

Returns:

(i) @TRUE on success; @FALSE on failure.

 

Example:

;; sample code for BoxButtonKill
bDraw1=1
bDraw2=2
bDraw3=3
BoxesUp("100,100,900,900", @NORMAL)
BoxDrawText(1, "0,210,1000,1000", "WinBatch Box Example - BoxButtonKill%@CRLF% Select a Button", @FALSE, 1)
BoxButtonDraw(1, bDraw1, "Button 1", "100,450,300,550")
BoxButtonDraw(1, bDraw2, "Button 2", "400,450,600,550")
BoxButtonDraw(1, bDraw3, "Button 3", "700,450,900,550")
bWho=0
While bWho == 0
   For x =1 To 3
      If BoxButtonStat(1,x) Then bWho=x
   Next
EndWhile
Switch bWho
      ;Message("Excuse Me", "Please, don't push my buttons")
   Case 1
      BoxDrawText(1, "0,310,1000,1000", "Killing Button %Bwho%", @TRUE, 1)
      TimeDelay(2)
      BoxButtonKill(1, bDraw1)
      Break
   Case 2
      BoxDrawText(1, "0,310,1000,1000", "Killing Button %Bwho%", @TRUE, 1)
      BoxButtonKill(1, bDraw2)
      TimeDelay(2)
      Break
   Case 3
      BoxDrawText(1, "0,310,1000,1000", "Killing Button %Bwho%", @TRUE, 1)
      BoxButtonKill(1, bDraw3)
      TimeDelay(2)
      Break
EndSwitch
See Also:

BoxButtonDraw, BoxButtonStat, BoxButtonWait, BoxesUp, BoxNew