Anyone have an idea on how this works? Your supposed to send it the hdc, left,…
----- Original Message -----

Mailing lists / lazarus / 2000-03
5 messages · 4 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Anyone have an idea on how this works? Your supposed to send it the hdc, left,…
----- Original Message -----
Anyone have an idea on how this works? Your supposed to send it the hdc, left, right,top, bottom and it'll exclude this rect from the structure that is going to be painted. The problem is that I don't know where to look for that structure. I thought it was help in the DC but I don't see it in our implementation.
Understand what I mean? If I send you a rect to exclude you need the original rect in order to change it to exclude the one I sent you. WHere is the original?
Shane
>> 03/13/00 05:59PM >>>
Hi,
latest changes:
Finished hide caret
Now the caret background is restored and the caret is only drawn if the control has focus. In the old editor this results in a caret which is initial not visible (only after the first pressed key). In the new editor, the behaviour is as expected.
Marc
_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus
----- Original Message -----
+ From: Shane Miller + + Anyone have an idea on how this works? Your supposed to send +…
I believe the above is the only solution. I too just went through the docs and you can set the clip_region, clip_mask, and clip_rect but it provides no means to retrieve what has already been set. You can only remove the currently set value.
Unless I also missed something in the docs. :-)
Anyone have an idea on how this works? Your supposed to send it the hdc, left,…
+ From: Shane Miller
+
+ Anyone have an idea on how this works? Your supposed to send
+ it the hdc, left, right,top, bottom and it'll exclude this
+ rect from the structure that is going to be painted. The
+ problem is that I don't know where to look for that
+ structure. I thought it was help in the DC but I don't see
+ it in our implementation.
+
+ Understand what I mean? If I send you a rect to exclude you
+ need the original rect in order to change it to exclude the
+ one I sent you. WHere is the original?
I just looked at the docs, and I think I know what you mean. In GDK you can set the clip_rectangle/clip_region, but you can't get it (as far as I can see now). This means that functuions like
ExcludeClipRect/IntersectClipRect/SelectClipRgn should maintain a ClipRect (in TDeviceContext) and pass this one to gdk.
When I'm at home I'll look if it is possible to retrieve the gdk clip rect.
Marc