X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 16 May 2006 08:46 AM by  anon
text widget fonts and colors
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
16 May 2006 08:46 AM
    I would like to know if it is posible to change the font (and hopefully color) of the text in an editable text widget after it has been created. I would like to either change the font, or overwrite the text in the widget with text in a new font. Is it also possible to change the color of the text? I can't seem to find anything in the documentation that makes it seem like this is possible, but it sure would be nice in my application! Many thanks to anyone that responds - Peter Doherty

    Deleted User



    New Member


    Posts:
    New Member


    --
    16 May 2006 08:46 AM
    I do not believe that this functionality is available in IDL widgets. As regards text color, IDL WIDGET_TEXTs interface with the system widget API for "edit windows" based on plain text. To implement color, on Windows as an example, the interface would have to be rewritten to interface with the system widget API for "Rich Text Format". As regards font style, I am guessing that RSI simply has not prioritized implementation of the algorithms that would probably force a dialog box to completely resize itself whenever a program changed the font type or size of an edit box, and thus required dimensional changes to optimally display the new font. Would such an implementation have a better appearance than the appearance of a program which closed down a dialog box, then instantaneously reinitialized a substitute in the same location? ... maybe not. That algorithm is, of course, available - a program could close the original dialog with one WIDGET_TEXT FONT setting and open a new with different font setting, but the odd redrawing behavior of the dialog would almost certainly be noticeable to end users. Send a feature request to 'support@rsinc.com' and make sure RSI puts this in their Change Request system. Probably, the day is getting closer when IDL's WIDGET_TEXTs will interface with RTF or HTML API's. James Jones
    You are not authorized to post a reply.