Search found 102 matches

by forrestcupp
Tue Jun 23, 2009 5:01 pm
Forum: C++ Development
Topic: Trouble with panels that overlap
Replies: 11
Views: 1013

That's interesting. I just tried what you said, but it didn't work.

I have panel2 as the lower panel with the static text. panel3 is the panel that I want to partially cover panel2. I set the wxCLIP_CHILDREN bit in panel2, but that didn't do the trick.

Is that what I was supposed to do?
by forrestcupp
Tue Jun 23, 2009 3:18 pm
Forum: C++ Development
Topic: wxBell sounds when pressing enter on wxTextCtrl
Replies: 9
Views: 1746

I know this is old and maybe things have changed, but I'm writing this for my future reference. I had the same problem. I set up my one line text control to process enter, and I connected it to a function that did what I needed it to do when enter is pressed. Every time I pressed enter, the system b...
by forrestcupp
Tue Jun 23, 2009 1:56 pm
Forum: Compiler / Linking / IDE Related
Topic: VC++2008 compiles in debug but not release
Replies: 2
Views: 671

In case anyone cares, I ended up just realizing that it's much easier just to not use an empty project. So I just changed the default .cpp and .h templates to suit my needs better, and I'm now letting it generate the project for me. Now it works in debug and release. I just hate working with generat...
by forrestcupp
Tue Jun 23, 2009 1:47 pm
Forum: C++ Development
Topic: Trouble with panels that overlap
Replies: 11
Views: 1013

It's meant to be an addition flash card app that I wanted to quickly throw together for my son.

I know I can accomplish that by drawing, but I just wanted to do something quick and easy. If I can't do it that way, I'll just take other measures, or make it less complicated.

Thanks.
by forrestcupp
Mon Jun 22, 2009 8:51 pm
Forum: C++ Development
Topic: Trouble with panels that overlap
Replies: 11
Views: 1013

I'm using a raised border panel for the front of a flash card that has numbers on it. I'm using another raised border panel with a different background color for the backside of another card. That panel/card covers over most, but not all, of the other card with numbers on it. It works just fine when...
by forrestcupp
Mon Jun 22, 2009 5:04 pm
Forum: C++ Development
Topic: Trouble with panels that overlap
Replies: 11
Views: 1013

Trouble with panels that overlap

In my window, I have a small panel that is 200x200. In that panel is a static text. I also have another panel the same size that partially overlaps the first panel. The problem is that the static text portion of the lower panel shows through the panel on top. Is there any way to get the top panel to...
by forrestcupp
Mon Jun 22, 2009 2:32 am
Forum: Compiler / Linking / IDE Related
Topic: VC++2008 compiles in debug but not release
Replies: 2
Views: 671

VC++2008 compiles in debug but not release

I'm using VC++2008 Express with the latest wxPack. When I create a simple app starting with an empty project using the VC wizard, I don't have any problem compiling it in debug mode, but it won't compile in release mode. When I switch to release mode, before it starts compiling the code, it errors o...
by forrestcupp
Thu Jan 24, 2008 11:49 pm
Forum: C++ Development
Topic: Loading and playing a wxMediaCtrl
Replies: 13
Views: 1597

Did you notice the differences in our Connect() call? In my example an event of the wxMediaCtrl is connected to a function of the dialog which is the parent of the wxMediaCtrl. So my function is of a MediaDialog::OnLoad type. What is MediaDialog? Is that the name of a class you created, or what? Is...
by forrestcupp
Thu Jan 24, 2008 1:59 pm
Forum: C++ Development
Topic: Loading and playing a wxMediaCtrl
Replies: 13
Views: 1597

Well, that was the whole problem to begin with. wxEVT_MEDIA_LOADED isn't working for me. I was trying that before arbcow told me to make a wrapper. I dont even have an OnMediaLoaded function in my wxMediaCtrl class like I should. I don't have any problem Connecting to wxEVT_MEDIA_FINISHED. I have do...
by forrestcupp
Wed Jan 23, 2008 8:09 pm
Forum: C++ Development
Topic: Loading and playing a wxMediaCtrl
Replies: 13
Views: 1597

I made a class called cuppMediaCtrl. Here is the header file: #include "wx/wx.h" #include "wx/mediactrl.h" class cuppMediaCtrl : public wxMediaCtrl { public: cuppMediaCtrl(wxWindow* parent,wxString filename, bool looping); bool LoadFile(wxString filename); void SetLoop(bool loop); bool GetLoop(); vo...
by forrestcupp
Wed Jan 23, 2008 7:49 pm
Forum: C++ Development
Topic: Loading and playing a wxMediaCtrl
Replies: 13
Views: 1597

I appreciate your help. I really want to get this to work, but I just can't. I think I may have found a problem that is perplexing me. I don't have a wxMediaCtrl::OnMediaLoaded function. I do have the OnMediaFinished, but there's nothing for the Loaded. That must be my whole problem, but I can't und...
by forrestcupp
Tue Jan 22, 2008 3:16 pm
Forum: C++ Development
Topic: Loading and playing a wxMediaCtrl
Replies: 13
Views: 1597

Thanks for your response. It gave me some ideas, but I'd rather try it without a wrapper. But I can't get what I'm trying to work. I'm just trying to set up a function to capture the Loaded event and I can't get it to work. My problem is that I like to use Connect instead of event tables, and all of...
by forrestcupp
Tue Jan 22, 2008 3:16 am
Forum: C++ Development
Topic: Loading and playing a wxMediaCtrl
Replies: 13
Views: 1597

Loading and playing a wxMediaCtrl

I want to be able to click a wxButton and have it load a file into a wxMediaCtrl, then play it immediately, but I can't figure out how to do it. I can load the file ahead of time in my MyFrame constructor then play it when I click the button, but I can't figure out how to do them both at once in the...
by forrestcupp
Mon Jan 21, 2008 7:33 pm
Forum: C++ Development
Topic: Length of wxString array?
Replies: 2
Views: 484

Wow. Thank you. That's exactly what I was looking for.
by forrestcupp
Mon Jan 21, 2008 6:27 pm
Forum: C++ Development
Topic: Length of wxString array?
Replies: 2
Views: 484

Length of wxString array?

How can I put the length of a wxString array into an int?

I have an array like this:

Code: Select all

wxString myString[] = {_T("a"), _T("b"), _T("c")};
and I want to put the length of the myString array into an int so that I don't have to update a lot of places in my program when I add things to the array.