Search found 355 matches

by New Pagodi
Sun Oct 18, 2020 3:10 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets 3.1.4 using nmake: libtiff error
Replies: 1
Views: 86

Re: Compiling wxWidgets 3.1.4 using nmake: libtiff error

Are you sure you need all that extra stuff? I just tried compiling the latest git version with nmake -f makefile.vc SHARED=0 BUILD=release TARGET_CPU=X64 and it worked just fine. I don't know what most of the extra you have does, but I know at least adding MP isn't going to do any good. nmake always...
by New Pagodi
Fri Oct 02, 2020 7:10 pm
Forum: C++ Development
Topic: problem with array of wxPanel
Replies: 22
Views: 526

Re: problem with array of wxPanel

If you're on windows, there is a limit to the number of windows your allowed to create: There is a theoretical limit of 65,536 user handles per session. However, the maximum number of user handles that can be opened per session is usually lower, since it is affected by available memory. There is als...
by New Pagodi
Tue Sep 29, 2020 3:35 pm
Forum: C++ Development
Topic: how to display array of hex bytes into control and translate to ascii
Replies: 3
Views: 256

Re: how to display array of hex bytes into control and translate to ascii

Here's a small example to dump the contents of a file to a wxStyledTextCtrl in hex form. Maybe you can adapt it for what you want to do. // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif // for all others, include the ...
by New Pagodi
Tue Sep 08, 2020 3:00 pm
Forum: C++ Development
Topic: wxStyledTextCtrl keyword lists
Replies: 3
Views: 245

Re: wxStyledTextCtrl keyword lists

You can only use keywords lists that the lexer will actually assign. For the c++ lexer this is currently keyword list number corresponding style ------------- --- --------------- Primary keywords and identifiers 0 wxSTC_C_WORD Secondary keywords and identifiers 1 wxSTC_C_WORD2 Documentation comment ...
by New Pagodi
Mon Sep 07, 2020 3:54 pm
Forum: C++ Development
Topic: Per-word autocomplete
Replies: 12
Views: 494

Re: Per-word autocomplete

I haven't tried the styled control yet, but from the wxFormBuilder it looked like it is intended for big text windows and I haven't found a way how to remove its' scroll bars. Because I need to have basically just one line search bar where you can enter multiple words. But I don't need or want any ...
by New Pagodi
Thu Sep 03, 2020 2:09 pm
Forum: C++ Development
Topic: Per-word autocomplete
Replies: 12
Views: 494

Re: Per-word autocomplete

If you don't mind using wxStyledTextControl, its autocomplete feature can function in the manor you're describing.
by New Pagodi
Sat Aug 15, 2020 2:48 pm
Forum: C++ Development
Topic: A Window containing freely movable child windows?
Replies: 5
Views: 203

Re: A Window containing freely movable child windows?

AUI used tabs for MDI and doesn't seem to offer freely movable/resizable windows. ??? Are you thinking of wxAuiNotebook? wxAuiNotebook is only one small part of the the Aui docking system. Usually when using Aui you have windows docking left/right or above/below other windows with a splitter for re...
by New Pagodi
Fri Aug 14, 2020 11:07 pm
Forum: C++ Development
Topic: A Window containing freely movable child windows?
Replies: 5
Views: 203

Re: A Window containing freely movable child windows?

wxWidgets offers AUI. This video shows a demo.
by New Pagodi
Tue Aug 04, 2020 2:06 am
Forum: C++ Development
Topic: dynamic events for check boxes
Replies: 2
Views: 155

Re: dynamic events for check boxes

You can iterate over the dialogs children and check which ones are check boxes like this: wxWindowList children = dialog->GetChildren(); for ( auto it = children.begin() ; it != children.end() ; ++ it ) { wxCheckBox* c = wxDynamicCast(*it,wxCheckBox); if ( c ) { // Do something with with the check b...
by New Pagodi
Sun Aug 02, 2020 12:37 pm
Forum: Platform Related Issues
Topic: [wxMSW] How can I create a wxBrush from an existing HBRUSH?
Replies: 2
Views: 203

Re: [wxMSW] How can I create a wxBrush from an existing HBRUSH?

There doesn't seem to be a MSW only InitFromHBRUSH method like there is with some of the other GDI objects. But what you can do is call GetObject to get a LOGBRUSH. Then use the information in that structure to create a wxBrush.
by New Pagodi
Tue Jul 07, 2020 8:42 pm
Forum: Platform Related Issues
Topic: macOS on ARM CPU
Replies: 3
Views: 371

Re: macOS on ARM CPU

Here's a discussion of ARM support for macOS from the wxDev group.

Basically the plan is to build universal binaries containing both ARM and x86-64 code similar to how the situation was handled during the transition from powerpc to x86.
by New Pagodi
Sun Jun 07, 2020 4:19 am
Forum: C++ Development
Topic: Memory Management of a panel using unique_ptr
Replies: 2
Views: 241

Re: Memory Management of a panel using unique_ptr

Just use raw pointers. The panel is owned by the frame and so it will be deleted when the frame is destroyed. So there is no possibility of leaking the panel object.
by New Pagodi
Fri Jun 05, 2020 4:41 pm
Forum: C++ Development
Topic: Can't set wxChoice background color
Replies: 2
Views: 273

Re: Can't set wxChoice background color

Setting colors for native controls is usually not a good idea. It may not work or may not work as intended. Even if it works on one port, it may not work on other ports. As the documentation states : Notice that as with SetForegroundColour(), setting the background colour of a native control may not...
by New Pagodi
Thu May 21, 2020 7:39 pm
Forum: Platform Related Issues
Topic: wxSplitterWindow broken on Windows?
Replies: 2
Views: 299

Re: wxSplitterWindow broken on Windows?

Code: Select all

SetSizerAndFit ( sizer );
This tells all windows to resize to the minimum size. Just use SetSizer instead.
by New Pagodi
Tue May 19, 2020 5:49 pm
Forum: C++ Development
Topic: Real-time Graphical Output on a wxPanel from within a wxThread
Replies: 2
Views: 226

Re: Real-time Graphical Output on a wxPanel from within a wxThread

As the documentation states : When writing a multi-threaded application, it is strongly recommended that no secondary threads call GUI functions. What you can do is throw an event from your secondary thread and then in the handler for that event call Update/Refresh on the panel. The page for wxThrea...