[gme-users] Naive GMEConsole::Console question
Kevin Smyth
ksmyth at isis.vanderbilt.edu
Thu Mar 22 14:44:57 CDT 2012
You could even print a hyperlink that copies the data to the clipboard:
gme.ConsoleMessage("<a href='javascript:window.clipboardData.setData(\"Text\", \"clipboard contents\");undefined;'/>copy to clipboard</a>", 1)
Kevin
-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Kevin Smyth
Sent: Thursday, March 22, 2012 2:28 PM
To: gme-users
Subject: Re: [gme-users] Naive GMEConsole::Console question
The GME console is actually an embedded Internet Explorer. Try this:
gme.ConsoleMessage("line 1<br/> line 2<br/>line 3", 1)
or
gme.ConsoleContents = "line 1<br/> line 2<br/>line 3"
Kevin
-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Jonathan Sprinkle
Sent: Thursday, March 22, 2012 1:10 PM
To: gme-users
Cc: Jonathan Sprinkle
Subject: [gme-users] Naive GMEConsole::Console question
Hi all,
My question certainly displays some naiveté, so I apologize in advance. :) I want to generate output in the console that a user can paste into another program without having to open a file. For example, the output should appear as
matrix = [ 1 1 1; ...
2 2 2; ...
3 3 3; ...
];
However, if I generate this matrix as an std::string, it shows correctly when generated to a file, but the output in the console is
matrix = [ 1 1 1; ... 2 2 2; ... 3 3 3; ... ];
Which will not work in the other program (MATLAB, of course). I also tried this:
CString str;
str.Format( "Test 1 \n Test 2" );
GMEConsole::Console::Out::WriteLine( str );
But this shows as
Test 1 Test 2
So, any advice? :) For now it is easy to work around, by not allowing copy out of the console, but if I'm just doing something really stupid (or is there is a checkbox I need to enter somewhere) I am much obliged.
Cheers,
Jonathan
_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
More information about the gme-users
mailing list