DirBox and FileBox Cancel
Posted
#1
(In Topic #1302)
Regular

I want to propagate the cancellation up a couple of levels of the stack trace.
The only events I know of are _Click and _Change. Neither of which are raised when the Cancel button is clicked?
tia
thatbruce
Posted
Guru

Code (gambas)
- '' This is a copy of the DirBox Button_Click() event adapted to not use it's internal variables $sTitle and $sText
Posted
Guru

Save this as DirBox.class in your project…
Code (gambas)
That will add DirBox1_Cancelled() event
Or a more condensed version…
Posted
Regular

I discounted the shortened version as there is nothing wrong with them selecting the same directory.
Thanks for the options!
I wonder if the native DirBox should have that event as I can see other cases where it could apply. In fact any control that uses a child control that is cancellable.
b
Posted
Guru

1 guest and 0 members have just viewed this.


