Re: How to minimize a document window via program?

From: [at]} <Rene>
Date: Sun, 15 Aug 2004 23:32:11 +0200

----boundary-LibPST-iamunique-1893645700_-_-
Content-type: text/plain

Helmut,

If you have the Ports.Frame, do the following:

windowsstruct:=frame.rider(HostPorts.Rider).port.wnd;
WinApi.SetWindowLong(windowsstruct, WinApi.GWL_STYLE,WinApi.WS_MINIMIZE).;

This SHOULD do the trick, though I didn't try it out.

Rene

>Dear BlackBox User,
>
>every document window inside BlackBox have in the header line on the right
>side 3 icons: _ [] X (minimize, maximize & close).
>
>Does anybody know how to minimize a BlackBox document window via a Component
>Pascal program?
>
>Any help and succession are welcome. Thank you in advance.
>
>Regards ^
> /v\
>Helmut Zinn /vvv\
> /vvvvv\
> /+-----+\
> | |
> \|||/ | {([at]})nowhere.xy
> (o o) | |
>---ooO-(_)-Ooo--w-w-w-| {([at]})nowhere.xy
> | |
> | {([at]})nowhere.xy
> | |
>----------------------+-----+
>Have a look at http://www.zinnamturm.de
>Send your answer and comments to mailto:cpc{([at]})nowhere.xy
>
>

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-1893645700_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmM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