Search found 32 matches

by smf
Fri Mar 20, 2009 11:12 am
Forum: C++ Development
Topic: memory leaks
Replies: 12
Views: 3410

Re: memory leaks

Sorry for awakening this zombi thread... (it is from 2006, jesus...)

Yes, I can see the same with valgrind. I suppose it is some errors inside wx-mem-management. But, I am not sure, though. So, anyone who could clarify this strange thing any further?

cu
Stefan
by smf
Wed Mar 04, 2009 11:22 am
Forum: C++ Development
Topic: Garbaged layout: sizers with wxPanel (still a wxNewbe();)
Replies: 1
Views: 488

Re: Garbaged layout: sizers with wxPanel (still a wxNewbe();

Argh... found it...

SetSizerAndFit() does not imply a Layout()...


cu
Stefan
by smf
Wed Mar 04, 2009 10:31 am
Forum: C++ Development
Topic: Garbaged layout: sizers with wxPanel (still a wxNewbe();)
Replies: 1
Views: 488

Garbaged layout: sizers with wxPanel (still a wxNewbe();)

Hi folks, with the code below, I get some garbage "Layout" ... Like all widgets rendered all over each other at position (0,0)... Only if I manually resize the frame, then I get the desired layout. This completely puzzels me... I suspect it could be something with the parentship of some widgets, but...
by smf
Tue Feb 24, 2009 1:38 pm
Forum: C++ Development
Topic: Buttons in Panel in treebook do not work (still a newbe)
Replies: 4
Views: 734

Hi, i don't sure, but try to make my_treebook as a parent for the panels: wxPanel* my_panel1 = new wxPanel(my_treebook); O_O *WOW* that was it! Many many thanks! I overlooked that one (I am pretty sure it would have taken me ages to find this...) What I have learned from this one: ever check that t...
by smf
Tue Feb 24, 2009 12:38 pm
Forum: C++ Development
Topic: Buttons in Panel in treebook do not work (still a newbe)
Replies: 4
Views: 734

Hi Jim, I believe you need to call Connect for the object that will generate the event. ... The last parameter tells the event logic that your frame object will handle the event on behalf of the button. no, I am sorry,... it is behaving absolutely the same with the changed event-connect. It is like ...
by smf
Tue Feb 24, 2009 10:32 am
Forum: C++ Development
Topic: Buttons in Panel in treebook do not work (still a newbe)
Replies: 4
Views: 734

Buttons in Panel in treebook do not work (still a newbe)

Hi, as I am still a wxNewbe, I am stuck again... I would like to have a config-frame (like that one in Netscape or VLC) for my Program, so this was my try: enum { ID_BUTTON_SKIN = (wxID_HIGHEST+1), }; BEGIN_EVENT_TABLE(config_frame, wxFrame) END_EVENT_TABLE() config_frame::config_frame(wxFrame *fram...
by smf
Tue Feb 17, 2009 10:21 am
Forum: C++ Development
Topic: Destroy() doesn't work in conjunction with a singleton?
Replies: 4
Views: 1551

phlox81 wrote:

Code: Select all

setup* GUI;
GUI = GUI->get_instance();
ouch. Don't ever use a not initialised pointer like that.

Code: Select all

setup* GUI = setup::get_instance();
Maybe this works.
:shock: yes, indeed... :oops:

many thanks,
Stefan
by smf
Tue Feb 17, 2009 8:39 am
Forum: C++ Development
Topic: Destroy() doesn't work in conjunction with a singleton?
Replies: 4
Views: 1551

Hi! Hard to tell without seeing some code :) How did you use the frame in the singleton? OK, here comes the code for the singleton: // configuration singleton class setup { public: splash_frame* spl_frame; ~setup() { } static setup* get_instance() { static setup instance; return &instance; } void s...
by smf
Tue Feb 17, 2009 6:55 am
Forum: C++ Development
Topic: Destroy() doesn't work in conjunction with a singleton?
Replies: 4
Views: 1551

Destroy() doesn't work in conjunction with a singleton?

Hi, at first I have built my project using a global pointer to an object derived from a wxFrame (a wannabe splash-screen). When using the global pointer either works: a) closing/destroying the frame with this->Destroy(); b) closing/destroying the frame from outside with ptr->Destroy(); But if I use ...
by smf
Fri Feb 13, 2009 12:11 pm
Forum: C++ Development
Topic: relative positioning a wxframe on screen (still a newbe...)
Replies: 2
Views: 509

JimFairway wrote:
Hope that helps,

Jim
Hello Jim,

it did help. Many thanks!

Stefan
by smf
Fri Feb 13, 2009 11:50 am
Forum: C++ Development
Topic: relative positioning a wxframe on screen (still a newbe...)
Replies: 2
Views: 509

relative positioning a wxframe on screen (still a newbe...)

Hi, if I call my main frame-class with wxDefaultPosition, it is always positioned top-left on the screen... So far, so good. But, I would like to position it bottom-left on the screen. (I have googled for hours, now, and I seem to be too blind to find the solution for positioning my main window on t...
by smf
Fri Nov 14, 2008 5:04 pm
Forum: C++ Development
Topic: wxBoxSizer Layout Problem (xwNewbie...)
Replies: 11
Views: 2342

Oscilloscope in wxFrame?

Hi, for all of the people who probably stumble across the same problem... :D the ->Layout() must just be at the very end and everything is fine... To just ask another question: I can blit an image to the frame with dc.drawImage() and it works all like I would expect it... but is that the recommended...
by smf
Fri Nov 14, 2008 11:41 am
Forum: C++ Development
Topic: wxBoxSizer Layout Problem (xwNewbie...)
Replies: 11
Views: 2342

Hi David, I know, I was joking. I was hoping so... But as I have the general experience with forums in that there are some, erm say, "unpolite" people arround, sometimes -- esp. if it is silly newbies (aka idiots... :D) questions... so I wasn't completely sure about that... That is improves with res...
by smf
Fri Nov 14, 2008 9:27 am
Forum: C++ Development
Topic: wxBoxSizer Layout Problem (xwNewbie...)
Replies: 11
Views: 2342

Why are you setting the size of your wxTextCtrl to wxDefaultSize ? this also was a test if anything changes... I have changed that back to 100x100 (and 320x100) and all remains like it is... This must be something other. Even if I completely remove the textCtrl, the vertical height of the sizer is ...
by smf
Fri Nov 14, 2008 1:42 am
Forum: C++ Development
Topic: wxBoxSizer Layout Problem (xwNewbie...)
Replies: 11
Views: 2342

timg wrote:Did you try making these calls:

Code: Select all

    topSizer->Fit( this );          // fit the dialog to the contents
    topSizer->SetSizeHints( this ); // set hints to honor min size
after this?

Code: Select all

    SetSizer( topSizer );
Yes, I have tried that, too. It makes no difference...

Stefan