On May 29, 2005, at 11:39 AM, Alain Pastor wrote: > 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. >> > <snip> > > I don't know if that will work, but have you tried something like > the following? > > Def SetButtonData( btnID, ¬ > _kControlIconPart, ¬ > _kControlBevelButtonContentTag, ¬ > sizeof(content), ¬ > content ) > > Alain > Well, Alain's suggestion worked like a charm (was there any doubt?). Now that I've set a bevel button with a specific cicn, what is the syntax (Def GetButtonData in some flavor I'm guessing) for retrieving which cicn (resID?) is being used by a bevel button? TIA----Brian S.