On Mon, Oct 8, 2012 at 3:05 PM, Oliver Sims <oliver.s...@simsassociates.co.uk> wrote:
> I'd like to have a dialog containing a property sheet with a couple of > controls above and below the Property Sheet. > Using ResEdit, when I test the dialog, I see all the controls including the > property sheet. > But when I execute the dialog, although I can see the button controls below > the property sheet (but the static text that is also defined), I can't see > those above. > The Property Sheet seems to cover up the controls at the top of the dialog > and down to the buttons at the bottom. The PropertySheetDialog class implements a Windows Property Sheet. The property sheet itself is strictly specified in appearance, by Microsoft, and is inflexible in many ways. It is not actually a dialog control, but rather a dialog itself, no matter what ResEdit shows, you can not drop a property sheet into another dialog. (Well maybe you could force this in C code, but you certainly can not do it in ooDialog.) > Btw, what I'm trying to do is build an "Order Form" that has a few details > at the top (e.g. Order Number and Customer Name), then beneath this a > property sheet with two tabs - one for customer details, one for products to > be ordered, and below the property sheet the totals (net, discounts, and > tax), and final total. For this you want to use a regular dialog with a tab control that uses Control dialogs as the pages of the tab. This is slightly more work than using a PropertySheetDialog, but necessary to do what you want. The TabDemo.rex example program shows how to do this. It is under the propertySheet.tabs directory. In a property sheet, the Windows dialog handles the placement of the page dialogs within the tab control. But, it doesn't allow the programmer to add any controls or change the size or placement of the tab control When using a tab control with control dialogs as the pages, you the programmer have to handle the placement of the page dialogs within the tab control. But you are free to add any controls to the dialog you want, and to give the tab control the size and location you want. It seems difficult at first, but not so hard after you do it a couple of times. That's why the TabDemo.rex example exists. ;-) -- Mark Miesfeld ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users