Re: [BLACKBOX] Maximize

From: Douglas G. Danforth <"Douglas>
Date: Thu, 13 Mar 2008 20:56:21 -0700

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

Here is a solution that I constructed for the
issue of maximizing a window.

PROCEDURE Maximize (w:HostWindows.Window);
   VAR res: INTEGER;
BEGIN
   res := WinApi.ShowWindow(w.wnd, WinApi.SW_SHOWMAXIMIZED);
END Maximize;
        

It works well but unfortunately I had to delve into
WinApi and access the windows handle for the window.

I would have thought the concept of maximizing a window
would have been platform independent and so would be supported
at the Windows level rather than at the HostWindows level.

-Doug Danforth


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-292418843_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhlcmUgaXMgYSBzb2x1dGlvbiB0aGF0IEkgY29u
c3RydWN0ZWQgZm9yIHRoZVxwYXINCmlzc3VlIG9mIG1heGltaXppbmcgYSB3aW5kb3cuXHBhcg0K
XHBhcg0KUFJPQ0VEVVJFIE1heGltaXplICh3Okhvc3RXaW5kb3dzLldpbmRvdyk7XHBhcg0KICAg
VkFSIHJlczogSU5URUdFUjtccGFyDQpCRUdJTlxwYXINCiAgIHJlcyA6PSBXaW5BcGkuU2hvd1dp
bmRvdyh3LnduZCwgV2luQXBpLlNXX1NIT1dNQVhJTUlaRUQpO1xwYXINCkVORCBNYXhpbWl6ZTtc
cGFyDQpcdGFiIFxwYXINClxwYXINCkl0IHdvcmtzIHdlbGwgYnV0IHVuZm9ydHVuYXRlbHkgSSBo
YWQgdG8gZGVsdmUgaW50b1xwYXINCldpbkFwaSBhbmQgYWNjZXNzIHRoZSB3aW5kb3dzIGhhbmRs
ZSBmb3IgdGhlIHdpbmRvdy5ccGFyDQpccGFyDQpJIHdvdWxkIGhhdmUgdGhvdWdodCB0aGUgY29u
Y2VwdCBvZiBtYXhpbWl6aW5nIGEgd2luZG93XHBhcg0Kd291bGQgaGF2ZSBiZWVuIHBsYXRmb3Jt
IGluZGVwZW5kZW50IGFuZCBzbyB3b3VsZCBiZSBzdXBwb3J0ZWRccGFyDQphdCB0aGUgV2luZG93
cyBsZXZlbCByYXRoZXIgdGhhbiBhdCB0aGUgSG9zdFdpbmRvd3MgbGV2ZWwuXHBhcg0KXHBhcg0K
LURvdWcgRGFuZm9ydGhccGFyDQpccGFyDQpccGFyDQotLS0tXHBhcg0KVG8gdW5zdWJzY3JpYmUs
IHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8gTElTVFNFUlZA
TElTVFMuT0JFUk9OLkNIfX0ARlVrOQ==
----boundary-LibPST-iamunique-292418843_-_---
Received on Fri Mar 14 2008 - 04:56:21 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:58 UTC