Quantcast
Channel: Terra Informatica Forums - Sciter
Viewing all 617 articles
Browse latest View live

background: url(PATH.XYZ) not finding the file (1 reply)

$
0
0
I've made the following HTML test:
<html>

<style>
div
{
	size: 300px;
	background: url(file:///C:\Program Files (x86)\Omni\textures\what.png);
}
</style>

<body>
	<div />
	<img src="file:///C:\Program Files (x86)\Omni\textures\what.png" />
</body>
</html>
Problem is, the <img/> tag does display my .png image where the div background does not get displayed. Somehow the CSS url() address is not correcty found, but the image file does exists

a question about vgrid (4 replies)

$
0
0
Hi, Andrew:
Can vgrid support this treeview mode:

I think this mode should be popular too.

a bug of ::after (1 reply)

$
0
0
Hi, Andrew.
here is my demo:
<html>
 <head>
  <style type="text\css">
   a::after {
     content: attr(href);
   }
  </style>
 </head>
 <body>
    aaaa <a href="http: //www.baidu.com">Test</a>aaaa
 </body>
</html>
will throw Exception when move mouse hover the link

HTTP Timeout (2 replies)

$
0
0
Hi Andrew,

Is it possible to set the timeout on HTTP requests using the Element.request method - ( i.e. return if no data by this time) ?
I know that there is one at the moment but I'm not sure what it is or if it can be changed?

Thanks,
Ivo

Dialog show/hide (3 replies)

$
0
0
I'm showing a dialog but I'm getting a bit of flicker when its being shown I assume because of a background image so is here a way to not show the dialog until its fully loaded?

last build FlashWindowEx (no replies)

$
0
0
The last build seems to have introduced a win32 FlashWindowEx(), my taskbar icon starts blinking when my main Sciter window has a popup open and user switches to other application...

Anyway, have you introduced a FlashWindowEx() call somewhere in the last build?

BREAKING API changes in 3.3.0.2 not mentioned (1 reply)

$
0
0
Glad to see the fantastic inspector.exe coming in Sciter 3.3.0.2, but BREAKING changes made in struct ISciterAPI are not mentioned in logfile.htm:
BOOL    SCFN( sciterEnumUrlData )(HWINDOW hWndsciter, URL_DATA_RECEIVER* receiver, LPVOID param, LPCSTR url);  // removed
SciterDebugSetupClient // removed
SciterDebugAddBreakpoint // removed
SciterDebugRemoveBreakpoint // removed

The above functions are removed from struct ISciterAPI, though they're typically not used by the (c++) developers directly but their absence changes the memory layout of SciterAPI() returned value. This change would affect largely to those who use c or those who wraps Sciter in other languages.

And I think this is a breaking change in the Sciter API.

BTW: the new debugging method is realy awesome! :)

DataSocket message format (1 reply)

$
0
0
Hi.

Quote

DataSocket sends/receive data in serialized binary form

Anybody knows about format of DataSocket messages?

What kind of software to write sciter language? (6 replies)

$
0
0
Now,I use the "Notepad++" to write sciter and TIScript,
there is any other way?
like use "Microsoft Visual Studio 2010" to write "c" or "c++",To be able to compile.
THKS!

Element ID. (3 replies)

$
0
0
Hi,

I have 4 buttons and on clicking each button same functionality occurs(rather same animation occurs).

I have given each button an id - For Example

<div .onOffContainer>
	<div #onoffBtn_1 .onOffClass value="No"></div>
	<div #onoffBtn_2 .onOffClass value="No"></div>
</div>

In script part i am collecting id of each element and spliting the same to get the number part.

Now I want to attach this number to an element using script:

$(div#onoffBtn_(the split number here))...

How could I achive this?

Thanks in advance.

How to render Element to Image with custom drawing? (1 reply)

$
0
0
Hi.

HTML can be rendered by following code (taken from debug-peer.tis of new Inspector):
  function postSnapshot() {
    var re = rootElement();
    var (w,h) = re.box(#dimension,#border);
    var image = new Image(re, w, h, 60, 60 ); // make snapshot of the element in the image    
    if( image ) {
      var bytes = image.toBytes();
      image.destroy();
      post(#deeSnapshot, bytes); 
    }
  }

But this doesn't works with elements with custom drawing. For example, open samples/graphics/digital-clock.htm and see snapshot on Inspector, it looks like broken. And similar code with full-size saving (new Image(re, w,h,w,h) saves just an empty transparent PNG.

Any workaround for this?

PS. Btw, is code above uses an undocumented Image constructor?

Sciter+Wrapper (1 reply)

$
0
0
With Windows 10 Microsoft has introduced a new Browser (Spartan). So the future of the IE is unknown, and also the future of the Browser-Control of VB6. We are using the IE-Control in a lot of our VB-projects and now we have to look for alternatives. So I found Sciter. But I had to find out the ActiveX-Wrapper isn’t included in the latest version. Our tests with the old version (V1) are very promising. But we don’t want to replace the old IE with a Sciter, which is even older then the IE-Browser control. Is there a chance to get the latest version of Sciter with the ActiveX-Wrapper in the 32-Bit version?

We discussed this already in a German newsgroup for VB. There were at least two more developers who would appreciate it, if the development of the wrapper continues. Also with the replacement of the IE by the new Browser the demand of Sciter (with wrapper) is possibly rising.

New inspector bugs (1 reply)

$
0
0
Sometimes sciter's host shows tons of messages about timeout:
[i.imgur.com]

It occurs when press Refresh in Sciter, but not often.

are MOUSE_ENTER / MOUSE_LEAVE bubbling events? (1 reply)

$
0
0
are MOUSE_ENTER / MOUSE_LEAVE bubbling events?

with border-radius (1 reply)

$
0
0
<style>
	img { display: block; width: 98px; border-radius: 20px; }
</style>

<img src="image-4.jpg" />
image still square

flickering (1 reply)

$
0
0
<html>
<style>
.box
{
	size: 300px;
	background: silver;
	border: solid 10px transparent;
}
.box:hover
{
	border-color: red;
	transition: border-color(linear, 300ms);
}
</style>

<body>
	<div .box />
</body>
</html>
Some strange flickering happening on mouse hover..

view creation native notification (1 reply)

$
0
0
I would like a native notification of whenever Sciter creates a new view (HWND), be it through view.dialog(), view.msgbox() or Element.popup().

The problem I am having is that I for every newly created window by Sciter, I am not receiving the debug output from Sciter errors and 'stdout.println()', thats probably because I have not called SciterSetupDebugOutput() for these new windows that Sciter creates, I have only called SciterSetupDebugOutput() for the main window...

Also, as I second usage for this feature, I would be able to inject in the namespace of every new view my 'console' class which makes available methods like console.log(), console.count(), ...

.sendEvent("mousedown"); (1 reply)

$
0
0
This code:
$(.texture).sendEvent("mousedown");
gives me an error:
Error: Unsupported event type
  at undefined (file://D:/Projetos-D/AnionTasks/res/default.html(333))
  at @225@29 (archive://app/default.html(227))

How do I know, the current click on which 'option'? (1 reply)

$
0
0
base on: sciter-sdk-3.3\samples\forms\select-tree-checkmarks.htm

<select #dd type="tree" multiple="checkmarks" size=16 >
    <option expanded>Metals
      <option expanded>Alkaline Metals
        <option value="Li" selected><code>Li</code>Lithium</option>
        <option value="Na"><code>Na</code>Sodium</option>
        <option value="K"><code>K</code>Potassium</option>
      </option>
      <option expanded>Transition Metals
        <option value="Sc"><code>Sc</code>Scandium</option>
        <option value="Ti"><code>Ti</code>Titanium</option>
        <option value="V"><code>V</code>Vanadium</option>
      </option>
    </option>


this is print all value..
$(select).on("change", :: $(pre#out).text = String.printf("%V",this.value) );


How do I know, the current click on which 'option'?

Finalizers for objects (1 reply)

$
0
0
TIScript supports classes and objects (class instances) but there is no way for an object to clean-up handled resources when the GC destroys it. That feature could be userful for example in the case some TIScript object creates and / or use some heavy native resources that are
not reachable outside the context of that object, and when the object is gone - the resources will leak, because the GC doesn't know about them.
Viewing all 617 articles
Browse latest View live