12/19/2023 3:44 PM | |
Joined: 12/13/2005 Last visit: 7/8/2024 Posts: 61 Rating: (3) |
Hello, Was there a solution from the support request? |
12/20/2023 8:06 AM | |
Joined: 1/21/2013 Last visit: 9/9/2024 Posts: 3088 Rating: (481)
|
Hi, Currently, you must resize the popup screen window yourself. Automatic adjustment to the faceplate is not yet possible. This is not easy because you cannot access the parent popup screen window from the faceplate. You can use UI.PopupScreenWindows to get the list of all popup screen windows. Within this list, you can search for the title that you used in the UI.OpenFaceplateInPopup method call. However, this means that you must also store this value inside the faceplate, which can be done using the interface. Starting with V18 Update 3, the UI.OpenFaceplateInPopup method has been enhanced. The new parameters popupWindowName, adaptWindow, left, top, width, height have been added. To resize the popup, the adaptWindow parameter must be set to false. Kind regards |
This contribution was helpful to1 thankful Users |
12/20/2023 11:14 AM | |
Joined: 12/13/2005 Last visit: 7/8/2024 Posts: 61 Rating: (3) |
I did some experimenting about the resizing. I try to read the size form the popupwindow. That is based on the original size of the faceplate (height=90 and width=220) The popup adds a header (so plus 34 pixels) and a border (plus 4 pixels) When I check my script with 2 breakpoints and step from 1 breakpoint to another everything works like I expected: (see pictures part1 and part2) 1. read height = 124 (=90+34) 2. read width = 224 (=220+4) 3. change po.heigth to 90*2 = 180 = (124-34) *2 4. change po.width to 220*2 = 440 = (224-4) *2 5. read height = 180 6. read width = 440 When I check my script with only 1 breakpoints at the end, the popup isn't rescaling anymore: (see pictures part3) 1. read height = 132 ?? 2. read width = 192 ?? 3. change po.heigth to 132?? 4. change po.width to 192?? 5. read height = 132 ?? 6. read width = 192 ?? Anyone an idea why this is happening? AttachmentResize Faceplate.pdf (268 Downloads) |
Follow us on