Lasse

Forum Replies Created

Viewing 20 posts - 181 through 200 (of 212 total)
  • Author
    Posts
  • 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;
                  in reply to: Flashing black background when resizing a form #56911
                  Lasse
                  Participant

                    I managed to solve this when not using extended borders mode:

                    Code:
                    procedure TBaseForm.FormCreate(Sender: TObject);
                    begin
                    inherited;

                    SetClassLong(Handle, GCL_HBRBACKGROUND, GetSysColorBrush(COLOR_WINDOW));
                    end;

                    in reply to: Slow procedure #56766
                    Lasse
                    Participant

                      Thanks, atleast my problem is fixed. 🙂

                      in reply to: Slow procedure #56757
                      Lasse
                      Participant

                        I have noticed similar slow down with my own editor control – basic text selection seems very sluggish. I used a sampling profiler and there seems to be a lot of FillRect32 calls in sAlphaGraph. This has not been noticeable before.

                        I am using SkinManager.Options.OptimizingPriority = opSpeed.

                        in reply to: Memory leak in v.11.23 #56012
                        Lasse
                        Participant

                          Oh, I see GetExternalSkinNames has changed and is now creating objects which I need to free. Ok, that fixed this.

                          in reply to: TsColorBox #55818
                          Lasse
                          Participant

                            Thanks, that is working. I did fix static border color thou.

                            Code:
                            Bmp.Canvas.Brush.Color := clBlack; // ColorToBorderColor(ColorToRGB(C));
                            in reply to: TsSlider button #55735
                            Lasse
                            Participant

                              Thanks, it fixed that.

                              in reply to: Open and save dialogs in v.11.02 #55079
                              Lasse
                              Participant

                                I used Windows 10 skin. Unfortunately I already went back to version 10.29.

                                in reply to: Title bar #54287
                                Lasse
                                Participant

                                  You can use your demo:

                                  1. Add new item into sTitleBar1

                                  2. Set Align = tbaRight

                                  3. Set Caption = This_is_a_test.pas

                                  4. Set DropdownMenu = PopupMenu1

                                  5. Set Style = bsMenu

                                  in reply to: Title bar #54249
                                  Lasse
                                  Participant

                                    If FontData.UseSysFontName is False, it works. Ok, I can live with that. 🙂

                                    in reply to: Title bar #54237
                                    Lasse
                                    Participant

                                      Ok, I will test your demo when I get home tonight. With an underscore the arrow disappears (see attachment).

                                      in reply to: Page control #54189
                                      Lasse
                                      Participant

                                        This seems to be fixed but there is now same problem, if the menu button is the last page.

                                        in reply to: Virtual tree #54014
                                        Lasse
                                        Participant

                                          You can close this. “Enable Runtime Themes” was false in project options. I go to the corner ashamed. 🙂

                                          in reply to: Virtual tree #54012
                                          Lasse
                                          Participant

                                            I created this simple demo. But guess what, it works with both XE8 and Seattle. 🙂 I will investigate why my project does not.

                                            Code:
                                            var
                                            i: Integer;
                                            LNode: PVirtualNode;
                                            begin
                                            VirtualDrawTree.BeginUpdate;
                                            for i := 0 to 5 do
                                            begin
                                            LNode := VirtualDrawTree.AddChild(nil);
                                            LNode.CheckType := ctCheckBox;
                                            case i of
                                            0: LNode.CheckState := csUncheckedNormal; // unchecked and not pressed
                                            1: LNode.CheckState := csUncheckedPressed; // unchecked and pressed
                                            2: LNode.CheckState := csCheckedNormal; // checked and not pressed
                                            3: LNode.CheckState := csCheckedPressed; // checked and pressed
                                            4: LNode.CheckState := csMixedNormal; // 3-state check box and not pressed
                                            5: LNode.CheckState := csMixedPressed;
                                            end;
                                            VirtualDrawTree.AddChild(LNode); // child
                                            end;
                                            VirtualDrawTree.EndUpdate;
                                            end;
                                          Viewing 20 posts - 181 through 200 (of 212 total)