Search found 307 matches

by New Pagodi
Wed Jan 30, 2019 11:55 pm
Forum: Platform Related Issues
Topic: Widgets look flat in wxFormbuilder, but not when compiled in IDE
Replies: 11
Views: 638

Re: Widgets look flat in wxFormbuilder, but not when compiled in IDE

I think this is a theme/manifest issue. This topic has come up a few times, but I my search skills are failing me and I can't find any forum links right now. The easy way to solve this is to: 1) create an rc file containing at least the line #include "wx/msw/wx.rc" See <WXROOT>\samples\sample.rc for...
by New Pagodi
Sun Jan 27, 2019 10:11 pm
Forum: Platform Related Issues
Topic: Windows/Msys2 samples/minimal.exe give segmentation fault
Replies: 5
Views: 227

Re: Windows/Msys2 samples/minimal.exe give segmentation fault

Having said that, I just tried to build with configue/make in msys2 and I didn't get a segfault when running the mimimal sample. I did however have to add the path to the libraries to the shell's path before the sample would run. Do you maybe have another set of wxWidgets libraries on your system pa...
by New Pagodi
Sun Jan 27, 2019 10:04 pm
Forum: Platform Related Issues
Topic: Windows/Msys2 samples/minimal.exe give segmentation fault
Replies: 5
Views: 227

Re: Windows/Msys2 samples/minimal.exe give segmentation fault

You don't have to use the configure/make system with msys2. You can just use the mingw make files instead. To do so just start the appropriate shell (MSYS2 MinGW 32-bit or MSYS2 MinGW 64-bit), change to the build folder of your wxWidgets set and enter a command like: mingw32-make -f makefile.gcc BUI...
by New Pagodi
Sat Jan 05, 2019 11:53 pm
Forum: C++ Development
Topic: Drawing selectable and movable shapes
Replies: 1
Views: 144

Re: Drawing selectable and movable shapes

You might want to look at wxShapeFramework. It doesn't look like it's been updated for 3 years though.
by New Pagodi
Sun Dec 30, 2018 6:08 pm
Forum: C++ Development
Topic: resizing widgets within a window without resizing the window itself
Replies: 3
Views: 395

Re: resizing widgets within a window without resizing the window itself

I think the control you're trying to describe is wxSplitterWindow . Here's a basic sample that I think gives the behavior you're describing. // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif // for all others, include ...
by New Pagodi
Fri Dec 21, 2018 11:31 pm
Forum: Compiler / Linking / IDE Related
Topic: wxStyledTextCtrl syntax highlighting depends on way WX is built. Time of miracles.
Replies: 4
Views: 353

Re: wxStyledTextCtrl syntax highlighting depends on way WX is built. Time of miracles.

I think most of the syntax highlighting is done in the SurfaceImpl::DrawTextTransparent method in PlatWX.cpp file (located in the <wxroot>\src\stc\ folder of your wxWidgets source files). Can you try placing a break point in that method and trace through one or more calls to that method and see what...
by New Pagodi
Wed Nov 21, 2018 3:55 am
Forum: Compiler / Linking / IDE Related
Topic: Missing wxchar.h include in crashrpt.cpp?
Replies: 9
Views: 529

Re: Missing wxchar.h include in crashrpt.cpp?

The latest master from git isn't building right now, something with can't find zlib. Not sure could try again tomorrow. You probably didn't include the submodules from the github repo. The following 2 notes from the " Building from Git Sources " might be helpful: Please use --recurse-submodules opt...
by New Pagodi
Fri Oct 12, 2018 11:38 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile error building wxWidgets under msys2
Replies: 3
Views: 929

Re: Compile error building wxWidgets under msys2

I just tried it and got the same error. However the latest version from git does compile.

I don't remember anyone reporting the error with mingw/gcc8.2 so I don't know when or how this problem was fixed.
by New Pagodi
Fri Oct 12, 2018 3:48 pm
Forum: C++ Development
Topic: Assert problem in SearchDynamicEventTable() when calling a calltip from within a styled text ctrl
Replies: 4
Views: 544

Re: Assert problem in SearchDynamicEventTable() when calling a calltip from within a styled text ctrl

There was this commit about a year ago that slightly changed the dwell timer that would be used to trigger the call tip. But it didn't really change the events used used or thrown by wxSTC in any way, so I don't think it could be responsible. Nevertheless, can you revert to the preceding commit (6c0...
by New Pagodi
Mon Oct 08, 2018 2:19 pm
Forum: C++ Development
Topic: Number as text input
Replies: 4
Views: 1300

Re: Number as text input

It sounds like the control you're looking for is wxSpinCtrl.
by New Pagodi
Wed Jul 11, 2018 6:31 pm
Forum: Platform Related Issues
Topic: wxStyledTextCtrl Cut/Copy/Paste not working
Replies: 5
Views: 2473

Re: wxStyledTextCtrl Cut/Copy/Paste not working

Well the cut method is defined in the Scintilla source as: void Editor::Cut() { pdoc->CheckReadOnly(); if (!pdoc->IsReadOnly() && !SelectionContainsProtected()) { Copy(); ClearSelection(); } } So if you're saying copy isn't working, and cut deletes the text but doesn't place it on the clipboard, I g...
by New Pagodi
Wed Jul 04, 2018 1:44 am
Forum: C++ Development
Topic: Keeping track of the state of the input devices
Replies: 7
Views: 536

Re: Keeping track of the state of the input devices

Firstly, wxWidgets don't store the full keyboard and mouse states anywhere, you can only get what the changes are with the event. At anytime, you can call the global wxGetMouseState() . It returns a wxMouseState object that derives from wxKeyboardState which contains information about which keys, i...
by New Pagodi
Thu Jun 28, 2018 2:57 am
Forum: C++ Development
Topic: transparent pattern brush
Replies: 3
Views: 319

Re: transparent pattern brush

as I said, I don't know background color. The background may be an image. so I can't set the background color. You're right. This won't work with with a background that isn't a solid color. I don't think you can actually draw with a stipple brush using transparency in a wxDC because at least on win...
by New Pagodi
Wed Jun 27, 2018 7:20 pm
Forum: C++ Development
Topic: transparent pattern brush
Replies: 3
Views: 319

Re: transparent pattern brush

From what I can tell, to use the wxBRUSHSTYLE_STIPPLE_MASK brush style, there must be a wxMask set on the stipple bitmap. The it will draw anything in the foreground color of the wxMask using the wxDC's text foreground color and anything in the mask's background color using the DC's text background ...
by New Pagodi
Sun Jun 03, 2018 10:29 pm
Forum: C++ Development
Topic: wxstyledtextctrl (Scintilla) - How to change style of a specific line
Replies: 4
Views: 506

Re: wxstyledtextctrl (Scintilla) - How to change style of a specific line

Thank you New Pagodi, the code is exactly what i m looking for ^_^ I have two questions please, how to clear the Indicator Style ? i didn't find a solution in the documentations !, You can the wxStyledTextCtrl::IndicatorClearRange(int position, int clearLength) method to clear an indicator. The cod...