Here the full text will only be displayed when the string doesn't contain any unicode chars (Case 3), for Case 2 only some chars at the end are truncated, Case 1 only show 'Look here - > '.
Code: Select all
Enumeration
#Win
#Col1Name
EndEnumeration
#ChrCtrl= Chr($2318)
#ChrAlt= Chr($25c8)
#ChrShift= Chr($21D1)
#ChrShiftCtrl= Chr($21D1)+Chr($2318)
#ChrShiftAlt= Chr($2b06)
OpenWindow(#Win,10,10,300,200,"*")
StringGadget(#Col1Name,10,10,200,30,"Hover me...")
SetActiveGadget(#Col1Name)
s.s="Look here "
Select 1
Case 1
s=s+" - > "+Str(i)+#ChrCtrl+"*"+#ChrAlt+Str(i)
Case 2
s=s+" - >>> "+#ChrCtrl+"*"+#ChrAlt+" <<<"
Case 3
s=s+" - >>> A * B <<<"
EndSelect
Debug "Set "+Str(#Col1Name)+" = '"+s+"'"
GadgetToolTip(#Col1Name,s)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow