knowing if a line is visible

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
wxNewbi
Knows some wx things
Knows some wx things
Posts: 26
Joined: Mon Nov 15, 2004 11:27 pm
Location: London UK
Contact:

knowing if a line is visible

Post by wxNewbi » Mon Jan 10, 2005 10:21 am

How can I tell if a line (say line 20) is visible in th client area of a wxTextCtrl.

thanks you
Keep it real, Keep it free, Keep it GPL

leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Post by leio » Sat Jan 15, 2005 10:29 pm

Maybe you can work around the problem with wxTextCtrl::HitTest?
If you HitTest lower-right corner, you should get something usable, no?
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/

Post Reply