Monday, April 8, 2019
Tip of the Day: Easily Place DIALOG Windows Down and to the Right
Product.......: R:BASE X.5 and R:BASE X.5 Enterprise (Version 10.5)
Build.........: 10.5.1.30326 or higher
Sections......: Commands
Keywords......: DIALOG, RIGHT, BOTTOM, Position
Did you know you can use the recently added RIGHT and BOTTOM options
to position
DIALOG messages from the right and bottom sides of the monitor display?
Similar to TOP and LEFT, RIGHT and BOTTOM allows for users to instead
define the
pixel values working from the bottom and right sides of the display.
-- Example 01
CLEAR VARIABLES vCaption,vYesNo,vEndKey
SET VAR vCaption TEXT = 'DIALOG Windows'
SET VAR vYesNo TEXT = NULL
SET VAR vEndKey TEXT = NULL
DIALOG 'Message...' vYesNo vEndKey 1 +
CAPTION .vCaption ICON INFO +
OPTION MESSAGE_FONT_NAME Tahoma +
|MESSAGE_FONT_SIZE 12 +
|MESSAGE_BOLD ON +
|RIGHT 200 +
|BOTTOM 200
-- Example 02
CLEAR VARIABLES vCaption,vYesNo,vEndKey
SET VAR vCaption TEXT = 'Shipping & Tracking Notification'
SET VAR vYesNo TEXT = NULL
SET VAR vEndKey TEXT = NULL
DIALOG 'You have selected to e-mail shipping & tracking
notification' vYesNo vEndKey Yes +
CAPTION .vCaption ICON QUESTION +
OPTION WINDOW_BACK_COLOR WHITE +
|MESSAGE_BACK_COLOR WHITE +
|MESSAGE_FONT_NAME Tahoma +
|MESSAGE_FONT_COLOR RED +
|MESSAGE_FONT_SIZE 12 +
|MESSAGE_SHOW_ACCELERATOR_CHAR OFF +
|BUTTON_YES_CAPTION &Yes +
|BUTTON_YES_COLOR WHITE +
|BUTTON_YES_FONT_COLOR GREEN +
|BUTTON_NO_CAPTION &No +
|BUTTON_NO_COLOR WHITE +
|BUTTON_NO_FONT_COLOR RED +
|RIGHT 200 +
|BOTTOM 200
The OPTION parameters for the DIALOG command makes it easier to
display messages
at the bottom and right sides of the screen without having to determine the
monitor display dimensions.
Very Best R:egards,
Razzak.
https://www.rbase.com
http://www.facebook.com/rbase/
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.