dbTalk Databases Forums  

FM6: Way to bold and set a colour to selected text in a field's content?

comp.databases.filemaker comp.databases.filemaker


Discuss FM6: Way to bold and set a colour to selected text in a field's content? in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cerulean
 
Posts: n/a

Default FM6: Way to bold and set a colour to selected text in a field's content? - 07-18-2010 , 10:40 AM






I know my version of FMP is very old, but it's what I have and for the
most part is all I need so I can't justify upgrading.

But I was wondering if anyone knew how to add attributes to selected
text without doing it manuallly all the time.

I need to bold certain titles in the text contents of information
fields and to set the colour of that title text to one of the shades
of blue available.

Is there a way to do this, perhaps via a script? I'm not a very
advanced FMP developer, so hopefully there's something that is fairly
simple to implement, too.

Thanks!

Reply With Quote
  #2  
Old   
Lynn Allen
 
Posts: n/a

Default Re: FM6: Way to bold and set a colour to selected text in a field's content? - 07-18-2010 , 12:30 PM






On 2010-07-18 08:40:03 -0700, Cerulean <Spamming (AT) NOTallowed (DOT) com> said:

Quote:
I need to bold certain titles in the text contents of information
fields and to set the colour of that title text to one of the shades
of blue available.

Is there a way to do this, perhaps via a script? I'm not a very
advanced FMP developer, so hopefully there's something that is fairly
simple to implement, too.
FM6 does not have text style formatting functions that can be applied
by scripting at all. I think those first appeared in FM8.5 or 9.

You can set field formatting on a layout, but not by script, in FM6.

You can do things like putting a container field behind your text
field, and then filling that container field with a colored graphic by
script, but that's about the extent of it.
--
Lynn Allen
--
www.semiotics.com
Member FBA
FM 10 Certified Developer

Reply With Quote
  #3  
Old   
Cerulean
 
Posts: n/a

Default Re: FM6: Way to bold and set a colour to selected text in a field's content? - 07-19-2010 , 09:45 AM



On Sun, 18 Jul 2010 10:30:54 -0700, Lynn Allen
<lynn (AT) NOT-semiotics (DOT) com> wrote:

Quote:
On 2010-07-18 08:40:03 -0700, Cerulean <Spamming (AT) NOTallowed (DOT) com> said:

I need to bold certain titles in the text contents of information
fields and to set the colour of that title text to one of the shades
of blue available.

Is there a way to do this, perhaps via a script? I'm not a very
advanced FMP developer, so hopefully there's something that is fairly
simple to implement, too.

FM6 does not have text style formatting functions that can be applied
by scripting at all. I think those first appeared in FM8.5 or 9.

You can set field formatting on a layout, but not by script, in FM6.

You can do things like putting a container field behind your text
field, and then filling that container field with a colored graphic by
script, but that's about the extent of it.
--
Lynn Allen
Yeah, that's what I found. Well, I ended up going still with a manual
route but at least it's a lot easier since it's using keyboard
shortcuts vs. mousing all over the place, which is a pain.

To remind myself of the keyboard shortcut, I put a little information
button beside the large text information field where I need to bold
and colour the various titles that might appear within. This is to
help the user to more easily identify certain text parts out of the
whole.

I now select the main title and double underline it with Alt + T>S>D,
if memory serves.

And for the colour, well, went back and changed them all to default
black rather than blue.

So I go to each subtitle and select the word via Ctrl+right arrow
(though it does this with Shift+Ctrl+right arrow so I don't have to
keep removing then holding down shift key all the time, back and
forth, for the bolding part next). Then once the subtitle is
selected, I press Shift+Ctrl+B for bold. It bolds in black but that's
easier to live with than selecting the different colour with the mouse
all the time. The purpose is still accomplished, that of more easily
allowing the user's eye to go to pertinent parts of the text.

I added that shortcut key reminder to another general information
button I already had on the main layout which uses a script with the
custom dialogue box command where I put all this informational text.

So, down and dirty and not nice but it allows me to do the job which
is all that matters. Still manual, but keyboard shortcuts are always
faster than mousing, esp. since FMP easily allows me to Ctrl+down
arrow down to next paragraph to do the select subtitle part.

Thnx.

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.