Search found 102 matches

by C_Bastian
Sun May 18, 2008 4:54 pm
Forum: C++ Development
Topic: Suggestion of a small feature
Replies: 3
Views: 739

Did you see that wxWidgets is Open Source? You can add your needed function to the class and send this rewritten class to the mailing list. In that way nobody needs to do "your" work and it is more likely to be integrated in the next "official" release.
by C_Bastian
Sat May 17, 2008 9:37 am
Forum: C++ Development
Topic: Simplest way to embed an icon into a .exe ?
Replies: 6
Views: 1760

There is an easier way. Look into your xpm file. at the beginning there is a color palette table, where colors get letters. Set a color value to "NONE" and the icon will be transparent at the according letter points.
by C_Bastian
Wed Apr 16, 2008 7:11 am
Forum: C++ Development
Topic: how did you learn wxwidgets?
Replies: 12
Views: 2052

First I learnt C. Then I wanted to get rid of this silly WinAPI calls and I found wxWidgets. So I had to switch to C++ because I wanted to use wxWidgets. I brought the wxWidgets book. This is the way I always learn a new programming language: Buy a book for he basic things. This forum is helpful, to...
by C_Bastian
Sun Mar 23, 2008 11:40 pm
Forum: C++ Development
Topic: Embedding widgets in widgets
Replies: 1
Views: 524

Unfortunately I do not exactly know what you want to do. Maybe you can put a screenshot online?

Just a guess: does a wxGrid help you? You could use the first column (read-only) as headline of the property, the second column as value...

Or even use a wxPropertyGrid?

Sebastian
by C_Bastian
Sun Mar 23, 2008 11:33 pm
Forum: C++ Development
Topic: Display data objects (controls) in a wxListCtrl style
Replies: 3
Views: 979

To finish this old thread, I found a way to do what I want: I just combines a wxScrolledWindow with a wxGridSizer. Sometimes wxWidgets is too simple to use. :wink:

Sebastian
by C_Bastian
Sat Mar 22, 2008 10:45 am
Forum: C++ Development
Topic: Mediaplayer with video cross-fading
Replies: 1
Views: 572

Mediaplayer with video cross-fading

Hello,

I'm going to make a video-player that is able to cross-fade between several video-streams.

I'm able to do it with audio already (using to WxMediaPlayer objects), but doing so with video, two video windows are opened, and fading is not possible.

Any ideas?

Sebastian
by C_Bastian
Fri Feb 01, 2008 7:59 am
Forum: Platform Related Issues
Topic: wxMediaCtrl on Windows Vista
Replies: 4
Views: 1192

Im not sure, it is just a guess: Maybe you have a problem with the wxMediaBackend. Try wxMEDIABACKEND_WMP10 in the Create call.

If this does not help, you'll have to describe closer what you mean with "does not seem to work"

Sebastian
by C_Bastian
Sat Jan 26, 2008 5:54 pm
Forum: Platform Related Issues
Topic: wxMediaCtrl on Windows Vista
Replies: 4
Views: 1192

Some lines of code would be helpful. :roll:

How and where do you create your wxMediaCtrl object?

Sebastian
by C_Bastian
Fri Jan 25, 2008 5:57 am
Forum: C++ Development
Topic: Loading and playing a wxMediaCtrl
Replies: 13
Views: 1861

Oh, sorry, I just copied some lines of code from one of my applications. It is just the dialog where the wxMediaCtrl is located in. Let's say, the parent window of the wxMediaCtrl.
by C_Bastian
Thu Jan 24, 2008 3:22 pm
Forum: C++ Development
Topic: Strange compiler error
Replies: 4
Views: 1018

Arrgh. Finally I found it. The problem was ID_VALCTRL.

I just wrote "#define ID_VALCTRL" and wanted to look up the correct (free) number for it. And forgot about it. So ID_VALCTRL was defined but not containing a number. :oops:
by C_Bastian
Thu Jan 24, 2008 3:13 pm
Forum: C++ Development
Topic: Loading and playing a wxMediaCtrl
Replies: 13
Views: 1861

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. in src/common/mediactrlcmn.cpp you'll find: DEFINE_EVENT_TYPE(wxEVT_M...
by C_Bastian
Thu Jan 24, 2008 3:03 pm
Forum: C++ Development
Topic: Loading and playing a wxMediaCtrl
Replies: 13
Views: 1861

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. Your code did not work for me, too. I'm using wxWidgets 2.8.4 and my Conne...
by C_Bastian
Thu Jan 24, 2008 8:45 am
Forum: C++ Development
Topic: Strange compiler error
Replies: 4
Views: 1018

Does not help :( I even put // before these lines -> no difference.

Thank you for trying.

Sebastian
by C_Bastian
Thu Jan 24, 2008 8:21 am
Forum: C++ Development
Topic: Loading and playing a wxMediaCtrl
Replies: 13
Views: 1861

You do not need a wrapper. All you have to do is this: in MediaDialog::CreateControls() mediactrl=new wxMediaCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(60,60), wxNO_BORDER, wxMEDIABACKEND_WMP10); //Or whatever you need here sizer->Add(mediactrl,1,wxEXPAND,0); mediactrl->Connect(wxEVT_ME...
by C_Bastian
Thu Jan 24, 2008 8:11 am
Forum: C++ Development
Topic: Strange compiler error
Replies: 4
Views: 1018

Strange compiler error

Hi, I want to write a control that should display some data. But I get a very strange compiler error. This is my code: in the header: class ValueCtrl: public wxControl { DECLARE_DYNAMIC_CLASS( ValueCtrl ) DECLARE_EVENT_TABLE() public: ValueCtrl(); ValueCtrl( wxWindow* parent, wxWindowID id = ID_VALC...