[Gambas-user] ProgressBar Change Event

Dimitris Anogiatis dosida at ...626...
Sun Jul 10 05:54:53 CEST 2011


Demosthene,

Since the value of the progressbar cotnrol is just between 0 to 1
you can probably try

IF ProgressBar1.Value = 1 THEN ProgressBar1.label="Process complete"


You can probably do this within the ProgressBar1_Change() event
assuming that the event is going to get fired when an input changes
the Value property of the control.

I hope this helps

Dimitris

On Sat, Jul 9, 2011 at 1:04 AM, Demosthenes Koptsis
<demosthenesk at ...626...>wrote:

> in that case
>
> the expression
> if X >=1 then message.info("all is done")
>
> who will watch this expression?
>
> i need a timer or event loop or event ProgressBar1_Change()
>
> i implement this for now with a timer
> but i think it would be more elegant as programming approach to watch the
> ProgressBar1.Value and not the variable who set this value.
>
>
> On Sat, 2011-07-09 at 00:02 +0200, Fabien Bodard wrote:
> > ??? can't you test the value when you set the value of the progressbar ?
> >
> > progressbar1.value = X
> >
> > if X >=1 then message.info("all is done")
> >
> > 2011/7/8 Demosthenes Koptsis <demosthenesk at ...626...>:
> > > hi,
> > >
> > > i make an example with progressbar and i saw that i was needed a
> > > ProgressBar_Change() event to check the status (value) of the control.
> > >
> > > So if value is 1 to show a Message.Info("Complete 100%").
> > >
> > > Is it possible to implement this event?
> > >
> > >
> > > --
> > > Regards,
> > > Demosthenes Koptsis.
> > >
> > >
> > >
> ------------------------------------------------------------------------------
> > > All of the data generated in your IT infrastructure is seriously
> valuable.
> > > Why? It contains a definitive record of application performance,
> security
> > > threats, fraudulent activity, and more. Splunk takes this data and
> makes
> > > sense of it. IT sense. And common sense.
> > > http://p.sf.net/sfu/splunk-d2d-c2
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> >
> >
> >
>
> --
> Regards,
> Demosthenes Koptsis.
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list