473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Idea behind a custom text editor...

Hi everybody!

I am planning to create a kind of text editor that you can insert
objects in the middle of the text, much like you insert WordArt or
vector graphics inside a MS Word document. You can drag them, align
with the text and etc. When you double click those objects, you enter
another editor specific for that kind of object, like cliparts on ms
word.

I don't want a complete tutorial about how to create this kind of
thing, only some idea about how to start or how this thing works.

I was planning to create some controls based on
System.Windows.Form.Control to be those objects, but i don't know if
this is the right way. An object to be the "paper" behind the text,
then other objects to be inserted in this container... But i think
that like the name says, those kind of objects are to be used in
windows forms like user controls, not objects inside a custom editor.
So, where should i start?

Anyone can help me with the concept behind this kind of thing? Any
book or site to look for? I thought about looking the OpenOffice
source, but maybe there is a better place to look.

Any idea or help would be great!

Thank you.
Nov 15 '05 #1
3 2490
"Natan Vivo" <nv***@mandic.com.br> wrote:
I am planning to create a kind of text editor
that you can insert objects in the middle of
the text [...] When you double click those objects,
you enter another editor specific for that kind of
object, like cliparts on ms word.


You can basically do this with the RichTextBox control.

Bitmap bmp = new Bitmap(@"c:\test.bmp");
Clipboard.SetDataObject(bmp);
myRichTextBox.Paste();

P.

--
www.CL4.org
Nov 15 '05 #2
"Paul E Collins" wrote:
You can basically do this with the RichTextBox control.

Bitmap bmp = new Bitmap(@"c:\test.bmp");
Clipboard.SetDataObject(bmp);
myRichTextBox.Paste();


No, you didn't understand... I don't want insert pictures inside this
editor. I want to insert objects that i create in a format that i
design. A rich text box is far from what i want...

Imagine it more like a Corel Draw Page, or a MS Word page with WordArt
objects. Except that the objects i will create with GDI+, they don't
exist. I must create the workspace and the objects and design a way to
work with them inside this workspace.

i just need the idea or some program that works like that.. like a
vector drawing app in c#... this would be helpful.
Nov 15 '05 #3
"Natan Vivo" <nv***@mandic.com.br> wrote:
No, you didn't understand... I don't want insert
pictures inside this editor. I want to insert objects
that i create in a format that i design. A rich text
box is far from what i want...


You can put more than just pictures in a RichTextBox. It supports any kind
of object that supports OLE (object linking and embedding).

Perhaps you should consider creating your objects in an OLE-compatible
format (so that they could also be included in Word documents, Excel
documents, and so on) instead of trying to re-invent the OLE concept
yourself.

Unfortunately, I don't know how to achieve this in C#. Anyone else?

P.

--
www.CL4.org
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: E J | last post by:
Does anyone know of a way to wrap custom tags around selected text using execCommand or otherwise? I am developing a rich text editor for use in a web site and while there are a few decent ones...
0
by: Sundown | last post by:
I am trying to create a custom button control for the web that, when clicked, disables and changes the text of itself and a bunch of other controls (in the collection). My goal is to end up with a...
3
by: Nick Haines | last post by:
I need to write my own custom text edit control.. but I'm not sure where to start - I've never written a custom control... the features I want are somewhat similar to the VS .Net text editor - text...
2
by: Technical Support | last post by:
Good afternoon, I created a custom control, compiled it into a DLL, and added it to the BIN directory. I placed an instance of the control in a webForm and am trying to programatically change its...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
5
by: ross kerr | last post by:
Hi All, I am extending the combobox to create a control that selects an item based on the text the user is typing into the text area of the control. I have an issue that occurs only when i...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
2
by: Michael Raczynski | last post by:
Hey guys, Apologies if this is in the wrong thread, whenever I search for <% or "switching context" I get no results. What I am trying to do is set the value of a html text box to a server...
11
by: Pete Kane | last post by:
Hi All, does anyone know how to add TabPages of ones own classes at design time ? ideally when adding a new TabControl it would contain tab pages of my own classes, I know you can achieve this with...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.