Hi,
I can create a Taskdialog to display a message with:
msgbox = TaskDialog
msgbox.Show("My Title","My Message")
This works fine, but I would like to add a Yes or No option to the dialog.
According to the API help file for the TaskDialog class you can set default buttons and common buttons which I was expecting to set with this:
msgbox = TaskDialog
msgbox.CommonButtons = 1
msgbox.Show("My Title","My Message")
But I get the error message 'Attribute error: Static Property 'CommonButtons' of TaskDialog can only be assigned through a type, not an instance'
I would appriciate some pointers on where I'm going wrong.
Thanks
I can create a Taskdialog to display a message with:
msgbox = TaskDialog
msgbox.Show("My Title","My Message")
This works fine, but I would like to add a Yes or No option to the dialog.
According to the API help file for the TaskDialog class you can set default buttons and common buttons which I was expecting to set with this:
msgbox = TaskDialog
msgbox.CommonButtons = 1
msgbox.Show("My Title","My Message")
But I get the error message 'Attribute error: Static Property 'CommonButtons' of TaskDialog can only be assigned through a type, not an instance'
I would appriciate some pointers on where I'm going wrong.
Thanks
Comment