Pete Williams

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Switrching Monitor on a Dual-Monitor Machine #53247
    Pete Williams
    Participant

    This problem goes away when DrawNonClientArea is false.

    But then the app looks a little strange.

    Can you provide some kind of fix for this?

    in reply to: Switrching Monitor on a Dual-Monitor Machine #53224
    Pete Williams
    Participant

    Here is the sample app[attachment=7080:title_click.zip]

    in reply to: Read-only edit fields #51816
    Pete Williams
    Participant

    That is absolutely awesome, thank you. Will report back to confirm.

    'CheshireCat' wrote:

    Hello Pete,

    maybe that's a solution for you:

    Code:
    uses
    sSkinManager, sEdit, GraphUtil;

    type

    TsEdit = Class(sEdit.TsEdit)
    procedure WndProc(var Message: TMessage); override;
    end;

    procedure TsEdit.WndProc(var Message: TMessage);
    begin
    case Message.Msg of
    WM_PAINT:
    begin
    if ReadOnly then
    begin
    SkinData.CustomColor := True;
    Color := ColorAdjustLuma(ColorToRGB(Form1.sSkinManager1.Palette[pcEditBG]), -25, True);
    end else SkinData.CustomColor := False;
    end;
    end;
    inherited WndProc(Message);
    end;

    Example:

    [attachment=6726:sEdit.jpg]

    in reply to: TGridPanel Problems #51773
    Pete Williams
    Participant

    That works, thank you.

    For anyone else using this control, the tsPanel control displays with a border which doesn't look good in all case. Just change the skins property to CHECKBOX and it goes away.

    in reply to: Border control for child windows #51683
    Pete Williams
    Participant

    Thanks worked! So simple!

    Many thanks

    'Support' wrote:

    Hello!

    Try to place the TsSkinProvider component and change SkinData.SkinSection to 'CHECKBOX' there.

    (Or to 'TRANSPARENT' if you uses version 9).

    I hope, I understood your question correctly. If not, then show a screenshot or a demo, please.

    in reply to: Border control for child windows #51663
    Pete Williams
    Participant

    Hi Uwe

    Thanks for the reply, but I'm porting a large application. I think changing to frames is something I cannot do.

    Pete.

    'mol' wrote:

    Pete,

    Use frames instead of forms. Much easier to handle in a complex application IMO.

    -Uwe

    in reply to: TsSkinManager #51647
    Pete Williams
    Participant

    Darren,

    Thanks a lot. I've done exactly what you suggested.

    The skin provider in on an ancestor, and the skin manager is opened onto an invisible window when the app starts. Each provider references the Manager component directly.

    To noobs like me: do this early. It's the right way to go, but I had to change some code part-way through.

    in reply to: TCategoryPanel #51544
    Pete Williams
    Participant
    'CheshireCat' wrote:

    Hello and welcome,

    you can find a demo for this control in the “Demo App” section …

    … or click on the following link 🙂

    http://www.alphaskins.com/sfiles/demos/categorypanel.zip

    Perfect – thanks for the tip. That gave me everything I needed.

Viewing 8 posts - 1 through 8 (of 8 total)