Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » SapphireFormText
SapphireFormText [message #839749] Mon, 09 April 2012 06:11 Go to next message
Greg Amerson is currently offline Greg AmersonFriend
Messages: 119
Registered: March 2010
Senior Member
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 16:16 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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 16:18 Go to previous messageGo to next message
Greg Amerson is currently offline Greg AmersonFriend
Messages: 119
Registered: March 2010
Senior Member
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 16:22 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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 16:28 Go to previous messageGo to next message
Greg Amerson is currently offline Greg AmersonFriend
Messages: 119
Registered: March 2010
Senior Member
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 16:29]

Report message to a moderator

Re: SapphireFormText [message #840085 is a reply to message #840076] Mon, 09 April 2012 16:38 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
You can indeed use expressions to compute HTML content.
Re: SapphireFormText [message #840331 is a reply to message #840085] Tue, 10 April 2012 00:35 Go to previous message
Greg Amerson is currently offline Greg AmersonFriend
Messages: 119
Registered: March 2010
Senior Member
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: Thu Apr 25 00:58:19 GMT 2024

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

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

Back to the top