Search found 29 matches

by DerKleineNik
Tue Jan 17, 2012 8:50 am
Forum: C++ Development
Topic: MVC and encapsulation
Replies: 5
Views: 3054

Re: MVC and encapsulation

The downside was that I never seemed to learn how wxWidgets functions, I just learned how to use the tool. Also, it creates a monster of a class! Even with a modest sized GUI there were dozens of widgets plus their event handlers. There goes abstraction; I wouldn't want to be the guy doing the main...
by DerKleineNik
Mon Jan 16, 2012 12:24 pm
Forum: C++ Development
Topic: MVC and encapsulation
Replies: 5
Views: 3054

Re: MVC and encapsulation

Well i dont know a way to avoid the boilerplate methods just to avoid the writing of them by myself. I'm currently working on a program with a frame several menus and a window diveded in many child windows with notebooks and everything just as you described and i created all that using wxFormBuilder...
by DerKleineNik
Mon Jan 16, 2012 7:16 am
Forum: C++ Development
Topic: OnPaint() of wxScrolledWindow in custom wxFrame
Replies: 17
Views: 7451

Re: OnPaint() of wxScrolledWindow in custom wxFrame

Calling Refresh() in the OnPaint means you have programmed a loop as Refresh() calles again the OnPaint event, in the OnPaint there is calles Refresh again etc. But in the code snippet you provided there is no Refresh() called in your paint event handler. If you got the flickering problem there are ...
by DerKleineNik
Thu Dec 08, 2011 8:25 am
Forum: C++ Development
Topic: problems returning wxString
Replies: 7
Views: 2133

Re: problems returning wxString

Are you using these methods in a thread? Sometimes thies causes problems as wxString is not threadsafe
by DerKleineNik
Tue Dec 06, 2011 6:25 am
Forum: C++ Development
Topic: How to catch wxToolBar button down and button up
Replies: 10
Views: 3347

Re: How to catch wxToolBar button down and button up

Looking at your "why" it seems to me a wxToggleButton would suit your needs quite well. With that controlyou can easily switch your motion on and off. Or do you want the user to be forced to hold down the button all the time while the motion runs?
by DerKleineNik
Fri Dec 02, 2011 6:20 am
Forum: The Code Dump
Topic: wxGrid with MS Excel (copy/paste)
Replies: 11
Views: 27977

Re: wxGrid with MS Excel (copy/paste)

This function is only available in Unicode build, i.e. when wxUSE_UNICODE is 1. Ok... I don't understand where is supposed to be declared wxUSE_UNICODE == 1 It should not be use by default settings??? do I have to define it in someway???? You have to define if you want to use Unicode or not before ...
by DerKleineNik
Wed Nov 30, 2011 6:14 am
Forum: C++ Development
Topic: wxProcess running
Replies: 2
Views: 1176

Re: wxProcess running

Hey, why do you have to work with wxProcess? Isn't there just one thing to do in the programm at the same time? Is there "OnTerminate" called at any time? if not your while loop starts over and over again. Maybe it would be nice to post some more code to be able to understand the program a...
by DerKleineNik
Mon Nov 28, 2011 2:22 pm
Forum: C++ Development
Topic: tab view
Replies: 1
Views: 1238

Re: tab view

What do you mean by Tab view? managing different pages with tabs such as in an web-browser?
IF you want to create that have a look at wxNotebook
-> http://docs.wxwidgets.org/2.8/wx_wxnotebook.html
by DerKleineNik
Fri Nov 25, 2011 7:19 am
Forum: C++ Development
Topic: 2 classes and wxDebug
Replies: 7
Views: 2199

Re: 2 classes and wxDebug

Are these two classes with the same name in the same folder? If yes the Compiler/Linker tries to compile/link them both and problems occur cause it doesn't "know" wich one is the right one. As they have different data try to give them names corresponding to the data to specify them by givi...
by DerKleineNik
Thu Nov 24, 2011 7:47 am
Forum: C++ Development
Topic: need help with wxwidget code
Replies: 6
Views: 1752

Re: need help with wxwidget code

Isn't that already some kinde of "create queue"?
It reads a number of words from the file and "creates" the EditBox text with that words one after the other.
Should you maybe rewrite that code using another kind of loop for example "for" instead of "while"?
by DerKleineNik
Tue Nov 22, 2011 7:43 am
Forum: C++ Development
Topic: about sizer
Replies: 4
Views: 1833

Re: about sizer

Hey,
Sizers always expand the most possible so if you want to have some space between them you have to fill in a spacer:

Code: Select all

SizerXY->Add( 0, 0, 1, wxEXPAND, 5 );
By that you can force the Sizer to leave an empty space between your left and your right sizer.
Hope that helped.
by DerKleineNik
Thu Nov 17, 2011 7:19 am
Forum: C++ Development
Topic: Windows and sub-windows
Replies: 7
Views: 2716

Re: Windows and sub-windows

with no border, bars, icons...just a plain square window you can use then a panel or does it have to be an wxWindow? By using a panel you just have to set an sizer and add this panel to the sizer. You can move and resize the panel using code as you said and you can easily build a canvas in that pan...
by DerKleineNik
Fri Nov 11, 2011 6:29 am
Forum: C++ Development
Topic: Setting icon at the title bar of wxMessageBox
Replies: 4
Views: 2330

Re: Setting icon at the title bar of wxMessageBox

Just have a look at this helppage to wxMessageBox: http://docs.wxwidgets.org/stable/wx_dialogfunctions.html#wxmessagebox You can choose between wxICON_EXCLAMATION Shows an exclamation mark icon. wxICON_HAND Shows an error icon. wxICON_ERROR Shows an error icon - the same as wxICON_HAND. wxICON_QUEST...
by DerKleineNik
Mon Nov 07, 2011 6:23 am
Forum: C++ Development
Topic: Inheriting background color from parent window
Replies: 1
Views: 1059

Re: Inheriting background color from parent window

Hey,

Do you use the bg field when loading the XRC file?
Could you maybe post some code?

Greetings
by DerKleineNik
Thu Nov 03, 2011 7:14 am
Forum: C++ Development
Topic: wxImagePanel
Replies: 2
Views: 2886

Re: wxImagePanel

Can you post some code where you use your wxImagePanel?
Have you maybe initialized it with style - wxTAB_TRAVERSAL - ?