On Sun, Jul 3, 2011 at 2:38 PM, <os...@simsassociates.co.uk> wrote:
> **
>
> (1) Most of the dialogs in the sample application will be RcDialogs or
> ResDialogs (although I'd like one UserDialog for illustration).
>
Sounds good.
> (2) For the RcDialogs and ResDialogs, I want to use symbolic IDs
> (although I might use numeric IDs for one dialog again for illustration). (3)
> This means I have to use the GlobalConstDir for all Rc and Res dialogs
> (aside from the one that uses numeric IDs).
>
Well, it only means you have to use it for menus. If there are no menus,
you don't *need* to use it.
Although for myself, I would only use the global .constDir from here on
out. The optimizations you get from using it are substantial.
> (4) This in turn means that, to avoid clashes, I need a naming scheme for
> the symbolic IDs so that there are no duplications among the various dialogs
> within the application.
>
Yes, absolutely. Although how much of a burden this is, is dependent on
your coding style.
And, I guess I shouldn't have said absolutely. You can use the same
symbolic name in different dialogs without problem Controls in different
dialogs can have the same resource ID without problem. Same for menu IDs
for that matter.
A good example of this is the 'Ok' button. The symbolic ID of IDOK is
always assigned 1. You can have 5 different dialogs in an application and
they can all have 'Ok' buttons. There is no clash.
What you can not do is define IDC_EDIT in one dialog with a value of 200 and
define IDC_EDIT in another dialog with a value of 300. If al the dialogs
are in one .rc file with one .h file, it can't happen. There will only be
one IDC_EDIT symbol with one value assigned to it. The same symbol can be
used in different dialogs.
--
Mark Miesfeld
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users