[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Fwd:Widgets for IP- and MAC-Address (was:KIPAdressInput Class)
From:       Fabian Wolf <fabianw () gmx ! net>
Date:       2002-09-01 11:54:34
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 31 August 2002 21:42, Christian Lavoie wrote:
> On Sábado 31 Agosto 2002 15:33, Michael Ritzert wrote:
> > Am Samstag, 31. August 2002 20:59 schrieb Timo A. Hummel:
> [...] > > [...] > > > [...]
> A common way for HTML forms is to simply mark the 'wrong' data entries in a
> different colour when the page reloads, so users are both used to this idea
> and able to react. If the dialog/widget changes it's colour dynamically
> when something is not yet valid, you get the best of both worlds.

Just out of curiousity:

What happens if someone sets his standard text color to red - this is not 
quite usual but not impossible either - changing the text color of the widget 
to red on a bad ip-address would not make a visible difference. On the other 
hand it would require to force a valid ip-address to be black (or any other 
hardcoded value) -> ignoring the user's color settings.

My recommendation would be:

- ----------------------------------------------------
|                                                   |   Empty fields (w/
|            .            .            .            |   delimiter)
- ----------------------------------------------------

- ----------------------------------------------------
|                                                   |   User enters from
|            .            .            .   1  2  7  |   right to left.
- ----------------------------------------------------

Layout of the input should be that digits are centered in
each field:

- ----------------------------------------------------
|                                                   |  User has to enter
|            .            .   1  2  7   .     0     |  a period "." here.
- ----------------------------------------------------

- ----------------------------------------------------
|                                                   |   same here
|            .  1  2  7  .      0     .      0      |
- ----------------------------------------------------

- ----------------------------------------------------
|                                                   |   same here
|  1  2  7   .      0     .     0     .      1      |
- ----------------------------------------------------


The widget also wouldn't let the user enter anything bigger than "2"
as first digit of an input field.
if the first digit is a "2" the second digit is not allowed to be bigger
than "5".
If the first digit is bigger than "2" and the second digit bigger than
"5" then the third may not be bigger than "5" either.
It's quite simple. Any mistake should be told by a beep, just like
konsole does it. No color chance!


... Just my opinion.

Cheers
Fabian

- -- 
The young do not know enough to be prudent
and therefore they attempt the impossible -
and achieve it, generation after generation
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9cf/+ecDvLx8T7osRAgboAJ9r1MBwXIFvGNkznppAId5VyklXrQCdGM+e
HSfIv9dcg+A81lmFINcrzME=
=EDIg
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic