IonicWind Software

IWBasic => General Questions => Topic started by: LarryMc on August 16, 2008, 08:51:49 PM

Title: handlers in projects
Post by: LarryMc on August 16, 2008, 08:51:49 PM
I was trying a new technique for initializing a bunch of openwindows that will basically use the same handler ( one parent and all the rest are child windows.

I wanted to organize things so that the handler was in my main source file and all the openwindows were in a different source files.

For all my other subrotines the following works:
'in source file where sub resides
$define A100
global sub mysub()

then in the include file that I add to every source file I put in the project I have
$ifndef A100
   declare extern mysub()
$endif

That doesn't work with the window handler.

What is the proper way to accomplish that?

Note: My work around is to put the OPENWINDOW commands in the main and then call a sub that fills in all the other controls, etc

Larry