It is currently Sun Nov 17, 2019 9:12 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: ExplorerComboGadget(#PB_Explorer_DrivesOnly)
PostPosted: Fri Oct 04, 2019 11:10 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 371
Location: Germany
Code:
If OpenWindow(0, 0, 0, 400, 45, "ExplorerComboGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  ExplorerComboGadget(0, 10, 10, 380, 25, "", #PB_Explorer_DrivesOnly | #PB_Explorer_NoMyDocuments)
  Repeat
    Event = WaitWindowEvent()
  Until Event = #PB_Event_CloseWindow
EndIf

Under Linux (PureBasic 5.71 LTS x64):
Image
Code:
$ LANG=C df --output=source,target
Filesystem     Mounted on
dev            /dev
run            /run
/dev/sda2      /
tmpfs          /dev/shm
tmpfs          /sys/fs/cgroup
tmpfs          /tmp
/dev/sda1      /boot/efi
/dev/sdb1      /home/alexander/Games
tmpfs          /run/user/1000
/dev/sdc       /run/media/alexander/USBSTICK

Under Windows XP (PureBasic 5.71 LTS x86):
Image

ExplorerComboGadget:
  • Windows: WC_COMBOBOXEX
  • Linux: GtkComboBoxEntry
  • Mac: HIComboBox
Source: https://www.purebasic.fr/blog/?p=336

It seems that no special gadget is used, but a normal gadget and the entries are manually inserted into the gadget.

Is the behavior of the gadget under Linux intended by the PB developers, that not all drives are displayed as under Windows, or is this a bug?

PB help: ExplorerComboGadget() wrote:
#PB_Explorer_DrivesOnly : The gadget will only display drives to choose from.

What does it look like under Mac?

_________________
Image
Why OpenSource should have a license
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download -- Any help is welcome!
Manjaro Xfce x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerComboGadget(#PB_Explorer_DrivesOnly)
PostPosted: Fri Oct 04, 2019 2:16 pm 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 4411
Location: Germany
Windows does also not show drives or disks.
It only shows 'volumes'
If you have 2 partitions on one drive, you will see 2 drive letters and not only the device.


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerComboGadget(#PB_Explorer_DrivesOnly)
PostPosted: Fri Oct 04, 2019 4:52 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 371
Location: Germany
I'm aware of that.

Perhaps it is more understandable if I mention that I would have expected the following entries in the ExplorerComboGadget under Linux:
  • /
  • /boot/efi
  • /home/alexander/Games
  • /run/media/alexander/USBSTICK
Have a look at the output of the program df in my first post.

_________________
Image
Why OpenSource should have a license
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download -- Any help is welcome!
Manjaro Xfce x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerComboGadget(#PB_Explorer_DrivesOnly)
PostPosted: Fri Oct 04, 2019 8:44 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 21, 2005 2:38 pm
Posts: 1652
Location: Germany
Sicro wrote:
ExplorerComboGadget:
  • Windows: WC_COMBOBOXEX
  • Linux: GtkComboBoxEntry
  • Mac: HIComboBox
Source: https://www.purebasic.fr/blog/?p=336
Unfortunatly the Mac information is still for the Carbon framework which was dropped by PureBasic with version 5.20. For the MacOS GUI objects of the actual used Cocoa framework you should take a look into my extended table.

Sicro wrote:
What does it look like under Mac?
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerComboGadget(#PB_Explorer_DrivesOnly)
PostPosted: Sun Oct 13, 2019 11:04 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 371
Location: Germany
Thanks for your extended table. I see there that it is still a normal gadget that does not fill the entries by itself.

Also, thanks for your screenshot.

Conclusion:
The gadget is filled via code from the PB team.
The command description for ExplorerComboGadget() should be adapted to mention that the constant #PB_Explorer_DrivesOnly is not supported under Linux and Mac.
Or the support for Linux and Mac should be built in.

_________________
Image
Why OpenSource should have a license
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download -- Any help is welcome!
Manjaro Xfce x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 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