Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-16-2019, 03:14 AM
sg2000 sg2000 is offline
Registered User
 
Join Date: May 2019
Posts: 6
Change message box color

Hello,

How to change MsgBox colors ? (background or text) ?

Thanks
Reply With Quote
  #2  
Old 05-16-2019, 09:25 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,997
Hi sg2000,

VBScript's MsgBox() function for sure does not support changing colors. Neither does SecureCRT's MessageBox() method, but I can at least make a feature request for that.

Both do use the configured Windows theme as far as color of the titlebar and background color. That may be the limit of what can be done. Results will likely differ depending on what Theme you have configured in SecureCRT as well (View menu).

I have created a feature request on your behalf in our product enhancement database for the ability to define background color for MessageBox/Prompt methods of Dialog object. If you prefer direct email notification, send an email to support@vandyke.com and include "Feature Request - Forum Thread #13548" in the subject line or use this form from the support page of our website.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 06-03-2019, 11:39 PM
sg2000 sg2000 is offline
Registered User
 
Join Date: May 2019
Posts: 6
Or to have a blinking text ?
Reply With Quote
  #4  
Old 06-04-2019, 09:51 AM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 928
Quote:
Originally Posted by sg2000 View Post
Or to have a blinking text ?
SecureCRT's scripting API does not currently provide a way to modify properties of the text displayed within a MessageBox in any way except in text content. The ability to control text attributes (bold, italics, color, underline, font size, etc.) is not present in SecureCRT when it comes to MessageBox formatting.

Can you help me better understand the problem you're trying to solve?

In what specific ways will blinking text or colored text help you in your specific case?

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
  #5  
Old 06-12-2019, 05:51 AM
sg2000 sg2000 is offline
Registered User
 
Join Date: May 2019
Posts: 6
Quote:
Originally Posted by jdev View Post

Can you help me better understand the problem you're trying to solve?

In what specific ways will blinking text or colored text help you in your specific case?

--Jake
Hello Jake,

Thanks for your help.
I'm reading result on the uart. According to the result; if the result is not got) I would like to display a message (for ex "error" in red. Quickly you see that something is wrong...

Thanks
Reply With Quote
  #6  
Old 06-12-2019, 10:38 AM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 928
Quote:
Originally Posted by sg2000 View Post
I'm reading result on the uart. According to the result; if the result is not got) I would like to display a message (for ex "error" in red. Quickly you see that something is wrong...
Is there other data that you expect will arrive from the UART following an error condition?

What else is displayed to the screen?

Can you send me a graphic showing what such an error condition might look like so that I can get a better picture?

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 02:28 AM.