Taskdialog control |
Post Reply |
Author | |
moe188
Senior Member Joined: 27 March 2006 Status: Offline Points: 220 |
Post Options
Thanks(0)
Posted: 15 March 2009 at 9:17am |
hi,
how can I be able to use one (1) taskdialog where I can be able to use it for different purposes by removing button and putting a new button? for instance: show taskdialog to confirm the data was saved and the only button to show at this time is the <OK> button, now show the same taskdialog to request a confirmation from the user about removing the data, and this time the <OK> button will not appears but instead we will he 2new buttons <Delete> <Cancel>? of course each button will have a unique ID... Thank you, |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
I don't see any way to remove buttons once they have been added. You can reset the entire control using the Reset method, and rebuild it (that way you only need to use one control, but you have to completely rebuild all of the elements every time you show it).
It would be nice if there was Buttons collection with the usual Add, Remove, Item, etc... methods & properties though. Then we would have complete control over the buttons. Another option would be if CodeJock added a ShowButton method the way it has EnableButton method...That way you could add all of your required buttons, and selectively show/hide them as required. |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |