Search found 20 matches

by asteelef
Sat Aug 27, 2005 1:32 am
Forum: C++ Development
Topic: Displaying lots of data with wxGrid
Replies: 3
Views: 1713

Jorg, Do you mean a wxListCtrl with wxLC_VIRTUAL? If so, I am unclear how that will help things, or at least I still don't know how to proceed. With a virtual wxListCtrl, I need to override GetItemText(long row, long col). I'm not sure how to do this and have it be efficient. One thing that comes to...
by asteelef
Sat Aug 27, 2005 12:29 am
Forum: C++ Development
Topic: wxEXEC_SYNC out of sync?
Replies: 8
Views: 2220

Yes I had used your code from within wxApp (writing to a file) and it worked fine. From within main, I get the same behavior as you do (I'm using dev-cpp, wxWidgets 2.6.0, and windows XP ). Looks like you might be stuck. I assume, due to the portability issue, that system( "myExecutable.exe&quo...
by asteelef
Sat Aug 27, 2005 12:06 am
Forum: C++ Development
Topic: Mouse event handling - how to prompt and wait for a click?
Replies: 5
Views: 1796

If I understand you correctly, you want the program execution to hold up until the user clicks each image. Is this true? If so it is a bit nasty. I think you will need to have ~4 functions to do this: startLoop(){ myCounter = 0; .....//disable all other functionality besides the pictures to be click...
by asteelef
Fri Aug 26, 2005 11:23 pm
Forum: C++ Development
Topic: wxEXEC_SYNC out of sync?
Replies: 8
Views: 2220

Yes it works just fine for me.

I wonder if the problem is that you are calling a wxWidgets function from a program with main() rather than from a program with wxApp::OnInit(). You might try creating a standard wxWidgets app and trying your code there.
by asteelef
Fri Aug 26, 2005 9:42 pm
Forum: C++ Development
Topic: wxEXEC_SYNC out of sync?
Replies: 8
Views: 2220

This may be obvious but... the docs say that wxExecute returns -1 if the process couldn't be started. Are you sure that your countTo100k executable actually gets called?

I have nearly identical code and it works for me....
by asteelef
Fri Aug 26, 2005 9:36 pm
Forum: C++ Development
Topic: wxProcess termination??
Replies: 2
Views: 1167

This works for me on windows XP- Starting the process: wxProcess *process = new wxProcess( this, SOME_PROCESS ); process->Redirect(); currentProcId = ::wxExecute( someExecFile, wxEXEC_ASYNC, process ); My on terminate function: void MyDialog::OnSomeProcessTerm(wxProcessEvent& WXUNUSED(event)) In...
by asteelef
Thu Aug 25, 2005 12:00 am
Forum: C++ Development
Topic: Restore from maximize
Replies: 9
Views: 3097

If I understand you correctly, I had a similar problem

here


Never got a satisfactory solution, but decided to load previous size when the app started.
by asteelef
Thu Aug 11, 2005 1:46 am
Forum: C++ Development
Topic: Displaying lots of data with wxGrid
Replies: 3
Views: 1713

Displaying lots of data with wxGrid

I was hoping for advice on the best way to store and display large amounts of data on the screen. Currently I'm using a wxGrid with an overridden wxGridTableBase. Inside the gridTable, data is stored in a std::vector< wxString >. However, for certain applications I may need to store and display O(10...
by asteelef
Mon Aug 08, 2005 7:28 pm
Forum: C++ Development
Topic: Easiest way to create scrollable dialog
Replies: 9
Views: 2309

Here is my code: SingleRunDlg::SingleRunDlg( wxWindow *dad, vector<wxString> *theNames ) : wxDialog( dad,-1,"Single Run", wxDefaultPosition, wxDefaultSize,wxRESIZE_BORDER |wxMAXIMIZE_BOX |wxDEFAULT_DIALOG_STYLE ), { int numPar = theNames.size(); wxString tempS; theScroll = new wxScrolledWi...
by asteelef
Mon Aug 08, 2005 5:48 pm
Forum: C++ Development
Topic: Easiest way to create scrollable dialog
Replies: 9
Views: 2309

From the sample and the documentation, I was under the impression that only the SetSizer call was necessary.
Setting virtual size had no impact.

Calling SetAutoLayout(TRUE) for the parent dialog allowed me to see my widgets, but still no scrolling.
by asteelef
Mon Aug 08, 2005 5:04 pm
Forum: C++ Development
Topic: Easiest way to create scrollable dialog
Replies: 9
Views: 2309

Hmmm. So I've tried to recreate the scrolled window sample with no luck. Nothing appears in my dialog window when I open it. Steps I took to convert my dialogs: 1)Declare wxScrolledWindow *theScroll; in my header file 2)In my dialog's constructor: theScroll = new wxScrolledWindow( this, -1 ); 3)For ...
by asteelef
Sat Aug 06, 2005 12:28 am
Forum: C++ Development
Topic: Easiest way to create scrollable dialog
Replies: 9
Views: 2309

Hmmm, don't seem to get any scrollbars at all with wxPropertySheetDialog, and the dialog looks very ugly compared to what I had previously.

Any other suggestions? It can't be so hard to get a scrollable and modally diplayable window can it?

Thanks,
by asteelef
Fri Aug 05, 2005 11:53 pm
Forum: C++ Development
Topic: Easiest way to create scrollable dialog
Replies: 9
Views: 2309

property pages?

do you mean wxPropertySheetDialog ?

Thanks for the quick reply
by asteelef
Fri Aug 05, 2005 10:34 pm
Forum: C++ Development
Topic: Easiest way to create scrollable dialog
Replies: 9
Views: 2309

Easiest way to create scrollable dialog

Hello, In my application I have ~10 different dialogs with dynamically created controls (the number of controls depends on the user), and all of the dialogs are displayed modally. I recently realized that I'll need the capability to display more controls than can possibly fit on the screen, so I've ...
by asteelef
Tue Jul 19, 2005 9:03 pm
Forum: C++ Development
Topic: Get non-maximized size
Replies: 3
Views: 1673

Thanks for the vocab help. :oops: I'm still having trouble figuring out where the size value gets stored. As a quick hack, I tried intercepting the maximize events, and saving the size to a file: void OnMaximize( wxMaximizeEvent &event ) { wxString SizeString; wxRect Rect = GetRect (); SizeStrin...