Die Funktion "SetGadgetAttribute" funktioniert unter Linux mit einem "ExplorerListGadget" nicht (siehe Beispiel).
Beispielcode:
Code: Alles auswählen
If OpenWindow(0, 0, 0, 1000, 800, "PBFM", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget )
If ContainerGadget(0, 0, 0, 300, 800)
ExplorerListGadget(2, 5, 5, GadgetWidth(0) - 10, GadgetHeight(0) - 10, "", #PB_Explorer_AlwaysShowSelection |
#PB_Explorer_NoFiles |
#PB_Explorer_NoFolders |
#PB_Explorer_NoParentFolder |
#PB_Explorer_NoDirectoryChange |
#PB_Explorer_NoDriveRequester |
#PB_Explorer_NoSort |
#PB_Explorer_AutoSort )
CloseGadgetList()
SetGadgetAttribute(2, #PB_Explorer_DisplayMode, #PB_Explorer_SmallIcon)
EndIf
If ContainerGadget(1, 0, 0, 700, 800)
ExplorerListGadget(3, 5, 5, GadgetWidth(1) - 10, GadgetHeight(1) - 10, "", #PB_Explorer_AlwaysShowSelection |
#PB_Explorer_NoParentFolder |
#PB_Explorer_AutoSort)
SetGadgetAttribute(3, #PB_Explorer_DisplayMode, #PB_Explorer_LargeIcon)
CloseGadgetList()
EndIf
SplitterGadget(4, 0, 0, WindowWidth(0), WindowHeight(0), 0, 1, #PB_Splitter_Vertical | #PB_Splitter_Separator)
EndIf
Repeat
windowEvt.i = WaitWindowEvent()
Until windowEvt = #PB_Event_CloseWindow
End
Code: Alles auswählen
PB-Version: PureBasic 5.42 LTS (Linux - x64)
OS: Xubuntu 16.04 64 Bit
Compilereinstellungen:
[x] Unicode-Executable erstellen
[ ] Thread-sicheres Executable erstellen
[ ] OnError-Unterstützung einschalten
[x] Moderne Themen-Unterstützung aktivieren (für Windows XP und höher)
[ ] Administrator-Modus für Windows Vista und höher anfordern
[ ] User-Modus für Windows Vista und höher anfordern (keine Virtualisierung)
Library Subsystem: keines oder gtk2