Article View: comp.lang.pascal.delphi.misc
Article #280Re: VB is better! Sub/Superscript in Rich Edit Controls...or, Inserting RTF codes directly
From: Travis Elkins
Date: Fri, 22 Jan 1999 00:00
Date: Fri, 22 Jan 1999 00:00
54 lines
3621 bytes
3621 bytes
Hi Alan, and thanks for the response. Yes, I've also discovered exactly what you're saying. I have the codes that I need, but I don't know how to insert (or remove) them. As you've pointed out, we seem to only be able to access the text, and nothing more. I think if someone can give us a clue as to how one inserts and manipulates the codes, then it would help a lot. Is there anyone out there...? :-) For now, what I've done is to use the EM_GETCHARFORMAT and EM_SETCHARFORMAT messages along with the CHARFORMAT structure. It's a bit messy right now, and only serves to imitate the actual sub- and super-scripting behavior. I don't like to have to do it this way, but it's all I have right now. I don't know if this "methodology" will help you out, but it might serve until we find out how to actually insert the codes. Or, it could end up being too much trouble. :-) Anyway, I'll be sure to say something to you if I find out anything more. Thanks, Travis Alan MacArthur wrote: > Travis Elkins wrote: > > > > Hello, > > > > First of all, I said, "VB is better!" both to attract attention and also > > to point out that from the documentation that I can read it is simpler > > to solve my problem in VB than in Delphi. But, PLEASE don't give me the > > lectures about which is better. Hands down, I say Delphi ROCKS! > > > > My problem is this: I would like very much to programmatically create > > super- or sub- scripts in a rich edit control. I can't seem to find any > > documentation on how one would go about doing this. Even in the MS SDK > > and Win32 help files...NOTHING! What's the deal? Is there anyone out > > there that can help me? > > > > I have found a list of supported RTF codes in some MS documentation, but > > I can't find anything on how to insert (and remove) the various codes. > > > > Any help would be appreciated. Oh, if you have some ideas, could you > > please respond to my email address as well as the newsgroup? > > > > Thanks, > > > > Travis > > I am also working on this with a near-term deadline. If we could find > the rtf text (including codes) we could insert text quite easily. > However, RichEdit.Text is just the text, NOT the rtf codes. I don't > know, but if you find out, PLEASE let me know, too! Thanks.
Technical Details
Message-ID:
<36A83B4A.5BB46100@plusdata.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36A5ECFA.C97294CE@plusdata.com> <36A79A14.3336@boeing.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 104e31,341539ebf602c2f5 X-Google-Attributes: gid104e31,public X-Google-Thread: f894d,341539ebf602c2f5 X-Google-Attributes: gidf894d,public X-Google-Thread: f973d,341539ebf602c2f5 X-Google-Attributes: gidf973d,public X-Google-Thread: 10baee,341539ebf602c2f5 X-Google-Attributes: gid10baee,public X-Google-Thread: fd817,341539ebf602c2f5 X-Google-Attributes: gidfd817,public X-Google-Thread: 105ac8,341539ebf602c2f5 X-Google-Attributes: gid105ac8,public From: Travis Elkins <telkins@plusdata.com> Subject: Re: VB is better! Sub/Superscript in Rich Edit Controls...or, Inserting RTF codes directly Date: 1999/01/22 Message-ID: <36A83B4A.5BB46100@plusdata.com> X-Deja-AN: 435560059 Content-Transfer-Encoding: 7bit References: <36A5ECFA.C97294CE@plusdata.com> <36A79A14.3336@boeing.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@uni2.dk X-Trace: news.get2net.dk 916994969 192.38.197.18 (Fri, 22 Jan 1999 09:49:29 MET DST) Organization: UNI2 Internet Kunde MIME-Version: 1.0 NNTP-Posting-Date: Fri, 22 Jan 1999 09:49:29 MET DST Newsgroups: comp.lang.pascal.delphi.misc,comp.lang.pascal.delphi,borland.public.delphi,alt.lang.delphi,alt.comp.lang.borland-delphi,alt.comp.borland-delphi