Search found 10 matches

by gasko
Sun Jun 13, 2021 2:05 pm
Forum: C++ Development
Topic: How to change the caret for a wxTextCtrl?
Replies: 1
Views: 824

How to change the caret for a wxTextCtrl?

I've tried changing the caret for a wxTextCtrl the same way they do in the wxCaret demo, however have had no luck. This is my code: #include "wx/wx.h" #include "wx/caret.h" #include "wx/textctrl.h" class MyApp : public wxApp { public: virtual bool OnInit() wxOVERRIDE; }; wxIMPLEMENT_APP(MyApp); bool...
by gasko
Mon Feb 01, 2021 12:35 pm
Forum: C++ Development
Topic: Order of wxEVT_LEAVE_WINDOW and wxEVT_ENTER_WINDOW events
Replies: 2
Views: 223

Order of wxEVT_LEAVE_WINDOW and wxEVT_ENTER_WINDOW events

I have two buttons on a panel that are placed very close to each other (within a few pixels). I have bound to the wxEVT_LEAVE_WINDOW and wxEVT_ENTER_WINDOW events for both buttons. I need to complete a task whenever the mouse has left the one button and start a task when the mouse enters the other b...
by gasko
Sat Dec 19, 2020 8:31 pm
Forum: Compiler / Linking / IDE Related
Topic: CMake Setup on Windows Trouble
Replies: 1
Views: 283

CMake Setup on Windows Trouble

I am really struggling to setup wxWidgets to work on Windows and CMake and would appreciate some help. I have downloaded wxWidgets 3.1.4, run the setup (which extracted to C:\CPP_lib\wxWidgets) and then ran the following commands in the terminal: cd C:\CPP_lib mkdir wxWidgets-install cmake C:\CPP_li...
by gasko
Thu Dec 10, 2020 12:19 pm
Forum: C++ Development
Topic: Purpose of wxAuiToolBar?
Replies: 2
Views: 238

Purpose of wxAuiToolBar?

I've noticed that a specific class for a toolbar called wxAuiToolBar was created for wxAui. What was the purpose of this? I have tested docking a normal wxToolBar and it works perfectly fine. What are the advantages of using a wxAuiToolBar as opposed to a normal wxToolBar? The reason I am asking is ...
by gasko
Mon Nov 30, 2020 11:56 am
Forum: C++ Development
Topic: wxMDIChildWindow inside wxAuiNotebook tab?
Replies: 1
Views: 228

wxMDIChildWindow inside wxAuiNotebook tab?

Hi all. I am looking to have multiple wxMDIChildWindow's inside a wxAuiNotebook tab, but I am struggling to get it to work. (please do not comment on design choices, platform compatibility etc. - this is definitely what I would like). My issue is that a wxMDIChildWindow has to be inside a wxMDIClien...
by gasko
Thu Nov 05, 2020 1:12 pm
Forum: Compiler / Linking / IDE Related
Topic: Prevent auto-linking with nested static libraries
Replies: 2
Views: 531

Prevent auto-linking with nested static libraries

I have a program, App.exe, which links against my own private library, MyLib.lib. I would like to link wxWidgets into MyLib.lib directly, so that App.exe only links against MyLib.lib and not MyLib.lib and all the required wxWidgets libraries. This is due to the fact that it makes more sense for my g...
by gasko
Wed Oct 14, 2020 12:24 pm
Forum: C++ Development
Topic: wxScrollbar with label over scroll component
Replies: 1
Views: 198

wxScrollbar with label over scroll component

I would like to use a wxScrollbar similar to a wxSlider, except that I would like to display the "value" of the scrollbar on top of the actual grey rectangle that the user clicks on and drags to scroll left and right. The text value will most likely be a simple number such as "15". Are there any bui...
by gasko
Tue Aug 11, 2020 9:34 am
Forum: C++ Development
Topic: Remove white border from panel inside wxAUINotebook page
Replies: 1
Views: 230

Remove white border from panel inside wxAUINotebook page

I am using wxWidgets 3.1.3 and Windows 10. If you run the AUI demo project and click on the second page named "wxPanel", there is an inconsistently-spaced white border around the panel. Is this a bug? Or is there a way for me to remove this border? It looks highly unprofessional. I have attached a s...
by gasko
Thu Jun 25, 2020 1:01 pm
Forum: Component Writing
Topic: Extending wxComboBox - thin separator line between items
Replies: 8
Views: 9288

Re: Extending wxComboBox - thin separator line between items

Could you possibly expand on how you achieved this with wxOwnerDrawnComboBox please? I'm looking to do the same :)
by gasko
Mon Apr 13, 2020 11:36 am
Forum: Compiler / Linking / IDE Related
Topic: Non-Unicode/MBCS wxWidgets build for Visual Studio [How we solved it]
Replies: 9
Views: 1547

Non-Unicode/MBCS wxWidgets build for Visual Studio [How we solved it]

Hi all We have a large legacy project which uses "Multi-Byte Character Set" i.e. ANSI char options instead of Unicode and therefore needed to build wxWidgets for MBCS as well. There were lots of issues in doing this, such as the following linker error: - unresolved external symbol wxAppConsoleBase::...