Search found 54 matches

by okurtsev
Mon Feb 22, 2010 4:24 pm
Forum: C++ Development
Topic: wxMessageDialog does not open
Replies: 4
Views: 767

try warnDialog->ShowModal();

also function wxMessageBox may be helpful.
by okurtsev
Mon Feb 22, 2010 3:46 pm
Forum: C++ Development
Topic: Splitting window using wxauimanager
Replies: 7
Views: 1018

I do not know is AUI manager very comfortable for such things, but just in case, why not wxSplitterWindow?
by okurtsev
Sun Feb 21, 2010 1:45 am
Forum: C++ Development
Topic: bitmaps 32 bpp problem
Replies: 11
Views: 1213

Depth of your screen should not be a problem. Then you create a wxBitmap object from wxImage and do not specify the depth parameter (or -1), wxBitmap will use the screen depth and can be showed without problem.
Please let us know how do you render the image.
by okurtsev
Sat Feb 20, 2010 9:26 pm
Forum: C++ Development
Topic: Computer Informations?
Replies: 5
Views: 989

Maybe this helps a little -
http://wxwidgets.info/cross-platform-wa ... r-machine/

In MS Windows case, I heard that people change hardware more frequently then OS, possibly you may also consider to obtain serial number of Windows from your application.
by okurtsev
Sat Feb 20, 2010 8:33 pm
Forum: C++ Development
Topic: Trouble with value validation inside kill focus handler
Replies: 1
Views: 483

Trouble with value validation inside kill focus handler

Hello, I have a trouble when I try to check text control value inside kill focus handler and show the message if it is wrong. The text control is inside aui toolbar. here is the code of control creation - wxTextCtrl *gamma = new wxTextCtrl(file_tb, ID_GAMMA_EDIT_CONTROL, wxT("0.00"), wxDefaultPositi...
by okurtsev
Thu Feb 18, 2010 5:08 pm
Forum: C++ Development
Topic: problem with show/hide in nested dialogs
Replies: 5
Views: 894

It is complex to understand where and when you call "Show" and what happens without the code.

just in case, may be you need wxWizard? It seems suitable for such purposes.
by okurtsev
Thu Feb 18, 2010 4:14 pm
Forum: C++ Development
Topic: How to randomize numbers?
Replies: 12
Views: 1517

Self written or written by somebody usually maybe using equally.
If you are not joking, I think if you are going to use wxWidgets it is really important to study some basics of C++.
by okurtsev
Thu Feb 18, 2010 3:12 pm
Forum: C++ Development
Topic: How to randomize numbers?
Replies: 12
Views: 1517

Aplik::rand is also non static
by okurtsev
Thu Feb 18, 2010 2:44 pm
Forum: C++ Development
Topic: How to randomize numbers?
Replies: 12
Views: 1517

wxDateTime::GetSecond - is not static, you should previously create a wxDateTime object.

But I really think that you may consider the functions(time, rand, etc) from standard libraries without cross-platform issues.

JimFairway's advice is also very good.
by okurtsev
Thu Feb 18, 2010 12:15 pm
Forum: C++ Development
Topic: How to randomize numbers?
Replies: 12
Views: 1517

Also I suspect the functions time(), rand, etc are standard and should be cross-platform.
by okurtsev
Thu Feb 18, 2010 12:10 pm
Forum: C++ Development
Topic: How to randomize numbers?
Replies: 12
Views: 1517

Probably you can use

wxDateTime::GetTicks()

to initialize your generator.
by okurtsev
Tue Feb 16, 2010 1:36 pm
Forum: C++ Development
Topic: Problems with idle event
Replies: 5
Views: 1120

wxWakeUpIdle seems more reliable.
by okurtsev
Tue Feb 16, 2010 12:58 pm
Forum: C++ Development
Topic: GIF Saving?
Replies: 3
Views: 666

Yes, the GIF format may now be used freely.

But it seems that GIF saving have not appeared yet in wxWidgets. I've not hear any information about changes.
by okurtsev
Fri Feb 12, 2010 2:03 pm
Forum: C++ Development
Topic: Make console application read out the text from a URL
Replies: 1
Views: 400

Hi, Following example reads 50 bytes form the URL. Please read docs about wxInputStream, and I believe you can modify it for your need. ___________________ #include <wx/url.h> ..... wxURL url("http://www.antifarm.com/text.txt"); wxInputStream *in_s = url.GetInputStream(); char buffer[50]; in_s->Read...
by okurtsev
Thu Feb 11, 2010 1:35 pm
Forum: C++ Development
Topic: AUI docking problem - panel separator out of mainframe area.
Replies: 4
Views: 601

But... here http://www.wxwidgets.org/downloads/ I can see - Development Snapshot: 2.9.0 And 2.9.11 is not noticed. Is this correct? Could you please tell me the most reliable way to find out information about versions, changes, stages, dates, known serious bugs (maybe with workarounds), etc? Thank y...