On Fri, Feb 22, 2013 at 2:23 PM, Oliver Sims <
oliver.s...@simsassociates.co.uk> 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
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to