Re: Windows, memstructs, win32lib, IDE

new topic     » goto parent     » topic index » view thread      » older message » newer message
AndyDrummond said...

Matt
Not used pastey before but I have done what seems right. Let me know if I have missed the right mechanism, but it seemed very simple. That's what worries me. I'm too used to Microsoft.....

That was very useful. Please see if this fix to Includes/IDE_window.ew helps:

procedure initialize_property_sheet() 
--prop.ew define the controls 
	ensure( "config" ) 
	ensure( "code" ) 
        ... 

Basically, you're adding that ensure( "config" ) line, which should initialize the bit that you're having problems with. Unfortunately, I suspect there may be other, similar things that will need to be added.

To expand on what I've done there, you can take a look at the file Includes/IDE_init.ew. This has some stuff that allows modules to register their initialization functions and identify their dependencies, so that things are initialized in the correct order.

Then, all of the modules have a call to register() to register their initialization. When the initialization routine is called, it can call ensure(), which checks to see if the dependency has been called yet. If not, then it is called, otherwise it simply returns.

This way, I can easily reorganize the code without breaking a dependency on include order to ensure that things get initialized in the right order.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu