TsTitleButton + long Hint + Window maximized (ASkin 6.41)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40577
    Support
    Keymaster

      Hello
      Problem with TitleButtons hints will be solved in the v6.45

      #40624
      Iruau
      Participant

        Hi,

        I just installed v6.45 stable, and unfortunately the problem is still here after a full rebuild of my project.

        Granted it's better than with v6.44 (I can see more of the hint text) but it's still not solved.
        I guess correct behaviour would be to align the right side of the hint window with the right edge of the screen.

        #40688
        Support
        Keymaster

          QUOTE (Iruau @ Sep 30 2009, 06:35 PM) <{POST_SNAPBACK}>
          I guess correct behaviour would be to align the right side of the hint window with the right edge of the screen.


          That's what was made in the version 6.45… Could you give me a little demo with problem? Thanks.

          #40697
          Iruau
          Participant

            QUOTE (Support @ Oct 7 2009, 11:03 AM) <{POST_SNAPBACK}>
            Could you give me a little demo with problem?

            Here you go…

            DFM :
            Please note that I removed any internal skin before copy/pasting the code (for size reasons). Don't forget to add a skin and set the skin manager to Active=true before testing the project. The problem appears whether the window is maximized or it is too near the right edge of the screen, regardless of the chosen skin.

            CODE
            object wndMain: TwndMain
              Left = 419
              Top = 231
              Width = 403
              Height = 257
              Color = clBtnFace
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -11
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              OldCreateOrder = False
              PixelsPerInch = 96
              TextHeight = 13
              object skinProvider: TsSkinProvider
                SkinData.SkinManager = skinManager
                SkinData.SkinSection = 'FORM'
                TitleButtons = <
                  item
                    Hint = 'Some very long hint that overlaps the screen edge'
                    Name = 'TsTitleButton'
                  end>
                Left = 112
                Top = 56
              end
              object skinManager: TsSkinManager
                Active = False
                InternalSkins = <>
                MenuSupport.IcoLineSkin = 'ICOLINE'
                MenuSupport.ExtraLineFont.Charset = DEFAULT_CHARSET
                MenuSupport.ExtraLineFont.Color = clWindowText
                MenuSupport.ExtraLineFont.Height = -11
                MenuSupport.ExtraLineFont.Name = 'MS Sans Serif'
                MenuSupport.ExtraLineFont.Style = []
                SkinInfo = 'N/A'
                ThirdParty.ThirdEdits = ' '
                ThirdParty.ThirdButtons = 'TButton'
                ThirdParty.ThirdBitBtns = ' '
                ThirdParty.ThirdCheckBoxes = ' '
                ThirdParty.ThirdGroupBoxes = ' '
                ThirdParty.ThirdListViews = ' '
                ThirdParty.ThirdPanels = ' '
                ThirdParty.ThirdGrids = ' '
                ThirdParty.ThirdTreeViews = ' '
                ThirdParty.ThirdComboBoxes = ' '
                ThirdParty.ThirdWWEdits = ' '
                ThirdParty.ThirdVirtualTrees = ' '
                ThirdParty.ThirdGridEh = ' '
                ThirdParty.ThirdPageControl = ' '
                ThirdParty.ThirdTabControl = ' '
                ThirdParty.ThirdToolBar = ' '
                ThirdParty.ThirdStatusBar = ' '
                ThirdParty.ThirdSpeedButton = ' '
                Left = 144
                Top = 56
              end
            end

            Additional info : I'm using Borland C++Builder 6 / ASkin 6.45 / TntUnicode 1.7.0.3 under Windows XP SP3.
            The TwndMain form is an instance of TTntForm.

            #40698
            Support
            Keymaster

              Thank you, problem will be solved in the nearest release.

              PS. You can search in the sSkinProvider.pas file this code

              CODE
              R := Btn.HintWnd.CalcHintRect(200, Btn.Hint, 0);


              If you change this line to

              CODE
              R := Btn.HintWnd.CalcHintRect(1000, Btn.Hint, 0);

              then problem will be solved. TntHintWindow haven't supported multiline hints seems.

              #40702
              Iruau
              Participant

                I'm confirming that this solves the problem.

                Thank you very much for working around TntUnicode bugs again !
                Keep up the good work.

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