[Gambas-user] ProgressBar mistake
Gianluigi
bagonergi at gmail.com
Thu Nov 22 19:01:46 CET 2018
Hi Fabien,
your trick works, "WAIT 0.01" is enough:
Public Sub GoBar()
ProgressBar1.Value += 0.01
ProgressBar1.Refresh
Wait 0.01
End
But it should be considered that if I had programmed with another desktop I
would not have noticed and would have distributed a lame program.
Regards
Gianluigi
Il giorno gio 22 nov 2018 alle ore 16:05 Fabien Bodard <gambas.fr at gmail.com>
ha scritto:
> Public Sub GoBar()
> ProgressBar1.Value += 0.01
> ProgressBar1.Refresh
> Wait 0.1
> End
>
> try to add a wait here
>
> Le jeu. 22 nov. 2018 à 16:02, Fabien Bodard <gambas.fr at gmail.com> a
> écrit :
>
>> is there something that try to close the bar window before the end ? It
>> look like you have trying to close it during the process.
>>
>>
>>
>> Le jeu. 22 nov. 2018 à 15:46, Gianluigi <bagonergi at gmail.com> a écrit :
>>
>>> I have to apologize, my age in my defense, I had forgotten that on
>>> Debian I had installed (for the wiki) version 3.9.0.
>>> Now I have installed the master and I get the usual errors (see attached
>>> images).
>>> I await some other feedback from those who have the Gnome desktop,
>>> before communicating to bugtraker.
>>>
>>> Regards
>>> Gianluigi
>>>
>>> Il giorno gio 22 nov 2018 alle ore 13:18 Gianluigi <bagonergi at gmail.com>
>>> ha scritto:
>>>
>>>> Hi Fabien,
>>>> I do not know what to say, it could be caused by the fact that Debian
>>>> is on a virtual machine (see attached image).
>>>> However I did a test on Debian (desktop Gnome) and I also get them the
>>>> same malfunction.
>>>> Summary; running the attached project (ProgrssbarError), and leaving
>>>> 100 by default, both on Ubuntu Gnome and on Debian Gnome, about halfway
>>>> through the progressbar I get a warning window that closes at the end of
>>>> the loop.
>>>> NOTE: If you act on the window (see attached image) you get the system
>>>> lock (Ctrl+Alt+F2 to restart :-().
>>>>
>>>> Regards
>>>> Gianluigi
>>>>
>>>> Il giorno gio 22 nov 2018 alle ore 11:55 Fabien Bodard <
>>>> gambas.fr at gmail.com> ha scritto:
>>>>
>>>>> I think the spring class ??? is not related
>>>>>
>>>>> Le mer. 21 nov. 2018 à 23:25, Gianluigi <bagonergi at gmail.com> a
>>>>> écrit :
>>>>>
>>>>>> Hi Charlie and Lee,
>>>>>> I thank you again for the test and I apologize for forgetting
>>>>>> FProgress.Close at the end of the loop.
>>>>>> The app freeze was the fault of this, even if Gnome continues to
>>>>>> display the warning window but disappears at the end of the loop and the
>>>>>> database is created.
>>>>>> Same behavior also with Ubuntu 18.10.
>>>>>> With Xubuntu it works well with both the stable and the master
>>>>>> With Debian Stretch it does not start and tells me that it does not
>>>>>> know the Spring class in FRecords. .-(
>>>>>>
>>>>>> Regards and good night
>>>>>> Gianluigi
>>>>>>
>>>>>> Il giorno mer 21 nov 2018 alle ore 22:35 T Lee Davidson <
>>>>>> t.lee.davidson at gmail.com> ha scritto:
>>>>>>
>>>>>>> It works okay here as well. (Except, unrelated, the FProgress form
>>>>>>> doesn't get closed and so the application does not exit nicely.)
>>>>>>>
>>>>>>>
>>>>>>> ___
>>>>>>> Lee
>>>>>>>
>>>>>>>
>>>>>>> On 11/21/18 11:36 AM, Charlie Ogier wrote:
>>>>>>> > Hi Gianluigi,
>>>>>>> >
>>>>>>> > It seems OK to me. See HERE <
>>>>>>> http://www.cogier.com/video/ProcessBar.webm>.
>>>>>>> >
>>>>>>> > Charlie
>>>>>>> >
>>>>>>> > On 21/11/2018 14:44, Gianluigi wrote:
>>>>>>> >> Why do I get an error?
>>>>>>> >> I attach two tests, one simulates this simple necessity and works
>>>>>>> (ConceptualTest):
>>>>>>> >> Show the FMain, then ask to the user for a number.
>>>>>>> >> Pass the number to a module that processes it.
>>>>>>> >> View to the user the processing time using a ProgressBar in an
>>>>>>> independent window.
>>>>>>> >> The other puts it into practice and does not work
>>>>>>> (BadProcessbarTest).
>>>>>>> >> Note: If the ProgressBar is in the FMain, practice test also well
>>>>>>> working.
>>>>>>> >>
>>>>>>> >> What am I doing wrong?
>>>>>>> >>
>>>>>>> >> Regards
>>>>>>> >> Gianluigi
>>>>>>> >>
>>>>>>> >> ----[ Gambas mailing-list is hosted by
>>>>>>> https://www.hostsharing.net ]----
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>>>>> ]----
>>>>>>> >
>>>>>>>
>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>>>>> ]----
>>>>>>>
>>>>>>
>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>>>> ]----
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Fabien Bodard
>>>>>
>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>>> ]----
>>>>>
>>>>
>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>>
>>
>>
>> --
>> Fabien Bodard
>>
>
>
> --
> Fabien Bodard
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20181122/508a9489/attachment.html>
More information about the User
mailing list