You are not logged in.
Pages: 1
Is there a way to manually assign button IDs instead of the automatic 100, 101, 102, ...? To be more concrete: I'd like to have a command link with IDCANCEL so that it acts as Cancel button - especially reacting to the Escape key.
Offline
I tried it with VCL's TTaskDialog before my first post and it worked as I wanted.
Looking through SynTaskDialog.pas, I see that it would be a bit tough to add it in it's current state - the contents of TTaskDialog.Buttons would have to evolve into a mini-DSL :-)
I had the idea of internally storing an array of TTASKDIALOG_BUTTON instead of a string (for both emulated and native mode) and then make TTaskDialog.Buttons a read/write property. What do you think?
Last edited by uligerhardt (2016-05-23 14:06:24)
Offline
I implemented the ideas from my last post. Are you interested in it?
What has been the "Buttons" member variable is now a read/write property "ButtonsString" tied to an array of TTaskDialogButton named "Buttons". I could rename the two to "Buttons" (as before) and "ButtonItems" or similar if you want it to to be completely backward compatible. (Although I like the current names much more. )
FWIW: The changes also made it quite trivial to write a wrapper component for visual design (similar to the VCL TTaskDialog), so I did that.
Last edited by uligerhardt (2016-05-31 08:00:25)
Offline
Pages: 1