SOLVED - How to populate a field with custom text

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

SOLVED - How to populate a field with custom text

Post by admin12 » Fri Jul 08, 2011 4:18 pm

I have a label field set aside for hints. I want hints to appear when the user hovers over any field.

I know to use the mouseenter command, but I cannot get it to work.

Here is my code:

on mouseenter
lblHints Contents = "Enter your First Name - this is a mandatory field!"
end mouseenter

This code does not work. What do I have to do to make it work.

Thank you.

Mike
Last edited by admin12 on Mon Aug 01, 2011 6:50 am, edited 1 time in total.

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: How to populate a field with custom text

Post by dglass » Fri Jul 08, 2011 4:24 pm

Code: Select all

on mouseenter
   set the text of field "lblHints" to "this is a field"
  
end mouseenter

on mouseleave
  set the text of field "lblHints" to empty
end mouseleave

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to populate a field with custom text

Post by Klaus » Fri Jul 08, 2011 4:36 pm

Hi Mike,

I just can't stop to recommend these stacks to get the basics of LiveCode:
http://www.runrev.com/developers/lesson ... nferences/

8)


Best

Klaus

Post Reply