Centering FMT(Y) for use with input.

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Centering FMT(Y) for use with input.

Post by GomezL »

00010 INPUT FIELDS "6,4,2/FMT(Y),[d]SaT": VALUD$

"FMT(Y)" is a bit too narrow for some fonts, causing the values to be "Chopped Off" for some monitors.

By using 2/FMT(Y), there is plenty of room, but I would really like to center the value.

Is there a way to accomplish this?
Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

Post by Gabriel »

Also, could we have the same thing with centering of the new numeric field spec DATE for listviews?
gordon
Posts: 358
Joined: Fri Apr 24, 2009 6:02 pm

Post by gordon »

If you are using proportional fonts, maybe it would work to use FMT(BY) where the B occupies half of a proportional font position.
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Post by GomezL »

I was really excited about "BY" untill the "B" actually appeared on the Input!.


Seems "B" isn't available.
gordon
Posts: 358
Joined: Fri Apr 24, 2009 6:02 pm

Post by gordon »

I think I was confusing FMT with PIC.

Unfortunately FMT is not described on the wiki. I don't know how that came about. However, it is a part of the Advanced Capabilities Manual.

It turns out that any character other than the specific FMT control characters is regarded as an insertion character. This includes blank spaces. So FMT( G) produces the desired results.

That is a blank ahead of the entry character (e.g. G) is skipped during data entry and positions the proportional entry character in the center of a two position field.
Post Reply