Search the Community
Showing results for tags 'text'.
-
Was looking for an easy to make wysiwyg editor. This one is based on 'document.designMode'. Mozilla: "When an HTML document has been switched to designMode, its document object exposes an execCommand method to run commands that manipulate the current editable region" IFrame's have an innate document element which can be used for that purpose. Have a form with an IFrameHtmlElement and 2 buttons ('bold' and 'italic') : procedure TForm1.InitializeForm; begin inherited; // this is a good place to initialize components W3IframeHtmlElement1.handle.contentDocument.designMode
-
I need to place a large amount of text that needs to be placed in a control and placed on my form. The text needs to able to be word wrapped and scroll-able. However, I do not want visible scrollbars such as seen in a TW3Memo. Can I use TW3ScrollControl for this? I have no idea how much text will be there, but at the most three large paragraphs. The text will need to word wrap based on the size of the control holding the text. I tried using a TW3Label but it seems it has no wrapping procedure TForm1.InitializeForm; var s: string; i: integer; begin inherited; //
-
Hi I am trying to import content from a text ot CSV file located in the phone. Is there a way to locate the file and then read the text content into a memo or text variable? I have seen the JavaScript FileReader object in blogs but I don't know how to use it in SmartMobileStudio. Any ideas?
- 3 replies
-
- file
- filereader
- (and 4 more)
-
Hi. Is there a way to read a .txt file from the /res folder into a string variable or memo field?