Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing a callback to execute

Status
Not open for further replies.

DSPdude

Electrical
Joined
Jul 24, 2003
Messages
4
Location
CA
Hi, I was wondering how to get a callback for a control to execute when I want it to (through code).

What I'm trying to do is to get the callback for a popupmenu to execute when the application starts.

Thanks,
Nishant
 
Write the callback as a separate function (I know this can often mean passing dozens of variables between functions, but it it worthwhile in this case).

So if your function is called 'my_function(a,b,c)' then put 'result=my_function(x,y,z)' as the callback string. You can then also call my_function at the start of your main script in the normal way.

M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top