Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Just speechless...
takeshimiya:
Well, it always was that way in any (at least windows) application.
cyberkoa:
--- Quote from: byo on December 01, 2005, 12:13:56 am ---
--- Quote from: killerbot on November 29, 2005, 11:40:05 pm ---The dialog is resizable. But how do I specify in wxSmith to get those resize lines in the bottom right corner (3 little diagonal lines ), don't know the correct terminology.
--- End quote ---
Try adding StatusBar:
in constructor, right after wxSmith-generated code add line
--- Code: ---new wxStatusBar(this);
--- End code ---
It worked for me :)
--- End quote ---
oic , I seldom work on windows programming :oops:
killerbot:
Thanks, the 3 lines are there now, but one question qnd 1 problem:
Question :
- is it my responsibility to delete it in the destructor (I have seens that for example when you create a wxMenu, new created' when you hand it over, you don't touch it anymore, certainly not delete it.So what's the case here ?
Problem:
that status bar remains at it original position , though when I enlarge the dialog, the dialog grows but that status bar is still in the starter position, so ending up in the middle of my enlarged dialog.
Seems my knowledge of wx is still way too low. :-(
kind regards,
Lieven
rickg22:
um, try adding an OnResize (or OnSize whatever) event handler that resizes the status bar whenever the window is resized...
That might work. But then again, i haven't done anything like that in a while.
byo:
--- Quote from: killerbot on December 01, 2005, 09:35:30 am ---Problem:
that status bar remains at it original position , though when I enlarge the dialog, the dialog grows but that status bar is still in the starter position, so ending up in the middle of my enlarged dialog.
Seems my knowledge of wx is still way too low. :-(
--- End quote ---
What wx version do You use ? I've noticed that also sometimes when You resize dialog, items does not reposition and resize, juzt like there was no sizer. So maybe it's wxWidgets bug (did they forget to handle size events or sth ?). I'm using wx 2.6.2 and I don't remember that this happened in ealier version.
And about memory managment - wxWidgets usually automatically handles object destruction and wxStatusBar bar should be deleted automatically
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version