Hello all,
I have been toiling with this problem for awhile now and am wondering if anyone has any suggestions.
On the StyledTextCtrl you can make a rectangular selection by holding the ALT key, left clicking and dragging. I am trying to create a menu option for which the user can select and just drag the mouse without holding the ALT key to select rectangular but I am not have any luck.
I see that there is a command SetSelectionMode and it has 3 options, STC_SEL_STREAM, STC_SEL_RECTANGLE and STC_SEL_LINES. I set the mode to the rectangle mode and check that it has been set with GetSelectionMode and it says that I am in fact in rectangular selection mode, but it still selects in STREAM mode.
If anyone has any suggestions I would greatly appreciate it.
Thanks
Scott
Not really an answer, but you can also select a rectangular selection by pressin Alt-Shift und cursor keys.
ยทยทยท
On Fri, 6 Feb 2009 08:45:33 -0500, Scott Hall <smhall316@gmail.com> wrote:
Hello all,
I have been toiling with this problem for awhile now and am wondering if
anyone has any suggestions.
On the StyledTextCtrl you can make a rectangular selection by holding the
ALT key, left clicking and dragging. I am trying to create a menu option
for which the user can select and just drag the mouse without holding the
ALT key to select rectangular but I am not have any luck.
I see that there is a command SetSelectionMode and it has 3 options,
STC_SEL_STREAM, STC_SEL_RECTANGLE and STC_SEL_LINES. I set the mode to the
rectangle mode and check that it has been set with GetSelectionMode and it
says that I am in fact in rectangular selection mode, but it still selects
in STREAM mode.
If anyone has any suggestions I would greatly appreciate it.
Thanks
Scott
--
Franz Steinhaeusler