[Gambas-user] Select Area using mouse

John Rose john.aaron.rose at gmail.com
Fri May 15 15:16:32 CEST 2020


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.

-- 
John


-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.tar.gz
Type: application/gzip
Size: 67367 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200515/e997d432/attachment-0001.gz>


More information about the User mailing list