Frame not skinned

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33707
    Teasy
    Participant

    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…

    #42363
    Support
    Keymaster

    Hello

    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).

    #42368
    Teasy
    Participant

    Hi,

    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.

    #42370
    Support
    Keymaster

    Of course Lite Edition haven't support of frames. Thank you for choosing AlphaControls

    Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.