It is currently Sat Dec 07, 2019 8:10 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: ExplorerListGadget Large Icons
PostPosted: Tue Apr 03, 2018 12:13 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5883
Location: Wales, UK
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?

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget Large Icons
PostPosted: Tue Apr 03, 2018 7:54 am 
Offline
Addict
Addict
User avatar

Joined: Tue Oct 09, 2007 2:15 am
Posts: 1093
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

_________________
PureBasic 5.71 LTS (Windows x86/x64) | Windows10 Pro x64 | Z370 Extreme4 | i7 8770k | 32GB RAM | iChill GeForce GTX 980 X4 Ultra | HAF XF Evo​​
English is not my native language... (I often use DeepL to translate my texts.)


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget Large Icons
PostPosted: Tue Apr 03, 2018 11:22 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5883
Location: Wales, UK
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.

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget Large Icons
PostPosted: Tue Apr 03, 2018 11:27 am 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1904
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget Large Icons
PostPosted: Tue Apr 03, 2018 2:44 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5883
Location: Wales, UK
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

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget Large Icons
PostPosted: Tue Apr 03, 2018 9:09 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Apr 20, 2012 8:09 pm
Posts: 288
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.

_________________
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget Large Icons
PostPosted: Tue Apr 03, 2018 9:32 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5883
Location: Wales, UK
.....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:

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget Large Icons
PostPosted: Wed Apr 04, 2018 4:34 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5883
Location: Wales, UK
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

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget Large Icons
PostPosted: Mon Sep 30, 2019 6:20 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Apr 30, 2009 5:23 pm
Posts: 307
Location: Côtes d'Azur, France
2019, I am looking for large icon for picture files...
I feel really fooled. :?

_________________
There are 2 methods to program bugless.
But only the third works fine.

Win10, Pb x64 5.70 LTS


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget Large Icons
PostPosted: Mon Sep 30, 2019 10:10 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Apr 18, 2019 8:17 am
Posts: 429
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


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget Large Icons
PostPosted: Thu Nov 21, 2019 5:48 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5883
Location: Wales, UK
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.

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget Large Icons
PostPosted: Tue Nov 26, 2019 1:50 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 21, 2005 2:38 pm
Posts: 1656
Location: Germany
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye