Skip to main content



      Home
Home » Archived » Sapphire » SapphireFormText
SapphireFormText [message #839749] Mon, 09 April 2012 02:11 Go to next message
Eclipse UserFriend
I have a label that I'm trying to use the <form> <li> <p> formatting tags. I see that ISapphireLabelDef is rendered with a SapphireFormText. Is it possible to use those formatting tags with this?
Re: SapphireFormText [message #840063 is a reply to message #839749] Mon, 09 April 2012 12:16 Go to previous messageGo to next message
Eclipse UserFriend
I don't see anything in the code that would prohibit this, but I cannot recommend this approach. The lexicon employed by form text is unlikely to become part of Sapphire API.

Have you considered using HTML embedding instead? See "HTML Content" in the gallery sample.

- Konstantin
Re: SapphireFormText [message #840065 is a reply to message #840063] Mon, 09 April 2012 12:18 Go to previous messageGo to next message
Eclipse UserFriend
I did consider Html content but the background of the control doesn't match. In my case I'm using a Sapphire Wizard dialog, not a masterdetails page. So the default background is not white so the html control looks out of place. In my case I was able to work around this no problem.
Re: SapphireFormText [message #840070 is a reply to message #840065] Mon, 09 April 2012 12:22 Go to previous messageGo to next message
Eclipse UserFriend
Since it is HTML, you can set whatever background color you'd like...
Re: SapphireFormText [message #840076 is a reply to message #840070] Mon, 09 April 2012 12:28 Go to previous messageGo to next message
Eclipse UserFriend
This is true, but I wasn't for sure how to get the current default background of the WizardDialog. I could hard code it to the default on my windows 7 system, but don't know how to do that for other windows systems, e.g., linux, mac. Does the html control value possible to use expressions?

[Updated on: Mon, 09 April 2012 12:29] by Moderator

Re: SapphireFormText [message #840085 is a reply to message #840076] Mon, 09 April 2012 12:38 Go to previous messageGo to next message
Eclipse UserFriend
You can indeed use expressions to compute HTML content.
Re: SapphireFormText [message #840331 is a reply to message #840085] Mon, 09 April 2012 20:35 Go to previous message
Eclipse UserFriend
Ah I see, that would be one way to dynamically set the background color.
Previous Topic:Sapphire.Edit
Next Topic:initial values for properties created in list editor
Goto Forum:
  


Current Time: Wed Jul 23 14:13:20 EDT 2025

Powered by FUDForum. Page generated in 0.06498 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top