5 Replies Latest reply on Jul 22, 2014 12:19 AM by user19752

    Tabbing width


      Hi to all,


      having a heavy background on programming, I am used to using tabs. So whenever I create calculations whether for formatting a field or creating custom functions I like to use the TAB key to ident the lines. Thing is the tab width is 7 or 8 characters in width as far as I can tell - I work on Windows 7. This is quite large, a width of 3 or 4 characters would be much better.


      So my questions is: is there a way to set tabbing width in Filemaker ? I looked in Edit > Preferences, but didnn't find aything related to this .



        • 1. Re: Tabbing width

          It's possible I'm mistaken, but I think FM uses word processor-like tabs. It moves you to the next tab space. I have not found a way to alter the tab stops in the calculation dialog without some hackery.

          • 2. Re: Tabbing width

            Two points:


            1.     If you want to set tab positions in a particular field instance or text object you can do that in the Appearance inspector (see screenshot). There the default position when you start from scratch seems to be 36pt, but of course you can set each tab to whatever you wish.

            2.     I've never thought to check the width of tabs inserted into calcs (which I assume you know you do using option/alt + tab), but in the attached screenshot you can see that on my screen a tab occupies about 5 letter spaces, which is between what you are seeing and what you'd prefer. Don't know what that proves: it's machine or OS dependent, perhaps?


            Screen Shot 2014-07-21 at 9.27.47 am.png

            Screen Shot 2014-07-21 at 9.34.17 am.png

            • 3. Re: Tabbing width

              I checked on Windows 7, the tab width is about 8 characters. I say about because it seem to be set in pixel width, not in character width. If character set is Tahoma, then it's very close to 8 characters in width.


              And looks like there is no way in changing that. I googled that, and haven't found anything. This seems a system wide definition in Windows, or for these kinds of controls. I made small experiment in VBA, by adding a text box control to a form. I can insert Tabs by doing Ctrl+Tab, again it's about 8 characters wide and there is no parameter to set that.



                   A tab was type to the left of that sentence


              See, in here it's shorter .


              Looks like I will have to live with that .

              • 4. Re: Tabbing width

                Re: "I say about because it seem to be set in pixel width, not in character width"


                This would be because most fonts use variable spacing—each letter only taks up as much horizontal space as it needs (hence the printing measures, the en and the em). You could try it with a fixed space font such as courier and see how many characters match the apparent pixel width of tabs.


                As for your 7 or 8 characters vs my 5ish, I gueass that's a Windows/Mac thing.

                • 5. Re: Tabbing width

                  If you are allowed to install program, AutoIt http://www.autoitscript.com/site/autoit/

                  can set tab width of FM dialog.


                  The script below wait the dialog to open, and set tab width to 10px.

                  (make it to .exe and put it to startup folder)


                  #include <GuiEdit.au3>


                  Func _Main()

                     Local $title, $edit, $aTabStops[1] = [10]

                     $title = "Specify Calculation"



                        $edit = ControlGetHandle($title,"","Edit1")

                        If Not @error Then

                           _GUICtrlEdit_SetTabStops($edit, $aTabStops)


                     Until False