- This topic has 5 replies, 2 voices, and was last updated 11 years, 11 months ago by Support.
-
AuthorPosts
-
November 28, 2012 at 11:35 am #35481ralfiiiParticipant
Unfortunately this time I didn't manage to create a small demo-application that only uses standard controls.
Im my case this error occurs on docked forms using the LMD Docking pack that are created and placed dynamically. And it seems to only occur on Windows 7, not on XP.
The form only holds a TMemo (a TPanel, TGrid… all of them work for this problem) and a TLabel. Here the dfm-code:
Code:object lbProgress: TsLabel
Left = 0
Top = 41
Width = 342
Height = 117
Align = alClient
Alignment = taCenter
Caption = 'Analysis in progress…'
Layout = tlCenter
end
object Memo1: TMemo
Left = 0
Top = 0
Width = 342
Height = 41
Align = alTop
endSo, important: The TLabel has Align=alClient. (This seem to cause the problem)
When the form is created and shown (see image 01_Skinned_fail.PNG), all the elements in the form don't adjust to the new size, they show in the size they originally had in the IDE.
When I slightly resize the form everything suddenly works (see 02_Skinned_AfterResize.PNG)
When I deactivate skinning then the problem doesn't occur at all (see 03_Unskinned.PNG)
When I replace TLabel with TsLabel the problem is also gone.
However, this is an issue that should be addressed.
Ralf
November 29, 2012 at 2:26 pm #49496SupportKeymasterWhen you activates a skin? In the form OnShow/OnCreate or in design-time?
November 29, 2012 at 2:29 pm #49497ralfiiiParticipant'Support' wrote:When you activates a skin? In the form OnShow/OnCreate or in design-time?
In OnCreate.
November 29, 2012 at 3:45 pm #49498SupportKeymasterTsSkinProvider is placed already to the form?
November 30, 2012 at 10:20 am #49510ralfiiiParticipant'Support' wrote:TsSkinProvider is placed already to the form?
No, that solves the problem.
Is there an explanation available what the SkinProvider does? Most of the times I don't need it but sometimes I do, confusing….
However, the other issue
http://www.alphaskins.com/forum/index.php?showtopic=7333&view=findpost&p=40423
is MUCH more serious, this one was solvable using TsLabel, for the other one I haven't found anything yet.
December 6, 2012 at 6:53 pm #49585SupportKeymasterTsSkinProvider needed for a skinning of form.
Usually this component is created automatically when form is shown.
But in some cases we can't control some events which occurs before automatic TsSkinProvider creation.
I suggest always use TsSkinProvider in design-time because forms behaviour will be better when this component was defined in design-time.
-
AuthorPosts
- You must be logged in to reply to this topic.