Use the ClickConcept properties to control how nodes handle click and double-click.
More...
Use the ClickConcept properties to control how nodes handle click and double-click.
To enable the click and double-click gestures for an Image node:
class ClickableImage2D;
using ClickableImage2DSharedPtr = shared_ptr<ClickableImage2D>;
{
public:
static ClickableImage2DSharedPtr create(
Domain* domain, string_view name)
{
auto node = make_polymorphic_shared_ptr<Node>(new ClickableImage2D(domain, name));
node->initialize();
return node;
}
{
metadata.displayName = "Clickable Image";
metadata["override:ClickConcept.DoubleClickEnabled:host"] = "freq"; ));
}
protected:
explicit ClickableImage2D(
Domain* domain, string_view name) :
ConceptClass(domain, name)
{
}
};
- Since
- Kanzi 3.9.0