Git Product home page Git Product logo

Comments (5)

jtappin avatar jtappin commented on June 13, 2024

I think my initial diagnosis is correct.
The "top level" handler is never getting called when an event is generated in compound widget, it should get called with the event structure returned by the compound widget's internal handler. See the attached test codes for CW_BGROUP, other compound widgets show the same behaviour.

Demo routines
Main test code: test_bg_events.pro
CW_BGROUP modified to print event diagnostics: cw_bgroup_test.pro

The regression occurs between commits 44a497b and 33ea0c9.

from gdl.

GillesDuvert avatar GillesDuvert commented on June 13, 2024

Ah yes, there was this change after finding a problem with HESSI plot panels (#1659 (comment)), that were not called by the right hander.
To be continued...

from gdl.

GillesDuvert avatar GillesDuvert commented on June 13, 2024

@jtappin you have demonstrated a problem with the current WIDGET_EVENT function. It does not obey the logic described in the documentation. This needs to be rewritten...
In the meantime you can comment out "return ev;" at line 389 in widget.cpp .

from gdl.

alaingdl avatar alaingdl commented on June 13, 2024

@GillesDuvert if you could fix that I really think it will be time for a 1.0.5, before a 1.1 !

from gdl.

GillesDuvert avatar GillesDuvert commented on June 13, 2024

#1716 will do the job, letting SSW's 'PLOTMAN' draw widget work and still have compound widgets working.
However this is not satisfactory, according to the documentation the 'plotman' event handling should not work...
but it works... The code used by plotman is reproduced in test_widgets (1st draw panel).

from gdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.