|
I stopped reading after the first sentence. Please lose the SMS-speak and use proper English.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
So what are you needing help with? Responding to a button click? Writing text onto an image? Saving text? Be specific.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I need help with writing text onto a image..
|
|
|
|
|
raavn wrote: I need help with writing text onto a image..
Something like this.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
actually i have the code to load a image....so i just wanna a code that could add text onto that image....like if say i load a image called map and i want to write the names of the countries on it....
|
|
|
|
|
raavn wrote: ...write the names...
Via the keyboard or code?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Then I'd imagine you would create an edit control at runtime. One of the arguments passed to CreateWindow() is the x/y coordinate of the control. I assume this would be near to where you'd want the "label" to be.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Can you please elaborate it??
|
|
|
|
|
First, what sort of indicator are you wanting for knowing when to add the label to the image? For example, are you going to be right-clicking on the image and then bringing up a context menu (with Add Label as one of the choices)?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
actually i wanted to add a button for this purpose....so that when i will click this button,it will add label onto the image..
|
|
|
|
|
raavn wrote: ...when i will click this button,it will add label onto the image..
So which is it, code or keyboard?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Was this of no help?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi David,
Thanks for help....but I need more help...I have done what u said to do...next I wanna that when I will click this button,then a cursor should be displayed on the image so that I can write text on the image....this software is already having a SAVE button...so after writing when I will click save button,it should save that text....
Can you please give me some idea like how to start with?I would really appreciate that..
Thanks & Regards
|
|
|
|
|
Are you using VC++ with .Net? If so you can use a form designer, it's relatively easy. If you're using ATL or MFC, then things maybe be a little more complicated.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
VCF Blog
|
|
|
|
|
on a static text control how do you display special characters like a '&', i.e. "Time & Date Menu".
cheers,
Andy
|
|
|
|
|
SetWindowText("Time && Date Menu");
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
david, can you remind me why "Time & Date Menu" wouldn't work ?
|
|
|
|
|
Because that would underline the blank space after & as a possible key accelerator:
Time <span style="text-decoration: underline;"> </span>Date Menu
|
|
|
|
|
ohhhh, yeah. i got it. thanks
|
|
|
|
|
Think mnemonics.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: Think mnemonics.
Simple, yet powerful
|
|
|
|
|
You can also use the SS_NOPREFIX style on your static control.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|