Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Friday, August 29, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
8/29/2025 2:33:48 PM
slxdeveloper.com Community Forums
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics
(for Windows client only)
. View the
code of conduct
for posting guidelines.
Forums RSS Feed
Back to Forum List
|
Back to SalesLogix Scripting & Customization
|
New Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Prevent focus on message box button.
Andrew Grandin
Posts: 272
Prevent focus on message box button.
Posted: 14 Oct 09 9:35 AM
I have the following code in my script:
-------------------------------------------------------------------
If gStrAccount <> txtAccount.Text Then
If MsgBox(Application.Translator.Localize("You have changed the account name from ") & chr(34) & gStrAccount & chr(34) & Application.Translator.Localize(" to ") & chr(34) & txtAccount.Text & chr(34) & vbCRLF & vbCRLF & _
Application.Translator.Localize("Are you sure you want to change the acccount name?"), vbYesNo + vbExclamation + vbDefaultButton2, Application.Translator.Localize("Warning")) = vbNO Then
txtAccount.Text = gStrAccount
Else
gStrAccount = txtAccount.Text
End If
End If
------------------------------------------------------------------------------------------
We have found that users are too eager to simply click Enter repeatedly until the messages go away and end up making the changes when they shouldnt have. Is there any way to stop the message box from setting focus in the Yes button (or the No button) so the user has to conciously needs to click a choice????
[
Reply
][
Quote
]
Raul A. Chavez
Posts: 1300
Re: Prevent focus on message box button.
Posted: 14 Oct 09 10:22 AM
Just thinking a bit here, what if you put Yes, No and Cancel button.
And set the Default Focus on the Cancel button.
And then make it so that the Cancel button just loops back onto the Message ??
Or...
Why don't you use a Manage Form, add the Yes / No buttons and make sure you don't set any default focus or any default buttons (well, do set the Cancel to No, in case the user chooses to "X" the window )
The advantage of using a Form is that if you code right you could reuse it around your application
Or... (And maybe this one is it if you only have the need for it on one single place)
Use a Panel (to mimic this Message box)
[
Reply
][
Quote
]
Page 1 of 1
You can subscribe to receive a daily forum digest in your
user profile
. View the site
code of conduct
for posting guidelines.
Forum RSS Feed
-
Subscribe to the forum RSS feed to keep on top of the latest forum activity!
slxdeveloper.com is brought to you courtesy of
Ryan Farley
&
Customer FX Corporation
.
This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.
code of conduct
|
page cache (param): 8/29/2025 3:21:22 PM