Mike Copeland wrote on 2011-07-01: 
>  I'm trying to allow the end-user the option of setting the point size of
>  the text in a text box.
>  
>  I've started with popup menu code in the double-click event (there is a
>  cut/copy/past popup menu in the right-click event) but when the routine
>  tries to change the point size it throws an error that the event cannot
>  reference the object. Here's a shortened version of the code in the
>  double-click event of the text-box...
>       DEFINE POPUP PSize SHORTCUT RELATIVE FROM MROW(),MCOL()
>       DEFINE BAR 1 of PSize prompt "\<8"
>       DEFINE BAR 2 OF PSize PROMPT "\<12"
>       DEFINE BAR 3 OF PSize PROMPT "\<16"
>       DEFINE BAR 4 OF PSize PROMPT "\<20"
>        ... yadda yadda
...
>  Without adding another object to the form to adjust the point size, how
>  can I provide access to the popup menu?
>  
>  This is VFP9SP2 on WinXP if that matters.
>  
>  Mike Copeland
>  Genesis Group Software
> 

Mike,

I use the Defines as you have them for building the shortcut menu then use

      ON SELECTION POPUP PSize nBar = BAR()
      ACTIVATE POPUP PSize
     DO CASE
     CASE nBar = 1
Etc...

HTH,
Tracy


Tracy Pearson
PowerChurch Software


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to