Yep the simple answer is I'm going crazy... Read the code Graham
*before* asking stupid questions...
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Graham Brown
Sent: 14 August 2008 15:46
To: GrahamB
Subject: Define Popup question

Hi all 

I think I must be going crazy, I have a context menu on a button which
is supposed to show the invoices raised for an order. This is a snippet
of the code.


select nInvno from tblInvs into array aInv nInv=_TALLY

Define Popup shortcut ;
 FONT (o.FontName),o.FontSize Style (m.cStyle) ;  FROM
m.nTop/m.nVconvert, m.nLeft/m.nHconvert  ;
 TO   m.nTop/m.nVconvert + m.nHeight, (m.nLeft + o.Width - 2 +
Sysmetric(5))/m.nHconvert shortcut

Define Bar 1 Of shortcut Prompt "Invoices"
Define Popup invoice shortcut Relative
 FOR n=1 TO nInv
  Define Bar n Of invoice Prompt ALLTRIM(STR(aInv[n]))  next

The menu shows but the submenu for the invoices doesn't get drawn (no
arrow). If I replace the loop with a define bar 1 of invoice prompt
"Testing" this works. Does that mean I can't dynamically create the
menus in fox?

Cheers

Graham



--- StripMime Report -- processed MIME parts --- multipart/mixed
  text/plain (text body -- kept)
  application/ms-tnef
---

[excessive quoting removed by server]

_______________________________________________
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