Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 11:59 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Save and retrieve input text and formatting
PostPosted: December 22nd, 2005, 2:12 pm 
Offline

Joined: May 2nd, 2005, 8:42 am
Posts: 5
Location: Scotland
hello

Is there a way to save the contents of an input box (used as a page) including several lines of text and formating, and then read it back to appear the same?


Many thanks

William


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 22nd, 2005, 3:41 pm 
Offline

Joined: November 11th, 2004, 1:43 pm
Posts: 172
Location: Buckinghamshire, UK
1). Have the input box's data saved to a variable.

2). use the following to read the input boxes display details (font, fontsize, italics etc etc)


text_Input.SetSelection(0,-1)
var myTextFormat = text_Input.GetSelectionStyle()
var myTextFont = myTextFormat.fontname


Debug.trace("Selected Text Area: " + my_Input +"\n")


where text_Input is the input object whose data is stored in my_Input variable....

From this details you can save the data to file...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 73 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group