It is currently Thu Jul 18, 2019 10:15 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ExplorerListGadget top most root folder
PostPosted: Thu Aug 16, 2018 6:13 am 
Offline
User
User

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 96
Location: NL
Is it possible to somehow set a 'hard' root folder? Eg navigating through folders is possible but only up to the root folder, not further up.


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget top most root folder
PostPosted: Thu Aug 16, 2018 9:31 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Mar 09, 2006 9:24 am
Posts: 257
Location: S. Kor
The RemoveGadgetItem() command seems to work with the ExplorerListGadget on Windows.

Code:
If OpenWindow(0, 0, 0, 400, 200, "ExplorerListGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  ExplorerListGadget(0, 10, 10, 380, 180, "c:\*.*", #PB_Explorer_MultiSelect)
 
  Repeat
    e = WaitWindowEvent()
   
    If e = #PB_Event_Gadget And EventGadget() = 0 And EventType() = #PB_EventType_Change
      If Right(GetGadgetText(0), 2) = ":\" And GetGadgetItemText(0, 0) = ".."
        RemoveGadgetItem(0, 0)
      EndIf
     
    EndIf
   
  Until e = #PB_Event_CloseWindow
EndIf


Top
 Profile  
Reply with quote  
 Post subject: Re: ExplorerListGadget top most root folder
PostPosted: Fri Aug 17, 2018 3:06 am 
Offline
User
User

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 96
Location: NL
Ah, KISS solution, I like it :) Thanks


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

All times are UTC + 1 hour


Who is online

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