Search found 69 matches

by heinermueller
Wed Nov 18, 2015 2:59 pm
Forum: Platform Related Issues
Topic: wxWindow::SetSize and DPI Scaling
Replies: 4
Views: 3266

wxWindow::SetSize and DPI Scaling

Hi all, i can set a windows size ( i am talking about dialog items here ) using the wxWindow::SetSize method. Yet this method sets the size in pixels, which will be scaled on Windows when automatic pic scaling is active. There ary many places where a pixel size is used, SetMinSize() etc ... What is ...
by heinermueller
Fri Jan 09, 2015 1:13 pm
Forum: C++ Development
Topic: wxKeyEvent GetRawKeyCode() and GetKeyCode()
Replies: 2
Views: 627

Re: wxKeyEvent GetRawKeyCode() and GetKeyCode()

Fantastic, thank you!

There is a SO thread about this here and here here
.. but the solutions look really complicated .. almost bizarre for such a small task ..
by heinermueller
Fri Jan 09, 2015 12:23 am
Forum: C++ Development
Topic: wxKeyEvent GetRawKeyCode() and GetKeyCode()
Replies: 2
Views: 627

wxKeyEvent GetRawKeyCode() and GetKeyCode()

Hi All, i can easily get the raw and mapped keycodes using wxKeyEvent GetRawKeyCode() and GetKeyCode(). But to read the values i need an actual key event for this. Is there a possibility to do this translation without an actual event? Like eg. wxKeyEvent e; e.m_keyCode = 'w'; [...magic...] int raw_k...
by heinermueller
Sun Jan 04, 2015 8:47 pm
Forum: C++ Development
Topic: wxFiledialog not a regular wxDialog?
Replies: 5
Views: 1001

Re: wxFiledialog not a regular wxDialog?

wxFileDialog dlg( parent, ... ); // Use main frame as parent dlg.CenterOnParent(); dlg.ShowModal(); tried exactly this, but regarding the filedialog there is no way to place it. i had a look at the source of filedlg.h: protected: // not supported for file dialog, RR virtual void DoSetSize(int WXUNU...
by heinermueller
Sun Jan 04, 2015 1:59 pm
Forum: C++ Development
Topic: wxFiledialog not a regular wxDialog?
Replies: 5
Views: 1001

Re: wxFiledialog not a regular wxDialog?

Yes, a wxFiledialog is different, because internally it just displays the native file select dialog. I think your approach to actively let the user check for out-of-screen dialogs is not ideal. Dialogs shouldn't appear off-screen in the first place. If you use stored coordinates for the dialog posi...
by heinermueller
Sat Jan 03, 2015 9:52 pm
Forum: C++ Development
Topic: wxFiledialog not a regular wxDialog?
Replies: 5
Views: 1001

wxFiledialog not a regular wxDialog?

Hi All, in a modern multi-monitor environment sometimes my users get lost with their open dialogs. A dialog may open in a position that is outside the current monitor configuration. so i want to offer them the possibility to 'catch' open dialogs: wxDialog* get_open_modal_dialog() { // // 1) find foc...
by heinermueller
Sat Oct 26, 2013 9:20 pm
Forum: C++ Development
Topic: String conversion Problem
Replies: 5
Views: 1993

Re: String conversion Problem

i finally solved it using wxEncodingConverter e; bool possible = e.Init( wxFONTENCODING_MACROMAN, wxFONTENCODING_ISO8859_1); if(possible) { text = e.Convert( text ); } It works, but obviously i have to check for each and every encoding now. Ok, keep this as fix and go for unicode and wx 2.9.5 Best r...
by heinermueller
Sat Oct 26, 2013 3:49 pm
Forum: C++ Development
Topic: String conversion Problem
Replies: 5
Views: 1993

Re: String conversion Problem

Thank you for your reply! I hope that 2.9.5 solves this, too, but we are working on a minor feature here, and upgading the whole framework could turn this into a mayor adventure ... =) - Ok, so i have to check out a character table conversion. But i am really confused, does anyone know, which char t...
by heinermueller
Sat Oct 26, 2013 12:11 pm
Forum: C++ Development
Topic: String conversion Problem
Replies: 5
Views: 1993

String conversion Problem

Hi all, in my code i do this ( using wx 2.8, Ansi Build, Mac, XCode ) wxString text; text = "abcäöüß"; What i expect: The string should be ISO Latin-1 encoded. When i look at the string in the debugger i expect ( on a german Mac ) it should display m_pchData = 0x2d63c6c "abcäöü" The memory at 0x2d63...