Skip to content

how to add "move" to TWindow in TDialog (was: colored TButton) #126

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

You must be logged in to vote

This is because of the growMode and flags properties of TWindow/TDialog.

In TWindow, the default values are:

flags( wfMove | wfGrow | wfClose | wfZoom ),
growMode = gfGrowAll | gfGrowRel;

Conversely, the default values in TDialog are:

growMode = 0;
flags = wfMove | wfClose;

Which is why you can no longer move or resize your editor window.

Therefore, the solution is to use the same values for growMode and flags as TWindow. You should set them in your class' constructor.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@paule32
Comment options

Answer selected by paule32
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