![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 11 to 13 of 13 total |
![]() |
Thu, Jun 2 2016 1:51 PM | Permanent Link |
Boris B | Emailed you the sample code. Attached is the same for anyone's curiosity.
Attachments: BorisB_DialogCenteringIssue.zip |
Fri, Jun 3 2016 8:05 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Boris,
<< Emailed you the sample code. Attached is the same for anyone's curiosity. >> Thanks. Okay, the problem is two-fold: 1) The TDialog control interface only controls the *default* property values used for the control's UI elements. So, the control instance is created centered, but the Layout.Position is overridden with whatever value was set at design-time for the form (in this case, lpNone). 2) Even if you use the "initialize control interface to default" button in the form designer for your dialog, it isn't going to affect the layout properties. I specifically excluded them from consideration during an initialize operation because most of the time a developer doesn't want the layout re-initialized, only the look and feel. The solution here is to either: 1) Just change the Layout.Position at design-time for your dialog instance. 2) Dynamically create a TDialog instance at run-time, by-passing using the designers in the IDE and, therefore, by-passing the storing/loading of the layout properties for the dialog at run-time. Tim Young Elevate Software www.elevatesoft.com |
Fri, Jun 3 2016 10:04 AM | Permanent Link |
Boris B | Okay - I can work with that
![]() |
« Previous Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Thursday, March 30, 2023 at 10:19 AM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |