x


display hints while mouse is over a text field using tooltip

I have a login window in that a password and user text fields there also have a button . I have displayed a hint using tooltip while we mouse over the button(GUIcontent is there), but i couldn't the same with text fields, give me your valuable ideas to do that.......

                           Thanks!!!!!

Displayed hint using Event.current.mousePosition........ send me if there any alternate way

more ▼

asked Mar 09, 2011 at 04:34 PM

ben gravatar image

ben
64 61 47 51

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

var stringToEdit : String = "";

 function OnGUI () 
 {
 stringToEdit = GUI.TextField (Rect (10, 10, 200, 20), stringToEdit, 25);
 GUI.Label(Rect(10,10,300,50),GUIContent(" ","label1"));

 if(GUI.tooltip == "label1")
 {
 GUI.Label (Rect (210,30,300,40), "enter in text field");
  }

  }

more ▼

answered Mar 11, 2011 at 11:51 AM

robertmathew gravatar image

robertmathew
601 99 81 95

(comments are locked)
10|3000 characters needed characters left

Displayed hint using Event.current.mousePosition........ send me if there any alternate way

more ▼

answered Mar 09, 2011 at 05:51 PM

ben gravatar image

ben
64 61 47 51

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x258
x206
x158
x77
x26

asked: Mar 09, 2011 at 04:34 PM

Seen: 2495 times

Last Updated: Mar 09, 2011 at 05:50 PM