Skip to main content
Home Forums 68kMLA Development QuestionL Icons in Dialogs — #1
Post #1 by equant
Source Forum68kMLA
CategoryDevelopment
Post DateMon, 3 Sep 2007 - 14:35
Original URLhttps://68kmla.org/bb/threads/development-questionl-icons-in-dialogs.9746/
Post
I sent this to the LowEndMac vintage list, but I know there's a few skilled developers here as well, so I'm re-posting...

I have a dialog box with a clickable icon in it, and I'd like to be

able to swap the icon with another icon at a certain point in the

code. I'm having a hard time figuring out what I bet is a simple

task.

I've tried three methods, and none have worked, and was hoping someone

could tell me what I'm doing wrong, or how to accomplish icon swapping

in a dialog box. It's modeless if that matters.

I tried HideControl(ControlHandle(itemHandle)), but that didn't hide

the first icon.

I tried SedDItem(dialogHandle, ICON, iconItem, Handle(GetIcon(130)),

itemRect) and that didn't work.

I tried drawing over the original icon using PlotIcon(itemRect, GetIcon(130)).

Any ideas on which method I should be using if any of the three?

Thanks for any help.

mp.ls