Project

General

Profile

Is the WidgetGallery example usable?

Added by Randy Yates over 10 years ago

I can compile many of the other examples, but I'm experiencing very unexpected/serious problems trying to get this example to compile. For example,

examples/widgetgallery/EventsDemo.cpp:19:23: error: expected constructor, destructor, or type conversion before '(' token


Replies (7)

RE: Is the WidgetGallery example usable? - Added by Tiaan Wessels over 10 years ago

Don't have an examples/widgetgallery in the latest Wt I downloaded.

RE: Is the WidgetGallery example usable? - Added by Wim Dumon over 10 years ago

Hello,

EventsDemo is not yet finished. It's not compiled, the files are commented out in CMakeLists.txt.

There has something changed in the compilation of widgetgallery in the last release. You must manually tell Wt that it has to compile as C+11 library, or widgetgallery will be skipped. Widgetgallery uses C+11 constructs (lambdas, std::bind, ...).

For gcc, set WT_CPP_11_MODE to -std=c++11

A word of warning: it's better to compile all C libraries that you link within one project with the same parameter for C++11 support. The ABI is not always compatible.

The C+11 ABI compatibility note does not apply to MSVS: in MSVS, C+11 is always active.

BR,

Wim.

RE: Is the WidgetGallery example usable? - Added by T Y almost 10 years ago

Hi,

I am looking at DragExample.

I would appreciate it if developers can provide more documentation/examples on drag/drop functionality.

Thank you.

Kind regards,

TY

P.S. There is some issue with reaction time when dragging pills to characters. Thank you

RE: Is the WidgetGallery example usable? - Added by Koen Deforche over 9 years ago

Hey,

Admittedly, since drag&drop is a more complicated event, we need more documentation on it.

I'm curious though what reaction time issue you see with the dragdrop example?

Regards,

koen

RE: Is the WidgetGallery example usable? - Added by T Y over 9 years ago

Hi Koen,

In the example with pills -> I had to toss pills to name fields to activate event. When I was dragging pills slowly -> the name field was only instantly flicking.

Thank you.

Kind regards,

TY

RE: Is the WidgetGallery example usable? - Added by Koen Deforche over 9 years ago

Hey,

We can't reproduce any erratic behaviour? What browser version do you see this issue with?

Koen.

RE: Is the WidgetGallery example usable? - Added by T Y over 9 years ago

Hi,

This was the case with Chrome (36.0.1985.143) and IE 11.0.11 (KB2976627).

My issue was with response of recipient object.

At the same time treeveiw-dragdrop works fine. By the end of the day I have used it as base.

Thank you.

Kind regards,

TY

    (1-7/7)