Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #376

Re: Two questions: 1 GUI advice, 1 OT

From ralph <nt_consulting64@yahoo.net>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Two questions: 1 GUI advice, 1 OT
Date 2011-08-17 15:25 -0500
Organization Aioe.org NNTP Server
Message-ID <657o47t0bumq1an90293tiplqqm3iocc4p@4ax.com> (permalink)
References <r62o47dvi0qft8iq4qa0r4h1gq1ptac07o@4ax.com>

Show all headers | View raw


On Wed, 17 Aug 2011 14:49:12 -0400, RW <RonW@no_domain.invalid> wrote:

>#1. A friend has asked me to write a small app for them to input
>lottery numbers, save them, and then check against the winning numbers
>after the draw. That's all very simple.
>Looking for advice on the "best" GUI approach for inputting the
>numbers. Probably the most recognizable model would be a grid, so the
>operation would be like using an Excel spreadsheet. Does anyone know
>of a freely available editable grid? Or is there a better solution?
>

No guru, but have done something similar.

[Assuming PowerBall for example ...]

Create a Custom Control that provides 6 round balls. With the last one
separated slightly by space and color. (Take a look at the
Powerball.com website]

Provide a single entry box below. Provide an [Enter Button] (which I
don't like) or key off the space bar [the ' ' character]

When user types a number and hits space (ie, any key will do, you
might support more than one.) the number appears in one of the balls. 
Should note once a valid number is typed and a ball changed - the
entry box clears.

The control also tracks ordinal weight and filters out duplicates.

eg: User types:                 The balls show:
 '1' space <box clears>        1 
 '23' space <box clears>      1  23
 '1' space <box clears>        1 23
 '19' space                          1 19  23
When all balls are filled, the 'entered' number no longer does
anything.

Clicking on one of the balls, allows the User to change just that
number or preceed to change all of them from that point on.

Provide a [Done Button] and/or character. We just let them TAB away
from the control, but you probably want to stay there for the next
number, perhaps 
  '*'   done
  '.'    clear last number
  '/'   clear all
  
The control can complain if there aren't enough numbers, etc.

We originally 'drew' numbers on the same picture, but later just
simply provided 50+ 'ball pictures', seemed responsive enough for our
purpose (which by the way wasn't powerball, but product numbers and we
also supported alphanumerics.)

Sounds worse than it is.
That gives the User the option of copy 'n paste, manual entry from
keyboard or numeric pad, etc. 
They can get quite quick with their entries in a very short period of
time.

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Two questions: 1 GUI advice, 1 OT RW <RonW@no_domain.invalid> - 2011-08-17 14:49 -0400
  Re: Two questions: 1 GUI advice, 1 OT ralph <nt_consulting64@yahoo.net> - 2011-08-17 15:25 -0500
    Re: Two questions: 1 GUI advice, 1 OT RW <RonW@no_domain.invalid> - 2011-08-18 15:34 -0400
  Re: Two questions: 1 GUI advice, 1 OT Karl E. Peterson <karl@exmvps.org> - 2011-08-17 14:02 -0700
    Re: Two questions: 1 GUI advice, 1 OT RW <RonW@no_domain.invalid> - 2011-08-18 15:38 -0400
      Re: Two questions: 1 GUI advice, 1 OT GS <gs@somewhere.net> - 2011-08-18 15:51 -0400
        Re: Two questions: 1 GUI advice, 1 OT "Mayayana" <mayayana@invalid.nospam> - 2011-08-18 16:44 -0400
          Re: Two questions: 1 GUI advice, 1 OT GS <gs@somewhere.net> - 2011-08-18 17:05 -0400
            Re: Two questions: 1 GUI advice, 1 OT Karl E. Peterson <karl@exmvps.org> - 2011-08-18 14:14 -0700
              Re: Two questions: 1 GUI advice, 1 OT GS <gs@somewhere.net> - 2011-08-18 19:16 -0400
                Re: Two questions: 1 GUI advice, 1 OT Karl E. Peterson <karl@exmvps.org> - 2011-08-19 11:44 -0700
      Re: Two questions: 1 GUI advice, 1 OT Karl E. Peterson <karl@exmvps.org> - 2011-08-18 13:48 -0700
        Re: Two questions: 1 GUI advice, 1 OT "Mayayana" <mayayana@invalid.nospam> - 2011-08-18 21:52 -0400
          Re: Two questions: 1 GUI advice, 1 OT Karl E. Peterson <karl@exmvps.org> - 2011-08-19 11:46 -0700
  Re: Two questions: 1 GUI advice, 1 OT Richard Cole <zznwky@gmaill.com.invalid> - 2011-08-18 18:15 +0100
    Re: Two questions: 1 GUI advice, 1 OT GS <gs@somewhere.net> - 2011-08-18 17:00 -0400
      Re: Two questions: 1 GUI advice, 1 OT DanS <t.h.i.s.n.t.h.a.t@r.o.a.d.r.u.n.n.e.r.c.o.m> - 2011-08-22 21:39 -0500
    Re: Two questions: 1 GUI advice, 1 OT BeeJ <nospam@live.com> - 2011-08-28 08:48 -0700
      Re: Two questions: 1 GUI advice, 1 OT GS <gs@somewhere.net> - 2011-08-28 17:20 -0400
  Re: Two questions: 1 GUI advice, 1 OT "Nobody" <nobody@nobody.com> - 2011-08-18 13:48 -0400
  Re: Two questions: 1 GUI advice, 1 OT RW <RonW@no_domain.invalid> - 2011-08-18 15:39 -0400
  Re: Two questions: 1 GUI advice, 1 OT Karl E. Peterson <karl@exmvps.org> - 2011-08-24 11:00 -0700
    Re: Two questions: 1 GUI advice, 1 OT Deanna Earley <dee.earley@icode.co.uk> - 2011-08-25 08:55 +0100
      Re: Two questions: 1 GUI advice, 1 OT Karl E. Peterson <karl@exmvps.org> - 2011-08-25 09:29 -0700
  Re: Two questions: 1 GUI advice, 1 OT - * UPDATE * RW <RonW@no_domain.invalid> - 2011-09-02 13:52 -0400

csiph-web