T O P I C R E V I E W |
tinkusch |
Posted - 03/20/2002 : 06:58:30 AM Hi
is there a lab talk command availabel for converting an image to 'Gray and Data', as in the Origin menu? Is there also availabe a labtalk command to toggle between Data Mode and Image Mode?
Stefan |
2 L A T E S T R E P L I E S (Newest First) |
cpyang |
Posted - 03/20/2002 : 7:13:14 PM The following didn't get into documentation, but here they are,
matrix -id; //check and if needed convert image to gray and data, will prompt Reminder Message box for user to confirm this operation
matrix -in; //same as -id but will not prompt, this is the command used in the menu command for "Image:Convert to Gray + Data"
matrix -ii; // check and convert to "View:Image Mode" if needed
unfortunately there is no command to check and View:Data Mode.
CP
|
CStorey |
Posted - 03/20/2002 : 1:13:43 PM Hi Stefan,
Don't think so...but you can use DoMenu() to simulate it.
To get the appropriate Menu control ID just hold down SHIFT+CTRL (with the script window open) while performing the usual steps in Origin. You should see a line that looks like
Menu id=36444
Add this number to the DoMenu(36444) command and it should simulate the action if available.
One word of caution. Menu IDs can change from version to version, or even with SPs so make a note of it in your script and if ever it fails keep in mind that it's a good place to start looking for problems.
Craig Storey Origin WebRing Member - http://g.webring.com/hub?ring=originwebring |
|
|