Lasse

Forum Replies Created

Viewing 20 posts - 161 through 180 (of 205 total)
  • Author
    Posts
  • in reply to: TPageControl v14.12 #58932
    Lasse
    Participant

    Now I got it like this (see attachment) with the v14.13. The tabsheet was longer than the page control. Only one tabsheet in page control. After I resized the form a little bit, it looks like that.

    in reply to: TPageControl v14.12 #58909
    Lasse
    Participant

    Create a test so that you create dynamically many tabs with TabVisible = False and then set it to True

    Code:
    for LIndex := 0 to PageControl.PageCount – 1 do
    PageControl.Pages[LIndex].TabVisible := True;

    This seems to be the problem. I changed my code, so this is not a problem for me anymore but maybe for someone.

    The problem can be avoided by using skin manager's BeginUpdate;..EndUpate(True);.

    in reply to: TPageControl v14.12 #58848
    Lasse
    Participant

    This is still very unreliable in v.14.13 (see attachments). It now depends whether the page control is visible when tab sheets are added. I will revert back to v.14.11.

    in reply to: TsSpinEdit not enforcing MinValue? #58837
    Lasse
    Participant

    Set AllowNegative property to False.

    in reply to: Distorted title icon in v14.00 #58365
    Lasse
    Participant

    I think you can see this in your demo.

    in reply to: TMenuItem with check in v14.00 #58364
    Lasse
    Participant

    Check sSkinMenus.pas:

    Code:
    procedure TsSkinableMenus.sAdvancedDrawItem(Sender: TObject; ACanvas: TCanvas; ARect: TRect; State: TOwnerDrawState);

    gRect.Left := {min(bWidth, gRect.Top) + }(IcoLineWidth – w) div 2 + iRect.Left;

    I changed that to

    Code:
    gRect.Left := min(bWidth, gRect.Top) + (GetImageWidth(Item.GetImageList, -1, PPI) – w) div 2 + iRect.Left; // Lasse

    and that fixed the strange moving of glyphs.

    The other bug (narrow space for the tick) is caused by GlyphSize function.

    I think the error is here:

    Code:
    Result := MkSize(GetImageWidth(Item.Parent.SubMenuImages, -1, TacSkinData(sd).ScaleValue))

    That TacSkinData(sd).ScaleValue is 0. If I change that to PPI, then it is little too wide. Or the glyph should be aligned in the middle…

    in reply to: TMenuItem with check in v14.00 #58350
    Lasse
    Participant

    I don't know what happened but now GPlus skin is showing tick… other issues still valid.

    in reply to: TMenuItem with check in v14.00 #58346
    Lasse
    Participant

    Also weird bug when closing the sub-menu. See attachment. When moving from View to Skin… Both (View and Skin..) icons are moving half width left.

    in reply to: TMenuItem with check in v14.00 #58345
    Lasse
    Participant

    Seems to be a bug with left panel width and there is a GPlus skin bug with the tick. See attachment with Windows 10 skin (RadioItem = False).

    in reply to: TMenuItem with check in v14.00 #58344
    Lasse
    Participant

    If TMenuItem.RadioItem is false, then it is showing like this (see attachment).

    in reply to: Slider in TsSlider is gone in v14.00 #58341
    Lasse
    Participant

    Thanks. The thumb curvature is slightly different than in previous version (see attachments) but I think it's okay…

    in reply to: TsStickyLabel has wrong font color in dark skins #58003
    Lasse
    Participant

    Just by checking changes between versions. That certainly affects to that reflect layout what ever it is… that is just a hack to solve it for now.

    in reply to: TsStickyLabel has wrong font color in dark skins #58001
    Lasse
    Participant

    Commenting this out solves the problem…

    Code:
    procedure TsStickyLabel.WndProc(var Message: TMessage);
    begin
    case Message.Msg of
    {SM_ALPHACMD:
    case Message.WParamHi of
    AC_REFLECTLAYOUT:
    case AlignTo of
    altLeft: AlignTo := altRight;
    altRight: AlignTo := altLeft;
    end;
    end;}
    in reply to: TsPageControl MouseDown #57959
    Lasse
    Participant

    Yes, my MouseDown problem is fixed but if somebody is overriding MouseUp there is still exactly same issue with it. OnMouseUp is called instead of MouseUp.

    in reply to: TsPageControl MouseDown #57938
    Lasse
    Participant

    This is still broken in version 13.13.

    I see why. If page control's MouseDown is overrided, it is never called.

    Code:
    procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer); override;

    There is now OnMouseDown called:

    Code:
    if Assigned(OnMouseDown) then
    OnMouseDown(Self, mbLeft, GetShiftState, TCMHitTest(Message).XPos, TCMHitTest(Message).YPos);

    Works, if I change that to

    Code:
    MouseDown(mbLeft, GetShiftState, TCMHitTest(Message).XPos, TCMHitTest(Message).YPos);

    That will call the OnMouseDown

    Code:
    procedure TControl.MouseDown(Button: TMouseButton;
    Shift: TShiftState; X, Y: Integer);
    begin
    if Assigned(FOnMouseDown) then FOnMouseDown(Self, Button, Shift, X, Y);
    end;

    Same thing with the MouseUp

    Code:
    procedure TControl.MouseUp(Button: TMouseButton;
    Shift: TShiftState; X, Y: Integer);
    begin
    if Assigned(FOnMouseUp) then FOnMouseUp(Self, Button, Shift, X, Y);
    end;
    in reply to: AV with open frames #57578
    Lasse
    Participant

    Well, indeed. It is a wrapper for TsSkinManager and just sets some properties by overriding Create. And it seems that some of those properties is causing this. Thanks, I will investigate which one it is.

    It was this

    Code:
    Saturation := 10;

    and it does not need to be set. So, problem solved.

    in reply to: AV with open frames #57576
    Lasse
    Participant

    I installed v13.00 beta and still get the AV (see attachment).

    in reply to: AV with open frames #57473
    Lasse
    Participant

    I tried it even thought I already knew the answer – it did not help. I will look at the code when I have time. This is not a big issue, I just need to remember to close frames before I close Delphi.

    in reply to: AV with open frames #57448
    Lasse
    Participant

    [Content was edited mistakenly by Support]

    in reply to: TVirtualDrawTree in v12.13 #56921
    Lasse
    Participant

    I checked changes from acSBUtils.pas and I just needed to set the UnfocusedSelectionColor = clHighlight to fix this.

    Code:
    Colors.UnfocusedSelectionColor := clHighlight;
Viewing 20 posts - 161 through 180 (of 205 total)