Thumbnail Layout And Word Wrapping

Started by Darius1968, March 28, 2023, 04:48:32 PM

Previous topic - Next topic

Darius1968

I'm simply trying to effect a thumbnail layout that will output the folder/file names with word wrapping, and so far, can't get it to work. 

For starters, this is the code for the folder name: 
{File.MD.photools.com::IMatch\101400\file.foldername\0|replace:\== }
So, what is wrong here that I'm not getting my output to word wrap? 

Thanks. 




Mario

Did you change the height of the row so there is actually room to wrap?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

I changed the value for size as high as 1,000 with no success.  And, I know there is enough room because when I set a value this high, there is much space between that row and the thumbnail. 


Mario

I used this folder name
"E:\data\download\community\This is the folder for topic 13023\Sub Folder with more Blanks\ "
and get this using your variable. What do you get?

Image2.jpg

Tip: replace with \<blank> (a \ followed by a SPACE character) to make the folder path look more like a folder path while still wrapping.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

sinus

I tried to add your variable, Darius, in the first header, left.

It worked not, I had the same result like you (only 1 line, cutted).


Then I played 5-10 Minutes around, added filesize 12 and 55 for the size.
Helped not.
Added 1 other variable in the footer. Added also ther size and fontsize.
Suddenly it worked.

I created a new thumb-layout. Added your variable again. Worked not.
Playbe again a bit, added again Font-size, and size to 62. Added a footer. Worked.
Deleted the footer again ... worked still.

I have the impression, if you "play" a bit, suddenly it works, who knows, why.

Most be something curious.
Best wishes from Switzerland! :-)
Markus

Mario

#5
For my test I just duplicated the Default layout and added a custom template for the footer, with 300 height and the variable. Worked immediately.

For a new test I've created a new template, scrolled down to the Footer 1 left, switched to Custom Template, Size 300 and the variable. Also worked immediately.

Not sure what I do differently.
Size 50 gives about two rows, clipping what's left.
100 to 150 is good for almost all folder hierarchy depths.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

Right now, I have a bit of an update: 
My variable works fine if I stick to headers on the left side, ie., Header 1 Left.  Just as soon as I try to use this variable in Header 1 Right, however, is where I run in to the problem of IMatch word-wrapping being suppressed. 



sinus

I guess, this works not with header or footer right. 
Only left.

I do not know, but it could be.
Best wishes from Switzerland! :-)
Markus

Mario

This might be. What do you have in the left header?
Anything or just empty?
This is just how the XAML markup engine works. You can do a lot with File Window Layouts, but maybe not everything in every place.

When you place the wrap part in the right header or footer, the engine might not know how wide the left part is or it cannot shrink it. If you want custom formatted variables in custom templates with word-wrap, stick to the left sections. This gives you 6 sections to work with.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook