Search found 15058 matches

by doublemax
Fri Sep 25, 2020 8:24 pm
Forum: C++ Development
Topic: Is wxGrid Incomplete?
Replies: 3
Views: 17

Re: Is wxGrid Incomplete?

Which platform? Do you also see this in the "grid" sample?
by doublemax
Fri Sep 25, 2020 3:19 pm
Forum: C++ Development
Topic: Set background color for wxTextEntryDialog
Replies: 6
Views: 47

Re: Set background color for wxTextEntryDialog

Try creating a wxDialog and try to change its background color. If that doesn't work, put a wxPanel on the dialog and set its background color. If any of these two work, you can at least build a new text entry dialog from scratch.
by doublemax
Fri Sep 25, 2020 2:19 pm
Forum: C++ Development
Topic: Set background color for wxTextEntryDialog
Replies: 6
Views: 47

Re: Set background color for wxTextEntryDialog

dlg.SetBackgroundColour( * wxBLUE); That's the right one and works for me under Windows. What plaform are you on? If it's OSX, there's a good chance that you can't change the color. Apple is very strict about what's proper GUI design and what's not. And yes, changing the background of any window is...
by doublemax
Fri Sep 25, 2020 12:25 pm
Forum: Compiler / Linking / IDE Related
Topic: Using wxWidgets with Win10, msys2, mingw64 and CLion
Replies: 1
Views: 40

Re: Using wxWidgets with Win10, msys2, mingw64 and CLion

Maybe you should start with the standard: Building wxWidgets and then the "minimal" sample that comes with wxWidgets, with MinGW. This is all well documented in <wxdir>/docs/msw/install.md and e.g. https://forums.wxwidgets.org/viewtopic.php?f=19&t=47231 (Although this uses CodeBlocks, the first part...
by doublemax
Thu Sep 24, 2020 8:45 pm
Forum: General Development
Topic: licence de wxWidgets et ses obligations
Replies: 13
Views: 261

Re: licence de wxWidgets et ses obligations

IMHO the Android port for wxWidgets is pretty much useless except for very simple demos. Your best chance to use wxWidgets on Android would be via wxQT. But even this is probably non-trivial:
https://github.com/reingart/wxWidgets/w ... droidNotes
by doublemax
Thu Sep 24, 2020 8:39 pm
Forum: Compiler / Linking / IDE Related
Topic: wxGridStringTable in static library -> undefined reference
Replies: 2
Views: 57

Re: wxGridStringTable in static library -> undefined reference

In the linker command line move your library libwxmodel in front of the wx libraries. https://stackoverflow.com/questions/45135/why-does-the-order-in-which-libraries-are-linked-sometimes-cause-errors-in-gcc Dependencies of static libraries against each other work the same - the library that needs sy...
by doublemax
Thu Sep 24, 2020 11:19 am
Forum: C++ Development
Topic: How to change aui tab color ?
Replies: 8
Views: 135

Re: How to change aui tab color ?

This method is in my art class: MyBaseTabArt How is that supposed to work? AUIs internal drawing routines only know about and use the methods from wxAuiTabArt. By subclassing wxAuiTabArt and overwriting one or more of its virtual methods, you can change what is drawn. Adding a new, unknown method w...
by doublemax
Thu Sep 24, 2020 8:36 am
Forum: Platform Related Issues
Topic: DrawLabel function of wxClientDc not working in Mac 11 Big Sur.
Replies: 2
Views: 72

Re: DrawLabel function of wxClientDc not working in Mac 11 Big Sur.

Which wxWidgets version are you using? For OS X 11 you need at least 3.1.4 or the latest version from GIT.
by doublemax
Thu Sep 24, 2020 8:29 am
Forum: C++ Development
Topic: How to change aui tab color ?
Replies: 8
Views: 135

Re: How to change aui tab color ?

There is no method called GetFontColour() in wxAuiTabArt.
by doublemax
Mon Sep 21, 2020 5:38 pm
Forum: C++ Development
Topic: How to closing wxAuiNotebook pages after ask?
Replies: 1
Views: 49

Re: How to closing wxAuiNotebook pages after ask?

From the "aui" sample: void MyFrame::OnNotebookPageClose(wxAuiNotebookEvent& evt) { wxAuiNotebook* ctrl = (wxAuiNotebook*)evt.GetEventObject(); if (ctrl->GetPage(evt.GetSelection())->IsKindOf(CLASSINFO(wxHtmlWindow))) { int res = wxMessageBox(wxT("Are you sure you want to close/hide this notebook pa...
by doublemax
Sun Sep 20, 2020 8:11 pm
Forum: Compiler / Linking / IDE Related
Topic: How do I create a .exe from my wxsmith project?
Replies: 5
Views: 91

Re: How do I create a .exe from my wxsmith project?

Sorry, i overlooked that you're using Linux. Linux doesn't use .exe extension, binaries are just marked as executable with a flag. So you want to create a Windows .exe under Linux? This is called cross-compiling, and AFAIK not trivial to set up. At least i don't know how to do it. Please use Google ...
by doublemax
Sun Sep 20, 2020 8:06 pm
Forum: C++ Development
Topic: How do I make a break line in a textctrl?
Replies: 5
Views: 94

Re: How do I make a break line in a textctrl?

void DeutschprojektFrame::OnButton1Click1(wxCommandEvent& event) { wxTextCtrl *control = new wxTextCtrl(...); std::streambuf *sbOld = std::cout.rdbuf(); std::cout.rdbuf(control); cout << "test" << endl << "test2"; std::cout.rdbuf(sbOld); } That code doesn't make any sense, you probably don't want t...
by doublemax
Sun Sep 20, 2020 8:02 pm
Forum: Compiler / Linking / IDE Related
Topic: How do I create a .exe from my wxsmith project?
Replies: 5
Views: 91

Re: How do I create a .exe from my wxsmith project?

So you can compile and run your application from inside the IDE? Then the exe must be somewhere ;)
It won't bin in any /bin directory, it should be in a folder inside the project directory, the name depends on the compiler and configuration, but it should be something like /gcc_mswud32 or similar.
by doublemax
Fri Sep 18, 2020 3:56 pm
Forum: C++ Development
Topic: Per-word autocomplete
Replies: 8
Views: 223

Re: Per-word autocomplete

I haven't tested it, but try these two changes:

a) Pass wxPU_CONTAINS_CONTROLS to the wxPopupTransientWindow constructor, like in the sample code you linked to
b) The IDs for the controls should start at wxID_HIGHEST+1, otherwise they can collide with IDs used by wxWidgets internally.