running code without executing a callback

Hello,

I’ve programmed an application with phab. Normally all code fragments
are started by clicking a button on the screen (via callback). Is it
possible to run some code directly with starting the application without
previously pressing a button (like autostart or a main function)?

How can I do it / where do I have to put my code to be executed
automatically?

Tobi

Hi Toby,

If you go to ‘Application->Startup Info/Modules.’ You’ll get a dialog that
has a setup section, which will allow you to enter a setup function that can
be called before of after the window is realized. I hope this is what you
were looking for.

Regards,
Dave B.


“Tobias Moeglich” <Tobias.Moeglich@web.de> wrote in message
news:3E8DA6A8.6010804@web.de

Hello,

I’ve programmed an application with phab. Normally all code fragments
are started by clicking a button on the screen (via callback). Is it
possible to run some code directly with starting the application without
previously pressing a button (like autostart or a main function)?

How can I do it / where do I have to put my code to be executed
automatically?

Tobi

Tobias Moeglich <Tobias.Moeglich@web.de> wrote:

Hello,

I’ve programmed an application with phab. Normally all code fragments
are started by clicking a button on the screen (via callback). Is it
possible to run some code directly with starting the application without
previously pressing a button (like autostart or a main function)?

How can I do it / where do I have to put my code to be executed
automatically?

Try clicking on the “Application” button, and select “Startup info/modules”.
This should give a config dialog with an entry labelled “Initialization
Function” – that should give you something that is run at the start
of your program.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.