The Matrix
February 17th, 2000, 06:29 PM
On mouse click on a picture box with a icon in that picture box, how would i open the common dialog box and let the user save what icon he clicked on(in the picture box)
|
Click to See Complete Forum and Search --> : Icons The Matrix February 17th, 2000, 06:29 PM On mouse click on a picture box with a icon in that picture box, how would i open the common dialog box and let the user save what icon he clicked on(in the picture box) Ravi Kiran February 17th, 2000, 11:11 PM Just an idea. it may work!! 1. Icon Display: You shoud use PaintPicture property to paint the icon image on to the picture box in a predefined rectangular areas. If you do this differently, then you might have to keep track of which icon (image file) is in which area. 2. Icon Selection: When user clicks on a icon, you have to write some kind of hit-test method, from which you can find (using info from 1 above), which image file it is. If you know the positions of that area, you could even draw a small rectangle to indicate highlight. If you use std RECTt, then you can use PtinRect API. 3. Then on Mouse up / Click, bring up the Common Dialog box with SaveAS option, and give a different/same name for the file. well each of these steps itself is worth a post. so... RK codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |