Search found 16000 matches

by doublemax
Thu Jun 29, 2006 6:35 pm
Forum: C++ Development
Topic: Question about sizing
Replies: 1
Views: 451

do you actually assign your sizer to your frame?
In C++ there would be a line like

Code: Select all

yourwxFrame->SetSizer(yoursizer);
And what about the wx::Shaped flag? In c++ you would set the flag for each item added to the sizer, not to the sizer itself. Try wx::EXPAND and see if it changes anything.
by doublemax
Thu Jun 29, 2006 1:39 pm
Forum: C++ Development
Topic: Iterate through files in disk
Replies: 1
Views: 634

Code: Select all

wxDir
wxDirTraverser
by doublemax
Thu Jun 29, 2006 12:06 pm
Forum: C++ Development
Topic: [VC++.NET, files > 2 GB]
Replies: 9
Views: 2273

look at wxFFile and wxFFile::Attach (note the double 'F')
by doublemax
Wed Jun 28, 2006 2:56 pm
Forum: C++ Development
Topic: Mouse fly over wxTextCtrl
Replies: 4
Views: 1091

i'm sure mouse enter/leave events work for wxTextCtrl objects, too.

I guess you only have an event table for your wxFrame. In that case you could use yourtextctrl->Connect() to connect your mouse enter/leave methods to your text controls.
by doublemax
Tue Jun 27, 2006 6:39 pm
Forum: C++ Development
Topic: Can the standard class name for a window be changed?
Replies: 2
Views: 833

AFAIK there is no method to change this from user code, but you could of course just change it in the wxWidgets sources. (in src/msw/app.cpp)
by doublemax
Tue Jun 27, 2006 3:55 pm
Forum: C++ Development
Topic: wxNotebook problem
Replies: 4
Views: 1131

ghostdev85 wrote:Well....
fatal error... the kind that on linux it says segmentation fault... and on windows xp it pops out send error report that kind...
How about using a debugger?
And what exactly are you doing with that pointer?
And why do you need that pointer at all? why can't you just use "this"?
by doublemax
Tue Jun 27, 2006 2:51 pm
Forum: C++ Development
Topic: open a jpeg file in a window and recover RGB value
Replies: 2
Views: 815

i wouldn't try to read the rgb value from the screen. Instead, load your image into a wxImage. Then in the OnClick method of your wxFrame (or whatever object you use to display the image), convert the window coordinates into image coordinates (which depends on a few factors like scaling, offset etc)...
by doublemax
Tue Jun 27, 2006 7:02 am
Forum: C++ Development
Topic: wxDir: out of order files & folders
Replies: 1
Views: 847

Files are returned in the physical order they appear in the directory and you'll have to sort them yourself. E.g. put them in a wxArrayString
by doublemax
Mon Jun 26, 2006 3:10 pm
Forum: C++ Development
Topic: How to get which column the mouse in - wxListCtrl
Replies: 4
Views: 1242

From the documentation:
wxListEvent::GetPoint
wxPoint GetPoint() const

The position of the mouse pointer if the event is a drag event.
Try:

Code: Select all

wxPoint pos=this->ScreenToClient(::wxGetMousePosition());
by doublemax
Sun Jun 25, 2006 9:52 am
Forum: C++ Development
Topic: can not "hello world"!
Replies: 12
Views: 7658

these errors usually indicate that your wxwidgets library and your application are compiled with different runtime library settings. Check the settings "Configuration Properties -> C/C++ -> Code Generation" in both your library and your application and make sure they're all the same. Then rebuild bo...
by doublemax
Sat Jun 24, 2006 10:31 pm
Forum: C++ Development
Topic: How to draw text on a transparent background in a wxImage?
Replies: 2
Views: 1035

i've never done this myself, but here's what i'd do: draw your text in white on a black background - use raw bitmap access to get the pixel values and do the conversion into your texture format yourself. In this particular case the alpha value is identical to the color value of the pixel so you can ...
by doublemax
Sat Jun 24, 2006 1:33 pm
Forum: C++ Development
Topic: Inter-process Communication under wxWidgets
Replies: 5
Views: 1174

take a look at the IPC sample
by doublemax
Fri Jun 23, 2006 7:03 pm
Forum: C++ Development
Topic: grabing handle of control from indirectly connected class
Replies: 7
Views: 1784

is your instance of MyFrameClass a toplevel window? The FindWindowById recursively scans all toplevel windows and their children for the window you're looking for. If it is, trace through FindWindowById to see why it fails. If not, you'll have to think of another way, either with events or with a co...
by doublemax
Fri Jun 23, 2006 9:20 am
Forum: C++ Development
Topic: disable resizing a frame
Replies: 1
Views: 809

create your wxFrame without the wxRESIZE_BORDER flag
by doublemax
Fri Jun 23, 2006 8:19 am
Forum: C++ Development
Topic: resize a bitmap
Replies: 5
Views: 4387

just one comment: Loading the image each time the OnPaint method is called is not very nice, maybe you should load it only once in your panel's constructor.