Hi Claudine,
 
I am basically replacing the form opening and closing behavior with a direct manipulation of the Alphablend properties. 
 
I am using a few MDI forms, and am even manipulating the placement of normal forms in the way you describe.  RBase is fantastically customizable!
 
Thanks for your help!
 
Ted

>>> Claudine Robbins<[EMAIL PROTECTED]> 8/2/2008 9:13 AM >>>
Ted,

Just a thought.  Check out Form Properties | Miscellaneous | Form opening
and closing behaviors where form transparency can be set.  I can't remember
which of Razzak's examples has an rff form which goes transparent while
other forms open on top.  It's very effective.

You may also want to visit MDI forms.  They're my favorite.  You can
position them all over your screen by manipulating TOP and LEFT values with:

PROPERTY RBASE_FORM top 354
PROPERTY RBASE_FORM left 0

Here's what I found on making them transparent:

GETPROPERTY 'MDI_Customers|RBASE_FORM' ALPHABLEND vValue
IF vValue = 'TRUE' THEN
   PROPERTY 'MDI_Customers|RBASE_FORM' ALPHABLENDVALUE 255
   PROPERTY 'MDI_Customers|RBASE_FORM' ALPHABLEND 'FALSE'
ELSE
   PROPERTY 'MDI_Customers|RBASE_FORM' ALPHABLENDVALUE 128
   PROPERTY 'MDI_Customers|RBASE_FORM' ALPHABLEND 'TRUE'
ENDIF
CLEAR VAR vValue
RETURN

Claudine


________________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Lienhard
Sent: Saturday, August 02, 2008 1:25 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: Minimizing, then normalizing an external form

Hi Claudine,
I tried that one too, with and without single quotes...no change.  What I
didn't do was set an alias name...I'll try that next. 

Thanks again!
Ted

>>> Claudine Robbins<[EMAIL PROTECTED]> 8/1/2008 4:49 PM >>>
Ted,

I think that your PROPERTY RBASE_FORM SET_FOCUS 'TRUE' needs to be changed
to:

PROPERTY 'Formname|RBASE_FORM' SET_FOCUS 'TRUE'.  Notice the
formname|RBASE_FORM enclosed in single quotes.

Claudine


________________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Lienhard
Sent: Friday, August 01, 2008 4:37 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: Minimizing, then normalizing an external form

Hi Claudine,
Thanks so much for getting back to me! 

I checked and double-checked my SET_FOCUS property commands, looking for
error messages, tracing, etc.  The SET_FOCUS property commands simply do not
seem to apply focus when the window has been minimized.  So, it appears that
when I issue a PROPERTY RBASE_FORM WINDOW_STATE 'TRUE' statement, it can't
"see" the minimized window to "normalize" it.  Granted, this could still be
something I am doing wrong, but after checking my other PROPERTY command
syntax, it seems that I am OK on that score. 

For now, I am using property commands to dynamically change my external form
to a width, length, top, and left of 1...causing the form to disappear and
not cover any screen icons.  Then, I issue the original size properties and
"fade" my form back in with the alphablend properties.  Looks real nice!

I am still scratching my head over the focus issue.  Thanks for weighing in
on this question for me!

Best Regards,
Ted

Ted Lienhard CNE NCT
Golden Valley Consulting


>>> Claudine Robbins<[EMAIL PROTECTED]> 8/1/2008 1:34 PM >>>

Ted,

Clearly, your rff needs focus and the help section says to use either one of
these two syntaxes:

Used to switch focus on forms.

Switching Focus on Form Control:
PROPERTY 'Formname|ComponentID' SET_FOCUS 'TRUE'

Switching Focus to a Form:
PROPERTY 'Formname|RBASE_FORM' SET_FOCUS 'TRUE'

Claudine


________________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Lienhard
Sent: Friday, August 01, 2008 1:22 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Minimizing, then normalizing an external form

I am running an External Form which calls a second form (a normal RBase
form).  After the second form runs and closes, I want the calling form (the
External Form) to normalize again, wait for 3 seconds and then close. 

I am having trouble normalizing the External Form. 

Here is the code I am using in the On After Start EEP of the External Form:

PROPERTY RBASE_FORM WINDOW_STATE 'MINIMIZED'
EDIT USING Form2

PROPERTY RBASE_FORM SET_FOCUS 'TRUE'  (This command has no effect on the
problem)
PROPERTY RBASE_FORM WINDOW_STATE 'NORMAL'
pause using 3
closewindow
return

The External Form minimizes just fine, and the second form (Form2) launches
and closes just fine.  Then the External Form stays minimized until the
RBase task is clicked on the taskbar.  At this point the External
Form normalizes, but does not close until I hit [esc] to manually close it.


I have tried to set focus on the External Form, but I am apparently doing
something wrong.  Any ideas on how to make this work?

Thanks!
Ted



Ted Lienhard CNE NCT
Golden Valley Consulting


Reply via email to