Search found 1969 matches

by PB
Thu Jul 11, 2019 6:53 pm
Forum: C++ Development
Topic: Inputs and Cursor in wxPopup(Transient)Window
Replies: 2
Views: 45

Re: Inputs and Cursor in wxPopup(Transient)Window

You did not say which platform are you using. I could fix similar problem on MSW with calling UseAltPopupWindow() before calling SetPopupControl(): https://forums.wxwidgets.org/viewtopic.php?t=45076#p186665 BTW, IIRC, wxPopupWindow was significantly changed in the master, it had quite some time issu...
by PB
Thu Jul 11, 2019 4:07 pm
Forum: C++ Development
Topic: App crashes on closing
Replies: 5
Views: 64

Re: App crashes on closing

Most likely you put a sizer item (either a window or another sizer) into two (or more) different sizers. I believe that unlike wxSizers, wxWindows are guarded (with an assert) against being put in more than sizer so the culprit is most likely a sizer. The posted code with wxSizerItem's m_kind being...
by PB
Thu Jul 11, 2019 6:38 am
Forum: C++ Development
Topic: User Input
Replies: 11
Views: 160

Re: User Input

BTW, if the text control is for numbers only, you may consider using wxSpinCtrl instead of wxTextCtrl. With wxSpinCtrl you can be sure that the user entered a number and that number is within a range.
by PB
Tue Jul 09, 2019 8:36 pm
Forum: Component Writing
Topic: accessibility for a blinds users on my project
Replies: 5
Views: 142

Re: accessibility for a blinds users on my project

Hello! I have no experience with accessibility but I noticed that you are using wxWidgets version 3.0.4. Accessibility support under Windows should be significantly improved in version 3.1.2 so perhaps you could try this version. While 3.1 branch is marked "unstable", it should be safe to use, in it...
by PB
Tue Jul 09, 2019 6:54 pm
Forum: C++ Development
Topic: Colour List
Replies: 9
Views: 157

Re: Colour List

Good to hear. Still, I think that even the second code example I posted was not that great. It was technically correct but perhaps confusing as it was not really anywhere close to a real-world scenario, where the list items probably would not be mapped to the list item attributes one to one. Hopeful...
by PB
Tue Jul 09, 2019 6:15 am
Forum: C++ Development
Topic: Colour List
Replies: 9
Views: 157

Re: Colour List

PB, Unless you have thousands of items no need to make the control virtual. And I believe the OP is looking to color row/column and not the individual cell(s). ONEEYMAN, gillp28 wrote I want one column to have a label and the other column has the background colour corresponding to the label and eve...
by PB
Mon Jul 08, 2019 7:31 pm
Forum: C++ Development
Topic: Colour List
Replies: 9
Views: 157

Re: Colour List

And to add to what others have already said. I believe that having each item colored differently in different columns is supported only on Windows. Anyway, one needs to create wxListCtrl with wxLC_REPORT and wxLC_VIRTUAL flags where you override OnGetItemText() and OnGetItemColumnAttr(). Here is a s...
by PB
Sun Jul 07, 2019 7:00 am
Forum: Compiler / Linking / IDE Related
Topic: [SOLVED] Can't compile wxWidgets-3.0.4
Replies: 8
Views: 165

Re: Can't compile wxWidgets-3.0.4

Yeah. Your answer might have possibly been a good solution, but it wasn't. I am sorry, I do not understand? The solution I provided fixed the error you asked about so how comes it was not a good solution? You failing again with a different error has no relevance. And as the only information about t...
by PB
Sat Jul 06, 2019 1:01 pm
Forum: Compiler / Linking / IDE Related
Topic: [SOLVED] Can't compile wxWidgets-3.0.4
Replies: 8
Views: 165

Re: Can't compile wxWidgets-3.0.4

I recommend searching for the problem before creating a new post, it will save you time and effort.

The issue is discussed (including possible solutions) e.g. here
viewtopic.php?f=19&t=44282&hilit=__mingw_stdio_redirect__
by PB
Wed Jul 03, 2019 7:38 pm
Forum: The Code Dump
Topic: wxExplorerBrowser
Replies: 5
Views: 140

Re: wxExplorerBrowser

I do not think it can be extended, it is just a wrapper for a native windows control. In fact, I do not plan to do anything with it. As I could not make filtering work in the folders which are part of Windows Libraries, I abandoned the project about 1.5 years ago and it has been rotting on my disk s...
by PB
Wed Jul 03, 2019 7:05 pm
Forum: C++ Development
Topic: Monospace font in TextCtrl?
Replies: 15
Views: 165

Re: Monospace font in TextCtrl?

I need the TAB width to be smaller, like in IDEs and editors. Well, you could have used wxTextAttr.SetTabStops() then. But if you need code editor, wxSTC is much better for that. The "GUI" you refer to is a wxWidgets application (available on the link I provided) which helps understand how wxSTC wo...
by PB
Wed Jul 03, 2019 6:34 pm
Forum: C++ Development
Topic: Monospace font in TextCtrl?
Replies: 15
Views: 165

Re: Monospace font in TextCtrl?

Just curious: why do you need tabs? As I wrote before, tabulators are not common in text, perhaps aside from being used as an indentation for the first row of the paragraph. wxStyledTextCtrl is mainly the code editor, where the styles are used (not only) for syntax coloring of programming languages,...
by PB
Wed Jul 03, 2019 6:00 pm
Forum: C++ Development
Topic: wxEVT_LEFT_DOWN on menuBar
Replies: 8
Views: 173

Re: wxEVT_LEFT_DOWN on menuBar

I would say that at least on MSW, it probably cannot work. While wxMenuBar is in wxWidgets derived from wxWindow, the native menu is not a window (it does not have a HWND, it is a HMENU). The menubar there is considered part of the non-client area and DefWindowProc returns HTMENU in response to WM_N...
by PB
Wed Jul 03, 2019 3:01 pm
Forum: The Code Dump
Topic: wxExplorerBrowser
Replies: 5
Views: 140

Re: wxExplorerBrowser

The I in IExplorerBrowser stands for Interface, not Internet. ;) The control is basically what is the main part in File Explorer (or modern Open/Save File dialog), it has nothing to do with Internet Explorer. In wxWidgets terms the closest control would be wxFileCtrl. Depending on many options, the ...
by PB
Wed Jul 03, 2019 9:40 am
Forum: The Code Dump
Topic: wxExplorerBrowser
Replies: 5
Views: 140

wxExplorerBrowser

wxExplorerBrowser is a wxWidgets control hosting IExplorerBrowser . wxExplorerBrowser does not support all the features of IExplorerBrowser and may have some issues, see the comment for wxExplorerBrowserImplHelper::_SetFilter() in the source code. I ended up not using it in my project, it probably i...