Hellow Warren,
Thanx for your input,

BUT, I guess I did not make myself clear enough.

As you know, mapbasic comes with several handlers such as  
 SelChangedHandler, WinClosedHandler, and one of them is called  
 "TOOLHANDLER".  By placing this procedure within your program and run  
 it, you can find a new button cretead in Main Button Pads.
What this "ToolHandler" Button enables me is to find which column on  
 Browser user clicked by issuing
CommandInfo(CMD_INFO_X).  After finding which column user clicked, I can  
 resort the browser.

As you know, one cannot change button icon after it is created ("Alter  
 button" command), but to recreate the whole buttonpad again.

And I would like to change this "TOOLHANDLER" created within "Main Button  
 Pad" button's Icon to my custom icon so that user would know imidiately  
 that there is an additional button newly created and came with my  
 program.

I need to know How I can possibly change this "TOOLHANDLER" icon.

Is this clear enough?

If I am correct, I cannot create a custom button that tells me which  
 column user clicked on browser window.  When I create a custom button, I  
 can only find which ROWID user clicked on browser window.  If you issue  
 CommandInfo(CMD_INFO_X), you get "0" as an answer.  The only way to find  
 which column user clicked, I have to use "TOOLHANDLER" Procedure call.


Just in case this seems a bit confusing, try creating a program similar  
 to below and run it. Notice there is a new button in Main ButtonPad

 --------------------
Declare Sub Main
Declare Sub ToolHandler

Sub Main

End Sub

Sub ToolHandler

End Sub
 ----------------------

Is this clear enough?

Let me know

Yas

 ----------
From:  owner-mapinfo-l
Sent:  Sunday, April 11, 1999 9:10 AM
To:  TYN000; mapinfo-l
Cc:  wvick
Subject:  Re: MI ToolHandler Sub

Hello Yas,

> When I put ToolHandler Sub (like SelChangedHandler, WinClosedHandler,
>  etc..) into my program, a button with crosshair would show up in Main  
    

>  ButtonPad.  Is there a way to change the icon on that?

The syntax for the ToolButton creation includes an optional "icon ..."
clause. Take a look in
ICONS.DEF and look-up the block of definitions starting with MI_ICON_.  
 The
options are pretty
self-explanatory.

Regards,
Warren Vick
Europa Technologies Ltd, U.K.
http://www.europa-tech.com
 ----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to