PRIVATE o
o = this

o.fontSize = ...
Etc. 

Thierry Nivelet
http://foxincloud.com/
Give your VFP app a second life in the cloud

Le 2 juil. 2011 à 00:43, Mike Copeland <mlcopel...@gmail.com> a écrit :

> 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
> 
>     ON SELECTION BAR 1 OF PSize this.fontsize=8
>     ON SELECTION BAR 2 OF PSize this.fontsize=12
>     ON SELECTION BAR 3 OF PSize this.fontsize=16
>     ON SELECTION BAR 4 OF PSize this.fontsize=20
>     ... yadda yadda
> 
>     Activate Popup PSize
> 
> I've tried moving the above code to a custom method and calling that 
> custom method from the double-click event, but the same error is 
> thrown.  "This can only be used within a method."
> 
> 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
> 
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
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/8bd6b74c-3d77-4252-ad88-478bab086...@foxincloud.com
** 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