Search found 70 matches

by chadman
Sat Feb 03, 2007 7:31 pm
Forum: General Development
Topic: Messaging between GUI components
Replies: 10
Views: 1872

Oh cool! I didn't realize that, but it works great! Why does this work?
by chadman
Sat Feb 03, 2007 6:15 pm
Forum: General Development
Topic: Messaging between GUI components
Replies: 10
Views: 1872

Anyone have an answer or insight to my last question or jb_coder's question?
by chadman
Fri Feb 02, 2007 4:46 pm
Forum: General Development
Topic: Messaging between GUI components
Replies: 10
Views: 1872

Well, it doesn't look like I can attach an event to multiple functions and this is what I would need to do. The first function that gets attached is the one that gets called, and the other(s) is ignored. For instance, if I have a context menu for a control inside my main frame and I click an item in...
by chadman
Fri Feb 02, 2007 2:46 pm
Forum: General Development
Topic: Messaging between GUI components
Replies: 10
Views: 1872

Thanks, I'll give that a try then.
by chadman
Fri Feb 02, 2007 2:45 pm
Forum: General Development
Topic: Storing program settings in memory
Replies: 2
Views: 781

Thanks. I'll give that a try.
by chadman
Fri Feb 02, 2007 4:30 am
Forum: General Development
Topic: Messaging between GUI components
Replies: 10
Views: 1872

*THIS HAS BEEN EDITED SINCE IT WAS FIRST POSTED* Can't you just use normal wx event handling? Take a look at the connect method. I'm not quite sure how this would work...is something like the following what you mean? MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) : w...
by chadman
Fri Feb 02, 2007 3:34 am
Forum: General Development
Topic: Storing program settings in memory
Replies: 2
Views: 781

Storing program settings in memory

Suppose I have an application which has a dialog that allows the user to change a bunch of settings for the program (e.g. a file location of a data module used by the program). What data structure would I use to store these settings in memory - a hash table? And supposing I have 3 classes - one for ...
by chadman
Thu Feb 01, 2007 5:00 am
Forum: General Development
Topic: Messaging between GUI components
Replies: 10
Views: 1872

Messaging between GUI components

Hi. I have a frame with a toolbar and buttons, and then I have a panel on a splitter window elsewhere in the frame. The panel in the splitter window has controls in it. I want to make it so that when a toolbar button is clicked the value of a control in the panel in the splitter window changes. How ...
by chadman
Thu Jan 19, 2006 8:20 am
Forum: Platform Related Issues
Topic: Should MDI be implemented on Linux?
Replies: 28
Views: 5572

FYI, I came across this: http://www.kirix.com/en/products/strata ... linux.html . It's from the makers of wxAUI.
by chadman
Tue Sep 06, 2005 6:15 pm
Forum: C++ Development
Topic: wxImage Problem
Replies: 16
Views: 3204

Ah yea, now that I think about it it seems to make sense. I must have read the comments ojn GetData() wrong. I'm making a handwriting recognition program using neural networks, and I'm trying to pick out various characteristics of different characters in bitmaps files. Thanks for the help! I'll let ...
by chadman
Tue Sep 06, 2005 5:57 pm
Forum: C++ Development
Topic: wxImage Problem
Replies: 16
Views: 3204

wxImage::GetData() returns a pointer to the internal data, in RGBRGBRGB... format. For an image sized width*height, you will have an internal data sized width*height*3 (i.e. 3 bytes per pixel)
Is this true even for a monochrome bitmap?
by chadman
Tue Sep 06, 2005 5:18 pm
Forum: C++ Development
Topic: wxImage Problem
Replies: 16
Views: 3204

I've tried that for myself and it seems like wxWigets works with 1-bit bitmaps as if it were 8-bit one with possible values 0 and 255. So you won't need to access the bits. Well that's good. Here is the actual output that I am getting when I use 1's and 0's to represent the image's pixels. As you c...
by chadman
Mon Sep 05, 2005 6:02 pm
Forum: C++ Development
Topic: wxImage Problem
Replies: 16
Views: 3204

Thanks for the reply. 1. Do you know off the top of your head whether there are in fact 8 pixels per byte in a monochrome bitmap? If so, how can I access the individual bits in these bytes? And how come there was data for width and height # of bytes? 2. Can you explain what you mean by 'padding'? *E...
by chadman
Mon Sep 05, 2005 3:23 pm
Forum: C++ Development
Topic: wxImage Problem
Replies: 16
Views: 3204

wxImage *image = new wxImage("A.bmp", wxBITMAP_TYPE_BMP); int i = 0; unsigned char *imageData; imageData = image->GetData(); for (i=0; i<image->GetWidth()*image->GetHeight(); i++) { m_textMain->AppendText(wxString::Format("%i", imageData[i])); if (i > 0 && i % image->GetWidth() == 0) m_textMain->Ap...
by chadman
Mon Sep 05, 2005 3:20 am
Forum: C++ Development
Topic: wxImage Problem
Replies: 16
Views: 3204

wxImage Problem

I worked all day on this program, and then when I tested it, it doesn't work. The program creates a wxImage object which reads a monochrome 100x100 image containing a hand-drawn letter A. For testing, when I use wxImage's GetData() method to get the raw pixel data and I output it to a text file usin...