Rich Text Edit Controls

Does anyone know how to set the font for a RTE programmatically?
            ---- AND ----
How can you tell in a script how far a RTE has been scrolled

8/15/1998 12:58:41 AM
sybase.powerscript 7704 articles. 0 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 13

Hi Paul,

There should be an easier way of setting the font size for RTE controls,
but I have not found it yet.  The code below will change the font size
for the entire window.  I don�t know how to change it for selected
text.  Give this a try.  Hope it works.

String ls_init_rtf
ls_init_rtf =  '{\rtf1{\fonttbl{\f0\froman Tms Rmn;}}'
ls_init_rtf =  ls_init_rtf + "{\f0\fs24\cf0\up0\dn0 a big brown house }"
+ '}'

//  The characters in the { are RTF escape characters.  You can format
your whole document using these if // you want.

// Code to increase font size......for detail

Next you would add code to load your document.

As for your other question.  I don't know.

Travis Culbreth

Paul Drust wrote:

> Does anyone know how to set the font for a RTE programmatically?
>             ---- AND ----
> How can you tell in a script how far a RTE has been scrolled

9/22/1999 12:17:03 PM

Similar Artilces:

How to get a text from rich text edit control ?
It does not have a such property as 'Text'. So how can I catch in to variable whatever user types ? Thanks. string ls_text this.SelectTextAll() ls_text = this.SelectedText() On Thu, 24 May 2001 11:43:44 -0400, in powersoft.public.powerbuilder.general yt <> wrote: >It does not have a such property as 'Text'. So how can I catch in to >variable whatever user types ? > >Thanks. > > Bruce Armstrong [TeamSybase] ---== Posted via the PFCGuide Web Newsreader ==---

Rich Text DataWindow In Rich Text Control
Hi, is there a way to take the contents of a rich text data window and put it into a rich text edit control? Thanks, Cliff ...

Rich Text Edit Control
1. I am using RTF control in a window Can i get rtf data in the format like: {\rtf1\ansi\ansicpg1251\deff0{\fonttbl{\f0\fnil\fcharset0 Verdana;}} \viewkind4\uc1\pard\lang1049\b\f0\fs24 RichText control is installed!!!\par } from this control.... I know i can use UPDATEBLOB and SELECTBLOB but that would be blob data. i want to get data like above because i have to display the contents of richtextedit control on a webpage as well. 2. Can I put RichText Edit control on a datawindow? 1) You can store and retrieve up to 32k without needing to use SELECTBLOB and UPDATEBLOB. You c...

Rich Text Edit Control
Who's successfully using a - easy to use, cheap or free - rich text editor control in a VWD project?  What's the name of it?What's the name of the rich text edit control I'm typing into right now for this forum post?Thanks.Frank Free Text Box or FCKEditor.  The fact it's a VWD project isn't relevant.JeffPlease: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.     I use FreeTextBox as well (though not in Studio, not that it matters much).&nbs...

Rich Text Edit Control
Hi All I'm using PB703 Build 10213 I'd like to use a RTE on a window, together with a Datawindow control, get the data from a Long VarChar column on the Datawindow control, set them in the RTE, do some formating on the (BOLD, UNDERLINE, etc), get them from the RTE set them back in the column and save them to the database. Is this posible. TIA Stelios Stylianou Stelios - This is what the RTE Datawindow style is supposed to accomplish. From what I've heard it works FAIRLY well, but it has "issues". You have been warned. :) Olan "...

Rich Text Edit Control
HI All: I have a RTF control which imports a RTF file and I want the RTF file to print with it's original margin settings. The RTF document has the following margin sizes: L = 1, R = 1, T 1.80 and B = .25 What happens when I print (rte_1.Print(blah...)) the RTF document is expanded to the edges of the paper. When I view the RTF in PREVIEW mode, the margins are set to: L = .25, R = 0, T = 0 and B = .20 I tried scripting the desired margin settings (RTE_1.LeftMargin = 1 etc.. )and printed with the same result. I do NOT want the users to use the RTE_1.Preview = true window to...

chinese character in rich text control and text control
I have a chinese character in either rich text control or text control. The character is look fine if it is a small size (10, 12), however when the font size is changed bigger (36 or 72), the character is out of shape(many dot, not smooth). Is anyone has any idea to print a bigger chinese character from pb7.03. ...

Rich Text Edit Control Limit
Is there anyway to limit the number of characters in a Rich Text Edit control? I know there's a limit property on a multi line edit, but there doesn't appear to be anything on the rich text edit. What I'm trying to do is have a datawindow with multiple rows at the top of the screen and when a rowfocuschanged occurs to populate the rich text edit control with data from one of the fields. From there they can edit it and the editchanged user event copies it back to the datawindow so that it can be updated. Everything works great except that the field is only 4000 characte...

Rich Text Edit Control Queries
Hi there! I am having the following problems with Rich Text Edit controls using PB6.5: 1. What-you-see-is-not-what-you-get. I can see the indentation on the document which is displayed at the control, but when I print out, the document is without the indentation. 2. I cannot see the page numbering. When I select the header and footer, I cannot see it during a preview and during a physical hard copy after a print. 3. How can I set the default font setting which is applicable for all documents? I understand I can always change it on the menu bar, but I cannot seem t...

MAPI and rich text edit control.
I can email the contents of a multiline edit control (mle_message) by doing the following: mMsg.notetext = mle_message.text But how can I substitute a rich text edit control (rte_message) instead? // the following doesn't make sense !! mMsg.notetext = rte_message.text So, how do I store the contents of a rich text edit control to mMsg.notetext? Also, I know I could solve this by emailing a file attachment but I don't want to do that. Thanks, Andy ...

Rich Text Edit Control #2
Hi, Is there a way to set the font (Arial, Times New Roman ...) and its size through one of the controls functions? Markus On 19 Aug 2004 06:19:13 -0700, "Markus Zurbuchen Consulting \(\)" <> wrote: >Hi, > >Is there a way to set the font (Arial, Times New Roman ...) and its size >through one of the controls functions? > >Markus > Bruce Armstrong [TeamSybase] TeamSybase blogs: Vote fo...

Rich Text Edit Control / DWHelp
Hi can anyone shed some light. I am trying to create a view screen to show comment details from my db. Certain words need to be highlighted in Red. I thought of using either the Rich text edit control on a window or the Rich text dw format. The problem is, If I use the dw, I cannot first select the text so that I can change the colour (via a loop to find all the relevant words). If I use the edit control on a window, I cannot get the text into it except via an ascii text file which I dont want to do (I want to put it in either as a string var or directly from the db). Any ideas much ...

Rich text edit control formatting
Hi, I have inserted a document into a rich text edit control .The problem is that I am losing all the formatting ie. font size etc. when I am inserting it using insertdocument() function of rte. Could anyone tell me how I can have the formatting in it. Thanks, Namita Hey, What version of RTF is the document you're inserting? PowerBuilder supports version 1.2 of the RTF standard. Any unsupported formatting is ignored. Davy "namita goel" <> wrote in message > Hi, > > I ha...

Web resources about - Rich Text Edit Controls - sybase.powerscript

Control - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Amazon takes control of delivery with thousands of semi truck trailers
As Amazon looks for new ways to speed up delivery, the company on Friday announced the purchase of thousands of semi truck trailers. The Seattle-based ...

Is Hillary Clinton sorry she reacted to the San Bernardino massacre with a call for more gun control ...
... "Gun safety" has traditionally meant handling your guns safely, but now it's supposed to mean what has more commonly been called "gun control." ...

more pics from Ground Control Touring 15th anniversary: Woods, Kurt Vile, Parquet Courts, Beach Fossils ...
... Parquet Courts / Woods & Kurt Vile / Beach Fossils @ Webster Hall 12/2/2015 We already posted a review and set of pictures from Ground Control ...

Chris Christie: NYT gun control op-ed "liberal claptrap"
N.J. governor and GOP presidential candidate tells "Face the Nation" stricter gun laws won't "stop terrorists from attacking us"

Robinson: Quickest Way To Force Gun Control? Form A ‘Black Rifle Association’
Robinson: Quickest Way To Force Gun Control? Form A ‘Black Rifle Association’

Open thread for night owls: First U.S. birth control clinic lasted just 10 days before being raided
... Parenthood Only Lasted for 10 Days but Started a Revolution . An excerpt: During her time in Europe, Sanger had seen Norwegian birth control ...

Amy Schumer 'Heartbroken' Over Failure of Gun Control Legislation
The comedian reacts to the Senate voting down a gun bill on Thursday.

Facebook Gives Users More Control Over Viral Content In News Feed
Facebook is updating its algorithm to give users more control over how high viral content appears in their News Feed.

BUSINESS IS BOOMING Firearm buys likely to spike amid gun control push
BUSINESS IS BOOMING Firearm buys likely to spike amid gun control push

Resources last updated: 12/5/2015 6:42:39 PM