fill-block disabled on certain file types

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Tomas Galdamez

fill-block disabled on certain file types

Post by Tomas Galdamez »

Hi, please help me...

The Edit, Fill Block option is disabled no matter the setting for word-wrap and block-selection-mode. This only happens on a particular file class, on text files (*.txt) the option is enabled and works fine.

the file is a visual basic source with these settings taken from right-click,properties:

Preferences
[X] maintain indentation
[ ] word wrap long lines

Tabulation
[X]convert new tabs to spaces
[ ]convert existing tabs

Syntax
[X] enable syntax highlighting
syntax file: vb.syn

The steps to reproduce the problem are:
1) press alt while select a range. you get a block selection
2) right click on the block
and the fill is disabled :(

Any help would be greatly appreciated, thanks

Version: Textpad 4.5.0 on Windows 2000 SP3
Tomas Galdamez

Re: fill-block disabled on certain file types

Post by Tomas Galdamez »

Found it.

It's the font!


Aparently the fill-block is not available when using the ProFont (http://www.tobias-jung.de/seekingprofont/index.html). I don't know if the profont lacks something necesary for the blockfill to success...Neither know if this behavior happens with any other font.

Switching back to Courier causes the fill-block to be enabled again :)

Maybe it's a bug in Textpad. At least I now know the workaround.

-Tomás
Andreas

Re: fill-block disabled on certain file types

Post by Andreas »

My guess is that the font is not marked as a fixed-width (non-proportional) font.
fixed-width is necessary so columns align properly. If they don't, block selection does not make sense...
Post Reply