Frank,
    Sure.  If you want a sample form, let me know.
                                                Jason
Jason Kramer
University Archives and Records Management
002 Pearson Hall
(302) 831 - 3127 (voice)
(302) 831 - 6903 (fax)

On 3/14/2012 1:55 PM, Frank Taylor wrote:

Jason,

 

Thanks ! interesting approach. Let me play with it and see what I get !

 

n  Frank

 

Frank Taylor - Information Technology Administrator

F.J. O'Hara & Sons,  Inc - Araho Transfer Inc.

Boston, MA - Rockland, ME - Miami, FL

Direct Dial - 617-790-3093

email: [email protected]

 

From: [email protected] [mailto:[email protected]] On Behalf Of Jason Kramer
Sent: Wednesday, March 14, 2012 11:13 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Glowing Button ?

 

Frank,
    Assuming you are not already using the timer for something, you can do it like this:

1 - Set a list of colors to create the glow in the On Before Start EEP for the form:
SET VAR vcolorlist TEXT = '$00DE1712,$00EE3531,$00F26360,$00F79593,$00FBCBCA'
SET VAR vcolorloop INTEGER = 1
SET VAR vcolordirection TEXT = 'UP'
SET VAR vselcolor TEXT = NULL

2 - Activate the timer.  Pick a setting that you like.

3 - Set the Timer EEP to cycle the colors on the button (my button is named pbglow):
SET VAR vselcolor = (SSUB(.vcolorlist,.vcolorloop))
PROPERTY pbglow color .vselcolor

IF vcolordirection = 'UP' THEN
  IF vcolorloop < 5 THEN
    SET VAR vcolorloop = .vcolorloop + 1
  ELSE
    SET VAR vcolordirection = 'DOWN'
    SET VAR vcolorloop = .vcolorloop - 1
  ENDIF
ELSE
  IF vcolorloop > 1 THEN
    SET VAR vcolorloop = .vcolorloop - 1
  ELSE
    SET VAR vcolordirection = 'UP'
    SET VAR vcolorloop = .vcolorloop + 1
  ENDIF
ENDIF
RETURN

    This will give you a glowing button.  You will probably need to use a longer list of colors to create a smoother glow, but you can get the idea from this.  I also suspect that it would be possible to come up with a formula to calculate the color so that you don't need a list, but I don't know how R:BASE converts RGB values to the COLOR property values to do it myself.

                                                            Jason

Jason Kramer
University Archives and Records Management
002 Pearson Hall
(302) 831 - 3127 (voice)
(302) 831 - 6903 (fax)


On 3/14/2012 9:11 AM, Frank Taylor wrote:

I am not sure if this function exists or if anyone has accomplished this in the past that they would like to share, but I would like to have a button (speed,bit,etc., or shape button) that when on the form appears to be glowing, or inviting the user to push it.  I would prefer not to have a "Flashing button" that is too distracting from the other fields on the form, more of a gentle glow that grows in intensity then fades back down.  I have also been looking for an animated Gif that I could use, but cannot find any that are generic enough or does not cost $30 to download...  Any help or suggestions would be appreciated.
 
 
 
Frank Taylor - Information Technology Administrator 
F.J. O'Hara & Sons,  Inc - Araho Transfer Inc.
Boston, MA - Rockland, ME - Miami, FL
Direct Dial - 617-790-3093
email: [email protected]
 
 



Reply via email to