Choice limitations
[1/11] from: kpeters:otaksoft at: 2-Oct-2007 10:18
I just tried to use a choice populated with the American states - it= displays just a
fraction of them and there does not seem to be way to get at the undisplayed ones. Is
there a workaround for this? TIA Kai
[2/11] from: gregg:pointillistic at: 23-Oct-2007 23:06
Hi Kai,
KP> I just tried to use a choice populated with the American states - itKP> displays
just a fraction of
KP> them and there does not seem to be way to get at the undisplayed ones.
KP> Is there a workaround for this?
Use the DROP-DOWN style instead.
-- Gregg
[3/11] from: carl::cybercraft::co::nz at: 24-Oct-2007 7:17
On Tuesday, 2-October-2007 at 10:18:32 Kai Peters wrote,
>I just tried to use a choice populated with the American states - it
> displays just a fraction of
>them and there does not seem to be way to get at the undisplayed ones.
>
>Is there a workaround for this?
For 52 items, maybe, by changing the size of choice and the size of it's font...
>> lo: layout [size 800x600 c: choice "1" 100x14 font [size: 10]]
>> repeat n 51 [append c/data n + 1] view lo
The limit with choice is the size of the layout it's in, so a pop-up text-list is probably
a better method for selecting from large lists.
-- Carl Read
[4/11] from: kpeters:otaksoft at: 23-Oct-2007 22:52
Thanks Gregg & Carl ~
drop-down would be nice - doesn't work under OS X (where I'd need it) unfortunately :(
In the specific case that caused me to ask, Carl's suggestion might just work. Never
though of the popup text list but that's always a last resort, I guess.
Kai
On Wed, 24 Oct 2007 18:31:55 +1300, Carl Read wrote:
[5/11] from: hallvard:ystad:babelserver at: 24-Oct-2007 8:37
Dixit Carl Read (07.31 24.10.2007):
>On Tuesday, 2-October-2007 at 10:18:32 Kai Peters wrote,
>>I just tried to use a choice populated with the American states - it
<<quoted lines omitted: 3>>
>>Is there a workaround for this?
>For 52 items, maybe, by changing the size of choice and the size of it's font...
Why 52? 50 should be enough!
HY
:)
[6/11] from: carl:cybercraft at: 24-Oct-2007 7:18
On Wednesday, 24-October-2007 at 8:37:13 Hallvard Ystad wrote,
>Dixit Carl Read (07.31 24.10.2007):
>>On Tuesday, 2-October-2007 at 10:18:32 Kai Peters wrote,
<<quoted lines omitted: 10>>
>HY
>:)
Oh, yeah! Must stop confusing the United States with a pack of cards...
-- Carl Read.
[7/11] from: carl:cybercraft at: 24-Oct-2007 7:18
On Tuesday, 23-October-2007 at 22:52:15 Kai Peters wrote,
>Thanks Gregg & Carl ~
>
>drop-down would be nice - doesn't work under OS X (where I'd need it)
> unfortunately :(
>
>In the specific case that caused me to ask, Carl's suggestion might just
> work. Never
>though of the popup text list but that's always a last resort, I guess.
Something like the following works reasonably well, though as written it won't move with
the main window if it's moved. (And does no-title work with OS X? And does this get
the position of the text-list right with OS X? It should be right under the button.)
list-lo: layout [
origin 0x0
t: text-list [
b/text: t/picked/1
unview/only list-lo
show b
]
]
repeat n 52 [append t/data n]
t/update
main-lo: layout [
size 400x400
b: button "1" 200 [
unview/only list-lo
view/new/offset/options list-lo b/offset + main-lo/offset + 0x24 [no-title]
]
]
view main-lo
-- Carl Read.
[8/11] from: hallvard::ystad::babelserver::org at: 24-Oct-2007 11:20
Dixit Carl Read (08.46 24.10.2007):
>Oh, yeah! Must stop confusing the United States with a pack of cards...
I'm sure, if you look real close, that there are aces in the US too...
:)
HY
[9/11] from: moliad::gmail::com at: 24-Oct-2007 11:42
or an extra joker or two ;-)
(hawaii? alaska?)
-MAx
On 10/24/07, Hallvard Ystad <hallvard.ystad-babelserver.org> wrote:
[10/11] from: gregg:pointillistic at: 24-Oct-2007 10:18
MOA> (hawaii? alaska?)
Washington D.C. is a common addition, and sometimes Guam and Puerto
Rico.
-- Gregg
[11/11] from: carl:cybercraft at: 24-Oct-2007 19:21
On Wednesday, 24-October-2007 at 10:18:51 Gregg Irwin wrote,
>MOA> (hawaii? alaska?)
>
>Washington D.C. is a common addition, and sometimes Guam and Puerto
>Rico.
And the postal service goes up to 58, including FM, MP, MH...
-- Carl Read.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted