Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Size of wxButton

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Size of wxButton
#2766
Posted by: 2003-10-23 23:54:48
Hi

I have few problems with wxWindows ...  maybe this are standart newbie question but  this is driving me nuts ;)

I make a new Button

button = new wxButton(this,Min_Button,_T("Click Me"),wxPoint(0,0),wxSize(50,50),wxBU_EXACTFIT);

and I don't know why but the button always occupies the whole client space of my frame .... it simply ignores my Point and Size arguments ;/

I did the same with wxTextCtrl ... same behaviour ...

And does anyone know if MMedia is stil developed (it seemed quite unfinished to me and I got no Information at all from the documentation )? And is there a alternative (wxLIVID is also dead I think ...)

cu
ernii
Message2. Re: Size of wxButton
#2769
Posted by: upCASE 2003-10-25 04:09:15
Hi!
True, this happens when you don't use sizers and instead simply create an instance of  a button or text control passing it the frame as its parent. This won't happen if you
1. create the frame
2. create a sizer in this frame
3. create the button
4. add the button to the sizer

MMedia & wxLIVID seem to be really dead. After a few problems I finally got the MMedia example to work but the docs aren't really hepfull...

upcase
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-4-19  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0