Select Area using mouse

Post

Posted
Rating:
#1 (In Topic #413)
Regular
johnaaronrose is in the usergroup ‘Regular’
 I have an app which includes a facility to select an area on the screen's available desktop. I've stripped the app down so that the FMain form just has a button to call the FSelectArea form. The area is selected by mouse button down on the left top corner and dragging to the bottom right corner and then mouse button up. As the cursor is dragged, I want a rectangle border to be drawn from the top left to the cursor's current position. What happens is that the available desktop is cleared. I've obviously misunderstood the DrawingArea object and its methods etc. I've attached the stripped down Test app as a compressed source file.

Attachment

Stripped-down project as compressed source


John
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
Hi John and welcome to the forum.

I took a look at the code you posted on the Gambas Mailing list. Your 'simplified' code looked quite complicated to me. And then talk of capturing streams…. :?

However it made me think about a screenshot program that may assist you. Have a look here.
Online now: No Back to the top
1 guest and 0 members have just viewed this.