Home » Developer & Programmer » Forms » Icon property name.
Icon property name. [message #79234] Thu, 16 May 2002 09:51 Go to next message
Geoff
Messages: 11
Registered: December 2001
Junior Member
I'm trying to put an image (NOTES.ICO) on a push button (called Unresolved) at runtime with a procedure. I assume I need to use SET_ITEM_PROPERTY but I'm not clear about the property name.

I've tried -

PROCEDURE show_icon IS
v_item item;
BEGIN
v_item : = FIND_ITEM('Unresolved');
SET_ITEM_PROPERTY(v_item, ICON_NAME, 'NOTES');
SET_ITEM_PROPERTY(v_item, ICONIC_BUTTON, PROPERTY_TRUE);
END;

but I get 'ICONIC' must be declared!

If I use -

SET_ITEM_PROPERTY(v_item, ICONIC_BUTTON, PROPERTY_TRUE);

it compiles, but when I call the procedure I get the error FRM-41042 'No such property for SET_ITEM_PROPERTY'

Can anyone tell me the correct name of the property?

Thanks
Re: Icon property name. [message #79240 is a reply to message #79234] Fri, 17 May 2002 07:23 Go to previous messageGo to next message
pratap kumar tripathy
Messages: 660
Registered: January 2002
Senior Member
there is no property called iconic button for a button,in other words you can not set the iconic property of the button dymanically.

set the iconic property to yes at design time and set iconic_name property at runtime.

hope it helps!!!
Re: Icon property name. [message #79344 is a reply to message #79240] Tue, 28 May 2002 11:58 Go to previous message
Geoff
Messages: 11
Registered: December 2001
Junior Member
Thanks Pratap that was the answer.

I appreciate the help!
Previous Topic: ON-ERROR CONTINUED.....
Next Topic: timer ,reminder
Goto Forum:
  


Current Time: Tue Apr 23 13:17:21 CDT 2024