Get position of wxTextCtrl

Asked

Viewed 39 times

2

How do I get the position (x and y) of a WxTextCtrl?

I didn’t find anything in the documentation.

1 answer

2


Use the method GetPosition() available at wxWindow. It’s in the documentation. You probably haven’t found it because you still don’t quite understand inheritance of object orientation. A class has everything that was created in it plus what it inherited from the upper classes, so it has to look at the documentation of the classes that are part of the class that it is using. Of course you have documentation that puts everything, it gets easier but it’s not the case of this library, so you have to go through the hierarchy.

  • I was only looking in the class wxTextCtrl, sign that I must study more, rs.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.