agraham Expert Licensed User Longtime User Mar 25, 2009 #21 badkarma said: The <P> </P> tags do not work ? Click to expand... There aren't any <P> tags . The help documents the tags that are implemented!
badkarma said: The <P> </P> tags do not work ? Click to expand... There aren't any <P> tags . The help documents the tags that are implemented!
B Byak@ Active Member Licensed User Jun 4, 2009 #22 Agraham,as i understand it is not real to add checkboxes, textboxes and more to htmlpanel?as in webbrowser?
Agraham,as i understand it is not real to add checkboxes, textboxes and more to htmlpanel?as in webbrowser?
B BjornF Active Member Licensed User Longtime User Jun 8, 2009 #24 Dear Andrew, Very nice library ! Unfortunately I'm not able to open the help file - all I get is "The address is not valid" (irrespective if the help file is in its "proper place" among the libraries and I open it via the Basic4ppc or if I try to open it directly). Can you help? all the best / Björn Edit: Anyway I just solved the problem - or rather you did it for me Andrew, in a previous post - by right clicking, choosing properties and then "unblock" if anyone is wondering Last edited: Jun 8, 2009
Dear Andrew, Very nice library ! Unfortunately I'm not able to open the help file - all I get is "The address is not valid" (irrespective if the help file is in its "proper place" among the libraries and I open it via the Basic4ppc or if I try to open it directly). Can you help? all the best / Björn Edit: Anyway I just solved the problem - or rather you did it for me Andrew, in a previous post - by right clicking, choosing properties and then "unblock" if anyone is wondering
agraham Expert Licensed User Longtime User Jun 10, 2009 #25 Version 1.4 posted that is AutoScale aware to go with Basic4ppc version 6.80. Also Left, Top, Width and Height properties added and <UL> and <LI> tags now have a Bulletcolor attribute.
Version 1.4 posted that is AutoScale aware to go with Basic4ppc version 6.80. Also Left, Top, Width and Height properties added and <UL> and <LI> tags now have a Bulletcolor attribute.
B BjornF Active Member Licensed User Longtime User Jun 15, 2009 #26 Dear Andrew, I am trying to write an ebook reader with your htmlPanel. Most of my files are plain text-files, so what I do is that I add/replace: Code: Copy txt=StrReplace(txt,CRLF,"<br/>") txt=StrReplace(txt,"&","&") txt="<html>" & "<Body>" & "<Font size="& q & FSize & q &">" & txt & "</Font>" & "</Body>" & "</html>" and then htmlPanel.ShowHtml(txt) This works fine for the Pc version, and for files of up to approx 20 kB, but over that I get an OutOfMemoryException at the htmlPanel command - despite having >60MB memory free. Is this some kind of "natural" limit? And of course, is there some way around it? All the best / Björn
Dear Andrew, I am trying to write an ebook reader with your htmlPanel. Most of my files are plain text-files, so what I do is that I add/replace: Code: Copy txt=StrReplace(txt,CRLF,"<br/>") txt=StrReplace(txt,"&","&") txt="<html>" & "<Body>" & "<Font size="& q & FSize & q &">" & txt & "</Font>" & "</Body>" & "</html>" and then htmlPanel.ShowHtml(txt) This works fine for the Pc version, and for files of up to approx 20 kB, but over that I get an OutOfMemoryException at the htmlPanel command - despite having >60MB memory free. Is this some kind of "natural" limit? And of course, is there some way around it? All the best / Björn
B Byak@ Active Member Licensed User Aug 16, 2009 #27 Hi Agraham. please add a new tag: <hide>...</hide>.I think you undestand what it do =) and...i have an idea.Changeble color's constants. for example 'htmlpanel1.color1' and 'htmlpanel1.color2'.and in xhtml source code '<font color=color1>'.and when we change color1 it Automatically changhed in source and redraw. what you say about it?
Hi Agraham. please add a new tag: <hide>...</hide>.I think you undestand what it do =) and...i have an idea.Changeble color's constants. for example 'htmlpanel1.color1' and 'htmlpanel1.color2'.and in xhtml source code '<font color=color1>'.and when we change color1 it Automatically changhed in source and redraw. what you say about it?
agraham Expert Licensed User Longtime User Aug 16, 2009 #28 Byak@ said: please add a new tag: <hide>...</hide Click to expand... Is there a reason why you can't use comment tags <!-- this won't show -->? I can do custom colors like this but you will need to invoke the redraw explicitly. Code: Copy HtmlPanel.ChangeColor("color1", cGold) ' color1 to color5 are supported HtmlPanel.ShowHtmlFile(html)
Byak@ said: please add a new tag: <hide>...</hide Click to expand... Is there a reason why you can't use comment tags <!-- this won't show -->? I can do custom colors like this but you will need to invoke the redraw explicitly. Code: Copy HtmlPanel.ChangeColor("color1", cGold) ' color1 to color5 are supported HtmlPanel.ShowHtmlFile(html)
B Byak@ Active Member Licensed User Aug 16, 2009 #29 Is there a reason why you can't use comment tags <!-- this won't show -->? Click to expand... ooops)i'm don't know about it. I can do custom colors like this but you will need to invoke the redraw explicitly. Code: Copy HtmlPanel.ChangeColor("color1", cGold) ' color1 to color5 are supported HtmlPanel.ShowHtmlFile(html) Click to expand... ok)how many constants do you add?now i think...this constants сan be useful for fontsize too.:sign0060:
Is there a reason why you can't use comment tags <!-- this won't show -->? Click to expand... ooops)i'm don't know about it. I can do custom colors like this but you will need to invoke the redraw explicitly. Code: Copy HtmlPanel.ChangeColor("color1", cGold) ' color1 to color5 are supported HtmlPanel.ShowHtmlFile(html) Click to expand... ok)how many constants do you add?now i think...this constants сan be useful for fontsize too.:sign0060:
B Byak@ Active Member Licensed User Aug 16, 2009 #30 Andrew,i'm try to do cinematic scroll for htmlpanel.in desctop all work good but on device 'mousemove' event doesn't work correct.., look please.
Andrew,i'm try to do cinematic scroll for htmlpanel.in desctop all work good but on device 'mousemove' event doesn't work correct.., look please.
agraham Expert Licensed User Longtime User Aug 16, 2009 #31 I can't see anything wrong on the device - what do you think is the problem?
B Byak@ Active Member Licensed User Aug 16, 2009 #32 oops. The problem was in started FTouchSL. Now all is good wait for new version of htmlpanel =)
B Byak@ Active Member Licensed User Aug 16, 2009 #33 i'm playing with lib and... :-[ ...what i'm need: 1)href parametr (as in links) for Images. 2)new Method for checking type of content on specifid X and Y (without clicking).
i'm playing with lib and... :-[ ...what i'm need: 1)href parametr (as in links) for Images. 2)new Method for checking type of content on specifid X and Y (without clicking).
agraham Expert Licensed User Longtime User Aug 16, 2009 #34 Byak@ said: ok)how many constants do you add?now i think...this constants сan be useful for fontsize too Click to expand... I was going to add 5 custom colors which I thought would be enough. It is not really possible to do the same with Font sizes as, unlike colors, they are not symbolic constants and the structure of the code expects numeric values. 1)href parametr (as in links) for Images. Click to expand... Sorry, but I don't understand this. Can you explain giving the HTML you might expect to write and the effect you want. 2)new Method for checking type of content on specifid X and Y (without clicking). Click to expand... Yes, I can provide the same information as the ClickedItemText and ClickedItemType properties would return for a MouseDown at the same X and Y.
Byak@ said: ok)how many constants do you add?now i think...this constants сan be useful for fontsize too Click to expand... I was going to add 5 custom colors which I thought would be enough. It is not really possible to do the same with Font sizes as, unlike colors, they are not symbolic constants and the structure of the code expects numeric values. 1)href parametr (as in links) for Images. Click to expand... Sorry, but I don't understand this. Can you explain giving the HTML you might expect to write and the effect you want. 2)new Method for checking type of content on specifid X and Y (without clicking). Click to expand... Yes, I can provide the same information as the ClickedItemText and ClickedItemType properties would return for a MouseDown at the same X and Y.
B Byak@ Active Member Licensed User Aug 16, 2009 #35 Sorry, but I don't understand this. Can you explain giving the HTML you might expect to write and the effect you want. Click to expand... now LinkClick event fired when we click on Link.and htmlpanel.href contain a 'href' parametr. and i want when we click on Image 'LinkClick' event fired too.and htmlpanel.href contain a 'href' parametr. it will be very good and add more functionality.
Sorry, but I don't understand this. Can you explain giving the HTML you might expect to write and the effect you want. Click to expand... now LinkClick event fired when we click on Link.and htmlpanel.href contain a 'href' parametr. and i want when we click on Image 'LinkClick' event fired too.and htmlpanel.href contain a 'href' parametr. it will be very good and add more functionality.
agraham Expert Licensed User Longtime User Aug 16, 2009 #36 Byak@ said: and i want when we click on Image 'LinkClick' event fired too.and htmlpanel.href contain a 'href' parametr. Click to expand... I'm sorry but I still don't understand. How is this href parameter defined? Do you expect to navigate somewhere after clicking the image like a normal LinkClick? Can you post the HTML you would expect to write to do this.
Byak@ said: and i want when we click on Image 'LinkClick' event fired too.and htmlpanel.href contain a 'href' parametr. Click to expand... I'm sorry but I still don't understand. How is this href parameter defined? Do you expect to navigate somewhere after clicking the image like a normal LinkClick? Can you post the HTML you would expect to write to do this.
B Byak@ Active Member Licensed User Aug 17, 2009 #37 Do you expect to navigate somewhere after clicking the image like a normal LinkClick? Click to expand... Yes!:sign0060: for example Code: Copy <img src="cray1tn.gif" bordercolor="lime" border="1" width = "30" height="0" ignore="true" [COLOR=Red]href="#test"[/COLOR] name="Right image"/>
Do you expect to navigate somewhere after clicking the image like a normal LinkClick? Click to expand... Yes!:sign0060: for example Code: Copy <img src="cray1tn.gif" bordercolor="lime" border="1" width = "30" height="0" ignore="true" [COLOR=Red]href="#test"[/COLOR] name="Right image"/>
agraham Expert Licensed User Longtime User Aug 17, 2009 #38 Sorry, I've looked at putting an href attribute in an img tag but it is too much work as the navigation is intrinsically bound up with the anchor tag handling. I would suggest that you do something like store the destination in the name attribute of the img tag and in MouseDown check if is is an image, retrieve the name and use the NavigateTo method. So the next version will have added 1) ChangeColor(colorsymbol As String) method and five custom colors, color1 to color5 which default to cBlack 2) ItemTypeAt(X as Int32, Y as Int32), ItemNameAt(X as Int32, Y as Int32) and ItemTextAt(X as Int32, Y as Int32) methods which return the same data as ClickedItemType, ClickedItemName and ClickedItemText but for the specified XY position in the document.
Sorry, I've looked at putting an href attribute in an img tag but it is too much work as the navigation is intrinsically bound up with the anchor tag handling. I would suggest that you do something like store the destination in the name attribute of the img tag and in MouseDown check if is is an image, retrieve the name and use the NavigateTo method. So the next version will have added 1) ChangeColor(colorsymbol As String) method and five custom colors, color1 to color5 which default to cBlack 2) ItemTypeAt(X as Int32, Y as Int32), ItemNameAt(X as Int32, Y as Int32) and ItemTextAt(X as Int32, Y as Int32) methods which return the same data as ClickedItemType, ClickedItemName and ClickedItemText but for the specified XY position in the document.
B Byak@ Active Member Licensed User Aug 18, 2009 #39 Thanks)) and as i think i'm find a bug.VScrollMax return not true value.please check it. and i'm can't hide scrollbars on device (on desctop all work right).i'm try 'HScrollVisible=false' and i'm try set this parametr with door lib.on desctop all work but on device none=((
Thanks)) and as i think i'm find a bug.VScrollMax return not true value.please check it. and i'm can't hide scrollbars on device (on desctop all work right).i'm try 'HScrollVisible=false' and i'm try set this parametr with door lib.on desctop all work but on device none=((
agraham Expert Licensed User Longtime User Aug 18, 2009 #40 Byak@ said: VScrollMax return not true value. Click to expand... In what way? It seems to be correct in the demo. i'm can't hide scrollbars on device (on desctop all work right) Click to expand... I can on my device but note that it doesn't work in App_Start on the device because the Form isn't drawn then. It only gets drawn after App_Start ends. On the desktop the undrawn ScrollBars seem to keep the Visible setting if set False in App_Start but on the device they appear to default to Visible when first drawn.
Byak@ said: VScrollMax return not true value. Click to expand... In what way? It seems to be correct in the demo. i'm can't hide scrollbars on device (on desctop all work right) Click to expand... I can on my device but note that it doesn't work in App_Start on the device because the Form isn't drawn then. It only gets drawn after App_Start ends. On the desktop the undrawn ScrollBars seem to keep the Visible setting if set False in App_Start but on the device they appear to default to Visible when first drawn.