|
Home > Archive > Programming with dBASE > October 2005 > insert/overwrite
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Lee Camp 2005-10-12, 11:24 am |
| Just upgraded to the new 2.6...
when setting focus to a spinbox, the setfocus() method is not automatically
selecting the existing value, so any keys entered are concatenated alongside
the existing value, rather than overwriting it.
For example, if the spinbox has a value of '1', and I press a 3, the
resulting value is "31" rather than "3". This can sometimes be handled by
toggling the Insert key, but not always. Is there a way simply to get
around this by forcing the setFocus method to select the value already in
the spinbox?
Thanks,
Lee Camp
| |
| Paul Van House 2005-10-12, 11:24 am |
| In article <U$p7rLpzFHA.1236@news-server>, lee.camp@lipscomb.edu says...
> Just upgraded to the new 2.6...
> when setting focus to a spinbox, the setfocus() method is not automatically
> selecting the existing value..... Is there a way simply to get
> around this by forcing the setFocus method to select the value already in
> the spinbox?
Try setting the spinbox's "selectall" property to True. This should be
the default but....
--
Paul Van House
remove ".removeme" for e-mail replies
Radio/TV Software and Baseball Stat Software:
http://www.binxsoftware.com
Family Home Page: http://vanhouse.binxsoftware.com
Church Home Page: http://www.ashfordumc.org
| |
| Lee Camp 2005-10-12, 11:24 am |
| That did it... Thanks Paul. LC
"Paul Van House" <pvanhouse1.removeMe@houston.rr.com> wrote in message
news:MPG. 1db5c274877b71d69896
9a@news.dbase.com...
> In article <U$p7rLpzFHA.1236@news-server>, lee.camp@lipscomb.edu says...
>
> Try setting the spinbox's "selectall" property to True. This should be
> the default but....
> --
> Paul Van House
> remove ".removeme" for e-mail replies
> Radio/TV Software and Baseball Stat Software:
> http://www.binxsoftware.com
> Family Home Page: http://vanhouse.binxsoftware.com
> Church Home Page: http://www.ashfordumc.org
|
|
|
|
|