• Welcome to Valhalla Legends Archive.
 

picture in rtb

Started by guest, March 15, 2003, 08:06 PM

Previous topic - Next topic

guest

Is there any posible way to put a bitmap in a rich text box?

Zakath

#1
Of course! I'm not sure why'd you want to, though...It'd be much easier to create the APPEARANCE of a bitmap in a RTB than to actually put one in it.

If you insist, though...look into owner-drawn controls.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Grok

#2
Zakath is correct.  Creating the appearance of a picture background on a RichTextBox could be done by making the window transparent.  Draw a real picture box behind the RichText, and make it host your image.  The image will show through to some degree depending on your mask values.

Drawing the background yourself is easier in this context, and produces a better looking output, plus is supported on more platforms.  Transparent windows are Windows 2000 and later.  Win95/98 will not do them.

l)ragon

#3
QuoteZakath is correct.  Creating the appearance of a picture background on a RichTextBox could be done by making the window transparent.  Draw a real picture box behind the RichText, and make it host your image.  The image will show through to some degree depending on your mask values.

Drawing the background yourself is easier in this context, and produces a better looking output, plus is supported on more platforms.  Transparent windows are Windows 2000 and later.  Win95/98 will not do them.

Nor will WinMe asfar as i have seen.
*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*ˆ¨¯¯¨ˆ*^~·.,l)ragon,.-·~^*ˆ¨¯¯¨ˆ*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*

Atom

#4
I think he meant putting pictures IN the rtb like smilies. You can force this on the rtb control by pasting the image in with code. You could also try BitBlt api.
I am back! aINC is dead, ThinkTank PRO is alive.
VB, JAVA, ASM, C, its all yummy to me.

Camel

#5
QuoteNor will WinMe asfar as i have seen.

transparent windows are a feature of NT5+
ME is built off of 98, not NT

by the way, Win2000=NT5 and WinXP=NT5.1

Banana fanna fo fanna

#6
It's on pscode, basically you copy the image to the clipboard and send a WM_PASTE message to the rtb.

Mesiah / haiseM

#7
Yes storm, but if he is trying to paste images into an rtb, which is already a rather large object alone, if you combine images, which colors, and tons of text, you get lag++. Buddha Bot uses WM_PASTE for it smileys, but untill i find a more memory effecient method, im making it an option the user can enable/disable, because of the lag it brings after so long...
]HighBrow Innovations
Coming soon...

AIM Online Status: 

Camel

#8
QuoteYes storm, but if he is trying to paste images into an rtb, which is already a rather large object alone, if you combine images, which colors, and tons of text, you get lag++. Buddha Bot uses WM_PASTE for it smileys, but untill i find a more memory effecient method, im making it an option the user can enable/disable, because of the lag it brings after so long...
just clear the box after x lines

Skywing

#9
Quotejust clear the box after x lines
That's kind of not very user friendly.  I don't know about you, but I don't like text I'm trying to read suddenly disappearing because a certain limit was reached.  A better solution might be to remove lines from the top of the richedit after a certain number of lines are present.

Camel

#10
QuoteThat's kind of not very user friendly.  I don't know about you, but I don't like text I'm trying to read suddenly disappearing because a certain limit was reached.  A better solution might be to remove lines from the top of the richedit after a certain number of lines are present.
*cough* quazi-flame

and yeah, that's what i do, but i assure you there was a large time gap between when i first made it clear chat and when it was able to do that :-X

Skywing

Quote*cough* quazi-flame

and yeah, that's what i do, but i assure you there was a large time gap between when i first made it clear chat and when it was able to do that :-X
Not a flame at all.  You'll notice there were no personal attacks or any such things; my post was merely stating my opinions towards a subject as well as observations I've made regarding other user's opinions on the same subject.

Discussion of ideas is how progress is made; forums are a great place to publicly debate ideas, and I'll hope you'll agree that suppressing such debates, so long as they're not degraded to personal attacks, is counter-productive.

Camel

#12
QuoteNot a flame at all.  You'll notice there were no personal attacks or any such things; my post was merely stating my opinions towards a subject as well as observations I've made regarding other user's opinions on the same subject.

Discussion of ideas is how progress is made; forums are a great place to publicly debate ideas, and I'll hope you'll agree that suppressing such debates, so long as they're not degraded to personal attacks, is counter-productive.

the reason i said quazi-flame and not flame is because you were just verging on being pretentious

QuoteI don't know about you, but I don't like text I'm trying to read suddenly disappearing because a certain limit was reached.