Howto determine the size of a text in the current font in wxTextCtrl

91 Views Asked by At

Is there a way to determine the x,y dimensions of the text display (in pixels) based on the currently selected font? In current wxWindow and setup sizers.

It depends on the size of the widget. But this one is determined by the objects above. How to find out how much the text would take if it were to be printed in full.

I need the wxSize in pixels of the text from wxTextCtrl current sizers. For initialize:

SetInitialSize( size of text );
SetMinSize( size of text );
0

There are 0 best solutions below