Subject: Re: clickline()
>hi all,
>got a "problem" with clickline() on mc2.4
>
>i have a text field in a stack consisting of 3 lines.
>
>I feel this field with
>    put " 1           " & cr "-------------" & cr into fld X
>by clicking with the mouse (anywhere int the line) on the first line
>expect that the clickline() returns
>the line I clicked on. In mc 2.3.2 clickline() returns a value and
>clickchunk() returns
>"char 1 to 0 of field X"
>In mc 2.4 the function returns empty until I click the textchunk "1"
>any proposals?
>have checked the archive but did not find anythink.
>
>thanks in advance and sorry for my english.
>

I suppose this is a bug. You can use:
if word 2 of the clickLine is empty then answer "Please, click on a
word on the line!" or something similar.
-- -------------

Actually, I would consider this a 'feature'.  It used to be that 
clicking outside the text (i.e. in the margins) returned empty, and 
clicking in whitespace returned char a to a-1...now it looks like if 
you click on text, it gives you the info, if you click on anything 
that is not text, its empty. Makes the logic easier than having to 
determine if the click was in the margin or in the text.

Use the clickCharChunk/clickchar function to get the char number/char 
the user actually clicked on (in case you do want to know if they 
clicked on a tab, etc).


-ml
-- 
Mark J. Luetzelschwab                   [EMAIL PROTECTED]
Texas Center for                        (v) (512) 232 9477 *new*
Reading and Language Arts               (f) (512) 232 2322
http://www.texasreading.org

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.

Reply via email to