PureBasic Forum
https://www.purebasic.fr/english/

ExplorerListGadget Large Icons
https://www.purebasic.fr/english/viewtopic.php?f=5&t=70487
Page 1 of 1

Author:  IdeasVacuum [ Tue Apr 03, 2018 12:13 am ]
Post subject:  ExplorerListGadget Large Icons

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:
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)


.........but all I get is small file type icons:

Image

What am I doing wrong?

Author:  Bisonte [ Tue Apr 03, 2018 7:54 am ]
Post subject:  Re: ExplorerListGadget Large Icons

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 ;) )
Image

Author:  IdeasVacuum [ Tue Apr 03, 2018 11:22 am ]
Post subject:  Re: ExplorerListGadget Large Icons

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.

Author:  Dude [ Tue Apr 03, 2018 11:27 am ]
Post subject:  Re: ExplorerListGadget Large Icons

Has the ExplorerListGadget() ever used actual image thumbnails? :shock: I've wanted that for years, but just thought it wasn't possible. Is it meant to be possible? Maybe an API way?

Author:  IdeasVacuum [ Tue Apr 03, 2018 2:44 pm ]
Post subject:  Re: ExplorerListGadget Large Icons

Quote:
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/viewtopic.php?f=5&t=60679

Author:  normeus [ Tue Apr 03, 2018 9:09 pm ]
Post subject:  Re: ExplorerListGadget Large Icons

Create your own icons using GDI to resize. Have a look at this netmeastro's sample code:

http://www.purebasic.fr/english/viewtopic.php?p=170185#p170185

don't tell IdeasVacuum from 2014 or you'll disrupt the time continum.


Norm.

Author:  IdeasVacuum [ Tue Apr 03, 2018 9:32 pm ]
Post subject:  Re: ExplorerListGadget Large Icons

.....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. :shock:

Author:  IdeasVacuum [ Wed Apr 04, 2018 4:34 pm ]
Post subject:  Re: ExplorerListGadget Large Icons

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 :D

Author:  Fig [ Mon Sep 30, 2019 6:20 pm ]
Post subject:  Re: ExplorerListGadget Large Icons

2019, I am looking for large icon for picture files...
I feel really fooled. :?

Author:  BarryG [ Mon Sep 30, 2019 10:10 pm ]
Post subject:  Re: ExplorerListGadget Large Icons

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:
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

Image

Author:  IdeasVacuum [ Thu Nov 21, 2019 5:48 pm ]
Post subject:  Re: ExplorerListGadget Large Icons

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.

Author:  Shardik [ Tue Nov 26, 2019 1:50 pm ]
Post subject:  Re: ExplorerListGadget Large Icons

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!
PB-Documentation for ExplorerListGadget() wrote:
- GetGadgetAttribute() / SetGadgetAttribute(): With the following attribute:

#PB_Explorer_DisplayMode : Changes the display of the gadget. Can be one of the following constants (Windows only):
#PB_Explorer_LargeIcon: Large icon mode
#PB_Explorer_SmallIcon: Small icon mode
#PB_Explorer_List : List icon mode
#PB_Explorer_Report : Report mode (columns, default mode)

I would interpret "Large icon mode" as using 32x32 icons and "Small icon mode" as using 16x16 icons.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/