Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 13 of 13 total
Thread Problem getting customized interfaces to apply throughout an application
Thu, Jun 2 2016 1:51 PMPermanent 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 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

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 AMPermanent Link

Boris B

Okay - I can work with that Smile
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image