[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Objects and Widgets
- Subject: Objects and Widgets
- From: Mark Guagenti <mgenti(at)evansville.net>
- Date: Tue, 9 May 2000 13:54:49 -0500
- Newsgroups: comp.lang.idl-pvwave
- Organization: Posted via Supernews, http://www.supernews.com
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:19510
I am trying to learn how to use objects and widgets together and I have
ran across a question for all of you. When I am creating a widget button
such as:
openID = Widget_Button(fileID, Value='Open...', Event_Pro='XPU_RI_Open')
Do I have to make a procedure XPU_RI_Open such as:
PRO XPU_RI_Open, event
Widget_Control, event.top, Get_UValue=info, /No_Copy
info.obj->open
Widget_Control, event.top, Set_UValue=info, /No_Copy
END
How come you can't call the object method directly from Event_Pro? Since
I will be using a lot of methods will I always have to make a procedures
to call them? Thanks for the help.
-- Mark
Grace and peace to you from God our Father and the Lord Jesus Christ.
1 Cor. 1:3