Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting text retrieved from a memo field
Message
 
 
To
02/03/2003 00:01:52
Bruno Di Lalla
Bdl Computer Consulting
Greely, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00760074
Message ID:
00760076
Views:
21
Bruno,

MS Rich Text Control that comes with VFP should work for you.

>Hello to all!
>
>I'm designing a FoxPro application to administer on-line exams:
>
>The text of the questions and possible answers will be stored in memo fields
>
>I will need to apply some formatting to this text, for example;
>- display words in bold
>- display words in italics
>- display words underlined
>- dispaly words in different colors
>
>In order to do this, I think an approach might be to store formatting codes within the text contained in the memo fields and somehow display the formatted text on the form.
>
>That is what I have to resolve: Displaying the formatted text on the form!
>
>Are there existing third party tools that do this? Any ideas on implementation?
>
>Some of the challenges:
>- lenght of text is unknown at design time
>- lenght of text will go beyond the character limit of FoxPro labels
>- ForxPro's Editbox control does not support formatting (as far as I know...FoxPro 9? :)
>
>Possibilities I'm thinking about (If I don't find an existing, ready to use, solution!):
>- Programmatic creation and position of labels on the screen, creating a new label every time formatting changes and everytime a carriage return should be performmed to remain within the borders of the form. Oh, and calculating these limits according to the size and type of the font!
>
>As you can see, this is at the brainstorming stage...
>
>So if any of you have any great ideas...I'm sure you all do....please share them with me!!!
>
>Thanks in advance for your help!
>
>Bruno
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform