Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
Jul 24, 2003
4
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
 
Replies continue below

Recommended for you

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