[futurebasic] Re: [FB] Question about bevel button with cicn resource

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2005 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Sun, 29 May 2005 20:39:50 +0200
Brian Stevens a écrit :
> I've created a bevel button (with help from TWM :-)) with a graphic  
> that uses a cicn resource. Initial display in the window works fine.  My 
> question is how to change the graphic (i.e. use a different cicn)  on 
> the button. Using a shortened version (i.e. appearance button  
> 1,,,,_cIcon2,"xxxxxx") of the appearance button statement with only  the 
> parameters I want to change doesn't work(maybe user error here) .  I can 
> make it work by doing a button close -1 and rebuilding the  button, but 
> this seems like overkill not to mention inelegant. I'm  thinking only 
> the SetButtonDatas need to be changed, but I don't know  how with this 
> type of button.

I don't know if that will work, but have you tried something like the 

Def SetButtonData(        btnID, ¬
               _kControlIconPart, ¬
  _kControlBevelButtonContentTag, ¬
                 sizeof(content), ¬
                         content )