Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Hot to create resizeable wxButton or other object ?

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

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Hot to create resizeable wxButton or other object ?
#3306
Posted by: 2004-02-04 03:41:39
I want to let users resize buttons or wxtextctrls and I don't know how to make it. I know that there is a wxSashWindow that lets user resize itself, but I need something else. In windows you can click on the item and then there is a border drawned around the item with smal rectangles in corners. Then user can move them and resize. I'm looking something like that. Thank you for any help. rem
Message2. Re: Hot to create resizeable wxButton or other object ?
#3308
Posted by: KaReL 2004-02-04 04:55:16
I don't think that's possible as when you click on a button to move it, you enable the "click" event you see... Same for a textctrl...

maybe you can have a look at the wxFrame-class for the "wxRESIZE_BORDER" flag to look for something you can use on buttons/textctrls?

------------------------
Website: www.KaReLs0ft.be
Message3. Re: Hot to create resizeable wxButton or other object ?
#3309
Posted by: 2004-02-04 06:20:39
I didn't explain everything well, sorry. I'm looking something like in dlgHelper ( http://g.yi.org/f.php?f=10554 ) where you can catch an object and resize it or move to other position on frame. Thank You for Your help KaReL.
Message4. Re: Hot to create resizeable wxButton or other object ?
#3310
Posted by: KaReL 2004-02-05 00:50:08
Maybe you can check out the source of the opensource graphical dialog creating programs for wxWindows?

http://www.wxwindows.org/contrib2.htm

look under tools...


And I did know what you meant, but I thought you wouldn't have them enabled... But no matter how, I don't know ... If you find out, can you post some hints please? ;)

------------------------
Website: www.KaReLs0ft.be
Message5. Re: Hot to create resizeable wxButton or other object ?
#3312
Posted by: upCASE 2004-02-05 02:26:36
Hi!
Working on a small reseditor app here, so I guess I understand.
You can't do this by using the API, you'll have to extend it. Have a look at OGL in the contrib dir. Maybe this could help your or give you some hints.

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 • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2022-9-28  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0