Re: [BLACKBOX] Control extension/modification
----boundary-LibPST-iamunique-1359827009_-_-
Content-type: text/plain
Folks,
I have bitten the bullet and started to implement ToggleButtons from scratch
using Ctls as a guide.
I have created the up and down images of a ToggleButton by first doing a screenshot
of the standard Controls.PushButton. I copied the screenshot into the Windows Paint
program and trimmed all unnecessary stuff away. When I magnify the image
(Ctrl PageDown) I can then see the lines and colors that make up the images.
I then wrote the equivalent DrawRect and DrawLine procedures to mimic the button
images. I had hoped to avoid that step but don't see how.
I now need to handle the mouse and button label but that should be straight forward.
So I consider this issue closed unless someone can still come up with a more elegant
way to do this.
Best regards,
Doug Danforth
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
----boundary-LibPST-iamunique-1359827009_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbWh0bWwxIFxkZWZmMHtcZm9udHRibA0Ke1xmMFxm
c3dpc3NcZmNoYXJzZXQwIEFyaWFsO30NCntcZjFcZm1vZGVybiBDb3VyaWVyIE5ldzt9DQp7XGYy
XGZuaWxcZmNoYXJzZXQyIFN5bWJvbDt9DQp7XGYzXGZtb2Rlcm5cZmNoYXJzZXQwIENvdXJpZXIg
TmV3O319DQp7XGNvbG9ydGJsXHJlZDBcZ3JlZW4wXGJsdWUwO1xyZWQwXGdyZWVuMFxibHVlMjU1
O30NClx1YzFccGFyZFxwbGFpblxkZWZ0YWIzNjAgXGYwXGZzMjQgDQp7XCpcaHRtbHRhZzI0MyA8
IURPQ1RZUEUgSFRNTCBQVUJMSUMgIi0vL1czQy8vRFREIEhUTUwgNC4wMSBUcmFuc2l0aW9uYWwv
L0VOIj59DQp7XCpcaHRtbHRhZzMgXHBhciB9DQp7XCpcaHRtbHRhZzE5IDxodG1sPn0NCntcKlxo
dG1sdGFnMiBccGFyIH0NCntcKlxodG1sdGFnMjQyICAgfQ0Ke1wqXG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tLS0NCntcKlxodG1sdGFnNCBccGFyIH1caHRtbHJ0ZiAg
XGh0bWxydGYwIFRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05P
RkYgQkxBQ0tCT1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSA0Ke1wqXGh0bWx0YWc0IFxw
YXIgfVxodG1scnRmICBcaHRtbHJ0ZjAgXGh0bWxydGZ9fQBzY3JpYmUtcmVxdWVzdA==
----boundary-LibPST-iamunique-1359827009_-_---
Received on Mon May 23 2011 - 01:03:28 UTC
This archive was generated by hypermail 2.3.0
: Thu Sep 26 2013 - 06:30:14 UTC