Search found 12297 matches

by doublemax
Fri Jun 22, 2018 8:57 am
Forum: C++ Development
Topic: Charset GB1830
Replies: 1
Views: 12

Re: Charset GB1830

Doing a fulltext search on the wxWidgets sources, i see no support for GB1830. But i see support for GB2312 and CP932 which - according to Wikipedia - are related. Give it a try.
by doublemax
Fri Jun 22, 2018 8:46 am
Forum: C++ Development
Topic: Hover effect on a panel with children
Replies: 9
Views: 133

Re: Hover effect on a panel with children

This is exactly what the code I posted above does? Sorry, didn't see that. Additionally, from the brief testing I did it appears that the Enter/Leave events are not 100% reliable, sometimes I got them (or at least they were logged in a wrong order). Yes. I think for a 100% reliable solution, you'd ...
by doublemax
Thu Jun 21, 2018 9:24 pm
Forum: C++ Development
Topic: Create a GUI starting from c++ source code
Replies: 4
Views: 72

Re: Create a GUI starting from c++ source code

For a quick and dirty solution, you can do it like this: bool MyApp::OnInit() { // comment these out when you are passing parameters but want to handle them yourself //if ( !wxApp::OnInit() ) //return false; if( argc == 3 && argv[1] == "-i" ) { wxLogMessage("input parameter: %...
by doublemax
Thu Jun 21, 2018 9:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Explain Like I'm Five
Replies: 4
Views: 61

Re: Explain Like I'm Five

Try with wx_vc12.sln. Don't build all, just the two configurations you actually need ("debug" and "release" or "DLL debug" and "DLL release"). However, with VS2017 and 3.0.4 there could be the problem that the installed toolkit version is too new. If you get b...
by doublemax
Thu Jun 21, 2018 7:49 pm
Forum: C++ Development
Topic: Hover effect on a panel with children
Replies: 9
Views: 133

Re: Hover effect on a panel with children

I guess you also have to recursively catch the enter/leave events from all descendants.

Here's some sample code that does that for key events:
https://wiki.wxwidgets.org/Catching_key ... ve_connect
This is an older sample that still uses Connect(), you should use Bind() instead.
by doublemax
Thu Jun 21, 2018 1:26 pm
Forum: C++ Development
Topic: Right configuration for wxListCtrl (shall be smaller)
Replies: 6
Views: 38

Re: Right configuration for wxListCtrl (shall be smaller)

What happens if you increase the frame size, does the side bar get wider?
by doublemax
Thu Jun 21, 2018 12:19 pm
Forum: C++ Development
Topic: Right configuration for wxListCtrl (shall be smaller)
Replies: 6
Views: 38

Re: Right configuration for wxListCtrl (shall be smaller)

When hiding it, it is also too wide, same effect.
Which shows that the wxListCtrl is not responsible. Do the same with other parts of the gui until you see a difference.
by doublemax
Thu Jun 21, 2018 11:16 am
Forum: C++ Development
Topic: Right configuration for wxListCtrl (shall be smaller)
Replies: 6
Views: 38

Re: Right configuration for wxListCtrl (shall be smaller)

I'm not sure that the wxListCtrl is the reason. Try hiding it and check if the width of the sidebar changes.
by doublemax
Thu Jun 21, 2018 7:13 am
Forum: C++ Development
Topic: Place of image ...
Replies: 9
Views: 132

Re: Place of image ...

Which control are you using to display the image? What's the overall layout? Are there any other controls in the same sizer structure? If yes, it's pretty much impossible to do. If this shall also work then zooming, you'd need to put the image inside a wxScrolledWindow, so that you can control its r...
by doublemax
Thu Jun 21, 2018 6:53 am
Forum: C++ Development
Topic: Place of image ...
Replies: 9
Views: 132

Re: Place of image ...

If you're using sizers, you don't have control over the exact position. What exactly are you trying to do? And why?
by doublemax
Thu Jun 21, 2018 6:51 am
Forum: General Development
Topic: support for wxPHP needed
Replies: 1
Views: 29

Re: support for wxPHP needed

You should also ask this here: https://groups.google.com/forum/#!forum/wx-dev
by doublemax
Wed Jun 20, 2018 9:43 pm
Forum: C++ Development
Topic: wxColourPickerCtrl live update?
Replies: 3
Views: 35

Re: wxColourPickerCtrl live update?

I would try to take the code from wxGenericColourDialog and build a non-modal version from it. ( <wxdir>/src/generic/colrdlgg.cpp )
by doublemax
Wed Jun 20, 2018 9:18 pm
Forum: C++ Development
Topic: wxColourPickerCtrl live update?
Replies: 3
Views: 35

Re: wxColourPickerCtrl live update?

Unfortunately, no.
by doublemax
Wed Jun 20, 2018 9:09 pm
Forum: C++ Development
Topic: wxDataViewCtrl HitTest problem
Replies: 3
Views: 61

Re: wxDataViewCtrl HitTest problem

but did not find a way to hide the header in order to test this hypothesis.
Add the wxTL_NO_HEADER style flag.

Can you provide a minimal, compilable sample?
by doublemax
Wed Jun 20, 2018 10:18 am
Forum: C++ Development
Topic: Create a GUI starting from c++ source code
Replies: 4
Views: 72

Re: Create a GUI starting from c++ source code

1) So the first question is: I can't have both a main and an OnInit, right? You can theoretically initialize wxWidgets from main (check wxInitializer), but then you won't have an event loop. So it's better to go the "official" wxWidgets way. 2) The c++ program takes from the command line ...

Go to advanced search