[Gambas-user] Label.Resize in Picture1_MouseMove
Demosthenes Koptsis
demosthenesk at ...626...
Sat Jan 1 14:12:03 CET 2011
hello,
i converted my Mini Image Editor (demostration of Image class)
to Gambas3 at ubuntu 10.04 machine.
i want to simulate a selection box tool for an image.
For this i made something not so professional but i think i found
something.
For the selection of image area i use a label as gui with
1) transparency
2) border etched
3) and no text
when the user select an area from the PictureBox the Label with these
properties resizes and shows the selected area from the picture.
i know that this is not a pro way but i wanted a fast solution and avoid
to make my one object, at this point.
Now the problem.
When the user grow the selection box from up-left to down-right the
Label object refreshes correctly and shows its Etched-border.
http://www.mediafire.com/imgbnc.php/4bc70a02a6a13510e9066b6e8a712fd1931d713bdd18b8556174a6382fb226744g.jpg
When the user move back the mouse pointer (from down-right to up-left)
of selection box the Label object is resized but does not draw its
border correctly...
http://www.mediafire.com/imgbnc.php/9e738ebdc8b6a49a9e298a50a38ae6eebf0990d655099fc62345f98c3d20e05d4g.jpg
i also give url with the project.
http://www.mediafire.com/?dsn3jptqd9prqkp
--
Regards,
Demosthenes Koptsis.
More information about the User
mailing list