- This topic has 3 replies, 2 voices, and was last updated 14 years, 7 months ago by Support.
-
AuthorPosts
-
April 26, 2010 at 7:31 pm #33707TeasyParticipant
Hi,
I'm a new user of AC, so before purchasing I play around to see what is possible. I must say I'm impressed.
Anyway, I can't or I'm not able to skin a TFrame at runtime when the form on which the frame is placed is also runtime created.
Weirdest thing about this is, that all of the components on the frame are skinned (TsPanel, TCheckBox, …), except for the frame itself.
The background of the frame stays white?! If I set ParentBackGround of the frame to False, I get the background of the skin (=same color of TsPanel).Is there something I'm missing or what am I doing wrong? How can I skin a TFrame?
Regards,
Filip.
Code:
function ShowDetailForm(aFrameID: Integer; aDataSource: TDADataSource; aMode: TCQMode;
OnFormInit: TNotifyEvent = nil;
OnFormExit: TNotifyEvent = nil): TModalResult;
var
frmDetail: TForm;
fraDetail: TfraCQuel; // –> is TFrame with extra properties
spProvider: TsSkinProvider;
begin
Result := mrNone;frmDetail := TForm.Create(Application);
try
spProvider := TsSkinProvider.Create(frmDetail);
spProvider.ShowAppIcon := False;
Application.ProcessMessages;fraDetail := GetFrame(aFrameID, frmDetail); // –> create the appropriate frame with the form as owner
if fraDetail = nil then
Exit;fraDetail.Parent := frmDetail;
if fraDetail is TfraCQuelDetail then
TfraCQuelDetail(fraDetail).Mode := aMode;fraDetail.Align := alClient;
frmDetail.Position := poOwnerFormCenter;
blah blah blah…
April 27, 2010 at 12:46 pm #42363SupportKeymasterHello
You can try to put the TsFrameAdapter component on the frame in design-time.
Default value of the sFrameAdapter.SkinData.SkinSection property is 'GROUPBOX', but you can change it for testing (to 'HINT', for example).If you can show a small demo with the problem then problem will be solved very quickly (if problem exists still).
April 27, 2010 at 4:22 pm #42368TeasyParticipantHi,
You convinced me to buy the full package. I had the Lite version (to try), but indeed, with a TsFrameAdapter the problem is solved.
Thanks.
April 27, 2010 at 5:33 pm #42370SupportKeymasterOf course Lite Edition haven't support of frames. Thank you for choosing AlphaControls
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)- You must be logged in to reply to this topic.