Can the wordwrap state be detected when writing a macro?

General questions about using TextPad

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

Post Reply
User avatar
ineuw
Posts: 191
Joined: Sun Mar 18, 2007 3:23 pm

Can the wordwrap state be detected when writing a macro?

Post by ineuw »

I often toggle the wordwrap but in some macros, I need it to be off. Can a macro detect the on/off state? If yes, how? Thanks.
TextPad 8.16.0 64bit in English and TextPad 9.1.0 64bit in French, on two separate Windows installations
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

I don't think it's possible. The word wrap command is always a toggle. There's no way to set it explicitly on or off.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

What ak47 said, and I'm curious what it is you are trying to do?
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
ineuw
Posts: 191
Joined: Sun Mar 18, 2007 3:23 pm

Post by ineuw »

kengrubb wrote:What ak47 said, and I'm curious what it is you are trying to do?
Some text formatting I need to perform for Wikipedia requires a straight line to prevent errors. In case I forget to t toggle the wrap manually (looking at the button state on the toolbar), I wanted the macro to toggle off the wrap.
TextPad 8.16.0 64bit in English and TextPad 9.1.0 64bit in French, on two separate Windows installations
Post Reply