Taskdialog AddButton problem |
Post Reply |
Author | |
ddebono
Groupie Joined: 02 August 2005 Location: Norway Status: Offline Points: 31 |
Post Options
Thanks(0)
Posted: 15 July 2008 at 5:41am |
Hi,
There seems so be a problem with the ID when adding custom buttons. Code: .CommonButtons = 0 If sOKTxt <> vbNullString Then .AddButton sOKTxt, 1 End If If sNoTxt <> vbNullString Then .AddButton sNoTxt, 3 End If If sCancelTxt <> vbNullString Then .AddButton sCancelTxt, 2 End If If sHelpText <> vbnullstring Then .AddButton sHelpText, 4 End If If sSpeakButtonText <> vbNullString Then .AddButton sSpeakButtonText, 5 End If --------------------- The ID when clicking on the buttons is: OK=1, Cancel=8, No=3, Help=16, Speak=5 This is very strange ??? The same thing applies to DefaultButton David |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
I think, the id's must have an non-standard id.
The standard-Id's are 1/2/4/8/16/32 (see xtpTaskButtonxxx).
Try an id higher than 32.
|
|
ddebono
Groupie Joined: 02 August 2005 Location: Norway Status: Offline Points: 31 |
Post Options
Thanks(0)
|
Maybe, but that could have been stated in the docs
|
|
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 |