[Gambas-user] dirchooser runtime refresh button how to reference in code

jbskaggs jbskaggs at ...1871...
Wed Mar 26 18:19:31 CET 2008


It worked like a charm!

JB

Benoit Minisini wrote:
> 
> On mercredi 26 mars 2008, jbskaggs wrote:
>> Thanks to the helpful people here I am nearing completion of the working
>> model of my program- all functions are basically running and I need to
>> just
>> smooth things out.  Improve the graphics and usabilty etc. One thing I
>> put
>> in the other post that Benoit said he would look at.
>>
>> The second should be simple:
>> in ver 2.4 on the dirchooser there is a refresh button that appears at
>> runtime.
>> How can I run that refresh button automatically via code?
>>
>> IE after I create a new directory or delete one etc how do I
>> automatically
>> get dirchooser to update or refresh it's display?
>>
>> I tried using the .refresh and that did not do anything.
>>
>> It is irritating after you delete a directory and it is still in the
>> dirchooser list until you press refresh.
>>
>> JB SKaggs
> 
> There is no method for that in DirChooser and FileChooser, whereas there
> are 
> in DirView and FileView. This is something I forgot, sorry!
> 
> But you can try the following hack:
> 
> --8<---------------------------------
> DIM hObject AS Object
> 
> hObject = MyDirChooser.Children[0]
> hObject.btnRefresh_Click()
> --8<---------------------------------
> 
> Regards,
> 
> -- 
> Benoit Minisini
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 

-- 
View this message in context: http://www.nabble.com/dirchooser-runtime-refresh-button-how-to-reference-in-code-tp16296679p16307115.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list