April 16, 2024, 12:24:26 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


handlers in projects

Started by LarryMc, August 16, 2008, 08:51:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

August 16, 2008, 08:51:49 PM Last Edit: August 16, 2008, 09:04:20 PM by Larry McCaughn
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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library