<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Terra Informatica Forums &#187; Recent Posts</title>
<link>http://terrainformatica.com/forums/</link>
<description>Terra Informatica Forums &#187; Recent Posts</description>
<language>en</language>
<pubDate>Thu, 09 Feb 2012 01:21:39 +0000</pubDate>

<item>
<title>zxzvo on "HTMLayout richtext editor"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2176#post-9055</link>
<pubDate>Mon, 06 Feb 2012 23:43:07 +0000</pubDate>
<dc:creator>zxzvo</dc:creator>
<guid isPermaLink="false">9055@http://terrainformatica.com/forums/</guid>
<description><p>In the above comment i was trying to write about html BR which is removed as TRIM function is doing, being removed from the front or end of a TD or BODY for instance. Is its any way to work around (to keep the BR space or empty P at the start or at the end) ?
</p></description>
</item>
<item>
<title>zxzvo on "HTMLayout richtext editor"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2176#post-9049</link>
<pubDate>Sun, 05 Feb 2012 06:05:20 +0000</pubDate>
<dc:creator>zxzvo</dc:creator>
<guid isPermaLink="false">9049@http://terrainformatica.com/forums/</guid>
<description><p>Again about rich edit control.  or  or  seems to be removed in a Trim like manner on save. <code>&#60;table&#62;...&#60;/table&#62;</code> will become just <code>&#60;table&#62;...&#60;/table&#62;</code>. Just the same seems to happen with empty <code>&#60;p /&#62;</code>. So in case I press some Shift+Enter or just Enter, the  or <code>&#60;p&#62;&#60;/p&#62;</code> appear in saved html. If I Load and Save a few times (in richedit sample), without any changes, the breaks are just removed. Is it any possibility to avoid that? In several situations, people use the break for vertical spacing...
</p></description>
</item>
<item>
<title>andrew on "CSS: Set option height"</title>
<link>http://terrainformatica.com/forums/topic.php?id=1845#post-9048</link>
<pubDate>Sun, 05 Feb 2012 01:04:09 +0000</pubDate>
<dc:creator>andrew</dc:creator>
<guid isPermaLink="false">9048@http://terrainformatica.com/forums/</guid>
<description><p>Well, the approach I've explained above works for H-SMILE core that is inside HTMLayout and Sciter engines. It mostly is not applicable to conventional browsers.</p>
<p>In H-SMILE all input elements (except of <code>&#60;richtext&#62;</code>) are made of plain DOM elements so are styleable as any other elements.</p>
<p>Moreover, each input element gets its functionality through CSS using behavior property. For example the <code>select</code> is defined as:</p>
<pre><code>select {
  behavior: select-dropdown;
}</code></pre>
<p>The behavior is a native class - set of functions that handle attachment/detachment ,input events and change state of DOM element(s) accordingly. </p>
<p>Upon assignment the <code>behavior_select_dropdown</code> class initializes DOM tree of the <code>&#60;select&#62;</code> element as this:<br />
<pre><code>&#60;select&#62;
  &#60;caption&#62;...&#60;/caption&#62;
  &#60;button /&#62;
  &#60;popup&#62;
     &#60;option&#62;1&#60;/option&#62;
     &#60;option&#62;2&#60;/option&#62;
  &#60;/popup&#62;
&#60;select&#62;</code></pre>
<p>And CSS does the rest. </p>
<p>Any behavior can be assigned to any element. For example you may want to define something like this:<br />
<pre><code>#grid td:nth-child(3) {
  behavior: select-dropdown;
}</code></pre>
<p>then third column in the #grid will <em>behave</em> as dropdown-select input element. With proper styling of course.</p>
<p>Input elements in conventional browsers are "black boxes" - their parts are not DOM elements strictly speaking. And yet, behaviors of input elements and their styling are not specified anywhere in W3C specs. </p>
<p>So that bug you've created is not a bug actually for two reasons:</p>
<p>1. Input styling is deliberately unspecified. So browsers are free to do whatever they want. And so to ignore any styling you define. </p>
<p>2. You are trying to use <code>vertical-align:middle;</code> in very wrong way. For <code>display:inline-block</code> elements <code>vertical-align</code> defines vertical position of the element itself inside line box. But not vertical alignment of element's content.  </p>
<p>But for <code>display:table-cell</code> elements <code>vertical-align</code> defines content alignment.</p>
<p>In general alignment as an entity is badly designed in CSS spec. If term 'design' is applicable for this case at all.
</p></description>
</item>
<item>
<title>ixia on "Adding items dynamically to a Tree"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2179#post-9047</link>
<pubDate>Sun, 05 Feb 2012 00:20:14 +0000</pubDate>
<dc:creator>ixia</dc:creator>
<guid isPermaLink="false">9047@http://terrainformatica.com/forums/</guid>
<description><p>Yes, I was working with dom-attached elements. Changing that solved the problem.</p>
<p>Now I have a different problem: While checking/unchecking checkboxes in widget (has <code>checkmarks</code> attribs) I receive notification only for checking (<code>SELECT_SELECTION_CHANGED</code>). I need to be notified for uncheck also. It;s there a behavior that needs to be used ?</p>
<p>Thanks
</p></description>
</item>
<item>
<title>Edvin76 on "CSS: Set option height"</title>
<link>http://terrainformatica.com/forums/topic.php?id=1845#post-9046</link>
<pubDate>Sat, 04 Feb 2012 16:06:00 +0000</pubDate>
<dc:creator>Edvin76</dc:creator>
<guid isPermaLink="false">9046@http://terrainformatica.com/forums/</guid>
<description><p>Hello Andrew,</p>
<p>Sorry for necroing this thread, but I think its very releavant still today. As you can see some aspects of styling the &#60;select&#62; is considered as a bug and it is well and alive:<br />
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=649849" rel="nofollow">https://bugzilla.mozilla.org/show_bug.cgi?id=649849</a></p>
<p>Your solution does indeed work in browse.exe, however it does not work in any other browser that I've tried.<br />
In Firefox for example you'd need to style some strange thing called the shadow DOM:<br />
<a href="http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ranges-and-selection" rel="nofollow">http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ranges-and-selection</a></p>
<p>To access and modify these shadow styles, special selectors are needed. As you can see someone has tried that before:<br />
<a href="http://lab.simurai.com/css/umbrui/" rel="nofollow">http://lab.simurai.com/css/umbrui/</a></p>
<p>But unfortunately they didn't use the &#60;select&#62; input element, so I don't know how to do it with that.<br />
My reason to try to style the &#60;caption&#62; is explained in the bug that I filed here:<br />
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=724316" rel="nofollow">https://bugzilla.mozilla.org/show_bug.cgi?id=724316</a></p>
<p>Here you can see these examples to my problem:<br />
1.<br />
How can I get vertical-align to work on &#60;caption&#62;?<br />
<a href="http://jsfiddle.net/CwSuA/" rel="nofollow">http://jsfiddle.net/CwSuA/</a><br />
2.<br />
How can I move the &#60;caption&#62; text to the top left corner?<br />
<a href="http://jsfiddle.net/jXhRD/" rel="nofollow">http://jsfiddle.net/jXhRD/</a></p>
<p>If you know the answer in Firefox, please let me know.</p>
<p>Thank you and best regards,<br />
Ed
</p></description>
</item>
<item>
<title>andrew on "Adding items dynamically to a Tree"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2179#post-9045</link>
<pubDate>Sat, 04 Feb 2012 11:28:25 +0000</pubDate>
<dc:creator>andrew</dc:creator>
<guid isPermaLink="false">9045@http://terrainformatica.com/forums/</guid>
<description><p>You can experiment with this in Sciter:</p>
<pre><code>&#60;html&#62;
  &#60;head&#62;
    &#60;title&#62;&#60;/title&#62;
    &#60;style&#62;

      widget { size: 100px *;}

    &#60;/style&#62;
    &#60;script type=&#34;text/tiscript&#34;&#62;

    var tree = $(widget[type=&#34;tree&#34;]);

    $(button#add).onClick = function()
    {
      var group = new Element(&#34;option&#34;,&#34;Dir2&#34;);
      // tree.append(group); // case #1, append is not desired here.       

      group.append(new Element(&#34;option&#34;,&#34;Sub2Dir1&#34;));
      group.append(new Element(&#34;option&#34;,&#34;Sub2Dir2&#34;));
      group.append(new Element(&#34;option&#34;,&#34;Sub2Dir3&#34;));

      tree.append(group); // case #2, better, sub-tree is added as a whole here.
    }

    &#60;/script&#62;
  &#60;/head&#62;
&#60;body&#62;
 &#60;button #add&#62;Add&#60;/button&#62;
 &#60;widget type=&#34;tree&#34; checkmarks=&#34;&#34;  treelines=&#34;&#34;&#62;
	&#60;option expanded=&#34;true&#34; &#62;Dir
		&#60;option &#62;SubDir1&#60;/option&#62;
		&#60;option &#62;SubDir2&#60;/option&#62;
		&#60;option &#62;SubDir3&#60;/option&#62;
	&#60;/option&#62;

&#60;/body&#62;
&#60;/html&#62;</code></pre>
<p>Note where <code>tree.append(group);</code> is defined. I suspect that you have something close to case #1, right?
</p></description>
</item>
<item>
<title>ixia on "Adding items dynamically to a Tree"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2179#post-9044</link>
<pubDate>Sat, 04 Feb 2012 06:51:18 +0000</pubDate>
<dc:creator>ixia</dc:creator>
<guid isPermaLink="false">9044@http://terrainformatica.com/forums/</guid>
<description><p>I'm adding items (<code>option</code>s) dynamically to a tree.</p>
<pre><code>&#60;widget type=&#34;tree&#34; checkmarks=&#34;&#34;  treelines=&#34;&#34;&#62;
	&#60;option expanded=&#34;true&#34; &#62;Dir
		&#60;option &#62;SubDir1&#60;/option&#62;
		&#60;option &#62;SubDir2&#60;/option&#62;
		&#60;option &#62;SubDir3&#60;/option&#62;
	&#60;/option&#62;</code></pre>
<p>The problem is that, dynamically added options (via <code>htmlayout::dom::element::append</code>) are not shown. Only the root item is visible (without [+]). After some time if I dbl-click on the left of the checkbox (where the [+] should be), the [+] and sub-items are shown. But same story continues for sub-items...</p>
<p>If I let some options in the .html there are shown fine from beginning.<br />
If get html of the <code>widget</code> after adding options dynamically, save on drive and open in browse.exe works fine.</p>
<p>There is some kind of refresh that should be called after widget update ? I have tried .update but doesn't help.</p>
<p>thanks
</p></description>
</item>
<item>
<title>andrew on "optimization"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2178#post-9043</link>
<pubDate>Fri, 03 Feb 2012 20:35:03 +0000</pubDate>
<dc:creator>andrew</dc:creator>
<guid isPermaLink="false">9043@http://terrainformatica.com/forums/</guid>
<description><p>When you do <code>dom::element::append</code> on some container the engine is not doing layout immediately. It rather queues the updates.<br />
But the most efficient way of appending rows to table is by using set_html() as it does DOM modification in transaction manner. </p>
<p>In any case you should try both approaches as layout/styles can affect the speed.<br />
Elements with <code>overflow:hidden&#124;scroll&#124;auto</code> and with width/height set to not auto/intrinsic values are so called layout roots - change inside does not affect the rest of the tree. As closer such layout root in parent chain - the better.
</p></description>
</item>
<item>
<title>andrew on "`dom::element::find_all` parameter"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2177#post-9042</link>
<pubDate>Fri, 03 Feb 2012 10:19:05 +0000</pubDate>
<dc:creator>andrew</dc:creator>
<guid isPermaLink="false">9042@http://terrainformatica.com/forums/</guid>
<description><p>Function <code>dom::element::find_all</code> uses standard CSS selectors that are <a href="http://www.w3.org/TR/selectors/#selectors">defined in CSS spec</a>.</p>
<p>The only exception is interpretation of <code>:root</code>. In <code>find_all</code> it designates the element the function is called with - root of the look up.  </p>
<p>Try this:</p>
<pre><code>&#60;html&#62;
  &#60;head&#62;
    &#60;style&#62;
      li:not(#one) { color:red; }
    &#60;/style&#62;
  &#60;/head&#62;
&#60;body&#62;
  &#60;ol&#62;
    &#60;li #one&#62;one&#60;/li&#62;
    &#60;li&#62;two&#60;/li&#62;
    &#60;li&#62;three&#60;/li&#62;
  &#60;/ol&#62;

&#60;/body&#62;
&#60;/html&#62;</code></pre></description>
</item>
<item>
<title>ixia on "optimization"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2178#post-9041</link>
<pubDate>Fri, 03 Feb 2012 07:49:37 +0000</pubDate>
<dc:creator>ixia</dc:creator>
<guid isPermaLink="false">9041@http://terrainformatica.com/forums/</guid>
<description><p>I need to append a large number of rows to a table dynamically, via <code>dom::element::append</code>. I am currently adding items one-by-one, but they may be few hundred items so I will change code to adding in blocs. </p>
<p>How can I optimize this process ?. Ex: stop htmlayout from computing size /updating interface after each call, and compute only once at the end via <code>dom::element::update</code>. </p>
<p>There are other tips that can improve this process ?
</p></description>
</item>
<item>
<title>ixia on "`dom::element::find_all` parameter"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2177#post-9040</link>
<pubDate>Fri, 03 Feb 2012 06:57:39 +0000</pubDate>
<dc:creator>ixia</dc:creator>
<guid isPermaLink="false">9040@http://terrainformatica.com/forums/</guid>
<description><p>Hi, </p>
<p>where can I find documentation regarding the format of <code>dom::element::find_all</code> parameter ?.</p>
<p>I want to select all child elements that <strong>does not have</strong> an attribute (id)
</p></description>
</item>
<item>
<title>zxzvo on "HTMLayout richtext editor"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2176#post-9039</link>
<pubDate>Fri, 03 Feb 2012 01:01:23 +0000</pubDate>
<dc:creator>zxzvo</dc:creator>
<guid isPermaLink="false">9039@http://terrainformatica.com/forums/</guid>
<description><p>These days I am quite busy in incorporating in a application a simple, yet powerful HTML editor based on htmlayout richeditor.<br />
I have following remarks/questions.</p>
<p>1. Occasional AV on pasting in browse exe, for instance HTMLayout page (<a href="http://www.terrainformatica.com/htmlayout/main.whtm" rel="nofollow">http://www.terrainformatica.com/htmlayout/main.whtm</a>) copied in clipboard from Chrome, hanged the application. Some other AV were triggered by some accidental select-and-drag operation in the widget.</p>
<p>2. Horizontal bar is not updated as expected. To see, replace in your richtext editor sample, the initial contents of the richtext </p>
<p>&#60;p&#62;Hello world!&#60;/p&#62; </p>
<p>with something like</p>
<p>&#60;table border="1" width="1000"&#62;&#60;tr&#62;&#60;td&#62;Hello World!&#60;/td&#62;&#60;/tr&#62;&#60;/table&#62;</p>
<p>The expected overflow behavior, either scroll or auto does not calculate the area as 1000 as I expect or as HTMLayout does.</p>
<p>3. Rulers are for information only purposes? The resize arrows do not update in any way the referenced contents. Or rulers are just for information and selection purposes? In this case the cursor is more appropriate to be settled to default.</p>
<p>4. Are they any possibilities in changing rulers colors? or richtext widget default large margin? With other words, do I have access to any dom component of the widget?</p>
<p>5. About the stack list of the current objects. Can I setup the bar to select the elements? Are they any possibilities in exploring the current objects and settle extra attributes? As the inserted table showed above, can I set the width by style or by changing width attribute? For me would be great to be (programatically) able to change the attribute of the last element from the stack, except when multi selection makes no sense in applying it. Idea is to be able to set, for instance, the width and height of an inserted image, the table columns/rows, to add extra attributes, etc.</p>
<p>thank you
</p></description>
</item>
<item>
<title>ixia on "Detect click/selection change on table rows."</title>
<link>http://terrainformatica.com/forums/topic.php?id=2170#post-9038</link>
<pubDate>Thu, 02 Feb 2012 12:45:11 +0000</pubDate>
<dc:creator>ixia</dc:creator>
<guid isPermaLink="false">9038@http://terrainformatica.com/forums/</guid>
<description><p>yes, that was the problem.</p>
<p>thanks Andrew
</p></description>
</item>
<item>
<title>andrew on "Detect click/selection change on table rows."</title>
<link>http://terrainformatica.com/forums/topic.php?id=2170#post-9032</link>
<pubDate>Tue, 31 Jan 2012 20:55:25 +0000</pubDate>
<dc:creator>andrew</dc:creator>
<guid isPermaLink="false">9032@http://terrainformatica.com/forums/</guid>
<description><p>Event <code>SELECT_STATE_CHANGED</code> is generated by <code>behavior:select</code> and <code>TABLE_ROW_CLICK</code> by <code>behavior:grid</code> (behavior_grid.cpp in SDK).</p>
<p>What kind of behavior is attached to your table?
</p></description>
</item>
<item>
<title>ixia on "Detect click/selection change on table rows."</title>
<link>http://terrainformatica.com/forums/topic.php?id=2170#post-9031</link>
<pubDate>Tue, 31 Jan 2012 08:26:58 +0000</pubDate>
<dc:creator>ixia</dc:creator>
<guid isPermaLink="false">9031@http://terrainformatica.com/forums/</guid>
<description><p>I have a list (implemented as table) and I need to be notified when selected<br />
row has changed (I'm interested in getting selection, not losing it)</p>
<p>I was expecting to receive a SELECT_STATE_CHANGED  or TABLE_ROW_CLICK but<br />
instead i receive two events : 0x8001 and 0x1 for the table element and none<br />
for row.</p>
<p>How can I get those notifications ?</p>
<p>Thanks
</p></description>
</item>
<item>
<title>zxzvo on "HTMPrint, custom draw behavior"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2168#post-9029</link>
<pubDate>Sat, 28 Jan 2012 00:44:52 +0000</pubDate>
<dc:creator>zxzvo</dc:creator>
<guid isPermaLink="false">9029@http://terrainformatica.com/forums/</guid>
<description><p>Great Andrew. The last library worth to replace, htmprint handles drawing behavior, which is perfect for me. Took me a while to understand that for &#60;img&#62; touched by my custom draw behavior (for dual screen - standard html - render AND print) it displays always the default drawing. I was handling DRAW_CONTENT stage, while IMG seems is handling painting in DRAW_FOREGROUND stage, so always the raster image was painted in top of my custom drawings :). </p>
<p>Thanks again.<br />
BTW, using a pdf printer, the output is stunning now
</p></description>
</item>
<item>
<title>andrew on "HTMPrint, custom draw behavior"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2168#post-9028</link>
<pubDate>Thu, 26 Jan 2012 15:06:45 +0000</pubDate>
<dc:creator>andrew</dc:creator>
<guid isPermaLink="false">9028@http://terrainformatica.com/forums/</guid>
<description><p>class PrintEx is derived from <code>htmlayout::notification_handler</code>:</p>
<pre><code>class  PrintEx:
       public htmlayout::notification_handler&#60;PrintEx&#62;
{
  HTMPRINT                hPrint;
  ...</code></pre>
<p>that means it is handling HLN_ATTACH_BEHAVIOR requests for document/elements loaded in it.</p>
<p>So answer is "yes".
</p></description>
</item>
<item>
<title>zxzvo on "HTMPrint, custom draw behavior"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2168#post-9027</link>
<pubDate>Wed, 25 Jan 2012 12:54:57 +0000</pubDate>
<dc:creator>zxzvo</dc:creator>
<guid isPermaLink="false">9027@http://terrainformatica.com/forums/</guid>
<description><p>Hi Andrew. Is it HTMPrint able to handle custom draw behavior? Some time ago it was not possible, but you mentioned that you may consider that. I use to render directly on hdc by using the custom draw behavior so would be great to be able to print in high resolution as well.<br />
I have to say I am using an old version of htmlayout which was stable and good for my purposes, on which several changes were made (on the headers) in order to fit in my environment. Switching to latest library would make sense if HTMPrint would support custom draw behavior.
</p></description>
</item>
<item>
<title>andrew on "HTMPrint scales strangely, if screen resolution is 120 or more (not 96 dpi)."</title>
<link>http://terrainformatica.com/forums/topic.php?id=2157#post-9026</link>
<pubDate>Fri, 20 Jan 2012 16:44:09 +0000</pubDate>
<dc:creator>andrew</dc:creator>
<guid isPermaLink="false">9026@http://terrainformatica.com/forums/</guid>
<description><p>Using bitmap is a bit strange way of rendering to pdf to be honest.<br />
The best way is to use PDF print driver.</p>
<p>Otherwise you should use bitmaps of significantly larger resolution. This way you will be able to achieve something close to printer DPI (300 dpi at least).</p>
<p>HTMPrint was not designed for screen pixel output. Because of scaling GDI may drop some lines as it does not support antialiasing.</p>
<p>Technically I can do direct PDF generation (in its vector form) but this feature is not included in the engine.
</p></description>
</item>
<item>
<title>PhilipVulfovich on "HTMPrint scales strangely, if screen resolution is 120 or more (not 96 dpi)."</title>
<link>http://terrainformatica.com/forums/topic.php?id=2157#post-9025</link>
<pubDate>Fri, 20 Jan 2012 03:48:31 +0000</pubDate>
<dc:creator>PhilipVulfovich</dc:creator>
<guid isPermaLink="false">9025@http://terrainformatica.com/forums/</guid>
<description><p>Please can you advise me how i can use HTMPrint functions to produce<br />
screen independent output, but with adjustable scaling
</p></description>
</item>
<item>
<title>PhilipVulfovich on "HTMPrint scales strangely, if screen resolution is 120 or more (not 96 dpi)."</title>
<link>http://terrainformatica.com/forums/topic.php?id=2157#post-9024</link>
<pubDate>Fri, 20 Jan 2012 03:36:27 +0000</pubDate>
<dc:creator>PhilipVulfovich</dc:creator>
<guid isPermaLink="false">9024@http://terrainformatica.com/forums/</guid>
<description><p>I use Bitmap hdc to render output. </p>
<p>Let me explain, what goal I am pursuing... </p>
<p>We use htmprint functions to export HTML formatted text to PDF. </p>
<p>And we offer user two quality modes:</p>
<p>1) Draft<br />
2) High quality</p>
<p>In draft mode my HTML is rendered on Bitmap with scale 100%...<br />
And then this bitmap is exported to PDF...</p>
<p>In high quality mode my HTML is rendered on Bitmap with scale 300%...<br />
And then exported.</p>
<p>Because PDF is hardware independent format, i want that my output will be<br />
screen independent... So that screen resolution will not affect output...</p>
<p>And what is happening now.</p>
<p>We render HTML (f.e. the table, coded above) on bitmap.</p>
<p>For example we are using draft mode.</p>
<p>If screen resolution is 96 dpi table rendered by HTMPrint at 100% scale is the same as HTMLayout output on screen.  And this is OK. Exactly what we need.</p>
<p>But if screen resolution is 120 dpi, the HTML table rendered at 100% become<br />
smaller then in first case. As it rendered effectively at 80% scale.<br />
And some cell or table border lines are lost because the effective scale smaller then 100%...</p>
<p>How to avoid this?
</p></description>
</item>
<item>
<title>netsesame on "Help, HTMLayoutSetCSS won&#039;t invoke HLN_LOAD_DATA request?"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2167#post-9023</link>
<pubDate>Thu, 19 Jan 2012 04:33:09 +0000</pubDate>
<dc:creator>netsesame</dc:creator>
<guid isPermaLink="false">9023@http://terrainformatica.com/forums/</guid>
<description><p>sorry, my fault. </p>
<p>by using:</p>
<p>HTMLayoutLoadHtmlEx<br />
HTMLayoutSetCSS</p>
<p>and passed into a different baseUrl, then HLN_LOAD_DATA will be invoked again.</p>
<p>ATTEN: the baseUrl must be ended with a '\' path postfix, otherwise it won't work.
</p></description>
</item>
<item>
<title>netsesame on "Help, HTMLayoutSetCSS won&#039;t invoke HLN_LOAD_DATA request?"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2167#post-9022</link>
<pubDate>Thu, 19 Jan 2012 04:20:58 +0000</pubDate>
<dc:creator>netsesame</dc:creator>
<guid isPermaLink="false">9022@http://terrainformatica.com/forums/</guid>
<description><p>I want to implement some changable skin effect in my app. However, all my resources are all restored in Database.</p>
<p>So, I call HTMLayoutLoadHtml to load pages, and handle the on_data_loaded(HLN_LOAD_DATA event) method to load resources, such as html(included), css, images, etc.<br />
All above is OK. </p>
<p>Then I attempt to change the css by call: HTMLayoutSetCSS, nothing seems happened. I hope the on_data_loaded will be invoked again, but it won't.</p>
<p>================================================================<br />
However, if the resources are disk files in some folder, then by using:</p>
<p>HTMLayoutLoadHtmlEx(...., baseUrl);<br />
HTMLayoutSetCSS(..., baseUrl);</p>
<p>the skin will be changed. </p>
<p>I really wondered how it works and not. Please help.<br />
Thanks.
</p></description>
</item>
<item>
<title>netsesame on "help! custom control stay on top of other divs."</title>
<link>http://terrainformatica.com/forums/topic.php?id=2124#post-9021</link>
<pubDate>Thu, 19 Jan 2012 03:58:05 +0000</pubDate>
<dc:creator>netsesame</dc:creator>
<guid isPermaLink="false">9021@http://terrainformatica.com/forums/</guid>
<description><p>Thanks, by using the ActiveXContainer and site from <a href="http://www.codeproject.com/KB/atl/WindowlessMedia.aspx" rel="nofollow">http://www.codeproject.com/KB/atl/WindowlessMedia.aspx</a>, I've successfully implemented a behavior, which draw flash directly onto the main window, together with other DOM elements.
</p></description>
</item>
<item>
<title>Eddie on "border-radius modified color of the border"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2166#post-9020</link>
<pubDate>Tue, 17 Jan 2012 09:27:58 +0000</pubDate>
<dc:creator>Eddie</dc:creator>
<guid isPermaLink="false">9020@http://terrainformatica.com/forums/</guid>
<description><p>Hello,</p>
<p>while '.box2's red color is correct when rendered (#ff0000, you can see this with a color picker), '.box's color will be #fe0000, because of the border radius (antialiasing algorithm maybe?). </p>
<p>This is problematic when I use white borders on white backgrounds to animate border display as you suggest somewhere in your documentation. When the div has border radius, the border is no longer a true white on the white background, so it is still barely visible. </p>
<p>Since I use this border on an &#60;option&#62; element inside the list, when the list is populated with numerous elements, it ends up having quite a lot of barely visible horizontal stripes. Very unsightly.</p>
<p>Below is a simple reproduction case. Thanks.</p>
<pre><code>&#60;html&#62;
  &#60;head&#62;
    &#60;style&#62;
      .box
      {
        border: 1px solid #ff0000;
        border-radius: 3px;
      }
      .box2
      {
        border: 1px solid #ff0000;
      }
    &#60;/style&#62;
  &#60;/head&#62;
  &#60;body&#62;
    &#60;div class=&#34;box&#34;&#62;box&#60;/div&#62;
    &#60;div class=&#34;box2&#34;&#62;box2&#60;/div&#62;
  &#60;/body&#62;
&#60;/html&#62;</code></pre></description>
</item>
<item>
<title>george on "Safe to call HTMLayoutDataReadyAsync from another thread?"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2164#post-9018</link>
<pubDate>Sun, 15 Jan 2012 14:11:49 +0000</pubDate>
<dc:creator>george</dc:creator>
<guid isPermaLink="false">9018@http://terrainformatica.com/forums/</guid>
<description><p>Hello Andrew,</p>
<p>I'm trying to implement my own async (e.g. 'in-another-thread') resource loader.<br />
What I'm doing right now is this:</p>
<p>a. start a new thread in OnLoadData and return LOAD_DISCARD<br />
b. in the thread started in a., load the file's contents as bytes and, when loaded, call HTMLayoutDataReadyAsync with HLRT_DATA_IMAGE as resource type.<br />
c. although the call to HTMLayoutDataReadyAsync returns TRUE, the image is not displayed</p>
<p>Am I doing something wrong?
</p></description>
</item>
<item>
<title>Yonatan on "is HTMLayoutGetElementHtmlCB thread safe?"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2163#post-9017</link>
<pubDate>Sun, 15 Jan 2012 13:09:01 +0000</pubDate>
<dc:creator>Yonatan</dc:creator>
<guid isPermaLink="false">9017@http://terrainformatica.com/forums/</guid>
<description><p>we are accessing HTMLITE from multiple threads.<br />
we do not modify anything - just reading.<br />
should we rather lock it?
</p></description>
</item>
<item>
<title>Eddie on "Issue with dragging"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2113#post-9016</link>
<pubDate>Fri, 13 Jan 2012 05:32:08 +0000</pubDate>
<dc:creator>Eddie</dc:creator>
<guid isPermaLink="false">9016@http://terrainformatica.com/forums/</guid>
<description><p>Thank you! Very much appreciated.
</p></description>
</item>
<item>
<title>Mihai on "Behaviors\dropdown Sample"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2156#post-9015</link>
<pubDate>Fri, 13 Jan 2012 04:41:01 +0000</pubDate>
<dc:creator>Mihai</dc:creator>
<guid isPermaLink="false">9015@http://terrainformatica.com/forums/</guid>
<description><p>Hy Andrew, sorry for bothering again, but do you have any suggestions on this?
</p></description>
</item>
<item>
<title>screensaver on "C++ Builder - How to start?"</title>
<link>http://terrainformatica.com/forums/topic.php?id=1647#post-9014</link>
<pubDate>Thu, 12 Jan 2012 22:35:53 +0000</pubDate>
<dc:creator>screensaver</dc:creator>
<guid isPermaLink="false">9014@http://terrainformatica.com/forums/</guid>
<description><p>Thanks. I've made similar steps, but in BCB6 for HTMLayout there are some differences:<br />
1. In aux-cvt.h in class itoa "_itoa" function call should be replaced by ::itoa<br />
2. In htmlayout_aux.h builder get errors in following constructions:<br />
<code>unsigned char(...)</code><br />
should be replaced by<br />
<code>(unsigned char)(...)</code><br />
3. In htmlayout_controls.hpp builder get errors when dom::element objects calls find_all, find_first. I replaced them by find_all&#60;char&#62; and find_first&#60;char&#62;<br />
4. In Defines I added STRICT for <code>notification_handler::setup_callback</code> overloaded function in htmlayout_notifications.hpp
</p></description>
</item>
<item>
<title>andrew on "Issue with dragging"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2113#post-9013</link>
<pubDate>Thu, 12 Jan 2012 20:54:19 +0000</pubDate>
<dc:creator>andrew</dc:creator>
<guid isPermaLink="false">9013@http://terrainformatica.com/forums/</guid>
<description><p>The fix will be available in the next build.
</p></description>
</item>
<item>
<title>andrew on "text-transform and transition problem"</title>
<link>http://terrainformatica.com/forums/topic.php?id=2155#post-9012</link>
<pubDate>Thu, 12 Jan 2012 18:27:32 +0000</pubDate>
<dc:creator>andrew</dc:creator>
<guid isPermaLink="false">9012@http://terrainformatica.com/forums/</guid>
<description><p>Next version - yes. Next build - no.
</p></description>
</item>
<item>
<title>andrew on "lone arabic comma"</title>
<link>http://terrainformatica.com/forums/topic.php?id=1950#post-9011</link>
<pubDate>Thu, 12 Jan 2012 18:23:07 +0000</pubDate>
<dc:creator>andrew</dc:creator>
<guid isPermaLink="false">9011@http://terrainformatica.com/forums/</guid>
<description><p>There is no <code>font-face</code> property in CSS but <code>font-family</code> is there.<br />
Simply change it to <code>font-family</code> and your samples should work.
</p></description>
</item>
<item>
<title>Slava on "C++ Builder - How to start?"</title>
<link>http://terrainformatica.com/forums/topic.php?id=1647#post-9010</link>
<pubDate>Thu, 12 Jan 2012 12:47:15 +0000</pubDate>
<dc:creator>Slava</dc:creator>
<guid isPermaLink="false">9010@http://terrainformatica.com/forums/</guid>
<description><p>Almost forgot: put <strong>__MFC_COMPAT__</strong> and <strong>STATIC_LIB</strong> in your Defines.
</p></description>
</item>
<item>
<title>Slava on "C++ Builder - How to start?"</title>
<link>http://terrainformatica.com/forums/topic.php?id=1647#post-9009</link>
<pubDate>Thu, 12 Jan 2012 12:41:21 +0000</pubDate>
<dc:creator>Slava</dc:creator>
<guid isPermaLink="false">9009@http://terrainformatica.com/forums/</guid>
<description><p>I’ve struggled with this a week ago. Tried a couple of different approaches: using Delphi wrapper I found here on the forums, mapping each function from HTMLayout.DLL with GetProcAddress, etc … But at the end, with Andrew’s kind help, I finally did it the <strong>right</strong> way.<br />
I’m using Sciter with C++ Builder 2007, but it should be basically the same with HTMLayout and any other version of BCB. So here it is:</p>
<p>1.	Get coff2omf.exe from your BCB \bin folder and convert sciter-x.lib like this:</p>
<blockquote><p>
        coff2omf.exe -lib:ms sciter-x.lib sciter_borland.lib
</p></blockquote>
<p>2.	Create new folder for your project<br />
3.	Copy <strong>api</strong> folder from Sciter SDK to your projects folder<br />
4.	Copy your new <strong>sciter_borland.lib</strong> to your <strong>api</strong> folder<br />
5.	Open BCB, create new VCL Forms app and save it to your project folder<br />
6.	Compile the project<br />
7.	Put <strong>sciter-x.dll</strong> in created <strong>Debug</strong> folder<br />
8.	Open <strong>aux-cvt.h</strong> file from <strong>api</strong> folder in any text editor<br />
9.	Change <strong>_stricmp</strong> (line 484) to <strong>stricmp</strong><br />
10.	Change <strong>wcsicmp</strong> (line 492) to <strong>_wcsicmp</strong><br />
11.	Open <strong>sciter-x-dom.h</strong> file from the <strong>api</strong> folder<br />
12.	Add <strong>#include &#60;algorithm&#62;</strong><br />
13.	Change <strong>min</strong> (line 1440) to <strong>std::min</strong><br />
14.	Add <strong>sciter_borland.lib</strong> to your project<br />
15.	Add <strong>#include "sciter-x.h"</strong> in your main unit<br />
16.	Implement following method:</p>
<blockquote><p>
void __fastcall TForm1::WndProc(TMessage &#38;Msg)<br />
{<br />
	BOOL handled = false;<br />
	LRESULT lr = SciterProcND(this-&#62;Handle, Msg.Msg, Msg.WParam, Msg.LParam, &#38;handled);</p>
<p>	switch(Msg.Msg)<br />
	{<br />
		case WM_CREATE:<br />
		{<br />
			SciterLoadFile(this-&#62;Handle, L"../GUI/UI.html");<br />
			break;<br />
		}<br />
	}</p>
<p>	TForm::WndProc(Msg);<br />
}
</p></blockquote>
<p>Where <strong>UI.html</strong> is your GUI markup definition.</p>
<p>17.	Compile and run the project.</p>
<p>Hope it helps.
</p></description>
</item>

</channel>
</rss>

