dbTalk Databases Forums  

Focus Ring

comp.databases.filemaker comp.databases.filemaker


Discuss Focus Ring in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Focus Ring - 12-04-2005 , 10:44 PM






Try picking apart this file:

http://www.wjm.org/linked/Highlight.zip

Don't give up, or the newbie status will be permanent

Bill


"This Being Milt" <thisbeingmilt (AT) gmail (DOT) com> wrote

Quote:
Thanks, Bill. I really appreciate your help but I flat-out cannot get
this to work. I even created a blank database from scratch with only one
field in it, followed these steps to the letter, and it just won't work.
I'm just too much of a newbie I guess. Thanks anyway.


On 2005-12-04 17:29:45 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

It's just a convention I have used... in plain language:

Create a new calculation field called "Record Highlight." Make sure the
result at the bottom of the formula editing window is set to "Container"
and use the calculation:

If(CurrRecord=Get(RecordID);MasterHighlight;"")

By the way, if you didn't catch my followup post, the correct script step
in #6 should be:

Set Field [YourTable::CurrRecord; Get(RecordID)]

(Where "YourTable" is the name of the current database table you're
working on.)

Bill

"This Being Milt" <thisbeingmilt (AT) gmail (DOT) com> wrote in message
news:2005120416410416807%thisbeingmilt (AT) gmailcom (DOT) ..
Bill, thank you so much for your steps. However, being the FMP retard
that I am , I'm getting stuck.

On step 5 you say "create the following field." Does this need to be
named anything specific? What type of field is it?

Also, there is no field called RecordHighlight. Should I create one?
If so, what are its details?

Thanks again.



On 2005-12-03 15:09:09 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

Ooops

Script step should be:

Set Field [YourTable::CurrRecord; Get(RecordID)]

(not RecordNumber)

"Bill Marriott" <wjm (AT) wjm (DOT) org> wrote in message
news:EaCdnejoZ-1tuQ_eRVn-vg (AT) comcast (DOT) com...
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 (AT) gmail (DOT) com> wrote in message
news:2005120314373816807%thisbeingmilt (AT) gmailcom (DOT) ..
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 (AT) Witz (DOT) End> 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


--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke


--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke




Reply With Quote
  #12  
Old   
This Being Milt
 
Posts: n/a

Default Re: Focus Ring - 12-05-2005 , 12:07 AM






Okay, you've talked me into seeing it through.

I think I see where I've been screwing up. How do I get the graphic
file to be "in" the MasterHighlight field? When I insert it it seems
to go into the Part rather than into the individual field.

Thanks Bill!!!

On 2005-12-04 20:44:37 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

Quote:
Try picking apart this file:

http://www.wjm.org/linked/Highlight.zip

Don't give up, or the newbie status will be permanent

Bill


"This Being Milt" <thisbeingmilt (AT) gmail (DOT) com> wrote in message
news:2005120420353816807%thisbeingmilt (AT) gmailcom (DOT) ..
Thanks, Bill. I really appreciate your help but I flat-out cannot get
this to work. I even created a blank database from scratch with only
one field in it, followed these steps to the letter, and it just won't
work. I'm just too much of a newbie I guess. Thanks anyway.


On 2005-12-04 17:29:45 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

It's just a convention I have used... in plain language:

Create a new calculation field called "Record Highlight." Make sure the
result at the bottom of the formula editing window is set to
"Container" and use the calculation:

If(CurrRecord=Get(RecordID);MasterHighlight;"")

By the way, if you didn't catch my followup post, the correct script
step in #6 should be:

Set Field [YourTable::CurrRecord; Get(RecordID)]

(Where "YourTable" is the name of the current database table you're
working on.)

Bill

"This Being Milt" <thisbeingmilt (AT) gmail (DOT) com> wrote in message
news:2005120416410416807%thisbeingmilt (AT) gmailcom (DOT) ..
Bill, thank you so much for your steps. However, being the FMP retard
that I am , I'm getting stuck.

On step 5 you say "create the following field." Does this need to be
named anything specific? What type of field is it?

Also, there is no field called RecordHighlight. Should I create one?
If so, what are its details?

Thanks again.



On 2005-12-03 15:09:09 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

Ooops

Script step should be:

Set Field [YourTable::CurrRecord; Get(RecordID)]

(not RecordNumber)

"Bill Marriott" <wjm (AT) wjm (DOT) org> wrote in message
news:EaCdnejoZ-1tuQ_eRVn-vg (AT) comcast (DOT) com...
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 (AT) gmail (DOT) com> wrote in message
news:2005120314373816807%thisbeingmilt (AT) gmailcom (DOT) ..
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 (AT) Witz (DOT) End> 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


--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke


--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke

--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke



Reply With Quote
  #13  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Focus Ring - 12-05-2005 , 05:26 AM



You put a graphic into the global container field just as you would put text
into a text field: in Browse mode.

1) Add the field to a layout
2) Go to Browse mode
3) Click into the field
4) Either Paste the graphic in, or right-click and choose "Insert
Picture..."

Bill

"This Being Milt" <thisbeingmilt (AT) gmail (DOT) com> wrote

Quote:
Okay, you've talked me into seeing it through.

I think I see where I've been screwing up. How do I get the graphic file
to be "in" the MasterHighlight field? When I insert it it seems to go
into the Part rather than into the individual field.

Thanks Bill!!!

On 2005-12-04 20:44:37 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

Try picking apart this file:

http://www.wjm.org/linked/Highlight.zip

Don't give up, or the newbie status will be permanent

Bill


"This Being Milt" <thisbeingmilt (AT) gmail (DOT) com> wrote in message
news:2005120420353816807%thisbeingmilt (AT) gmailcom (DOT) ..
Thanks, Bill. I really appreciate your help but I flat-out cannot get
this to work. I even created a blank database from scratch with only
one field in it, followed these steps to the letter, and it just won't
work. I'm just too much of a newbie I guess. Thanks anyway.


On 2005-12-04 17:29:45 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

It's just a convention I have used... in plain language:

Create a new calculation field called "Record Highlight." Make sure the
result at the bottom of the formula editing window is set to
"Container" and use the calculation:

If(CurrRecord=Get(RecordID);MasterHighlight;"")

By the way, if you didn't catch my followup post, the correct script
step in #6 should be:

Set Field [YourTable::CurrRecord; Get(RecordID)]

(Where "YourTable" is the name of the current database table you're
working on.)

Bill

"This Being Milt" <thisbeingmilt (AT) gmail (DOT) com> wrote in message
news:2005120416410416807%thisbeingmilt (AT) gmailcom (DOT) ..
Bill, thank you so much for your steps. However, being the FMP retard
that I am , I'm getting stuck.

On step 5 you say "create the following field." Does this need to be
named anything specific? What type of field is it?

Also, there is no field called RecordHighlight. Should I create one?
If so, what are its details?

Thanks again.



On 2005-12-03 15:09:09 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

Ooops

Script step should be:

Set Field [YourTable::CurrRecord; Get(RecordID)]

(not RecordNumber)

"Bill Marriott" <wjm (AT) wjm (DOT) org> wrote in message
news:EaCdnejoZ-1tuQ_eRVn-vg (AT) comcast (DOT) com...
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 (AT) gmail (DOT) com> wrote in message
news:2005120314373816807%thisbeingmilt (AT) gmailcom (DOT) ..
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 (AT) Witz (DOT) End> 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


--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke


--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke


--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke




Reply With Quote
  #14  
Old   
This Being Milt
 
Posts: n/a

Default Re: Focus Ring - 12-05-2005 , 09:18 AM



Success!!!! I got my test project to work, and I just took the
technique and put it into my main database. Thank you so much for your
help, Bill, I really appreciate it!


On 2005-12-05 03:26:35 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

Quote:
You put a graphic into the global container field just as you would put
text into a text field: in Browse mode.

1) Add the field to a layout
2) Go to Browse mode
3) Click into the field
4) Either Paste the graphic in, or right-click and choose "Insert Picture..."

Bill

"This Being Milt" <thisbeingmilt (AT) gmail (DOT) com> wrote in message
news:2005120422073816807%thisbeingmilt (AT) gmailcom (DOT) ..
Okay, you've talked me into seeing it through.

I think I see where I've been screwing up. How do I get the graphic
file to be "in" the MasterHighlight field? When I insert it it seems
to go into the Part rather than into the individual field.

Thanks Bill!!!

On 2005-12-04 20:44:37 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

Try picking apart this file:

http://www.wjm.org/linked/Highlight.zip

Don't give up, or the newbie status will be permanent

Bill


"This Being Milt" <thisbeingmilt (AT) gmail (DOT) com> wrote in message
news:2005120420353816807%thisbeingmilt (AT) gmailcom (DOT) ..
Thanks, Bill. I really appreciate your help but I flat-out cannot get
this to work. I even created a blank database from scratch with only
one field in it, followed these steps to the letter, and it just won't
work. I'm just too much of a newbie I guess. Thanks anyway.


On 2005-12-04 17:29:45 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

It's just a convention I have used... in plain language:

Create a new calculation field called "Record Highlight." Make sure the
result at the bottom of the formula editing window is set to
"Container" and use the calculation:

If(CurrRecord=Get(RecordID);MasterHighlight;"")

By the way, if you didn't catch my followup post, the correct script
step in #6 should be:

Set Field [YourTable::CurrRecord; Get(RecordID)]

(Where "YourTable" is the name of the current database table you're
working on.)

Bill

"This Being Milt" <thisbeingmilt (AT) gmail (DOT) com> wrote in message
news:2005120416410416807%thisbeingmilt (AT) gmailcom (DOT) ..
Bill, thank you so much for your steps. However, being the FMP retard
that I am , I'm getting stuck.

On step 5 you say "create the following field." Does this need to be
named anything specific? What type of field is it?

Also, there is no field called RecordHighlight. Should I create one?
If so, what are its details?

Thanks again.



On 2005-12-03 15:09:09 -0800, "Bill Marriott" <wjm (AT) wjm (DOT) org> said:

Ooops

Script step should be:

Set Field [YourTable::CurrRecord; Get(RecordID)]

(not RecordNumber)

"Bill Marriott" <wjm (AT) wjm (DOT) org> wrote in message
news:EaCdnejoZ-1tuQ_eRVn-vg (AT) comcast (DOT) com...
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 (AT) gmail (DOT) com> wrote in message
news:2005120314373816807%thisbeingmilt (AT) gmailcom (DOT) ..
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 (AT) Witz (DOT) End> 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


--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke


--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke


--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke

--
"Giving money and power to government is like
giving whiskey and car keys to teenage boys."
-- P. J. O'Rourke



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.