Thursday, March 26, 2015

Tip of the Day: Customizing Buttons for PAUSE and DIALOG Commands
Product: R:BASE eXtreme 9.5 (32/64)
Build..: 9.5.5.20326 or higher
www.rbaseupdates.com
www.rupdates.com (Mirror Site)
Section.: PAUSE and DIALOG Commands
Keywords: PAUSE, DIALOG

When designing and deploying R:BASE eXtreme 9.5 applications for mobile
tablet PCs and high resolution devices, it is hard to read the text and
clicking on the PAUSE buttons and customized YES/NO buttons for DIALOG
command.

Did you know that now you can customize the button text font for PAUSE
and DIALOG commands?

Using the latest release and update of R:BASE eXtreme 9.5, Update 5,
Build: 9.5.5.20326 or higher, now you can customize the "font size",
"button width" and "button height" of PAUSE button.

Similarly, you can also customize the YES/NO button properties for the
DIALOG buttons as well.

-- Example 01 (PAUSE with Custom Button)
   CLS
   PAUSE 2 USING 'You MUST Enter Last Name!' +
   CAPTION 'Your Caption Text Here ...' +
   ICON INFO +
   BUTTON 'Click here to continue ...' +
   OPTION BACK_COLOR WHITE +
   |MESSAGE_FONT_NAME Tahoma +
   |MESSAGE_FONT_COLOR RED +
   |MESSAGE_FONT_SIZE 12 +
   |BUTTON_COLOR -16777216 +
   |BUTTON_FONT_NAME Tahoma +
   |BUTTON_FONT_COLOR -16777208 +
   |BUTTON_FONT_SIZE 10 +
   |BUTTON_FONT_BOLD ON +
   |BUTTON_WIDTH 220 +
   |BUTTON_HEIGHT 35
   RETURN

-- Example 02 (DIALOG with Custom Buttons)
   SET VAR vCaption TEXT = 'Run Monthly Routines'
   SET VAR vYesNo TEXT = NULL
   SET VAR vEndKey TEXT = NULL
   CLS
   DIALOG 'You have selected to run monthly routines' vYesNo vEndKey No +
   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 +
   |BUTTON_YES_CAPTION &Yes +
   |BUTTON_YES_COLOR WHITE +
   |BUTTON_YES_FONT_COLOR GREEN +
   |BUTTON_YES_FONT_NAME Tahoma +
   |BUTTON_YES_FONT_SIZE 11 +
   |BUTTON_YES_FONT_BOLD ON +
   |BUTTON_YES_WIDTH 85 +
   |BUTTON_NO_CAPTION &No +
   |BUTTON_NO_COLOR WHITE +
   |BUTTON_NO_FONT_COLOR RED +
   |BUTTON_NO_FONT_NAME Tahoma +
   |BUTTON_NO_FONT_SIZE 11 +
   |BUTTON_NO_FONT_BOLD ON +
   |BUTTON_NO_WIDTH 85
IF vYesNo = 'No' OR vEndKey = '[Esc]' THEN
   GOTO Done
ENDIF
   -- Do what you have to do here ...
LABEL Done
   CLS
   CLEAR VARIABLES vCaption,vYesNo,vEndKey
   RETURN

Have fun customizing PAUSE and DIALOG buttons using R:BASE eXtreme 9.5!

Very Best R:egards,

Razzak

www.rbase.com
www.facebook.com/rbase
--
32 years of continuous innovation!
17 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--


Reply via email to