Search found 8 matches

by TextEdit
Mon May 28, 2018 1:53 pm
Forum: Platform Related Issues
Topic: macOS: Hide MDI Parent Window in Dock Right-Click Menu
Replies: 1
Views: 307

macOS: Hide MDI Parent Window in Dock Right-Click Menu

Hi, I am creating a MDI application for macOS. IMMO, for an MDI application, the parent window does nothing but hold there to prevent application from exit. However, this invisible parent window will show up in the right-click menu of the application on dock. Please see the attachment. It is from th...
by TextEdit
Tue May 15, 2018 8:57 pm
Forum: C++ Development
Topic: Get input candidate in wxTextCtrl from IME before commit
Replies: 2
Views: 266

Re: Get input candidate in wxTextCtrl from IME before commit

Okay. I see. Thank you doublemax!
by TextEdit
Tue May 15, 2018 7:58 pm
Forum: C++ Development
Topic: Get input candidate in wxTextCtrl from IME before commit
Replies: 2
Views: 266

Get input candidate in wxTextCtrl from IME before commit

Hi everyone, I would like to get the input string from wxTextCtrl while using an Input Method Editor (IME). But before the input string is committed by IME, wxTextCtrl::GetValue() only returns text that is already in the control. How can I do that? Attached image is what it looks like when some inpu...
by TextEdit
Mon May 14, 2018 12:23 am
Forum: Platform Related Issues
Topic: Setting wxTextCtrl Margins Problem on macOS
Replies: 8
Views: 1024

Re: Setting wxTextCtrl Margins Problem on macOS

After "playing" with the coordinates, I looked into customizing the NSTextView. I added following code and bunch of scaffoldings. bool wxNSTextViewControl::DoSetMargins(const wxPoint& pt) { [m_textView setTextContainerInset:NSMakeSize(static_cast<float>(pt.x), static_cast<float>(pt.y))]; return true...
by TextEdit
Fri May 11, 2018 7:10 pm
Forum: Platform Related Issues
Topic: Setting wxTextCtrl Margins Problem on macOS
Replies: 8
Views: 1024

Re: Setting wxTextCtrl Margins Problem on macOS

I also saw that about how to set margins in NSTextField. It would work, but I am working on wxWidgets only. And I barely know Objective-C.
by TextEdit
Fri May 11, 2018 5:53 pm
Forum: Platform Related Issues
Topic: Setting wxTextCtrl Margins Problem on macOS
Replies: 8
Views: 1024

Re: Setting wxTextCtrl Margins Problem on macOS

Margins in controls such as wxTextCtrl, wxComboBox or wxChoice were allowed time ago. Some OSs, or at least some controls in some OSs, have dismissed it (I'm thinking of GTK+). That's why I can't be sure if margins will be set or not. Yes. I found related discussion on margins. That's why I am surp...
by TextEdit
Fri May 11, 2018 8:11 am
Forum: Platform Related Issues
Topic: Setting wxTextCtrl Margins Problem on macOS
Replies: 8
Views: 1024

Re: Setting wxTextCtrl Margins Problem on macOS

Emmm... Just found this.

Code: Select all

bool wxTextEntryBase::DoSetMargins(const wxPoint& WXUNUSED(pt))
{
    return false;
}
by TextEdit
Fri May 11, 2018 7:40 am
Forum: Platform Related Issues
Topic: Setting wxTextCtrl Margins Problem on macOS
Replies: 8
Views: 1024

Setting wxTextCtrl Margins Problem on macOS

Hi everyone, I tried to set margins for wxTextCtrl using `wxTextCtrl::SetMargins` on macOS, but it never succeeds. I tried with margin value of 0 and 7, both didn't work. The code snippets I tested was below. Copy and paste it below Line 1258 in the samples/text/text.cpp. Also screenshots are attach...