U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » RichText,QTF,RTF... » how to get Text Size from controls like EditString?
Re: how to get Text Size from controls like EditString? [message #2391 is a reply to message #2390] Mon, 10 April 2006 18:55 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1324
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Just some more thoughts...
Now I want to find a way to set
valuesize=???
editor.SetMinSize(valuesize);

(would be good automatically after char enter or Action...)
without Paint and Draw...

maybe editor.GetCaret could be used...?
or GetStringCx - is for length? if not, why there is no GetStringCy...? Smile

or get display from editor and to use like in TreeCtrl:
return display ? display->GetStdSize(value) : StdDisplay().GetStdSize(value);


...
(because TreeCtrl uses)
m.ctrl->GetMinSize();
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is LineEdit the main normal text edit control? +DocEdit [SOLVED...]
Next Topic: Scrollable log window with colour text
Goto Forum:
  


Current Time: Fri Sep 11 02:44:51 GMT+2 2026

Total time taken to generate the page: 0.01114 seconds