Hi,
Is it possible to maximized dynamically the message window ?
-
- VIP Member
- Posts: 458
- Joined: 5 Nov 2000 0:01
Re: Maximized message window
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)).
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
Re: Maximized message window
I think you are asking about:
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.
Code: Select all
messageForm:setState([wsf_maximized])
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.
Regards Thomas Linder Puls
PDC
PDC