[CCP14 Home: (Frames | No Frames)]
CCP14 Mirrors: [UK] | [CA] | [US] | [AU]

(This Webpage Page in No Frames Mode)

CCP14

Tutorials and Examples

Louis Farrugia's WinGX Single Crystal Suite

Adding Custom Programs to the WinGX Menu System

The CCP14 Homepage is at http://www.ccp14.ac.uk

[Tutorials page] | [WinGX Tutorial Index]

WinGX 1.64 method of adding Custom Menu Options

From the WinGX Readme file

Select the File, System, User Menu Items.

Custom Menu Options

Then select a menu option and Add Entry. Add the title and Browse for the executable. In the following case, we are adding GRETEP (part of the LMGP suite).

Custom Menu Options

Custom Menu Options

The standard user option to tell WinGX to pass the default Shelx INS structure file is to add a command line argument of %comp%. However, in the case of GRETEP, the extension has to be explicitely specified (%comp%.ins or %comp%.res)

Exit then restart WinGX for this to take affect.


Spawning Gretep from within WinGX

Spawning Gretep from Within WinGX

Spawning Gretep from Within WinGX

Spawning Gretep from Within WinGX


Old WinGX 1.63 method of adding Custom Menu Options

From the WinGX Readme file

7) There is a new method of implementing user-defined menu items. Under the
[System] heading in WINGX.INI lines may be added to append user-defined
programs to the WinGX menu. Up to five items may be appended to each of the
menu items from MODEL to PUBLISH (i.e. a total of 45 extra programs).
The format of the entry is:

Mod_UserItem=PROGNAME fullpath of executable (+ any command line entries)
e.g.
Mod_UserItem=MYPROG c:\progfiles\myprog.exe %comp% -c -o

This example will add an entry called MYPROG to the MODEL menu, and clicking
on it will execute the program myprog.exe (with command line options).
Use the first three letters of the menu name to indicate which menu to attach
to e.g. Dat_UserItem, Abs_UserItem, Gra_UserItem etc.

PROGNAME is a character string (10 characters maximum) which will appear as
the menu tag. The only restriction is that all user defined items MUST have
different tag names (but they can have the same name as standard menu items).
If the compound name is required on the command line (to define files etc)
then use the synonym %comp%. This will be replaced by the actual compound
name at run time. The user program to be executed can either be a Windows
executable, a DOS executable or a DOS BAT file.

Thus, as an example of adding sxgraph.exe into a desired part of the menu system:
to add this so it can be called off the WinGX Refinement Menu edit the wingx.ini file in the WinGX program directory.

Under [System] in the wingx.ini file add:

Ref_UserItem=SXGRAPH c:\wingx\for_prog\sxgraph.exe %comp%

Which results to the following addition to the WinGX menu system that can be quickly and conveniently run.

WinGX with new menu option added


[Tutorials page] | [WinGX Tutorial Index]

[CCP14 Home: (Frames | No Frames)]
CCP14 Mirrors: [UK] | [CA] | [US] | [AU]

(This Webpage Page in No Frames Mode)

If you have any queries or comments, please feel free to contact the CCP14