[Mono-winforms-list] Splitter
Jonathan S. Chambers
Jonathan.Chambers@ansys.com
Tue, 19 Apr 2005 10:21:55 -0400
This is a multi-part message in MIME format.
------_=_NextPart_001_01C544EB.23743223
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I use the splitter in the property grid control, and made a few
changes to it. Most importantly, instead of resizing the controls as the
splitter is dragged, I display a bar on top of the controls (how MS SWF
does it) indicating the position and only resize the controls when the
mouse button is released. It works well running against .Net, but it has
a few idiosyncrasies with Mono.
=20
1. In horizontal mode, the splitter works well except that the bar is
not drawing correctly (some sort of painting issue).
2. In vertical mode, the splitter works fine moving to the right, but
not to the left (when docked to the left). This appears to be a
MouseMove event issue though. When moving to the left past the original
position of the splitter, the mouse event args start out good (they
become negative), but after moving slightly to the left of the
splitter's original position, the mouse event args values become large
(63546 or some number like that, perhaps some sort of signed/unsigned
issue?).
3. There are some other smaller issues, but the control seems to behave
slightly better than before since it doesn't try to resize the controls
every time the mouse moves. (Drawing the bar indicating the position
took a while to figure out. On windows, MS probably gets the DC to the
desktop and draws on it. I know of no cross platform way to do that. I
tried handling the splitter's siblings paint event, and drawing the bar
on each control. That didn't work. Currently, I create a form with no
border and with a checkerboard pattern background. I move this with the
mouse moves)
It's not perfect, but it helped me in my work on the propertygrid. Give
it a try and let me know if you want me to check in the changes, etc.=20
- Jonathan
------_=_NextPart_001_01C544EB.23743223
Content-Type: application/octet-stream;
name="Splitter.cs"
Content-Transfer-Encoding: base64
Content-Description: Splitter.cs
Content-Disposition: attachment;
filename="Splitter.cs"
Ly8gUGVybWlzc2lvbiBpcyBoZXJlYnkgZ3JhbnRlZCwgZnJlZSBvZiBjaGFyZ2UsIHRvIGFueSBw
ZXJzb24gb2J0YWluaW5nCi8vIGEgY29weSBvZiB0aGlzIHNvZnR3YXJlIGFuZCBhc3NvY2lhdGVk
IGRvY3VtZW50YXRpb24gZmlsZXMgKHRoZQovLyAiU29mdHdhcmUiKSwgdG8gZGVhbCBpbiB0a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------_=_NextPart_001_01C544EB.23743223
Content-Type: application/octet-stream;
name="svn.diff"
Content-Transfer-Encoding: base64
Content-Description: svn.diff
Content-Disposition: attachment;
filename="svn.diff"
SW5kZXg6IFNwbGl0dGVyLmNzDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQotLS0gU3BsaXR0ZXIuY3MJKHJldmlzaW9u
IDQzMjQ1KQ0KKysrIFNwbGl0dGVyLmNzCSh3b3JraW5nIGNvcHkpDQpAQCAtMjEsNiArMjEsNyBA
QA0KIC8vCiAvLyBBdXRob3JzOgogLy8JSmFja3NvbiBIYXJwZXIgKGphY2tzb25AeGltaWFuLmNv
bSkKKy8vICBKb25hdGhhbiBDaGFtYmVycyAoam9uYXRoYW4uY2hhbWJlcnNAYW5zeXMuY29tKQog
Ly8KIAogCkBAIC0yOCw2ICsyOSw4IEBADQogdXNpbmcgU3lzdGVtLkNvbXBvbmVudE1vZGVsOwog
dXNpbmcgU3lzdGVtLkNvbXBvbmVudE1vZGVsLkRlc2lnbjsKIHVzaW5nIFN5c3RlbS5EcmF3aW5n
OwordXNpbmcgU3lzdGVtLkRyYXdpbmcuRHJhd2luZzJEOwordXNpbmcgU3lzdGVtLldpbmRvd3Mu
Rm9ybXM7CiAKIAogbmFtZXNwYWNlIFN5c3RlbS5XaW5kb3dzLkZvcm1zIHsKQEAgLTM4LDggKzQx
LDggQEANCiAJCSNyZWdpb24gIEZpZWxkcwogCQlwcml2YXRlIGludCBtaW5fZXh0cmE7CiAJCXBy
aXZhdGUgaW50IG1pbl9zaXplOwotCQlwcml2YXRlIGludCBtb3ZlX3N0YXJ0X3g7Ci0JCXByaXZh
dGUgaW50IG1vdmVfc3RhcnRfeTsKKwkJcHJpdmF0ZSBpbnQgY3Vyc29yX29mZnNldF94OworCQlw
cml2YXRlIGludCBjdXJzb3Jfb2Zmc2V0X3k7CiAKIAkJcHJpdmF0ZSBpbnQgdGhpY2t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