Hilighting of selected row in Option button, doesn't hilight

mfstuart mfstuart at cox.net
Wed Mar 4 12:04:29 EST 2009


Hi Jacque and all,
I worked a sample script for the Option button, and I'm still not getting
the line in the text of the button to hi-light, when clicking on the button
a 2nd time.
Here's my script:
======================
on menuPick pItemName
   --this script borrowed from Ken Ray from an archive search :)
   lock messages
   --get/set the menuHistory
   put lineOffset(pItemName,the text of me) into tNum
   if tNum <> 0 then
      set the menuHistory of me to tNum
   end if
   unlock messages
end menuPick
======================

What am I missing here?

Regards,
Mark Stuart



J. Landman Gay wrote:
> 
> mfstuart wrote:
>> 
>> When I click on the Option button again, it opens the list of items, but
>> the
>> previously selected label isn't shown as hi-lighted in that list of
>> values.
>> When I mouse over the list, wherever the pointer is. it hi-lights that
>> line.
>> So I know that it is nothing to do with opaque settings and the like.
> 
> This is another instance where you'd want to set the menuHistory rather 
> than the label. Setting the menuHistory of the button is exactly like a 
> user clicking and selecting the line. It sends a "menupick" message to 
> the button, scrolls the lines so that the right one is hilited, and 
> remembers the position the next time the user clicks on it.
> 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

-- 
View this message in context: http://www.nabble.com/Hilighting-of-selected-row-in-Option-button%2C-doesn%27t-hilight-tp22323660p22334474.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list