I have a button script that changes the size of a selection in a text field.
This is it:
Insert Calculated Result [ TextSize ( Middle ( Get ( ActiveFieldContents ) ; Get ( ActiveSelectionStart ) ; Get ( ActiveSelectionSize ) ) ; $size ) ] A problem with this is that if the selection begins with styled characters (bold, underlined, etc) then the entire resized area becomes styled. If there is at least 1 unstyled character before the first styled one, then all styled and unstyled characters remain as they were. What is missing from the calculation?
I'm about to start a solution that needs quite an amount of layout forms and I would like to create a consistent design based on my own custom theme that has already been developed in a separate file. I use Material Design specs as style guideline and the solution is build under the separation model, so all the data is in a hosted file.
I'm considering one of these two strategies:
Create a repository of interface elements (text fields, tab controls, combos, portals, etc.) in a separate file (that's mostly done) and copy generic elements into my solution as I build the needed layouts or Create layouts quickly, overlooking style and apply my theme when all of them are functional I see a drawback on the first option: if I want my element repository to continue useful I will need to keep the theme updates simultaneously in both files
The second option looks more practical because it will allow me to focus on the data and just worry about the look at the end of the process.
What do you think is the most productive strategy?
I have avery big solution that was built in FM7 originally and it needs a UI overhaul. So, no themes are as good as they are I am rolling up my sleeves and putting together a reference design. have been looking around at design templates to lift (speaking frankly) and I like the FM Starting Point design. However there are a few things I need to tweak that I can't readily see how to do it in Inspector. The main one is the height of the tabs in the tab controls. They are too high for my layouts. As far I can see I either have to hack the CSS somehow or I have to use a conditional fomatting workaround, set the text size really small to reduce the height of the tab, then conditional format the text back up to the correct size, which is a bit yuck, seeing as I have lots of tabs.
Any advice much appreciated. Many thanks.
By Binu Alexander
I need a layout with larger number of text fields which may have long words .. currently words are being split randomly and overflowing into new lines .. eg .. for the word 'accordingly'; 'accordingl' comes on the first line and 'ly' comes on the second line. Is there a way that filemaker can hyphenate large words and insert breaks so that it breaks in a more clean manner ?
I have a tab control panel with four tabs, and I would like to achieve that when I change tabs a script is triggered and would set the value of a global field called "zzz_g_collection_type" according to the tab name which is active.
I need this field to dynamically filter the products that are shown on 1_row portals that I have put into each tab panel space.
I have followed Elishree Dey tip on http://burnignorance.com/filemaker-pro-tips/trigger-a-script-when-user-changes-the-tabs-in-filemaker/ but I cant make it work, it only changes the value of "collection_type" field once and only to show that the first condition is not met.
I have attached the picture of my script.
My initial idea was to place on each tab space a picture-field of a product as a 1 row portal and then duplicate as much as products I have so when I click on the picture a script is triggered and the product is added to the invoice.
Morever, I have set an Object name to each tab Control so it would work, and also the desired value for zzz_g_collection_type comes from another related table with only one record that I use as preferences, this is on Preferences Table I have three fields called "Product_Type_Short_#" and those match on Elishree Day script tutorial.
Any ideas what I could be doing wrong?