Scripting: switching text pane "Word wrap" permantly ON?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Filehero
Posts: 2732
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Scripting: switching text pane "Word wrap" permantly ON?

Post by Filehero »

Hi,

is there a way to switch on "Word wrap" by default in script-related text panes, eg. in the Run script textbox or the multi-line textbox in general?
I've found some "*wrap*"-settings in the ini, but they don't seem to be related to my "issue".


Thanks & cheers,
Filehero

PS: I'm really not known to be an arse-li****, but MiniTree in combination with Catalog simply rocks! Besides Lightroom, my best software buy for 5 years.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Scripting: switching text pane "Word wrap" permantly ON?

Post by serendipity »

Filehero wrote:Hi,

is there a way to switch on "Word wrap" by default in script-related text panes, eg. in the Run script textbox or the multi-line textbox in general?
I've found some "*wrap*"-settings in the ini, but they don't seem to be related to my "issue".


Thanks & cheers,
Filehero

PS: I'm really not known to be an arse-li****, but MiniTree in combination with Catalog simply rocks! Besides Lightroom, my best software buy for 5 years.
Hi,
If you check word wrap in Run script or Try script window it is remembered for the next time. In scripting there are two commands that support this: lookup input and text scripting commands in help.

Filehero
Posts: 2732
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Scripting: switching text pane "Word wrap" permantly ON?

Post by Filehero »

Hi serendipity,

thanks for your support. :D
serendipity wrote: If you check word wrap in Run script or Try script window it is remembered for the next time.
You're right. But how about the pane evoked by "text" (or any other multi-text boxes no matter what the calling context might be)?


Cheers,
Filehero

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Scripting: switching text pane "Word wrap" permantly ON?

Post by serendipity »

Filehero wrote:Hi serendipity,

thanks for your support. :D
serendipity wrote: If you check word wrap in Run script or Try script window it is remembered for the next time.
You're right. But how about the pane evoked by "text" (or any other multi-text boxes no matter what the calling context might be)?

Cheers,
Filehero
Did not understand, you mean pane evoked by "text" command?
Could give a specific example maybe?

Filehero
Posts: 2732
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Scripting: switching text pane "Word wrap" permantly ON?

Post by Filehero »

serendipity wrote:Did not understand, you mean pane evoked by "text" command?
Could give a specific example maybe?
Oups, sorry for being unclear.

Yes, I mean the pane/box coming up when using text() in a script. Between subsequent calls the "wrap"-flag is not remembered.


Cheers,
Filehero

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Scripting: switching text pane "Word wrap" permantly ON?

Post by admin »

wrap is an optional parameter of the text command:

Code: Select all

Syntax: text text, [width=600], [height=400], [caption], [wrap], [linebreaker="<br>"]
Does this help?

Filehero
Posts: 2732
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Scripting: switching text pane "Word wrap" permantly ON?

Post by Filehero »

admin wrote:Does this help?

Code: Select all

$logFiles = folderreport("files", "r", , "r", , "|");
text $logFiles, 600, 400, "Does it wrap?", w;
Yep, than it opens up with the check-box selected - and wraps the hell out of it. :mrgreen:


Cheers,
Filehero

Post Reply