Re: [wxEuphoria] how put Media control into a window?
- Posted by mattlewis (admin) Feb 09, 2009
- 843 views
DanM said...
Why doesn't the following work to create a window with the media player in it,
so I can put OTHER additional controls into the same window as the media player?
What should it be to do that?
It looks like it needs a size to be specified. Try this:
include wxeud.e without warning constant main = create( wxFrame, {0, -1, "Media Demo"}), win = create( wxPanel, main), player = create( wxMediaCtrl, {win,-1,"",-1,-1,300,100} ), button = create( wxButton, {win, -1, "Click Me"}), sizer = create( wxBoxSizer, wxVERTICAL ) add_window_to_sizer( sizer, player, 1, wxGROW, 0 ) add_window_to_sizer( sizer, button, 0, 0, 0 ) set_sizer( win, sizer) wxMain( main )
Matt