first i want to apologize if this is not the right place to ask that, but i couldn't find the right place for IWCGHTMLSnippet or IWCGJQLabelMarquee.
i have this code :
- Code: Select all
{------------------------------------------------------------------------------}
procedure TfrmLogin.IWAppFormCreate(Sender: TObject);
Var S : String;
begin
S:='<marquee behavior="scroll" direction="up" scrollamount="1" scrolldelay="10" onmouseover="this.stop();" onmouseout="this.start();">'+
'<P align="center"><img src="/Images/SomeImage.jpg" width="25%">'+
'<br><B><U><FONT face="Arial" size="3"><a href="www.SomeAddress.com" target="_blank">SomeHeadline : </a></FONT></U></B>'+
'<FONT face="Arial" size="3"><a href="www.SomeAddress.com" target="_blank">some info</a></FONT><P></marquee>';
IWCGHTMLSnippet1.HTMLCode.Text:=S;
end;
{------------------------------------------------------------------------------}
i tried both IWCGHTMLSnippet and IWCGJQLabelMarquee for this, but i get some strange behavior:
IWCGHTMLSnippet :
1. i set it to Height:=282, and width:=165. no matter how much i change it's size(in runtime or design), the visible height is always maximum ~200 pixels in runtime - you can see that it shows only what's inside it's borders, if the border is visible.
2. using onmouseover="this.stop();" and onmouseout="this.start();" - doesn't show any effect. it keeps scrolling anyway.
3. in the code : width="25%", shouldn't it be 25% of the original image size? it show it as 25% of the width of the IWCGHTMLSnippet.
IWCGJQLabelMarquee:
1. it doesn't show the borders.
2. how can i add a clickable link, and an image(like i want it in the code here) please?
Thanks!