Skip to content

Edge mover on Windows and/or Dialogs #140

Answered by magiblot
paule32 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Jens!

The sizing handles in Turbo Vision's original views are implemented directly in the TFrame source code:

if( (state & sfActive) != 0 )
if( ( ((TWindow *)owner)->flags & wfGrow ) != 0 )
{
b.moveCStr( 0, dragLeftIcon, cFrame );
b.moveCStr( width-2, dragIcon, cFrame );
}

else if( (state & sfActive) && (mouse.y >= size.y - 1) &&
(((TWindow *)owner)->flags & wfGrow) )
{
if( mouse.x >= size.x - 2 )
dragWindow( event, dmDragGrow );
else if( mouse.x <= 1 )
dragWindow( event, dmDragGr…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by paule32
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #138 on February 01, 2024 08:48.