-
Mar 30th, 2004, 07:07 AM
#1
Thread Starter
Hyperactive Member
Add other controls in Rich Text Box (Solved!!!)
Does anyone know how to add custom controls in a Rich Text Box? For example, how to add a button in a Rich Text Box?
Or with vb code or with RTF code.
Last edited by DarkX_Greece; Mar 31st, 2004 at 11:28 AM.
-
Mar 30th, 2004, 07:17 AM
#2
Hyperactive Member
use the following code
VB Code:
SetParent Command1.hWnd, RichTextBox1.hWnd
-
Mar 30th, 2004, 09:28 AM
#3
Thread Starter
Hyperactive Member
It doesn't work
Your code doesn't work. As i know , vb6 doesn't have "setparent" method or function.
-
Mar 30th, 2004, 02:53 PM
#4
Thread Starter
Hyperactive Member
Doesn't anyone know something to help me? I know that it can be done by RTF code and i am sure for this but i don't know how. Can someone help me?
-
Mar 30th, 2004, 04:57 PM
#5
-
Mar 30th, 2004, 10:14 PM
#6
The picture isn't missing
Originally posted by DarkX_Greece
Doesn't anyone know something to help me? I know that it can be done by RTF code and i am sure for this but i don't know how. Can someone help me?
What makes you SO sure that you can do it using RTF code?
Remember, if someone's post was not helpful, you can always rate their post negatively .
-
Mar 31st, 2004, 04:31 AM
#7
Thread Starter
Hyperactive Member
Try to add a button or a picture box into a word document using MS Word from MS Office. Then save it as RTF document and then open it with WordPad. As you will see the button or the picture box. Then save it again from the WordPad and open with the notepad. You will see the the rtf code. Then copy paste the code and put it as:
RichTextBox1.TextRTF = << Paste here the rtf code from NotePad >>
You will see the button or the picture box as it is in the MS Word.
My problem is that i can not understand what is the proper code from all this. It is too big rtf code for only one button!
Please if you know , please help me
-
Mar 31st, 2004, 04:44 AM
#8
Thread Starter
Hyperactive Member
Thanks Manavo11!
(Äåí Ý÷ù áêïýóåé íÝá óïõ áðü ôüôå ðïõ óïõ Ýóôåéëá ôï áñ÷åßï ìÝóù email.)
-
Mar 31st, 2004, 08:54 AM
#9
-
Mar 31st, 2004, 11:27 AM
#10
Thread Starter
Hyperactive Member
(ΟΚ! Το project που σου είχα στείλει ξέχνα το, έχω δημιουργήσει ένα άλλο, με καινούργιο κώδικα για parsing τα tags,που δουλεύει πάντα! Έχω χάσει το email σου, αν μπορείς στείλτο μου. Που μετακομίζεις στην αθήνα? Σε ποια περιοχή?)
Thanks all of you!!!!
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
|