Field AutoHilite

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Field AutoHilite

Post by Gage » Mon Aug 18, 2014 2:45 pm

Hello!

I want users to be able to edit a field without the field getting the glowy blue box highlighting its border when they focus on it.

I know that I need the autoHilite property to be true for the user to be able to set an insertion point in the field, and that is good. I just want the visual hilite effect to go away.

Any suggestions?

Thanks!
Phil E.

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

Re: Field AutoHilite

Post by Klaus » Mon Aug 18, 2014 3:03 pm

Hi Phil,

I think you need to UNcheck "showfocusborder" for your field(s)!


Best

Klaus

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10102
Joined: Fri Feb 19, 2010 10:17 am

Re: Field AutoHilite

Post by richmond62 » Mon Aug 18, 2014 3:09 pm

Well . . . as far as I'm concerned that's a funny question because:

Over 'here' (Linux) I cannot see a blue glow . . .

However I have just knocked together one of my moronically simple stacks with one field "ttt" and
2 buttons "True" and "False" . . . and, you guessed it; button "False" contains this code:

on mouseUp
set the autoHilite of fld "ttt" to false
set the backgroundColor of fld "ttt" to empty
end mouseUp

and button "True" contains this code:

on mouseUp
set the autoHilite of fld "ttt" to true
set the backgroundColor of fld "ttt" to yellow
end mouseUp

I have mucked around with the backgroundColor of the field just because of the lack
of a blue glow over here on Linux.

Now, as far as I can see, whether the autoHilite of the field is true or false there is
no problem about typing text into it.

I am attaching the stack so you can play around with it.
Attachments
autohiliter.livecode.zip
Here's the stack.
(528 Bytes) Downloaded 201 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10102
Joined: Fri Feb 19, 2010 10:17 am

Re: Field AutoHilite

Post by richmond62 » Mon Aug 18, 2014 3:10 pm

Yup: Klaus, as usual, hits the nail right on the head.

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: Field AutoHilite

Post by Gage » Mon Aug 18, 2014 3:30 pm

Thanks, guys!

Klaus, I honestly looked at every pane of the Property Inspector of the field, not one... not even two... but THREE whole times to make sure I wasn't gonna waste anyone's time with what seemed like a ridiculously simple question.

I plead that someone set the vis of button "showFocusBorder Check" to false on my IDE!!!!! o.O

Rats.

And Richmond, thanks for your stack. Both field options I see have the showFocusBorder set to true, so on my Mac, I get the glowy blue border I referred to for both :P Now I know that's a Mac native thing, though!

Anyway, I am fixed! Thank you both!

Kindest Regards,
Phil E.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10102
Joined: Fri Feb 19, 2010 10:17 am

Re: Field AutoHilite

Post by richmond62 » Mon Aug 18, 2014 5:32 pm

Um: it may also glow on Windows.

One should also know that Linux is, unlike both Mac and Windows, not monolithic, so while mouseOver a fild may not produce a glow on XFCE,
it may on KDE, LXDE and so on.

If someone "out there" happens to have a Linux install with multiple desktops they could do worse than
run my silly stack on all of them and report back :P

Post Reply