[squeak-dev] optionMenu in nested MVC buttons not working

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Fri Sep 4 23:18:46 UTC 2020


I just updated the debugging code for understandability. You can build it by doing:

ToolBuilder open: CTDebugModel.


Best,

Christoph

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Thiede, Christoph
Gesendet: Samstag, 5. September 2020 01:13:57
An: Squeak Dev
Betreff: [squeak-dev] optionMenu in nested MVC buttons not working


Hi all,


I experimented a bit with the backward compatibility of MVC buttons and found out that menus were broken in them. The attached changeset fixes this. However, you cannot invoke a menu on a button that is nested into another view. Please find the attached example.

I already found out that in PluggableButtonController >> #isControlWanted, sensor anyButtonPressed returns false when it should return true. Crazily, the bug does not occur when having a transcript open and logging things to it directly before the sensor call.

As a side effect, if you enable both buttons in the debug code parallelly, regular clicks on the unnested button won't work at all. I have no idea why is this.


Any help and tips would be great! :-)


Best,

Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200904/4461e958/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CTDebugModel.st
Type: application/octet-stream
Size: 1280 bytes
Desc: CTDebugModel.st
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200904/4461e958/attachment-0001.obj>


More information about the Squeak-dev mailing list