Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Tk Entry validation conundrum

by GrandFather (Saint)
on Dec 18, 2015 at 08:08 UTC ( #1150675=note: print w/replies, xml ) Need Help??

in reply to Tk Entry validation conundrum

This is a common interface conundrum. One solution that neatly skirts the line between intrusive and ineffective is to show an error indicator when the entry is invalid. You can then disable any action button (like OK) if there are any error indicators showing. A mouse over popup can then be used to show an error message and suggest a way to resolve the error.

A problem with "correcting" values is that where one value range depends on another value it can get really hard for a user to get all values to the state they want. Using the error indicator trick means values can be edited in any order and transient bad states simply don't matter.

Premature optimization is the root of all job security

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1150675]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2023-09-24 03:53 GMT
Find Nodes?
    Voting Booth?

    No recent polls found