Re: Second time(this time plain text): How to make rectangle around the image when selected...
Feba Februarcic <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
Hi Shahab, I am very interested to see your application on this metter and it would be great if you can send it to me. Really, I don't have any expirience in doing graphic programming in Delphi (or anywhere else). So, for me, those are totally new stuff and I am at the begging, AGAIN. Thank you for your effort, Milica P.S. One thing I found out, and of course to corect myself, TGraphic CAN NOT ACCEPT FOCUS!!! --- Shahab-o-ddin Mokhtari <[email protected]> wrote: > Hi Feba (and other members) > I was wrote an application for you. I will attach > this to mail but I'm not sure that yahoo attach this > for all group members, so if you (or any one else !) > want this, just mail me ! > Thnx a lot > Shahab > > Feba Februarcic <[email protected]> wrote: > Hi to all members, > > I mailed this question once, but in Color&Graphic > format with graphic in it. So this time only plain > text. > > The questions are > 1)How to make a rectangle around the image (It is > not > necesary, because in Delphi when working in Design > time when the component is selected, Delphi puts > dots > around the component, without the lines, with > posibiliti of changing width and height of the > component, wich is exactly what I need to do too, > but > only at runtime) > 2)with sensitive dots for the cursor ( this is > OBLIGATORY) > 3)with changing the cursor style standing over the > dots, > > at runtime? > > Well, I thought that rectangle shows when the image > is > clicked, and it will represent that the image is > selected. All that will be hapening on > Event_Image_OnClick, but .... > > I found the property > > StartX:=Image.Left; > StartY:=Image.Top; > X:=Image.Left+Image.Width; > Y:=Image.Top+Image.Height; > Image1.Canvas.Rectangle(StartX,StartY, X, Y); // > relative to a parent > > If the Image1.Loads the JPG image this is not > working, > and for the BMP formats, > , as I have understood, this drows rectangle inside > the picture, wich I don't need. > > So how can I perform this? And of course to erase > this > "frame" when the image loose focus. > > Maybe I am on the wrong track.... > > Thanks in advance, > Milica > > > > Sincerely Yours > Shahab-o-ddin Mokhtari > > [http://Ceramic81.150m.com] > [[email protected]] > [http://ShahabM.8m.com] > > > --------------------------------- > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > > [Non-text portions of this message have been > removed] > > > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ------------------------ Yahoo! Groups Sponsor ---------------------~--> Save on Coral Calcium. Get Better Health and Stronger Bones. Seen on TV http://www.challengerone.com/t/l.asp?cid-2805&lp=calcium2.asp http://us.click.yahoo.com/9gf46B/EfUGAA/ySSFAA/i7folB/TM ---------------------------------------------------------------------~-> Delphi Tips & Tutorials... http://www.delphicollection.com --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/