Re: Focus Ring
- From: "Bill Marriott" <wjm@xxxxxxx>
- Date: Sat, 3 Dec 2005 18:09:09 -0500
Ooops
Script step should be:
Set Field [YourTable::CurrRecord; Get(RecordID)]
(not RecordNumber)
"Bill Marriott" <wjm@xxxxxxx> wrote in message
news:EaCdnejoZ-1tuQ_eRVn-vg@xxxxxxxxxxxxxx
> Milt,
>
> Here's a step-by-step outline of how to do this without using a serial
> number field (so it works in any table):
>
> 1. Design your highlight graphic
> 2. Create a Global Container field, MasterHighlight
> 3. Put your highlight graphic into MasterHighlight
>
> 4. Create a Global number field, CurrRecord
>
> 5. Create the following field:
>
> RecordHighlight (calculation, container result) =
> If(CurrRecord=Get(RecordID);MasterHighlight;"")
>
> 6. Create a script, "Set Current Record" with the step:
>
> Set Field [YourTable::CurrRecord; Get(RecordNumber)]
>
> 7. Go to your layout and make the following adjustments:
>
> a. Create a rectangle the height and width of your body part. (Don't make
> it transparent yet as doing so will make it hard to work with.)
> b. Right-click the rectangle and choose "Button Setup..."
> c. Specify to run the Set Current Record script
> d. With the rectangle selected, choose Arrange--> Bring to Front to be
> certain it's on top of all other elements
>
> e. Add the RecordHighlight field to your layout if it isn't there already
> f. With the RecordHighlight field selected, choose Arrange--> Send to Back
> to be certain it's below all other elements
>
> g. Put everything together in the body part like a sandwich. From top to
> bottom:
>
> --- Rectangle/button to run the Set Current Record script ---
> --- Your fields and other usual body part elements ---
> --- The RecordHighlight field ---
>
> * Use the Show Size palette (click in/cm until it shows pixels) if
> necessary to make sure the highlight container field and the button
> rectangle are sized the same and in the same position.
>
> * Make sure they are fitted to the body part precisely (and not touching
> the header)
>
> * Make the button rectangle no fill/no pen now
>
> Now, when you go to browse, whenever you click on a record, the following
> will happen:
>
> 1) The rectangle/button will activate
> 2) The script will set the global field CurrRecord to the RecordID of the
> record you clicked on
> 3) The calculation for that record will suddently become "true" and the
> background highlight will appear.
>
> Bill
>
> "This Being Milt" <thisbeingmilt@xxxxxxxxx> wrote in message
> news:2005120314373816807%thisbeingmilt@xxxxxxxxxxx
>> Thanks for the link. I see how he's doing it, and I duplicated his steps
>> exactly in mine, and I *still* can't get the damn thing to work. I give
>> up. Thanks anyway. :)
>>
>>
>>
>> On 2005-12-03 13:40:01 -0800, "Matt Wills" <Im@xxxxxxxx> said:
>>
>>>
>>> Ray Cologon has an example of a technique for highlighting the selected
>>> row in list view at http://www.nightwing.com.au/FileMaker/demos1.html#d5
>>>
>>> It's an FP5 demo file, but the concept should still work in 7/8.
>>>
>>> Matt
>>
>>
>> --
>> "Giving money and power to government is like
>> giving whiskey and car keys to teenage boys."
>> -- P. J. O'Rourke
>>
>
>
.
- Follow-Ups:
- Re: Focus Ring
- From: This Being Milt
- Re: Focus Ring
- References:
- Re: Focus Ring
- From: Matt Wills
- Re: Focus Ring
- From: This Being Milt
- Re: Focus Ring
- From: Bill Marriott
- Re: Focus Ring
- Prev by Date: Re: Focus Ring
- Next by Date: Import Export of Data between Outlook & Filemaker
- Previous by thread: Re: Focus Ring
- Next by thread: Re: Focus Ring
- Index(es):
Loading