Lasse

Forum Replies Created

Viewing 20 posts - 101 through 120 (of 205 total)
  • Author
    Posts
  • in reply to: Windows 11 Dark skin with TVirtualDrawTree #70258
    Lasse
    Participant

    All other skins are fine. And that Windows 11 Dark skin is also fine after that fix. Not necessarily fixed correct thou… but I see similar settings in other dark skins.

    in reply to: Windows 11 Dark skin with TVirtualDrawTree #70253
    Lasse
    Participant

    I fixed this by changing Edit controls > EDIT values like this (see attachment)… No idea, if it is correct but looks ok now.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Combobox not working properly in V16.00 #69955
    Lasse
    Participant

    ComboBox.Clear and ComboBox.Items.Clear are two different things.

    in reply to: TsColorBox in V16.02 with FastMM5 #69940
    Lasse
    Participant

    I was able to fix this for now like this:

    procedure TacItemsPopupForm.UpdateControls;
    ...
      procedure AddItem(const ACaption: string);
     ...
          Flat := False; // True; Lasse

    You will see why. It will crash here:

    procedure TCustomSpeedButton.UpdateTracking;
    var
      P: TPoint;
    begin
      if FFlat then

    Of course this is just a temporary solution.

    • This reply was modified 3 years, 8 months ago by Lasse.
    in reply to: Combobox not working properly in V16.00 #69918
    Lasse
    Participant

    I had exactly same issue and fixed it like this in acPopupController.pas:

    procedure TsPopupController.AnimShowPopup(AForm: TForm; wTime: word = 0; BlendValue: byte = MaxByte);

    h := HWND_TOPMOST; //TopWndAfter; Lasse

    in reply to: ActionList with VirtualImageList #69426
    Lasse
    Participant

    Did you check it? This is still an issue in v.15.15. Tried in Delphi 10.3.3 this time…

    • This reply was modified 4 years, 2 months ago by Lasse.
    in reply to: NeonNight skin is raising exception #69425
    Lasse
    Participant

    I found the reason which UI element is causing this in my application. It happens when I have a title bar items aligned right and the style is bsMenu. But I still can’t repeat this in your demo.

    So, I ended up to fix this:

    procedure CopyByMask32(R1, R2: TRect; const Bmp1, Bmp2: TBitmap; const CI: TCacheInfo; const MaskData: TsMaskData);
    ...
    CacheBMP := Bmp.ScanLine[R1.Top + PosY + Y];
    =>
    CacheBMP := Bmp.ScanLine[Max(R1.Top + PosY + Y, 0)]; // Lasse
    in reply to: NeonNight skin is raising exception #69352
    Lasse
    Participant

    Well, this is weird. I can’t repeat it in your demo using TsSkinSelector but in my own program I can. I have tried all skins and that is the only skin causing that error. I will try to figure out why.

    in reply to: Hint timing is much too fast #69308
    Lasse
    Participant

    Don’t remember exactly but I had to put a comment here:

    procedure TsAlphaHints.OnCheckTimer(Sender: TObject);
    begin
    ...
        // Lasse Application.HintPause := Manager.FOldHintPause;

    Otherwise I could not change it.

    in reply to: v15.13 is slow #69300
    Lasse
    Participant

    It is perfect now.

    in reply to: AV on idle #69283
    Lasse
    Participant

    Yeah, we are using MadExcept in our commercial products. I’ve been just lazy to add it for hobby projects.

    in reply to: v15.13 is slow #69277
    Lasse
    Participant

    Finally had time to see what is the cause. Changes in acgpBlur procedure in acgpUtils.pas unit are causing the slowness.

    I reverted that procedure to v15.12 and everything is fine now.

    • This reply was modified 4 years, 3 months ago by Lasse.
    in reply to: v15.13 is slow #69239
    Lasse
    Participant

    No, I don’t use lightning effect. It didn’t work well last time I tried it. But I will try to find time (at weekend) to find the reason for this slowness. I remember seeing some suspicious code while I was merging the version but I will see…

    in reply to: v15.13 is slow #69222
    Lasse
    Participant

    Yeah, I use data aware components in my database administration tool (https://www.texteditor.pro/firebird/). I have made quite many optimizations for AlphaSkins to speed it up but the latest v.15.13 is remarkably slower than v.15.12 even with all the fixes I have made.

    There are quite many loops which can be faster by just using variables to avoid getting items unnecessarily multiple times (it is slow). I also recommend FixInsight tool to point out bad code that we easily make in a hurry.

    in reply to: AV on idle #69213
    Lasse
    Participant

    I have tried a long time to repeat this on debug mode. No success yet. It is rare and happens on idle or after waking up from sleep mode.

    Lasse
    Participant

    Both paint blocking code was added in v. 15.10. It is not old code.

    in reply to: Glow issue in v.15.09 #69022
    Lasse
    Participant

    Btw. there is a glow issue with comboboxes in Fluent Night theme (you can see it in your demo). I fixed it by changing the GLOWMARGIN = 2 to 1.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Glow issue in v.15.09 #69021
    Lasse
    Participant

    I just pointed out where the problem is. It still exists in the latest version 15.10.

    Lasse
    Participant

    There is also added paint locking code that is causing problems:

    4214:WM_SETFOCUS, WM_KILLFOCUS: begin
          if MayBeHot(SkinData, False) and (Skindata.FOwnerControl is TWinControl) and TWinControl(Skindata.FOwnerControl).CanFocus and TWinControl(Skindata.FOwnerControl).TabStop then begin
            Skindata.BGChanged := True;
            Skindata.FFocused := WM_SETFOCUS = Message.Msg;
            // Skindata.FOwnerControl.Perform(WM_SETREDRAW, 0, 0);
            inherited acWndProc(Message);
            // Skindata.FOwnerControl.Perform(WM_SETREDRAW, 1, 0);

    Commenting out that paint locking solves the problem. The question is, why these are added?

    Lasse
    Participant

    In my case it is this code in acSBUtils.pas:

    procedure TacEditWnd.acWndProc(var Message: TMessage);
    ...
    4152: CM_MOUSEENTER, CM_MOUSELEAVE: begin
            Skindata.FOwnerControl.Perform(WM_SETREDRAW, 0, 0);
            inherited acWndProc(Message);
            Skindata.FOwnerControl.Perform(WM_SETREDRAW, 1, 0);
            Exit;
          end;

    Commenting that out solves the problem.

Viewing 20 posts - 101 through 120 (of 205 total)