Search found 17 matches

by chocobo_ff
Tue Mar 07, 2006 9:17 pm
Forum: C++ Development
Topic: compiling wxPlot on VC++
Replies: 0
Views: 365

compiling wxPlot on VC++

Hi, Could someone please tell me what's the easiest way to compile wxPlot (the one found on http://personales.unican.es/carreracg/web/wxplot.html) in Visual C++?? There are makefiles in there but it doesn't look like anything that can be used with nmake and unfortunately I'm not familiar with make f...
by chocobo_ff
Thu Feb 16, 2006 5:58 pm
Forum: C++ Development
Topic: wxListBox auto scroll?
Replies: 5
Views: 1435

Jorg wrote:I just checked, this is how I do it:

- Jorgen
\
I just tried this out at work and it worked :) thanks for the help~
by chocobo_ff
Thu Feb 16, 2006 7:50 am
Forum: C++ Development
Topic: wxListBox auto scroll?
Replies: 5
Views: 1435

If you simply select the item, does it show it? I know my log also shows the last line and I think all I did was selecting the last added item: check out wxControlWithItems::Select From which wxListBox is derived. Regards, - Jorgen Hi, Sorry think there may have been a little misunderstanding - wha...
by chocobo_ff
Wed Feb 15, 2006 9:22 pm
Forum: C++ Development
Topic: wxListBox auto scroll?
Replies: 5
Views: 1435

wxListBox auto scroll?

Hi, I'm trying to read in data from a console application, and I've managed to do that with the help of the exec example, but now I have a problem with the list box where the output gets displayed - it doesn't scroll down automatically when there are more strings than what the window itself can disp...
by chocobo_ff
Fri Jan 27, 2006 3:00 am
Forum: C++ Development
Topic: wxGrid - tab/enter to move the cursor around
Replies: 1
Views: 539

wxGrid - tab/enter to move the cursor around

Hi,

Is there anyway to allow the cursor to move when the user presses enter or tab from a cell? What I'm trying to do is move the cursor to the right of the current one when tab is pressed, and down one cell when enter is pressed.

Many thanks in advance
by chocobo_ff
Thu Jan 12, 2006 8:55 am
Forum: C++ Development
Topic: Graphical User Interface
Replies: 14
Views: 3125

Did you initialize process to NULL?? Sorry completely missed that :( I've done it just before you replied and it sort of works now, but the problem is that it crashes in the OnIdle() part after a while, I think whats happening is the console program I'm calling is finished before my wxWidgets GUI g...
by chocobo_ff
Thu Jan 12, 2006 8:27 am
Forum: C++ Development
Topic: Graphical User Interface
Replies: 14
Views: 3125

Don't create the process before the Create() function wass called. I'd create the process in the OnButton() method if it doesn't exist allready. Set it to NULL in the constructor and in the OnButton() method do something like if(!process) { process = new wxProcess(this); process->Redirect(); } Also...
by chocobo_ff
Thu Jan 12, 2006 7:50 am
Forum: C++ Development
Topic: Graphical User Interface
Replies: 14
Views: 3125

Don't create the process before the Create() function wass called. I'd create the process in the OnButton() method if it doesn't exist allready. Set it to NULL in the constructor and in the OnButton() method do something like if(!process) { process = new wxProcess(this); process->Redirect(); } Also...
by chocobo_ff
Wed Jan 11, 2006 8:16 pm
Forum: C++ Development
Topic: Select a menu item (which is a radio button) using its ID
Replies: 7
Views: 1077

benedicte wrote:call

Code: Select all

my_menubar->Check(ID_MENUITEM_BEARING);
or

Code: Select all

my_menu->Check(ID_MENUITEM_BEARING);
Check is not a static function, it browses all the menu items in the given menu[bar] for the one matching your ID and check it.
Ok got it working :D THANKS!!!
by chocobo_ff
Wed Jan 11, 2006 7:12 pm
Forum: C++ Development
Topic: Select a menu item (which is a radio button) using its ID
Replies: 7
Views: 1077

Call Check() with the ID of the menu item Hi again, Having a look again at my code this morning, the method you mentioned didn't work... I have 3 wxMenuItem's, but I don't have member variable assigned to them, and I'm guessing you can't just do something like wxMenuItem::Check(ID_MENUITEM_BEARING)...
by chocobo_ff
Wed Jan 11, 2006 6:31 pm
Forum: C++ Development
Topic: Graphical User Interface
Replies: 14
Views: 3125

Implement OnIdle(). Start the process like you did. In OnIdle(), check if IsInputAvailable() returns true for the process. Then use GetInputStream() to read the input. In the same way hanlde IsErrorAvailable() and GetErrorStream(). I'm guessing in order to be able to use the variable which I've cal...
by chocobo_ff
Wed Jan 11, 2006 4:09 pm
Forum: C++ Development
Topic: Select a menu item (which is a radio button) using its ID
Replies: 7
Views: 1077

vdell wrote:Then please mark my post as the accepted answer. ;)
Oops sorry didn't know I can do that :P
by chocobo_ff
Wed Jan 11, 2006 3:25 am
Forum: C++ Development
Topic: Select a menu item (which is a radio button) using its ID
Replies: 7
Views: 1077

Great that's exactly what I needed, thanks for the help :)
by chocobo_ff
Wed Jan 11, 2006 1:49 am
Forum: C++ Development
Topic: Select a menu item (which is a radio button) using its ID
Replies: 7
Views: 1077

Select a menu item (which is a radio button) using its ID

Hi,

In my menu I have 3 menu items which are radio types, how could I change which one is selected (say, from first to the second button) when I do something? What I'm trying to do is change which menu item (radio) is selected depending on the result of another action?

Thanks :)
by chocobo_ff
Tue Jan 10, 2006 10:39 pm
Forum: C++ Development
Topic: Graphical User Interface
Replies: 14
Views: 3125

To "live" capture the output of a longer running task, catch OnIdle() events and check if input is available for the stream. Hi, I have a code as follow which tries to get output from a console program (called console.exe) and display it in a wxTextCtrl, but I can only get the first output.... was ...