Page 1 of 1
ExplorerListGadget Large Icons
Posted: Tue Apr 03, 2018 12:13 am
by IdeasVacuum
PB5.62 x86, Win7 x64
So, first time I have used the ExplorerListGadget for image files only!
I expected to see Image Thumbnails, as you do in Windows, with these settings:
Code: Select all
ExplorerListGadget(#MyExp, 0, 0, 170, 375, sgImgsVerbatim, #PB_Explorer_NoFolders | #PB_Explorer_NoParentFolder | #PB_Explorer_NoDirectoryChange | #PB_Explorer_NoDriveRequester | #PB_Explorer_NoMyDocuments | #PB_Explorer_AutoSort)
SetGadgetAttribute(#MyExp, #PB_Explorer_DisplayMode, #PB_Explorer_LargeIcon)
[/size]
.........but all I get is small file type icons:
What am I doing wrong?
Re: ExplorerListGadget Large Icons
Posted: Tue Apr 03, 2018 7:54 am
by Bisonte
Maybe your windows settings ?
I don't know exactly where it is, but there was an explorer setting (show always icons or similiar...)
Ah i think here it is (sorry german windows

)

Re: ExplorerListGadget Large Icons
Posted: Tue Apr 03, 2018 11:22 am
by IdeasVacuum
Hi Bisonte
Double-checked, unfortunately not the cause of the issue.
I think PB is a bit out of date with Windows Explorer, where the icon size choices are Extra Large, Large, Medium and Small. Only "small" uses the file type icon rather than a thumbnail.
Re: ExplorerListGadget Large Icons
Posted: Tue Apr 03, 2018 11:27 am
by Dude
Has the ExplorerListGadget() ever used actual image thumbnails?

I've wanted that for years, but just thought it wasn't possible. Is it meant to be possible? Maybe an API way?
Re: ExplorerListGadget Large Icons
Posted: Tue Apr 03, 2018 2:44 pm
by IdeasVacuum
Has the ExplorerListGadget() ever used actual image thumbnails?
I would hope so, otherwise what would be the point of specifying size?
Gosh - in searching the forum, I found this:
http://forums.purebasic.com/english/vie ... =5&t=60679
Re: ExplorerListGadget Large Icons
Posted: Tue Apr 03, 2018 9:09 pm
by normeus
Create your own icons using GDI to resize. Have a look at this netmeastro's sample code:
http://www.purebasic.fr/english/viewtop ... 85#p170185
don't tell IdeasVacuum from 2014 or you'll disrupt the time continum.
Norm.
Re: ExplorerListGadget Large Icons
Posted: Tue Apr 03, 2018 9:32 pm
by IdeasVacuum
.....also, if it is the case that the Help is wrong and the ExplorerListGadget is not "like Explorer", there would still seem to be a bug because "Large Icons" are not large at all - in fact they are small!
This is also true with images in a ListIconGadget, #PB_ListIcon_LargeIcon - shows thumbnails, but only tiny ones, crudely scaling down good images into poor images.

Re: ExplorerListGadget Large Icons
Posted: Wed Apr 04, 2018 4:34 pm
by IdeasVacuum
Hi normeus!
Well, I am doing my own thumbnails as a work-around but it's not great because there needs to be a lot of unnecessary code to support subsequent file manipulation/display of many thumbnails (looking at Canvas in a ScrollArea) whereas if the ExplorerListGadget worked like Windows Explorer (as claimed in the PB Help), virtually no code is required because large thumbnails can be displayed by default and files drag-dropped too. Unfortunately useless as-is in my case because the User needs to identify image files by seeing the images.
Given that Windows Explorer has delivered this functionality since 2009, it would seem the PB Explorer could do with a bit of a make-over

Re: ExplorerListGadget Large Icons
Posted: Mon Sep 30, 2019 6:20 pm
by Fig
2019, I am looking for large icon for picture files...
I feel really fooled.

Re: ExplorerListGadget Large Icons
Posted: Mon Sep 30, 2019 10:10 pm
by BarryG
FWIW, I get large icons from using the #PB_Explorer_LargeIcon flag. Must be a setting on your PC disabling them?
If you've got Win 10 Pro, try your code in the Windows Sandbox to see how it looks on a clean default system.
Code: Select all
If OpenWindow(0, 0, 0, 400, 200, "ExplorerListGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ExplorerListGadget(0, 10, 10, 380, 180, "C:\Windows\", #PB_Explorer_NoFolders | #PB_Explorer_NoParentFolder | #PB_Explorer_NoDirectoryChange | #PB_Explorer_NoDriveRequester | #PB_Explorer_NoMyDocuments | #PB_Explorer_AutoSort)
SetGadgetAttribute(0, #PB_Explorer_DisplayMode, #PB_Explorer_LargeIcon)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

Re: ExplorerListGadget Large Icons
Posted: Thu Nov 21, 2019 5:48 pm
by IdeasVacuum
Hi BarryG
I don't think so - Windows 7 - Windows 10 offer the User various sizes on-the-fly.
I don't know how it is on MAC OS or Linux, but that might be the reason - compatibility with the others.
Edit: By the way, is your screen capture showing "large" icons? The largest "Extra Large" icons on Win 7 are roughly 270 x 276 pixels. The "Large" icons are 105 x 115.
Re: ExplorerListGadget Large Icons
Posted: Tue Nov 26, 2019 1:50 pm
by Shardik
IdeasVacuum wrote:I don't know how it is on MAC OS or Linux, but that might be the reason - compatibility with the others.
No, this can't be a problem of compatibility because the flags for
#PB_Explorer_DisplayMode are only working on Windows!
I would interpret "Large icon mode" as using 32x32 icons and "Small icon mode" as using 16x16 icons.