on 01-17-2006 12:14 AM
Hi,
Please teach the setting of DialogBox.
A present set situation¥¥¥¥
1.DialogBox is displayed.
2.The left side has been selected. =[OK]has been initial selected.
3.The "Enter" button of the keyboard is pushed.
4.It moves to the following Step with result "ok" selected.
Now the highlighting is on gOKhas default setteing.
When I want to put the highlighting on gcancelh as default setting,
how should I write the program?
left=OK right=cancel
-
-
String dialigText = "TEST";
IWDConfirmationDialog dialog = wdThis.wdGetApprovalVoucherController().wdGetAPI().
getWindowManager().createConfirmationWindow(dialigText,wdThis.wdGetAPI().getViewInfo().
getViewController().findInEventHandlers("Approve"),"OK");
dialog.addChoice(wdThis.wdGetAPI().getViewInfo().getViewController().
findInEventHandlers("Approve_cancel"),
"cancel");
dialog.open();
-
-
The left sidegokh, With the right side made gcancelh.
Can you do the highlighting on gcancelhas default setteing.
Can it set it without changing the left for the right?
Is there such a setting method?
When it is not possible to do, could anyone answer?
Because it is asked by the customer, it embarrasses it.
Regards
BESS,
The answer is "no"
It is impossible to change default button in IWDConfirmationDialog.
Actually, in many of applications / frameworks we were created, we use custom implementation of "MessageBox" instead of IWDConfirmationDialog, so you may roll your own as well -- actually, it's quite easy.
If you are using CAF UI patterns in your project, there is MessageBox component that has to support such feature.
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you both.
The doubt was solved.
Moreover, my best regards in the future.
Regards,
BESS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi BESS,
I am not too sure if you can change the focus of a confirmationdialog button.
In case you want to do it, you can create a new external window and call it as a pop-up. You can have buttons in this view and you can set focus as you want.
Refer to this thread for more clarity:
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.