At 6:36 am +0200 12/6/01, Sjoerd Op 't Land wrote:
>I've got a problem. I made a program which poses a couple of (psychological)
>questions to the user. It get the questions from a text file and displays
>them one by one on the card. Some questions of them are multiple- choice,
>and can (besides of clicking the right answer with the mouse) be chosen by
>typing in a number (1,2,3 etc.).
>
>This all works great 'till I make a 'jump' to a question in the list. E.g.
>the user says he has no phobia, then the questions meant to find out what
>phobia are skipped. Then it's no longer possible to choose an answer with
>the keyboard??? A constant shown group should (and does most of the time)
>grab the keyDown message, but now, for some reason, doesn't anymore.
>
>If I choose the arrow tool, select the group, and choose the browse tool
>again, everything works OK again...
>
>Is this a bug or what? Does anyone know in what order the message goes
>through the groups ('cause I've more of them on the card)?
If any object in any of these other fields has the focus, then it
seems that messages don't get through to the other groups (whether
explicitly passed or not). I don't know if this classes as a bug, but
I seem to remember this behaving differently in previous versions.
(pre 2.3 ??)
One solution would be to make sure none of the other groups has the focus.
Another solution would be to put the keydown handler in the card
script, if this is feasible. (Easiest solution where possible.)
Perhaps Scott can confirm whether this is a change in behavior.
However, I remember checking this out once and writing a mail
describing the group/background message passing behavior.
I thought it went something like this when the first object receiving
the message was in a group:
object in group
group
card
other groups in order of layer, highest to lowest (i.e. "background" behavior)
stack
And if the card is the first oject to receive the message then:
card
all groups in order of layer (highest to lowest)
stack
But it seems that (in 2.3.2 anyway) when the first object receiving
the message is in a group, it's like this:
object in group
group
card
stack
Cheers
Dave Cragg
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.