Posts by Harald Schneider

Show threads by Harald Schneider
93 posts found, page 1 of 7

Harald Schneider (In thread: Touch screen issue with IDE)

It is a nice to have in certain situations - nothing more.

Mouse + keyboard are unbeatable. So you are not too old .-)


Harald Schneider (In thread: Touch screen issue with IDE)
Only Microsoft knows. Do they? :-)

Harald Schneider (In thread: Touch screen issue with IDE)

Just to complete this topic:

Windows allows to configure a Pen tool to emulate mouse events. This works fine with AB. The issue only appears when using fingers instead of the pen.


Harald Schneider (In thread: Custom HTML Tool Blocks?)
I am sure you will. Thank you very, very much.

Harald Schneider (In thread: Custom HTML Tool Blocks?)

I think simple HTML with {}-variables and editable properties in the inspector would be a good starting point. The more complex stuff could be added later. Experienced users can add styles and JS code in the HTML editor itself to get a component working.

Plus an export as XML (or ZIP file?) button, to allow sharing of components among users.

That is all which came to my mind so far. Maybe some other ideas from other users here?


Harald Schneider (In thread: Custom HTML Tool Blocks?)

One more thing: Properties.

Custom HTML code should allow placeholders like {property-name} which generates a string property in the inspector.

This would allow e.g. variable icons, colors etc. in a menu HTML custom block, changeable via the inspector palette


Harald Schneider (In thread: Custom HTML Tool Blocks?)

Yes, this goes far beyond simple HTML building block.

The user could have multiple tabs in the custom control's editor:

1. HTML: For all the HTML stuff.

2. CSS: For all the CSS-Code. This is compiled to a separate file and linked to the header during the build process. E.g. component-name.css

3. Javascript: For all the JS-Code. This is compiled to a separate file and linked to the header during the build process, too. E.g. component-name.js

Maybe a 4th tab for resources, as images etc. Here could be also a field for a small icon, displayed for the custom component itself in the Tools palette.

The event stuff could go to the JS-Tab, either as visual components, or hand-coded by the end user as JS-code.


Harald Schneider (In thread: Custom HTML Tool Blocks?)

I appreciate the idea to drive this further, including events. Such control could include events, CSS code and JavaScript code as well. All dependencies encapsulated in a single control.

Depending on their skills, users could use this to create plain, simple HTML building blocks (the same as copy/paste HTML code) or highly complex controls with events, JS and CSS.


Harald Schneider (In thread: Custom HTML Tool Blocks?)

Would it be possible to have custom HTML blocks in the Tool palette?

In fact this would be reusable HTML blocks in a separate Custom group in the Tool palette. Creating such a block could be as easy as adding a custom function. I see the following advantages:

1. Faster building via drag and drop, while reusing often used HTML components.

2. A good way to push the functionality of AB by community contributions. Just the same like the custom plugins, but easier to create.

What do you think?


Harald Schneider (In thread: Touch screen issue with IDE)
OK, I see ... just thought it would be a property, which is set wrong on the underlying component. it is not worth to dig deeper, I share your point of view!

Harald Schneider (In thread: Touch screen issue with IDE)

Hi David

On a touch screen PC, I have the following problem:

I can place buttons etc. via drag and drop on the canvas. This works perfectly. But as soon as I move one of the controls with my finger or a stylus, the canvas itself behaves like it would be grouped with the controls on it. The complete canvas underneath moves with it.

Maybe there is some touch / gesture property missing in the Delphi component?


Harald Schneider (In thread: Determine if a PWA is called in the browser or already installed on the home screen)
Welcome. Yes, saw the plugin docs - very, very interesting :-)

Harald Schneider (In thread: Determine if a PWA is called in the browser or already installed on the home screen)

Here is a collection of functions, that do exactly that, and some more PWA related stuff. This is helpful, if you want to implement e.g. Installation banners, when a user loads the PWA URL with his mobile phone:

Save to file pwa-support.js and add this file to Script via AB File Manager.

Harald Schneider (In thread: JavaScript function return value in AB Script?)
Thanks - these lines were just an ripped off example :-)

Harald Schneider (In thread: JavaScript function return value in AB Script?)

Thanks!

I used a custom JS function in the Function Manager instead with

But in fact it is good to know both ways for max. flexibility.

Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.