Skrip Posted October 5, 2008 Share Posted October 5, 2008 Hey guys. It seems that if the title is too long, it will not display at all. Is there a way to figure out if it is displaying or not? Because it does not throw an error. [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
Andreik Posted October 5, 2008 Share Posted October 5, 2008 (edited) Hey guys. It seems that if the title is too long, it will not display at all. Is there a way to figure out if it is displaying or not? Because it does not throw an error.I think the limit is 64 characters. Edited October 5, 2008 by Andreik Link to comment Share on other sites More sharing options...
Skrip Posted October 5, 2008 Author Share Posted October 5, 2008 Oh well, then just check if the string sent to the title is >64 and if it is, throw your own error. Thanks. [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
Andreik Posted October 5, 2008 Share Posted October 5, 2008 Oh well, then just check if the string sent to the title is >64 and if it is, throw your own error. Thanks.Just test on my PC and I can create tooltip with 99 chars in title. Check if you can put more. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 5, 2008 Share Posted October 5, 2008 The limit seems to be 99 on XP Home SP3. This works ToolTip("hej", 1, 1, _StringRepeat("A", 99)) But not this ToolTip("hej", 1, 1, _StringRepeat("A", 100)) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Andreik Posted October 5, 2008 Share Posted October 5, 2008 The limit seems to be 99 on XP Home SP3. This works ToolTip("hej", 1, 1, _StringRepeat("A", 99)) But not this ToolTip("hej", 1, 1, _StringRepeat("A", 100)) So 99 characters is the limit for tooltips. Link to comment Share on other sites More sharing options...
Skrip Posted October 5, 2008 Author Share Posted October 5, 2008 (edited) 99 is the max for me. - Thanks for checking that. If StringLen($root) > 95 Then $root = StringLeft($root, 90) $root = "CUT-" & $root EndIf ToolTip("Bloop", 0, 0, "Root-" & $root) There. That's a good way around it. Edited October 5, 2008 by Firestorm [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 5, 2008 Share Posted October 5, 2008 I think this should be mentioned in the helpfile so I opened a new ticket #601, it will be interesting to see what they respond .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Skrip Posted October 5, 2008 Author Share Posted October 5, 2008 I think this should be mentioned in the helpfile so I opened a new ticket #601, it will be interesting to see what they respondThank you. [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now