Problems with text control on OS X

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with text control on OS X

Chris Norman
Hiya all,
I’m having a bit of a struggle wrestling wx.TextCtrl into shape on Mac OS X (latest).

My first, and most significant problem, is that wx.TextCtrl.PositionToXY doesn’t seem to work on this platform, returning some ridiculously high numbers. Is this a known thing?

Secondly, wx.TE_PROCESS_ENTER seems to be completely ignored. I’m having to use wx.WXK_KEY_UP, and check if it’s the enter key with no modifiers.

Are there any work around for either of these problems?

Cheers,


Take care,

Chris Norman

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Problems with text control on OS X

Robin Dunn
Chris Norman wrote:
> Hiya all,
> I’m having a bit of a struggle wrestling wx.TextCtrl into shape on Mac
> OS X (latest).
>
> My first, and most significant problem, is that wx.TextCtrl.PositionToXY
> doesn’t seem to work on this platform, returning some ridiculously high
> numbers. Is this a known thing?

It doesn't look like it is implemented on Mac.  The stub implementation
simply returns False and doesn't touch the x and y values, which is why
you are seeing garbage values there.

>
> Secondly, wx.TE_PROCESS_ENTER seems to be completely ignored. I’m having
> to use wx.WXK_KEY_UP, and check if it’s the enter key with no modifiers.
>

It looks like it is supposed to be working, but I can confirm that it
doesn't.  I'll dig into it a little more.

--
Robin Dunn
Software Craftsman
http://wxPython.org

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Problems with text control on OS X

Chris Norman
Hi,

On 07/03/2015 01:35, Robin Dunn wrote:

> Chris Norman wrote:
>> Hiya all,
>> I’m having a bit of a struggle wrestling wx.TextCtrl into shape on Mac
>> OS X (latest).
>>
>> My first, and most significant problem, is that wx.TextCtrl.PositionToXY
>> doesn’t seem to work on this platform, returning some ridiculously high
>> numbers. Is this a known thing?
>
> It doesn't look like it is implemented on Mac.  The stub
> implementation simply returns False and doesn't touch the x and y
> values, which is why you are seeing garbage values there.

I just wrote a PositionToXY function for my custom class which seems to
work. Is there a way I can submit it for possible inclusion in the mail
project? It would be nice to contribute some code to WX, and it's not
very often I make something I think will be useful! :-)
>
>>
>> Secondly, wx.TE_PROCESS_ENTER seems to be completely ignored. I’m having
>> to use wx.WXK_KEY_UP, and check if it’s the enter key with no modifiers.
>>
>
> It looks like it is supposed to be working, but I can confirm that it
> doesn't.  I'll dig into it a little more.

Thank you. As I say, I have it working with wx.WXK_KEY_*, but I'd have
thought wx.TE_PROCESS_ENTER should be respected.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.