MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

"gdmessage" does not work in 7.1.3

It seems that the "gdmessage" does not work properly in version 7.1.3.

I attach a simple example consisting of a GUI with two buttons:

- Quit
- gdmessage

The callback for the "gdmessage" button execute the following command:

gdmessage(T,"MainWin",1);

This will get trapped by debugger on line 111 of the

$ISIHOME/solaris_mx_71.3/xmath/modules/gui/gdmessage.msf

with the error message "Cannot evaluate guiunmanage with this 1x1 String."

Note that the same example works fine in 6.1.3 and 7.0.1.

Any hints on why this does not work in 7.1.3 or any example that shows it
works in this version is appreciated.


Thanks
Download All
0 Kudos
Message 1 of 3
(7,241 Views)
The files that you are using are based on older gui commands. In MATRIXx 6.0 a transition was made to a newer set of commands that start with ui. The switch was made to make it easier to move programs between Unix and Windows platforms, although some small differences still exist. Old programs that use the gui commands can be updated using a perl script. More information about this can be found at the end of Chapter 9 of the Xmath Users Guide.

I have done the conversion for the program that you attached. The gdmessage command has now been replaced with pguimessage. The conversion produces two files. The first is an updated ex.msc file that uses the new commands, the other is ex_build.msf that corresponds to your resource file. I have attached th
e files as they were after the conversion. Some small changes are needed in order for it to look correct in Windows. I have attached these in the post that follows.

Carl L
National Instruments
www.ni.com/matrixx
Download All
0 Kudos
Message 2 of 3
(7,240 Views)
Attached are the modified files.
Download All
0 Kudos
Message 3 of 3
(7,240 Views)