Page 3 of 6

Posted: Sun Jul 02, 2006 2:49 pm
by srod
rsts wrote:Thanks for the code.

Is it supposed to be repeated?

cheers
Uhm, absolutely... :oops:

Fixed!

Posted: Sun Jul 02, 2006 2:50 pm
by Dare
:lol:

Posted: Sun Aug 13, 2006 7:52 pm
by pfoo
Hey, very good job :D
Is it possible to add text on the left or on the righ of the image ?

Apparently,

Code: Select all

SetGadgetText(0,a$+"test")
SetGadgetText(1,a$+"test")
don't work, but it's possible to write manualy beside images ...

Posted: Sun Aug 13, 2006 10:42 pm
by srod
Depends on what you mean?

You can certainly add some text, then insert an image - all in code. Either by using the clipboard, inserting rtf directly or by streaming etc.

Posted: Sun Aug 13, 2006 11:47 pm
by pfoo
What i mean is putting text and image on the same line.
For example :
Blah blah blah (image) blah blah blah

Posted: Mon Aug 14, 2006 8:57 am
by srod
Yes, although alignment is a problem where images are concerned. Anything you can do by typing directly into an editor gadget can be done in code.

Best bet is probably to use the clipboard, at least in the first instance.

See dare's post above for one way of using the clipboard.

Posted: Wed Aug 30, 2006 10:40 am
by srod
Bug fix: 30th August 2006.

:oops:

Due to my very sketchy understanding of COM etc. Again involving the reference counting.

Code is in the first post.

Posted: Fri Sep 15, 2006 5:37 pm
by PHP
Hello,

what's the fastest way to include small bmp-pictures (32x32 pixel) into the EditorGadget()?

If possible without using the clipboard... just convert the bmp so i can use them in the Data-area...

Posted: Fri Sep 15, 2006 6:27 pm
by PHP
Okay i found a way to convert the .bmp to .rtf and included it into the source.

My problem: The image is not shown in the original size but 2x times bigger or something :-(

Does anyone know how to fix that? It's nice to include pictures into the EditorGadget() but if they are not shown in original size it's bad...

Posted: Fri Sep 15, 2006 6:32 pm
by srod
Save it in rtf format, e.g. copy into Wordpad and then save.

Then use CatchRtf() or LoadRtf() etc.

Posted: Fri Sep 15, 2006 6:36 pm
by srod
Are you converting to rtf using PB code or using another program?

Posted: Tue Sep 19, 2006 11:40 pm
by PHP
1) creating the picture in Paint Shop Pro
2) save in .wmf
3) paste into WordPad
4) save as .rtf

Posted: Tue Sep 19, 2006 11:50 pm
by srod
I use a similar method except I create it in word (simple diagrams), copy into Wordpad and then save etc. I let wordpad handle the conversion to wmf etc.

Posted: Tue Sep 19, 2006 11:54 pm
by PHP
This works of course, but the image is not in the same size as in WordPad :-(

Just try with a small (typical) 16x16 Smiley...

Posted: Wed Sep 20, 2006 12:16 am
by srod
Works fine here php.

I just copied the smiley of yours into wordpad. Saved it and then loaded it into an editor gadget. Exactly the same size!