Print Page | Close Window

Taskdialog AddButton problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=11449
Printed Date: 07 June 2025 at 4:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Taskdialog AddButton problem
Posted By: ddebono
Subject: Taskdialog AddButton problem
Date 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



Replies:
Posted By: Baldur
Date Posted: 15 July 2008 at 9:22am
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.


Posted By: ddebono
Date Posted: 15 July 2008 at 11:06am
Maybe, but that could have been stated in the docs



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net