Page 1 of 1

Maximized message window

Posted: 18 Dec 2019 10:29
by Tonton Luc
Hi,

Is it possible to maximized dynamically the message window ?

Re: Maximized message window

Posted: 18 Dec 2019 12:29
by Harrison Pratt
In TaskWindow do something like this (with some extra manipulations):

Code: Select all

facts     msgForm: messageForm := erroneous. predicates     onShow : window::showListener. clauses     onShow(_, _CreationData) :-         This:setClientSize(1000, 700), % make the application client window a little smaller         center(), % center on desktop         MessageForm = messageForm::display(This),         msgForm := MessageForm, % save for access elsewhere         MessageForm:setVerticalSize(messageForm::parentRelative(0.97)), % 97% of parent window         MsgControl = MessageForm:getMessageControl(),         MsgControl:setLines(5000), % so don't lose early lines when writing to the Messages form         MsgControl:setFont(vpi::fontCreateByName("Consolas", 10)).

Re: Maximized message window

Posted: 19 Dec 2019 9:49
by Thomas Linder Puls
I think you are asking about:

Code: Select all

messageForm:setState([wsf_maximized])
To bring it back to normal/restored state you use the wsf_restored flag.

You should however notice that maximizing is for all the MDI child windows; either the MDI parent displays the child windows maximized or at their "restored" size. There is no setting where some children are maximized and other restored.