>Without adding another object to the form to adjust the point size, how
>can I provide access to the popup menu?

Try this:

PUBLIC oForm

oForm = CREATEOBJECT("form")

oForm.AddObject("Text1","mytext")

WITH oForm.Text1
      .Top = 10
      .Left = 10
      .Width = 70
      .Visible = .T.
ENDWITH

oForm.Show()

DEFINE CLASS mytext AS textbox
      PROCEDURE DblClick
           THIS.ShowMenu()
      ENDPROC

      PROCEDURE ShowMenu
           LOCAL oCtrl

           oCtrl = THIS

           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"

           ON SELECTION BAR 1 OF PSize oCTRL.SetFontSize(8)
           ON SELECTION BAR 2 OF PSize oCTRL.SetFontSize(12)
           ON SELECTION BAR 3 OF PSize oCTRL.SetFontSize(16)
           ON SELECTION BAR 4 OF PSize oCTRL.SetFontSize(20)

           ACTIVATE POPUP PSize
      ENDPROC

      PROCEDURE SetFontSize
           LPARAMETERS nSize

           THIS.FontSize = nSize

           THIS.Value = TRANSFORM(nSize)
      ENDPROC
ENDDEFINE


_______________________________________________
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