TKD AddProtocolCommand example
DaveG via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu May 15 10:49:34 PDT 2014
On Thursday, 15 May 2014 at 17:30:22 UTC, Gary Willoughby wrote:
> On Wednesday, 14 May 2014 at 21:23:02 UTC, DaveG wrote:
>> tkd\window\window.d(426): Error: undefined identifier
>> CommandCallback
>
> Added the missing import and now all works fine. Fixed in
> v1.0.5-beta. Any more issues open them up in github and i'll
> deal with them there. :)
>
> https://github.com/nomad-software/tkd
Thanks Gary!
I was expecting it to catch when someone hits the close X on the
title bar, but I changed it to this
this.mainWindow.addProtocolCommand(WindowProtocol.deleteWindow,
&this.saveMeCommand);
And that seems to do the trick.
I will post bugs on github in future, I thought I was doing
something wrong.
I have never messed with TCL/TK until now.
BTW, Really nice job on this! Thanks for the quick reply and fix
More information about the Digitalmars-d-learn
mailing list