Search found 30 matches

by llama9000
Thu Nov 17, 2005 11:47 pm
Forum: C++ Development
Topic: Double buffering
Replies: 9
Views: 2809

wxBufferedPaintDC (or wxBufferedDC) should come in handy. Should look like something like this: wxBufferedPaintDC dc(this); // Use this instead of wxPaintDC // Draw the actual image in the device context dc.Clear(); dc.BeginDrawing(); //dc.DrawWhatever... dc.EndDrawing(); http://www.wxwidgets.org/ma...
by llama9000
Wed Nov 16, 2005 4:00 am
Forum: Compiler / Linking / IDE Related
Topic: Problem installing wxWidgets with Visual Studio
Replies: 4
Views: 1711

Have you included .\lib\vc_lib (e.g. c:\wxWidgets-2.6.1\lib\vc_lib) in the project's linker path? There should be sample configurations available in each of the sample project files. If you're using Visual Studio 2003, why not compile the library files with the IDE rather than nmake? There's a wx.sl...
by llama9000
Sun Nov 13, 2005 9:25 pm
Forum: C++ Development
Topic: changing wxStaticText text?
Replies: 2
Views: 6995

Check the Id Name of the wxStaticText object you've defined in DialogBlocks and make sure it's a unique Id name (other than wxID_STATIC, which is by default). Presumably when you called SetLabel() you were in fact changing the first wxStaticText object you have defined in your code (with wxID_STATIC...
by llama9000
Mon Oct 17, 2005 10:57 pm
Forum: C++ Development
Topic: wxNotebook with No Tabs?
Replies: 4
Views: 1957

I had a similar problem as well, but I went with multiple (subclasses of) wxPanels that holds different views, position them within the same area, and Hide() and Show() them as required. To answer your question, here's my 2 cents: 1. Wrap the wxNotebook within a wxScrollWindow and position the Noteb...
by llama9000
Mon Oct 03, 2005 4:24 am
Forum: C++ Development
Topic: Question about wxTextCtrl
Replies: 1
Views: 1162

Use EVT_TEXT. If you'd like to restrict the text being entered to only numbers or letters, assign a wxValidator as well, e.g.

Code: Select all

someTextCtrl->SetValidator( wxTextValidator(wxFILTER_NUMERIC)); // Numbers only
by llama9000
Wed Sep 28, 2005 12:02 pm
Forum: Component Writing
Topic: reading text files line by line (CSV files)...
Replies: 6
Views: 6884

Glad it helps. Cheers :wink:
by llama9000
Wed Sep 28, 2005 10:56 am
Forum: Component Writing
Topic: reading text files line by line (CSV files)...
Replies: 6
Views: 6884

Damn... missed the 'massive text file' part... I knew it was too easy to be true :) What about streams? Like wxTextInputStream? It's got ReadLine() and stuff like that... you could use it with wxFileInputStream like the example suggests: http://www.wxwidgets.org/manuals/2.6.1/wx_wxtextinputstream.ht...
by llama9000
Wed Sep 28, 2005 10:22 am
Forum: C++ Development
Topic: how to get the module path?
Replies: 16
Views: 4172

(Oopsie... better not confuse more people :oops: )

Use this:
http://www.wxwidgets.org/technote/install.htm
by llama9000
Wed Sep 28, 2005 7:55 am
Forum: C++ Development
Topic: how to get the module path?
Replies: 16
Views: 4172

by llama9000
Wed Sep 28, 2005 5:21 am
Forum: C++ Development
Topic: wxArray for double
Replies: 8
Views: 2243

Why use object arrays? wxArray does support simple types: WX_DEFINE_ARRAY_DOUBLE(double, ArrayOfDoubles); ArrayOfDoubles someNumbers_; Just stick these in your header file, you shouldn't need any other #includes. Pop in #include "wx/dynarray.h" if the compiler gives you any trouble. Other ...
by llama9000
Wed Sep 28, 2005 4:59 am
Forum: Component Writing
Topic: Wrapping wxStaticText
Replies: 4
Views: 2267

Seems that it has been taken care of in version 2.6.2 - wxStaticText::Wrap()

http://www.wxwidgets.org/manuals/2.6.2/ ... ctext.html

Haven't tried it though...
by llama9000
Wed Sep 28, 2005 4:52 am
Forum: Component Writing
Topic: reading text files line by line (CSV files)...
Replies: 6
Views: 6884

Hi there, Have you tried wxTextFile + wxStringTokenizer? If CSVs are all that you'll parse these two should work wonderfully. Being a lazy guy I use them all the time... just read the whole line and strip out the bits you want :D http://www.wxwidgets.org/manuals/2.6.1/wx_wxtextfile.html#wxtextfile h...
by llama9000
Tue Aug 09, 2005 4:20 am
Forum: C++ Development
Topic: Size of wxHtmlWindow/wxTextCtrl
Replies: 2
Views: 1269

wxHtmlWindow is ultimately a child of wxWindow (see "Derived from..." on its manual page... functions from parent classes are normally hidden there), so you can use wxWindow's GetMinSize() and GetMaxSize() to do the job. Likewise with wxTextCtrl I think. As for the scrollbars, you'll have ...
by llama9000
Sat Aug 06, 2005 11:35 am
Forum: C++ Development
Topic: problem inredirecting logmessage to textctrl ?
Replies: 4
Views: 1647

...just wxLogMessage(str) will do.
by llama9000
Fri Aug 05, 2005 3:21 am
Forum: C++ Development
Topic: Sortable ListCtrl
Replies: 5
Views: 2846

If it's a new type of widget available in .NET only, probably not (most core widgets would have to be cross-platform, using native widgets). My guess is you'll have to implement your own new widget by subclassing wxListCtrl.