At 15:24 2002-10-16 -0400, Magnone, Angelo wrote:
Has anyone had any success with creating a toolbar using The GUI LOFT and
then act upon the different
buttons clicked? How can I tell which button has been clicked?
I have never used it myself, I basically positon ordinary buttons so they
look like like a toolbar.
But this is what the docs say about the Toolbar events:
ButtonClick(INDEX)
Sent when the user presses a button of the Toolbar the INDEX argument
identifies the zero-based index of the pressed button
So if your toolbar is called tbrTop, this is your event handler:
sub tbrTop_ButtonClick {
my ($index) = @_;
print "User clicked button ($index)\n";
return(1);
}
/J
-------- ------ ---- --- -- -- -- - - - - -
Johan Lindström Sourcerer @ Boss Casinos [EMAIL PROTECTED]
Latest bookmark: "Atari Icon Library"
http://aicq.atari-users.net/iconz/
dmoz (1 of 2): ...Computers/Software/Desktop_Customization/Icons/ 137