Page 1 of 1
Scripting: switching text pane "Word wrap" permantly ON?
Posted: 03 Mar 2012 15:59
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.
Re: Scripting: switching text pane "Word wrap" permantly ON?
Posted: 03 Mar 2012 16:35
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.
Re: Scripting: switching text pane "Word wrap" permantly ON?
Posted: 03 Mar 2012 16:58
by Filehero
Hi serendipity,
thanks for your support.
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
Re: Scripting: switching text pane "Word wrap" permantly ON?
Posted: 03 Mar 2012 17:03
by serendipity
Filehero wrote:Hi serendipity,
thanks for your support.
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?
Re: Scripting: switching text pane "Word wrap" permantly ON?
Posted: 04 Mar 2012 12:12
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
Re: Scripting: switching text pane "Word wrap" permantly ON?
Posted: 04 Mar 2012 12:55
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?
Re: Scripting: switching text pane "Word wrap" permantly ON?
Posted: 04 Mar 2012 14:16
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.
Cheers,
Filehero