Search found 69 matches

by heinermueller
Fri Nov 04, 2016 3:32 pm
Forum: Platform Related Issues
Topic: wx 3.1 Cocoa: wxTextCtrl focus
Replies: 7
Views: 1211

Re: wx 3.1 Cocoa: wxTextCtrl focus

I am using a wxRichTextCtrl and it works perfectly now. Should i file a bug report?
by heinermueller
Thu Nov 03, 2016 7:00 pm
Forum: Platform Related Issues
Topic: wxCocoa 3.1: Appended SubMenu and 'Connect'
Replies: 18
Views: 2909

Re: wxCocoa 3.1: Appended SubMenu and 'Connect'

Ah, sorry it was me who used 'some_object' the first time :D No, some_object is not the main frame, it is an object derived from wxEvtHandler, it is drawn by OpenGL and gets is first hit test from there. So i know where to place a popoup menu and can show it and handle it inside this instance via so...
by heinermueller
Thu Nov 03, 2016 6:50 pm
Forum: C++ Development
Topic: Avoiding repetitive similar events
Replies: 7
Views: 1139

Re: Avoiding repetitive similar events

But yes, the Refresh() makes sense together with the wxRegionIterator. Simple algorithm: if there are any, redraw. I will give it a try, thanks!
by heinermueller
Thu Nov 03, 2016 12:30 pm
Forum: C++ Development
Topic: Avoiding repetitive similar events
Replies: 7
Views: 1139

Re: Avoiding repetitive similar events

There are two different issues in this case. One thing is to redraw sections or the whole frame/canvas. Since OpenGL is mostly organized by scene graphs, it makes sense to redraw the whole frame at once, you have to traverse it in any case. Also for other reasons ( draw order/depth ) it is close to ...
by heinermueller
Thu Nov 03, 2016 11:56 am
Forum: C++ Development
Topic: Avoiding repetitive similar events
Replies: 7
Views: 1139

Re: Avoiding repetitive similar events

It is a bit about application design. I have many custom objects drawn by OpenGL, and they all may may or may not be animated and need a redraw. It is unusual to redraw sections in OpenGL, so a full frame redraw may be necessary. From an OO point of view, it would be nice if my objects could be iter...
by heinermueller
Wed Nov 02, 2016 11:18 pm
Forum: C++ Development
Topic: Avoiding repetitive similar events
Replies: 7
Views: 1139

Avoiding repetitive similar events

Hi all,

is there a simple way to avoid queueing similar events for a wxEvtHandler? For example avoid successive paint events that would cause repeated drawing of the same frame?

Best regards,
Heiner
by heinermueller
Wed Nov 02, 2016 10:30 am
Forum: Platform Related Issues
Topic: wxCocoa 3.1: Appended SubMenu and 'Connect'
Replies: 18
Views: 2909

Re: wxCocoa 3.1: Appended SubMenu and 'Connect'

Well, did you try to connect the menu event handler in your application the same way it is in the sample above (i.e. from the frame and only once) and did it work or not? This is difficult to test, because the event handler is an object different from the application frame. Yes, the IDs overlap - t...
by heinermueller
Tue Nov 01, 2016 5:06 pm
Forum: Platform Related Issues
Topic: wx 3.1 Cocoa: wxTextCtrl focus
Replies: 7
Views: 1211

Re: wx 3.1 Cocoa: wxTextCtrl focus

No, i found this FAQ on the web, too, but this is not the case. The application is an app bundle, it is running fine. I noticed, the wxTextCtrl has the same focus problem in another application dialog. There i can troubleshoot this with a programmatical 'SetFocus', but in this case here i would like...
by heinermueller
Tue Nov 01, 2016 2:49 pm
Forum: Platform Related Issues
Topic: wx 3.1 Cocoa: wxTextCtrl focus
Replies: 7
Views: 1211

Re: wx 3.1 Cocoa: wxTextCtrl focus

On MSW it works fine. Nevertheless, there must be something wrong with your dialog design/layout/whatever. Control creation, sizer assignment and dialog layout is made by wxglade. There are no actions (Enable/Focus etc) with that control. If the control is visible - what could go wrong in that case?...
by heinermueller
Mon Oct 31, 2016 6:38 pm
Forum: Platform Related Issues
Topic: wx 3.1 Cocoa: wxTextCtrl focus
Replies: 7
Views: 1211

Re: wx 3.1 Cocoa: wxTextCtrl focus

The control is created like this, generated by wxglade:

Code: Select all

text_ctrl = new wxTextCtrl(panelXY, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxTE_MULTILINE|wxTE_PROCESS_ENTER|wxTE_PROCESS_TAB);
should i (re-) set a parent later?
by heinermueller
Mon Oct 31, 2016 4:19 pm
Forum: Platform Related Issues
Topic: wx 3.1 Cocoa: wxTextCtrl focus
Replies: 7
Views: 1211

wx 3.1 Cocoa: wxTextCtrl focus

Hi All,

in my application a have a dialog with a multiline wxTextCtrl. When i open the dialog using ShowModal(), i cannot focus the text control with the mouse. Setting the focus via 'tabbing' and programmatical via 'SetFocus()' works. Any solution to this?

Best regards,
Heiner
by heinermueller
Mon Oct 31, 2016 4:05 pm
Forum: Platform Related Issues
Topic: wxCocoa 3.1: Appended SubMenu and 'Connect'
Replies: 18
Views: 2909

Re: wxCocoa 3.1: Appended SubMenu and 'Connect'

In your sample everything as expected. Also GetPopupMenuSelectionFromUser() works as expected: i get the correct return values, even when i do not Connect(..) the submenus
by heinermueller
Wed Oct 26, 2016 9:17 am
Forum: Platform Related Issues
Topic: wxCocoa 3.1: Appended SubMenu and 'Connect'
Replies: 18
Views: 2909

Re: wxCocoa 3.1: Appended SubMenu and 'Connect'

- Download is Latest Development Release: 3.1.0 from here wxwidgets.org/downloads/
- Build is wxOSX/Cocoa in 32 Bit - built with Xcode
- Changes made by me: version_min 10.7, compile with clang -std=c++11
by heinermueller
Tue Oct 25, 2016 7:35 am
Forum: Platform Related Issues
Topic: wxCocoa 3.1: Appended SubMenu and 'Connect'
Replies: 18
Views: 2909

Re: wxCocoa 3.1: Appended SubMenu and 'Connect'

Hi,
sorry what is the difference between wxCocoa 3.1 and wxWidgets-3.1?

Best regards,
Heiner
by heinermueller
Mon Oct 24, 2016 6:43 pm
Forum: Platform Related Issues
Topic: wxCocoa 3.1: Appended SubMenu and 'Connect'
Replies: 18
Views: 2909

wxCocoa 3.1: Appended SubMenu and 'Connect'

Hi all, under wxCocoa 3.1 / Xcode 5, i create a menu like this wxMenu m; m.AppendRadioItem(GO_A, _("A Mode"), _("-")); m.AppendRadioItem(GO_B, _("B Mode"), _("-")); m.AppendRadioItem(GO_C, _("C Mode"), _("-)); wxMenu* submenu = new wxMenu(); submenu->AppendRadioItem( T1, _("1"), _("-")); submenu->Ap...