----- Original Message -----
Sent: Tuesday, May 03, 2005 9:57 AM
Subject: [RBG7-L] - Re: PROPERTY
SET_FOCUS and Variable Date/Time Picker
Jan
BUild is 7.5.4.30418
The PAUSE command works fine
I did try reversing the SET_FOCUS and COLOR
commands - no effect.
You're right about the misspellling of Arial -
but it has no effect to change it and R:Base read it correctly
anyway!!!
David
----- Original Message -----
Sent: Tuesday, May 03, 2005 10:52 AM
Subject: [RBG7-L] - Re: PROPERTY SET_FOCUS and Variable Date/Time
Picker
David,
A couple of things. Which version are you? I am still on the
version from R:Chattaqua.
I'm still doing most of my work in 7.1 and I am up to the
latest version there.
(Razzak, I promise, I will be in 7.5 before you get
here)
Have you tried changing the color before setting the focus?
That is what I have been doing.
Couple of things on the Pause. When I use a PAUSE 1, I
usually use a SKIP TO. But you
can only do that if you are going straight to DB EDIT. When
I need to go to a variable I have
been using PAUSE FOR nnn and just doing it.
Have you tried not using a theme in the PAUSE? Also I don't
know if it is a typo.
Shouldn't the message font be ARIAL?
Does this thing work in the TRACE mode?
Sorry for all the questions. Remember I am no expert.
Jan
----- Original Message -----
Sent: Monday, May 02, 2005 9:57
PM
Subject: [RBG7-L] - Re: PROPERTY
SET_FOCUS and Variable Date/Time Picker
Jan
Interesting you can make this work - that means
clearly the problem is on my end.
Before entering the form, I
SET VAR fDR_StartDate DATE = NULL
SET VAR fDR_EndDate DATE = NULL
SET VAR fDR_StartDate =
.#DATE
SET VAR fDR_EndDate = .#DATE
The form has only 4 controls (plus 3 text label controls for
information)
fDR_StartDate is a variable date time picker
fDR_EndDate is a variable date time picker
Search Button (bit button with on exit eep)
Cancel Button (bit button with on exit eep)
Tab order is:
fDR_StartDate
fDR_EndDate
Search bit button
Cancel bit button
This code is run on exit from the Search Bit Button:
IF fDR_EndDate < .fDR_StartDate THEN
BEEP
PAUSE
1 USING +
'Ending Date must be on or after the Starting
Date! +
Click OK to try again.' +
CAPTION
.eMM_MTR_Caption +
ICON INFO +
OPTION BACK_COLOR WHITE
+
|MESSAGE_FONT_NAME Ariel +
|MESSAGE_FONT_SIZE 10
+
|MESSAGE_COLOR WHITE +
|MESSAGE_FONT_COLOR BLUE
+
|BUTTON_COLOR WHITE +
|THEMENAME Mac OS
PROPERTY fDR_EndDate SET_FOCUS 'TRUE'
PROPERTY fDR_EndDate COLOR
'RED'
ELSE
SET VAR fDoIt = 'Yes'
CLOSEWINDOW
ENDIF
RETURN
When the end date is before the start date and I click on (or tab to
and press enter) the Search button, the error is trapped. After
pressing OK for the PAUSE box, the fDR_EndDate control's background turns
red, but the focus remains on the Search button. I can tell many ways,
but the most clear is that I ought to be able to start typing to chagne the
date and I can't. I have to either click on the fDR_EndDate control or
hit Shift Tab or Left arrow to get the focus there.
A puzzler! Anyone have a clue what I'm doing wrong?
David
----- Original Message -----
Sent: Monday, May 02, 2005 4:08 PM
Subject: [RBG7-L] - Re: PROPERTY SET_FOCUS and Variable
Date/Time Picker
David,
This one is a puzzler to me. I exported one of my 7.1
forms with a date set focus in it to 7.5 so I could check this
out.
My form works just fine. The date/time picker accepts the
SET_FOCUS command. It's in the exact same syntax that yours is (except I
have 'TRUE' instead of 'True' but I tested that and it doesn't
matter).
The only difference is I also issue a color command prior
to the set focus so I can see the focus.
Do you have anything else going on in your form?
Is your PROPERTY command in the AFTER START section of
the form? I know a couple of times I've inadvertently placed the
property command in the wrong place. Do you issue the PROPERTY command from
another object?
I don't know
Jan
----- Original Message -----
Sent: Monday, May 02, 2005 6:10
AM
Subject: [RBG7-L] - Re: PROPERTY
SET_FOCUS and Variable Date/Time Picker
Karen
Right click the control and select the FORMAT
tab. There is no choice for M/D/YYYY but you can type that in and it
works great (make sure your date format is MM/DD/YYYY before entering the
form)
But this doesn't solve the original question:
Why is PROPERTY fDateEnd SET_FOCUS 'True' working?
David
----- Original Message -----
Sent: Monday, May 02, 2005 1:43 PM
Subject: [RBG7-L] - Re: PROPERTY SET_FOCUS and Variable
Date/Time Picker
This
has always bothered me. You ARE on the date picker, but there
is
no focus showing anywhere so you don't know where you are. Only if
you type something can you tell that you're in the date picker.
And if
you want to type the month for April, you have to type
"04" rather than "4"
to see something happen. My client is
confused by all this. Anyone have
a good means of showing where
you are? Or am I missing a setting?
(This will be in 7.1)
Karen
When I tried a snippet of code similar to yours,
the focus did indeed
go to the date picker. Although it does
not readily show it. If I hit the tab
key, focus indeed went to the
next field after the date picker indicating
that focus was set to
it. However, are you wanting it to automatically open
the drop down window? Focus on the date picker does not
automatically
open the calendar. I do not know of any property
setting to open the
window, but perhaps there is one somewhere!