Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Jun 28, 2017 2:08 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Need a Styled HTML Text Custom Control WebLabel
PostPosted: Sat Mar 09, 2013 12:18 pm 
Offline

Joined: Wed Oct 12, 2005 5:30 pm
Posts: 114
Location: Bryan, Texas
Has anyone created a WebLabel with the Web Control SDK that is capable of displaying styled HTML text?

What I am looking for is a way to show html in a WebLabel with a few attributes, such as bold, bolditalic, italic and boldunderline within the text.


Top
 Profile  
Reply with quote  
 Post subject: Re: Need a Styled HTML Text Custom Control WebLabel
PostPosted: Sun Mar 10, 2013 9:10 am 
Offline

Joined: Mon Feb 20, 2006 11:21 am
Posts: 21
I haven't done it, but I did go through the WebSDK docs while working on another issue, and I think the example in the docs would probably get you 90% of the way to what you want.

You might want to try that out and see if it fits.


Top
 Profile  
Reply with quote  
 Post subject: Re: Need a Styled HTML Text Custom Control WebLabel
PostPosted: Sun Mar 10, 2013 10:12 am 
Offline

Joined: Wed Mar 22, 2006 11:15 am
Posts: 712
Location: Southern California
You can display arbitrary HTML in the WebHTMLViewer control.

_________________
Daniel L. Taylor
Custom Controls for Real Studio WE!
Visit: http://www.webcustomcontrols.com/


Top
 Profile  
Reply with quote  
 Post subject: Re: Need a Styled HTML Text Custom Control WebLabel
PostPosted: Sun Mar 10, 2013 11:27 am 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
kevo wrote:
I haven't done it, but I did go through the WebSDK docs while working on another issue, and I think the example in the docs would probably get you 90% of the way to what you want.

You might want to try that out and see if it fits.


This page is way better for me:
http://docs.realsoftware.com/index.php/ ... rolWrapper

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
 Post subject: Re: Need a Styled HTML Text Custom Control WebLabel
PostPosted: Mon Mar 11, 2013 6:46 pm 
Offline

Joined: Wed Oct 12, 2005 5:30 pm
Posts: 114
Location: Bryan, Texas
Quote:
You can display arbitrary HTML in the WebHTMLViewer control.


I tried this, maybe I am doing something wrong, I created a new WebApp, put an HTMLViewer on it and created two buttons.

Button1
HTMLViewer1.LoadPage("This is a <b>test 1</b>")

Button 2
HTMLViewer1.LoadPage("This is a <b>test 2</b>")

I run the app and press button1 and then button 2. It works fine. I keep going back and forth and the text changes. But I noticed the browser forward/back buttons start working and you can actually go back and forward but it only affects the text in the HTMLViewer. If you play around with it you will see what I mean. Seems to be a bad situation. A user can click back on their browser and change the text to a prior version that you had loaded, but your app continues on as if nothing changed. I am sure it has to do with the loadpage method confusing the browser. I am using Chrome on Windows by the way.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group