Highlighting the current field

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Highlighting the current field

Postby olivier melet » Thu Feb 17, 2005 3:24 pm

Looking through SAN application, I remark that you are emphasizing the field focus by dynamically changing background color.
Once we thought to do the same thing in our solutions, but abandon the idea as we 'found' that we will be forced to attach two global methods to each field (onFocusGained/Lost).
As Maarten confirm it to me, you used a similar strategy to implement it in SAN. But this is time consuming and it seems to me that adding two calls for every field object in big solutions is not a good idea...

So, can you please provide us with an effective way to actively change the appearance of a field when it gets and loses focus?

My two cents on this:
    - a new property for fields (+Labels?), focusBackgroud, where we could choose the highlight color for the object, by analogy with imageMedia/rolloverImageMedia properties.
    - a mechanism similar to the rowBgColorCalculation for the form (or the entire solution) highlightFieldBgColorCalculation
    - even a special selected styleclass for fields, to be used in css (my preference if it is possible)

Yet not a major issue, this could let all servoy developers offer a 'visually important' interface feature to their customers.
Olivier Melet
Administration et projets
InfoForm SA
olivier melet
 
Posts: 183
Joined: Mon Apr 19, 2004 3:33 pm
Location: Switzerland

Postby jcompagner » Fri Feb 18, 2005 4:47 pm

select ONE field..
CLTR-A (select all)
change property of focus gained and focus lost..
Doesn't seem to be very time consuming to me.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8212
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby olivier melet » Mon Feb 21, 2005 1:34 pm

jcompagner wrote:Doesn't seem to be very time consuming to me.

Off course, I knew how to do that. I would use that if our solutions had less than 50 forms / 1000 fields (ours have more than 200 currently).
The point with this request is to be able not to change two properties for each and every field in the solution. Thus letting these properties free for 'real' methods call. You know, highlighting the current field is a nice, but minor feature.
If you can't (or don't want) implement it directly, we will either choose to add it as a last minute feature or not to implement it.
With the requested feature, we will implement it in all cases (as a stylesheet/class preferably).
Olivier Melet
Administration et projets
InfoForm SA
olivier melet
 
Posts: 183
Joined: Mon Apr 19, 2004 3:33 pm
Location: Switzerland

Postby antonio » Tue Feb 06, 2007 4:47 am

I think this is an excellent extension to Servoy.
For existing forms, we may already have methods attached to the OnFocusGained/Lost properties for other purpose, so there's a bit more work than just slelecting all fields and changing the properties.

The other option is Marcel's newly acquired Decorator plugin which lets you set the border, background and foreground of any element. I haven't tried it myself yet, but it looks perfect for this purpose. See

http://www.it2be.com/plugins.htm#decorator
Tony
Servoy 8 - 2019.6
antonio
 
Posts: 625
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Postby IT2Be » Tue Feb 06, 2007 9:15 am

Tony, you are spot on.

Wanted to tell this but noticed you had beaten me :)

When everything is up again the new sample solution will show how simple it can be, or how difficult depending on what you want to do.
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Re: Highlighting the current field

Postby antonio » Sun Mar 14, 2010 1:44 am

It seems the decorator plugin has gone - what's the best way to achieve the same effect (highlighting the current field) in 5.x?
Tony
Servoy 8 - 2019.6
antonio
 
Posts: 625
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Re: Highlighting the current field

Postby jcompagner » Mon Mar 15, 2010 12:40 pm

a form has a onfocus gained and lost property that you can use for that.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8212
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Highlighting the current field

Postby antonio » Mon Mar 15, 2010 1:48 pm

Thanks for that - though it does require editing those properties on every field on every form. The nice things about Decorator was you could set it once for an entire solution, and only attach methods to those events for other specific purposes.
Tony
Servoy 8 - 2019.6
antonio
 
Posts: 625
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest