Theos PowerBasic Museum 2017

Archive => Discussion - Legacy Software (PBWIN 9.0+/PBCC 5.0+) => Topic started by: Paul Breen on November 23, 2009, 03:19:31 AM

Title: why do resouces (including dialog) with external rc file?
Post by: Paul Breen on November 23, 2009, 03:19:31 AM
I am not talking about the ddt vs api controversy. I mean the two ways of doing the api. What is the advantage of doing all the gui stuff in an rc file? You could design the dialog, menus etc everything as far I can tell. The good side is that it seperates the gui from the code, but is there a down side? There are so many ways to do these things.

Just curious, I am thinking of upgrading a resource editor, resource builder.
Title: Re: why do resouces (including dialog) with external rc file?
Post by: José Roca on November 23, 2009, 03:46:44 AM
 
Yes, there is a downside: To use these resources you need to use the Dialog Box API, with its limitations, instead of the more powerful SDK windows created with CreateWindoeEx.

The Dialog Box API is what DDT uses under the hood. Therefore, it will be like using DDT with another syntax.
Title: Re: why do resouces (including dialog) with external rc file?
Post by: James C. Fuller on November 23, 2009, 11:57:34 AM
Quote from: José Roca on November 23, 2009, 03:46:44 AM

Yes, there is a downside: To use these resources you need to use the Dialog Box API, with its limitations, instead of the more powerful SDK windows created with CreateWindoeEx.

The Dialog Box API is what DDT uses under the hood. Therefore, it will be like using DDT with another syntax.


José,
  By adding a CLASS name in the dialog resource script I believe you can have the best of both worlds??

James
Title: Re: why do resouces (including dialog) with external rc file?
Post by: Paul Breen on December 03, 2009, 02:31:59 AM
Ok, I appreciate the information.