Search found 452 matches

by mael15
Thu Mar 18, 2010 5:12 pm
Forum: C++ Development
Topic: wxButton on top of wxDC
Replies: 8
Views: 1683

ok, in other words, i would like to have a button on top of an area i painted with wxPaintDC. is that possible?

maybe by putting the painted stuff in the window background somehow?
by mael15
Thu Mar 18, 2010 4:34 pm
Forum: C++ Development
Topic: wxButton on top of wxDC
Replies: 8
Views: 1683

wxButton on top of wxDC

hi,

is it possible to have a button on top of a device context?
i would like to have a button that only shows on top of a dc when the mouse is within the dc.

thanx!
by mael15
Mon Mar 15, 2010 12:16 pm
Forum: C++ Development
Topic: wxNotebook corner colour of tabs
Replies: 0
Views: 373

wxNotebook corner colour of tabs

hi,

my problem is, after i change the background colour of wxNotebook to a dark grey, the corners of the tabs still remain light grey which looks bad.
see a picture in the attachment.

how can i change this?
thanx!
by mael15
Mon Feb 22, 2010 2:15 pm
Forum: C++ Development
Topic: problem with show/hide in nested dialogs
Replies: 5
Views: 1034

works like a charm, thanx!!!
by mael15
Thu Feb 18, 2010 5:30 pm
Forum: C++ Development
Topic: problem with show/hide in nested dialogs
Replies: 5
Views: 1034

thanx,

wxWizard is an option, but i only have one more window to show, so it does not seem the best choice.
by mael15
Thu Feb 18, 2010 4:18 pm
Forum: C++ Development
Topic: problem with show/hide in nested dialogs
Replies: 5
Views: 1034

problem with show/hide in nested dialogs

hi, in my app i have a settings dialog. in that dialog, there is a button opening a second dialog. while the second dialog is displayed, the first should be hidden, so i use first->Hide(). the problem is, when i call first->Show() after/while destroying the second dialog, the first is also destroyed...
by mael15
Mon Dec 07, 2009 10:47 am
Forum: C++ Development
Topic: wxString in .cpp in dll causes heap error
Replies: 4
Views: 1130

thanx, it worked when i changed every wxString into cont wxChar*. i do not understand why, but that´s ok.
by mael15
Thu Dec 03, 2009 3:09 pm
Forum: C++ Development
Topic: wxString in .cpp in dll causes heap error
Replies: 4
Views: 1130

thanx for your thought! but i still do not understand, why it works in the .h and not in the .cpp file. it does not change a thing if i use wxString string("test", wxConvUTF8); setStrg(string); instead. what you recommend is exactly what i did. first have everything in the application, then in the d...
by mael15
Thu Dec 03, 2009 10:45 am
Forum: C++ Development
Topic: wxString in .cpp in dll causes heap error
Replies: 4
Views: 1130

wxString in .cpp in dll causes heap error

i dont get it: i have a simple object in a statically linked dll like this: class DECLDIR test{ public: test(wxString _str); ~test(){}; protected: void setStrg(wxString _string) { str = _string; } wxString str; }; while DECLDIR is #ifndef DLL_EXPORT #define DECLDIR __declspec(dllimport) #else #defin...
by mael15
Mon Nov 30, 2009 2:03 pm
Forum: Compiler / Linking / IDE Related
Topic: R6034 with WXUSINGDLL
Replies: 2
Views: 931

ok problem solved, although i am not sure why. one of the two dlls was linking into the $(WXWIN)/lib/vc_ lib and the other into $(WXWIN)/lib/vc_ dll . same difference with the $(WXADDITIONS)/lib/vc_lib folder. changing both to link into the lib folder solved the problem. i had overlooked this small ...
by mael15
Mon Nov 30, 2009 1:00 pm
Forum: Compiler / Linking / IDE Related
Topic: R6034 with WXUSINGDLL
Replies: 2
Views: 931

and one thing is a mystery to me: i have two wxWidgets dlls, one compiles without WXUSINGDLL and the other doesn´t. how can that be? i thought i could avoid the r6034 by making every dll compile without WXUSINGDLL.
by mael15
Mon Nov 30, 2009 10:19 am
Forum: Compiler / Linking / IDE Related
Topic: R6034 with WXUSINGDLL
Replies: 2
Views: 931

R6034 with WXUSINGDLL

hi everybody! i am writing a wxWidgets dll and to compile it, i have to use the preprocessor symbol WXUSINGDLL to get rid of a "LNK2001: unresolved external symbol "char const * const wxEmptyString"" error. now when i try to use this dll for testing with the wxWidgets grid sample, i get this: Debug ...
by mael15
Tue Jun 09, 2009 1:13 pm
Forum: C++ Development
Topic: dc tutorial clipping when resizing
Replies: 1
Views: 454

dc tutorial clipping when resizing

hi, i wanted to understand how redrawing and resizing work by customizing the very simple tutorial http://zetcode.com/tutorials/wxwidgetstutorial/gdi/ the problem is that the line is cut off when i maximaize the window. the direction is correct, but the line is no longer than the size of the device ...
by mael15
Tue May 26, 2009 7:49 am
Forum: Compiler / Linking / IDE Related
Topic: LNK2019 and WX_DEFINE_EXPORTED_ARRAY
Replies: 4
Views: 819

aaaaah yeah!
that helped me a great deal, thanx!
absolutely nothing to find about this on the net...
by mael15
Mon May 25, 2009 3:41 pm
Forum: Compiler / Linking / IDE Related
Topic: LNK2019 and WX_DEFINE_EXPORTED_ARRAY
Replies: 4
Views: 819

yeah, that sounds great!
stupid question maybe, but what do they mean with the third parameter "exportspec"? i cound not find any explanation...