Le 1 févr. 2016 à 16:03, Jean-Luc Arnaud <[email protected]> a écrit:
> Arnaud, > > Except some minor corrections (missing parenthesis) I had to do, your > code works fine: congratulation! > The main mistake was in the Paint event, where you should replace: > > g.DrawRect > Selection(0),Selection(1),Selection(2)-Selection(0),Selection(3),Selection(4),Selection(5)-Selection(1),Selection(6)-Selection(0),Selection(7)-Selection(1) > > With: > > g.DrawRect > Selection(0),Selection(1),Selection(2)-Selection(0),Selection(5)-Selection(1) > > Your Selection array is actually a great idea. I will now adapt my own > code (already working) for resizing the selection rectangle. Hello Jean-Luc, I'm glad this suits your needs; I had the need for it to try to make a drawing application in the past (well, it'll probably never be finished, as it's too complex). Thank you for having reported my mistake; I'm yet unable to understand why I've put so many parameters while I knew it takes only 4… _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
