Search found 13398 matches

by doublemax
Tue May 21, 2019 5:28 pm
Forum: C++ Development
Topic: centering wxbusyinfo on parent app rather than primary monitor
Replies: 2
Views: 38

Re: centering wxbusyinfo on parent app rather than primary monitor

Do you pass the app window as parent for wxBusyInfo? It should center on that window. If it doesn't it could be considered a bug and it might be worth opening a ticket at http://trac.wxwidgets.org
by doublemax
Tue May 21, 2019 2:05 pm
Forum: C++ Development
Topic: wxTextCtrl: Switching on the fly from wrap to hscroll
Replies: 11
Views: 71

Re: wxTextCtrl: Switching on the fly from wrap to hscroll

rocrail wrote:
Tue May 21, 2019 2:00 pm
Hi,
OK, but what purpose has the SetWindowStyleFlag function if it has more or less no effect?
It works for some (maybe even many) flags, but not for all.
by doublemax
Tue May 21, 2019 10:59 am
Forum: C++ Development
Topic: wxGrid open cell editor after tab
Replies: 14
Views: 136

Re: wxGrid open cell editor after tab

Thanx, this somehow works, but the focus jumps out of the grid when pressing tab in the choiceEditor. That was just a test. The next step would be to find out what exactly make the choice editor disappear. Do you think this is something to post as a wxwidgets bug? I mean the necessity to use CallAf...
by doublemax
Mon May 20, 2019 10:11 pm
Forum: C++ Development
Topic: Append .bmp using wxHtmlEasyPrinting
Replies: 1
Views: 25

Re: Append .bmp using wxHtmlEasyPrinting

Yes, this is possible. The easiest way is to save the file to a temporary path and just create a normal <img> tag with the absolute path. A more elegant, but also more complicated way would be to use wxMemoryFS in order to display the file from memory. The documentation for wxMemoryFS shows some sam...
by doublemax
Mon May 20, 2019 10:06 pm
Forum: C++ Development
Topic: wxGrid open cell editor after tab
Replies: 14
Views: 136

Re: wxGrid open cell editor after tab

Unfortunately i didn't have enough time tonight to dig deep into it. But i traced through the code and the wxChoice editor definitely gets created and shown, but it closes again very quickly. I think even with CallAfter, the call to EnableCellEditControl() comes too early in this case. The next step...
by doublemax
Mon May 20, 2019 4:45 pm
Forum: C++ Development
Topic: how to know which notebook page we are in and which option is selected from the wxComboBox
Replies: 2
Views: 40

Re: how to know which notebook page we are in and which option is selected from the wxComboBox

In cases like this the first thing to do is to browse through the public methods of the classes in question. E.g. wxNoteBook only has a few methods and you quickly would have discovered: wxNotebook::GetPageText https://docs.wxwidgets.org/trunk/classwx_notebook.html#ac918c84c13ed08e7a185a5edc1116910 ...
by doublemax
Mon May 20, 2019 4:04 pm
Forum: C++ Development
Topic: wxGrid open cell editor after tab
Replies: 14
Views: 136

Re: wxGrid open cell editor after tab

Can you strip together a running sample?
by doublemax
Mon May 20, 2019 3:52 pm
Forum: Compiler / Linking / IDE Related
Topic: DLL build with MSVC works but GCC wont
Replies: 16
Views: 177

Re: DLL build with MSVC works but GCC wont

These two are the key conditions: - DLL must have its own set of wxWidgets libraries (or not use wxWidgets at all). This means that you must not have the case where both the host app and the DLL link dynamically to wxWidgets. All other combinations should work. I assume that this happens when you bu...
by doublemax
Mon May 20, 2019 3:47 pm
Forum: C++ Development
Topic: wxTextCtrl: Switching on the fly from wrap to hscroll
Replies: 11
Views: 71

Re: wxTextCtrl: Switching on the fly from wrap to hscroll

These flags are usually converted to the corresponding flags for the underlying native control only when it is created. But changing these flags afterwards is sometimes not supported.

You'll probably have to recreate the control if you want to change that style.
by doublemax
Mon May 20, 2019 3:17 pm
Forum: Platform Related Issues
Topic: wxDataViewCtrl issues under mac os
Replies: 5
Views: 74

Re: wxDataViewCtrl issues under mac os

I don't think that's possible with the native control. But if you don't want scrollbars, you probably only have a fixed, small number of items to display. Does wxGrid work for your purpose? It's a generic control, so you have more control over it,
by doublemax
Mon May 20, 2019 5:13 am
Forum: Platform Related Issues
Topic: wxDataViewCtrl issues under mac os
Replies: 5
Views: 74

Re: wxDataViewCtrl issues under mac os

I found wxDataViewCtrl just inherited from wxDataViewCtrlBase under Mac OSX, but under Windows, it is inherited from wxDataViewCtrlBase and wxScrollHelper, I am wondering, is it possible to make wxDataViewCtrl inherited from wxDataViewCtrlBase and wxScrollHelper under Mac OSX, same as Windows? No. ...
by doublemax
Sun May 19, 2019 5:17 pm
Forum: C++ Development
Topic: I need modify a property in other window
Replies: 9
Views: 102

Re: I need modify a property in other window

There is no event that happens when you change a variable somewhere. And modifying a variable of another class - or even a global variable - directly, is not a good idea. In the class where the variable is defined, you should add a method to set that variable. And in that method you should also chan...
by doublemax
Sun May 19, 2019 8:47 am
Forum: C++ Development
Topic: Set position scroll bar
Replies: 2
Views: 60

Re: Set position scroll bar

void wxScrolled< T >::Scroll( int x, int y )
https://docs.wxwidgets.org/trunk/classw ... d065907f69
by doublemax
Sun May 19, 2019 8:44 am
Forum: Compiler / Linking / IDE Related
Topic: DLL build with MSVC works but GCC wont
Replies: 16
Views: 177

Re: DLL build with MSVC works but GCC wont

While the wxEntry will work for windows there is no functional equivalent for osx/linux No, the wxEntry part and everything else does exists and is identical for all platforms. I just meant that the "dll" sample uses Windows specific code and there is no Linux or OSX version. So you'll have to expe...