|
-
February 17th, 2000, 07:29 PM
#1
Icons
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)
-
February 18th, 2000, 12:11 AM
#2
Re: Icons
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|