Setting rotary?
[1/7] from: kpeters:otaksoft at: 21-Aug-2007 20:23
I never thought that this should cause me any problems, yet it does:
How do I set a rotary with "A", "B", "C" & "D" as data to, say "C" in code so
that not only "C" is displayed but it is actually "positioned" there so that the
next click will advance it to "D"?
Thanks,
Kai
[2/7] from: anton:wilddsl:au at: 22-Aug-2007 15:12
It's all written here:
probe svv/vid-styles/rotary/feel
Anton.
[3/7] from: kpeters:otaksoft at: 21-Aug-2007 23:26
Thanks Anton ~
which document would point me at probing svv and paths below? I don't think I have so
far come across
any.. Or is this some kind of well hidden insider knowledge?
While I am still too much newbie to apply any wisdom gleaned from studying all this,
it did help me to
answer the next question I would have asked (similar question in regards to checks).
Here's what I have tried with rotaries:
rot/data: head rot/data find rot/data "D" show rot
Not working - am I getting closer??
Thanks,
Kai
On Wed, 22 Aug 2007 15:12:28 +1000, Anton Rolls wrote:
[4/7] from: ale870::gmail::com at: 22-Aug-2007 8:48
Hello,
I'm sorry but I cannot understand what you want to do exactly.
Can you make a practical example?
On 8/22/07, Kai Peters <kpeters-otaksoft.com> wrote:
> Thanks Anton ~
> which document would point me at probing svv and paths below? I don't
<<quoted lines omitted: 34>>
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
--
--Alessandro
[5/7] from: anton::wilddsl::net::au at: 22-Aug-2007 16:43
Hi Kai,
Yes, you are getting closer.
Just a small change and you are there.
But this is not really "insider knowledge".
Familiarity with the system object is all you need,
in particular, the system/view/vid object.
When dealing with VID, familiarity with
system/view/vid is essential.
view layout [
r: rotary data ["A" "B" "C"]
btn "set to B" [r/data: find head r/data "B" show r]
]
Anton.
[6/7] from: kpeters:otaksoft at: 22-Aug-2007 9:30
Thanks one more time, Anton!
Alessandro ~
here's what I am doing with this:
In a database application I use data entry forms and as the user
navigates through MySQL cursors, I need to set the fields, checks, infos,
rotaries etc. on these forms according to the data in the corresponding
field values of the current record.
Regards,
Kai
On Wed, 22 Aug 2007 08:48:42 +0200, Alessandro Manotti wrote:
[7/7] from: gregg::pointillistic::com at: 23-Aug-2007 6:23
Hi Kai,
Sorry to be so slow to respond. In addition to Anton's suggestion, if
you're using a release with face accessors, set-face will do it.
view layout [
r: rotary data ["A" "B" "C"]
btn "set to B" [set-face r "B"]
]
-- Gregg
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted