New call-to-action
Results 1 to 5 of 5

Thread: How to add space before and after frame text

  1. #1
    Member Scott Kurimski's Avatar
    Real Name
    Scott Kurimski
    Join Date
    Jul 2009
    Posts
    330

    Default How to add space before and after frame text

    I have a frame on a form with the frame text bold. If I make the text bold it will no longer allow me to place a space before and after the frame text.

    i.e. The frame text is “Forms” and I want it to have a space before and after the word Forms so it is easier to read.

    i.e. ” Forms “

    Here is the current code…… <xdlg>{font=Arial,9,B}Forms

    This does not work properly…… <xdlg>{font=Arial,9,B} Forms (In the example above there is a space before and after the word Form)

    I tried to use chr(32) but it did not work.

    If I use a space it moves the text about ½ in to the right of the normal position.

    Ideas anyone?

  2. #2
    "Certified" Alphaholic G Gabriel's Avatar
    Real Name
    G. Gabriel
    Join Date
    Oct 2004
    Posts
    7,204

    Default Re: How to add space before and after frame text

    Try:
    <xdlg>{font=Arial,9,B}{sp} Forms {sp}

    If the space looks too wide, modify to:
    <xdlg>{font=Arial,9,B}{sp=.5} Forms {sp=.5}
    You might have to play with these numbers to get the desired effect.

  3. #3
    Member Scott Kurimski's Avatar
    Real Name
    Scott Kurimski
    Join Date
    Jul 2009
    Posts
    330

    Default Re: How to add space before and after frame text

    Worked like a charm. Thanks-

    I also tested multiple spaces and it worked.

    <xdlg>{font=Arial,9,B}{sp}{sp}Forms{sp}{sp}

  4. #4
    "Certified" Alphaholic G Gabriel's Avatar
    Real Name
    G. Gabriel
    Join Date
    Oct 2004
    Posts
    7,204

    Default Re: How to add space before and after frame text

    You could save few keystrokes by doing:
    <xdlg>{font=Arial,9,B}{sp=2}Forms{sp=2}

  5. #5
    Member Scott Kurimski's Avatar
    Real Name
    Scott Kurimski
    Join Date
    Jul 2009
    Posts
    330

    Default Re: How to add space before and after frame text

    From my testing {SP=X} functions different than {SP}{SP}.

    See the attached screenshot.

    {SP=X} spaces the text over from the left but does not create a physical space between the start of the frame and the text itself, which is what I was after.

Similar Threads

  1. Please add ability to print pdf to a frame
    By joannristau in forum Archived Wishlist
    Replies: 1
    Last Post: 04-02-2009, 10:01 AM
  2. {region} that doesn't add space.
    By CALocklin in forum Archived Wishlist
    Replies: 1
    Last Post: 01-30-2009, 04:51 AM
  3. Reports - how to add unbroken frame
    By Steve Wood in forum Alpha Five Version 9 - Desktop Applications
    Replies: 10
    Last Post: 08-10-2008, 09:56 AM
  4. X-Dialog Frame Text
    By Louis Nickerson in forum Alpha Five Version 5
    Replies: 3
    Last Post: 10-24-2003, 04:21 AM
  5. Add blank space on right.
    By CALocklin in forum Alpha Five Version 4
    Replies: 7
    Last Post: 09-25-2001, 12:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •