ToolTip word wrap
by Stanley D Chatman · in Torque Game Builder · 06/21/2007 (10:26 am) · 4 replies
I am using the tooltip property in a GuiBitmapButtonCtrl gui. Is is possible to make it do a word wrap or have multi-lines. This is how I have it coded now but it does not produce multi-lines.
new GuiBitmapButtonCtrl(btn_smash_shop) {
canSaveDynamicFields = "0";
Profile = "myCustomProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "150 55";
Extent = "122 125";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltip = "Available After Level 5" @ "\tthen every other level";
tooltipprofile = "customToolTipProfile";
Command = "sceneWindowLevelTrans.endLevel();alxStopAll();gotoSmashShop();";
hovertime = "1000";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "~/data/images/smash_shop_icon";
};
#2
06/21/2007 (11:01 am)
Didn't work. They both show up as regular text.
#3
06/21/2007 (11:15 am)
Hmm yeah I guess only the GuiMLTextCtrl can be formatted with multiple lines like that. You could have a GUIMLTextCtrl pop up as a tooltip, but this may or may not be worth the effort. :P
#4
If you using/interested in using 1.5, there's a behavior you can assign to objects so you can easily set up word wrapping tooltips--it uses text objects. You could probably set up a tooltip sort of thing with those without behaviors as well it just wouldn't be as straightforward as with behaviors.
06/21/2007 (1:13 pm)
Also...If you using/interested in using 1.5, there's a behavior you can assign to objects so you can easily set up word wrapping tooltips--it uses text objects. You could probably set up a tooltip sort of thing with those without behaviors as well it just wouldn't be as straightforward as with behaviors.
Torque Owner Melissa Niiya
or
tdn.garagegames.com/wiki/GUI/TorqueML