Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Pad/Bar Prompt at run-time
Message
From
27/07/2004 15:27:40
 
 
To
27/07/2004 05:08:39
Emanuele Bonin
EB Soluzioni Informatiche
Tezze S/B, Italy
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00928219
Message ID:
00928439
Views:
22
>Hia All
>
>There is a way to change the menu pad/bar prompt at runtime ?
>I saw an Api _SetTextItem but this function want an Id and i haven't found a way to obtain this id from a menu created outside the Fll (created on VFP).
>
>Redefining pad (with another prompt) i loose the SKIP behavior.
>

Hi Emanuele,

I'm not sure what are you trying to do, but here is how you can get VFP system menu id (untested)
MENUID   SysMenuId;
ITEMID   PadId;
int      x, Count;

SysMenuId = _MenuId( _SYSMENU );
Count = _CountItems( SysMenuId );
for (x=0; x < Count; x++)
{
   PadId = _GetItemId( SysMenuId, x );
   // _SetItemText( SysMenuId, PadId, "Testing" );
}
HTH
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform