Ah-ha. So if I use PropertySheetDialog, I can't add any controls to the main
window. Is that correct?
I just tried deleting the OK button from the .rc file, and nothing changed
when I ran PropertySheetDemo.rex. So I guess that OK and Cancel are provided
automatically.
I also notice that there's no code at all for the main window other than the
::class statement.
So if I were to say that, for PropertySheetDialogs, the programmer has no
control whatsoever over the content of the main window, and that the main
window will and can only contain the property sheets plus an OK and Cancel
button plus optionally a menu, would that be correct?
Many thanks
--
Oliver Sims
_____
From: Mark Miesfeld [mailto:[email protected]]
Sent: 23 February 2013 03:30
To: Open Object Rexx Users
Subject: Re: [Oorexx-users] Control Dialogs vs PropertySheet Dialogs
On Fri, Feb 22, 2013 at 2:23 PM, Oliver Sims
<[email protected]> wrote:
I think I understand the superficial technical difference between Control
dialogs and PropertySheet dialogs - the first uses an Rc/Res/UserDialog plus
ControlDialogs, and the latter uses a PropertySheetDialog with
Rc/Res/UserPSPDialogs.
However, I cannot immediately see what criteria I should use to choose
between the two. In other words, what things does one do better than the
other in terms of function, simplicity, or type of application?
PropertySheetDialog dialogs are controlled by the operating system. Because
of that you can not change the layout of the main dialog that the tab
control is in. They are somewhat easier to use because the operating system
takes care of starting, positioning, showing, and ending the page dialogs
Using a regular dialog with ControlDialog dialogs as the pages of a tab
control on the other hand does not have the restrictions of a
PropertySheetDialog. You can place the tab control in the main dialog where
you want and the size you want. You can add any number of other controls to
the main dialog. You could add 2 tab controls to the main dialog, etc..
The trade off, is there is more work for you to do. The first time a Rexx
programmer approaches the task of positioning the page dialogs correctly,
showing and hiding the pages at the right time, it might seem a little
over-whelming.
So that is the main thing to consider, a more restrictive but easier to
program dialog in the PropertySheetDialog versus a more flexible, but
slightly harder to program dialog using ControlDialog dialogs as the pages.
In the examples, I did the PropertySheetDemo and the TabDemo. If you run
them side by side you see they look almost identical, and behave
identically. In this case I did the PropertySheetDemo first and made the
TabDemo to mimic it. But, you would have less success first creating a
dialog using ControlDialog dialogs as the pages and then trying to create a
PropertySheetDialog that mimicked the first.
You can create a dialog to look just like any PropertySheetDialog dialog,
but you can not create a PropertySheetDialog to look like any dialog with
ControlDialog dialogs as the pages.
--
Mark Miesfeld
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users