O$ creating a drag rectangle on the thick client

Mike Matthews - Omnis omnis at lineal.co.uk
Mon Jun 22 02:13:58 EDT 2020


I think Kelly (of course) has a drawing tool to do this.

Mike




Mike Matthews

omnis at lineal.co.uk<mailto:omnis at lineal.co.uk>

Lineal Software Solutions
01271 375999
Commercial House, The StrandBarnstaple, Devon, EX31 1EU
www.lineal.co.uk<http://www.lineal.co.uk>


On 22 Jun 2020, at 03:56, Paul Mulroney <pmulroney at logicaldevelopments.com.au<mailto:pmulroney at logicaldevelopments.com.au>> wrote:

Hi Everyone,

I'm working on a feature where I want the user to be able to draw a rectangle onto an image on a window in the runtime.  At the moment it's pretty basic - I can track the mouse down and mouse up events, and then it draws the box.  However, it would be really cool if the user saw a rectangle as they moved the mouse after clicking mouse down - like drawing a box in a drawing program.  For double bonus points it'd be awesome if they could later on select the rectangle and resize it.

I don't think there's any functionality in Omnis that allows us to do that in the runtime.  Has anyone done something like this in the past, and are willing to share?

Regards,
Paul.



"Debugging is like being the detective in a crime movie where you're also the murderer."
--
Paul W. Mulroney                                            We Don't Do Simple Pty Ltd
pmulroney at logicaldevelopments.com.au<mailto:pmulroney at logicaldevelopments.com.au>       Trading as Logical Developments
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.logicaldevelopments.com.au&c=E,1,-d2WRPKLXuLSV-dtOBvfsMaHm35a5bZlQn4mrvUe3iGdI_VzFuWs7XbcaiP8ZZ2-PBqBmUg8_RDRsWwgRgd0S0fuSEzKzCoswXh7XcvcXsaV6DnjeuA,&typo=1                   ACN 161 009 374
Ph: +61 8 9458 3889                                       86 Coolgardie Street
                                                                        BENTLEY  WA  6102

_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=http%3a%2f%2flists.omnis-dev.com&c=E,1,wPZoAKEnUhyvHP-Ak_UNHWQk3yesY8rjbeTBPUWw-NIgl8tG3eHQcBlKlB2a2DvEmXk74nCFN2l4M7BqFng23JC4zgBMK2Ra9NwhJO56ZvUUAEk,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com




More information about the omnisdev-en mailing list