Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to create a program group from FP 2.6?
Message
 
To
10/11/1998 03:11:54
Garry Sankowsky
Zodiac Publications
Tolga, Australia
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00156059
Message ID:
00156086
Views:
30
>I would like to be able to create a program group for Windows 95 and insert an icon with target and start in directories set up.
>
>Is this possible?
>How do I do it?
>Where can I look to find detailed information?
>
Hi Garry,

Win 95 (and 98, I believe) still supports the DDE interface with the Program Manager for creating and otherwise manipulating groups and items in them. I'll show you some basics:
* Establish a DDE link with the Program Manager
m.handle = DDEInitiate("PROGMAN", "PROGMAN")
IF m.handle >= 0
  * p_groupnam is the name of the group to create
  m.makecmnd = "[CREATEGROUP(" + CHR(34) + p_groupnam + CHR(34) + ")]"
  m.result = DDEExecute(m.handle, m.makecmnd)
  IF m.result
    * Show the group so that additional commands are directed to it
    m.showcmd = "[SHOWGROUP(" + CHR(34) + p_groupnam + CHR(34) + ",1)]"
    m.result = DDEExecute(m.handle, m.showcmd)
    IF m.result
      * Add an item to the group
      * p_filename is the command line
      m.addcmd = "[AddItem(" + m.addcmd + CHR(34) + p_filename + CHR(34) + ")]"
    ENDIF
  ENDIF
ENDIF
= DDETerminate(m.handle)
For additional information, do a search on the MS Knowledge Base for PROGMAN. You should find a number of references and additional information.

If you have old copies of FoxPro Advisor, check out my article "Better Communication with the Program Manager" that appeared in the April, 1997 issue.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform