- This topic has 6 replies, 2 voices, and was last updated 15 years, 1 month ago by Iruau.
-
AuthorPosts
-
September 16, 2009 at 9:51 am #33290IruauParticipant
Hi,
When using a long Hint string in a TsTitleButton, and the window is maximized, the Hint tooltip goes off the screen making the hint unreadable (because the left side of the tooltip is aligned with the mouse pointer).
The strange behaviour is: when I mouse-over the Close button, the Close hint is perfectly visible, because this time the right side of the tooltip is aligned with the screen edge (which unfortunately doesn't happen with a custom TsTitleButton).
As a side note I noticed that, although I'm using TntUnicode, the Hint of TsTitleButton is still an AnsiString, not a WideString like the rest of AlphaSkins.
Edit: I just upgraded to ASkin 6.44, the problem is still here.
September 27, 2009 at 10:02 am #40577SupportKeymasterHello
Problem with TitleButtons hints will be solved in the v6.45September 30, 2009 at 3:35 pm #40624IruauParticipantHi,
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.October 7, 2009 at 9:03 am #40688SupportKeymasterQUOTE (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.October 7, 2009 at 9:50 am #40697IruauParticipantQUOTE (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.CODEobject 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
endAdditional 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.October 7, 2009 at 10:00 am #40698SupportKeymasterThank you, problem will be solved in the nearest release.
PS. You can search in the sSkinProvider.pas file this code
CODER := Btn.HintWnd.CalcHintRect(200, Btn.Hint, 0);
If you change this line toCODER := Btn.HintWnd.CalcHintRect(1000, Btn.Hint, 0);then problem will be solved. TntHintWindow haven't supported multiline hints seems.
October 7, 2009 at 10:40 am #40702IruauParticipantI'm confirming that this solves the problem.
Thank you very much for working around TntUnicode bugs again !
Keep up the good work. -
AuthorPosts
- You must be logged in to reply to this topic.