- XP visual styles and BlackBox dialogs > Fixed!

From: [at]} <Alexander>
Date: Tue, 23 Jan 2007 13:01:20 +0600

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

Hello, Koen!

KD> Hello Chris and Alexander,
KD> I read the article and found what's missing in BlackBox.

KD> First try this: access the edit|preferences dialog via the
KD> *keyboard* (I assume you have visual styles enabled and have the
KD> prefererence set to hide keyboard indicators). Focus rectangles
KD> and underlined accelerators will be visible. Access the same
KD> dialog with the mouse, they will not be visible. BlackBox
KD> implements custom dialogs (does not use the Windows Dialog
KD> Manager) and it's dialog procedure must therefore be updated to
KD> visual styles. I included the fix below, in module
KD> HostWindows. (This is the version with Alexander's fixes).
KD> It's as simple as sending yourself a WM_CHANGEUISTATE message in
KD> procedure DialogHandler, and have
KD> the DefWindowProc handle it.
KD> If the alt key is pressed, accelerators will be underlined; if an
KD> arrow key or tab is pressed, both accelerator keys and focus
KD> rectangles will be indicated; this is standard behaviour.

  Thank you very much, Koen! It really works!
  I'm going to put it to my blog as soon as possible : )

---=====---
 Alexander

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy


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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhlbGxvLCBLb2VuIVxwYXIN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dFVUlTVEFURSBtZXNzYWdlIGluXHBhcg0K
S0Q+IHByb2NlZHVyZSBEaWFsb2dIYW5kbGVyLCBhbmQgaGF2ZVxwYXINCktEPiB0aGUgRGVmV2lu
ZG93UHJvYyBoYW5kbGUgaXQuXHBhcg0KS0Q+IElmIHRoZSBhbHQga2V5IGlzIHByZXNzZWQsIGFj
Y2VsZXJhdG9ycyB3aWxsIGJlIHVuZGVybGluZWQ7IGlmIGFuXHBhcg0KS0Q+IGFycm93IGtleSBv
ciB0YWIgaXMgcHJlc3NlZCwgYm90aCBhY2NlbGVyYXRvciBrZXlzIGFuZCBmb2N1c1xwYXINCktE
PiByZWN0YW5nbGVzIHdpbGwgYmUgaW5kaWNhdGVkOyB0aGlzIGlzIHN0YW5kYXJkIGJlaGF2aW91
ci4gXHBhcg0KXHBhcg0KICBUaGFuayB5b3UgdmVyeSBtdWNoLCBLb2VuISBJdCByZWFsbHkgd29y
a3MhXHBhcg0KICBJJ20gZ29pbmcgdG8gcHV0IGl0IHRvIG15IGJsb2cgYXMgc29vbiBhcyBwb3Nz
aWJsZSA6IClccGFyDQpccGFyDQotLS09PT09PS0tLVxwYXINCiBBbGV4YW5kZXJccGFyDQpccGFy
DQotLS0gQmxhY2tCb3hccGFyDQotLS0gc2VuZCBzdWJqZWN0IEhFTFAgb3IgVU5TVUJTQ1JJQkUg
dG8gYmxhY2tib3hAb2Jlcm9uLmNofX0AQ29udGVudC1Ucg==


----boundary-LibPST-iamunique-750321898_-_---
Received on Tue Jan 23 2007 - 08:01:20 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:54 UTC