Page 1 of 1

Hierarchy of GUI elements

Posted: Wed Jul 29, 2020 4:13 am
by chbwien
Where do I see the hierarchy of GUI elements? For instance: I have a form with some panels on it. So e.g. a button can be placed within the form or within the panel. Adding a button via the graphical interface is sometimes hard to get the correct parent element. If I add some elements, the drop down in the designer looks like this:
2020-07-29 13_04_38-SAPIEN PowerShell Studio 2020.png
2020-07-29 13_04_38-SAPIEN PowerShell Studio 2020.png (20.61 KiB) Viewed 316 times
So I do not see the hierarchy of the elements. Therefore my questions:
  • Where can I view the hierarchy
  • And more important, where can I change it?
Unfortunately the psf file contains only binary form data, so I can not access it there.

Re: Hierarchy of GUI elements

Posted: Wed Jul 29, 2020 8:45 am
by brittneyr
Psf file is not meant to manually be edited. If you do not wish to use the designer, you can export you script and manually update the form code there:
SPS_ExportFile.png
SPS_ExportFile.png (19.93 KiB) Viewed 303 times
If you wish to go back to using the designer, make sure your export has recovery information so it can recreate the psf file.

All properties of the controls can be changed via the Properties panel, including location. There is a Document Outline available from the ToolBox panel that shows all the controls:
SPS_DocumentOutline.png
SPS_DocumentOutline.png (7.95 KiB) Viewed 296 times

Re: Hierarchy of GUI elements

Posted: Thu Jul 30, 2020 1:24 am
by chbwien
Thank you for this information, but it does not answer the question, where I can see the hierarchy of the GUI elements. So if I place e.g. a button within panel1 or in panel2 or directly onto the form. This is quite essential, when you work with panels... I also see no option to work with ChildIndices (needed for dock).

Here a screenshot of my RAD-Studio. You see the hierarchy and can edit it by drag and drop.
2020-07-30 10_29_40-DailyReport - Delphi 10.4 - fMain.png
2020-07-30 10_29_40-DailyReport - Delphi 10.4 - fMain.png (84.37 KiB) Viewed 272 times

Re: Hierarchy of GUI elements

Posted: Thu Jul 30, 2020 7:15 am
by brittneyr
There is no 'hierarchy of elements' in PowerShell Studio. You are welcome to make a feature request and we will see what we can do:
https://www.sapien.com/requests