Hierarchy of GUI elements

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Post Reply
chbwien
Posts: 5
Joined: Wed Apr 22, 2020 11:28 pm

Hierarchy of GUI elements

Post 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 233 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.

User avatar
brittneyr
Site Admin
Posts: 504
Joined: Thu Jun 01, 2017 7:20 am

Re: Hierarchy of GUI elements

Post 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 220 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 213 times
Brittney Ryn
SAPIEN Technologies, Inc.

chbwien
Posts: 5
Joined: Wed Apr 22, 2020 11:28 pm

Re: Hierarchy of GUI elements

Post 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 189 times

User avatar
brittneyr
Site Admin
Posts: 504
Joined: Thu Jun 01, 2017 7:20 am

Re: Hierarchy of GUI elements

Post 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
Brittney Ryn
SAPIEN Technologies, Inc.

Post Reply