| |
| Publicado el 17,diciembre 2017 - 17:47 |
Using WM21 and according to Help Hourglass is available in Android.
Yet Hourglass() in any format does not seem to be allowed.
I do not want to use an Infinite Progressbar for a particular reason. So why does Hourglass not work in Android?
Grrrrr.
John |
| |
| |
| | | |
|
| | |
| |
| Publicado el 17,diciembre 2017 - 19:03 |
Hi John
I'm not sure what more than the content of the help I can tell you... It's clearly explained, with an example specific for android.
and specifically:
Operating mode in Android The use of HourGlass triggers the display of an infinite progress bar. The interface of the application can no longer be handled by the user as long as the hourglass is displayed. By default, no message is displayed beside the progress bar. The following actions can be performed:
To display a message, use NextTitle. To modify the message while the progress bar is displayed, all you have to do is re-run NextTitle then HourGlass. To hide the progress bar, use HourGlass with the parameter set to False as many times as HourGlass was used with the parameter set to True.
Note: When running long processes, we advise you to add calls to Multitask in the code in order to give time to the progress bar to refresh its display.
...
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,diciembre 2017 - 22:36 |
Hi John
As Fabrice says - hour glass does display - use multitask for refreshing. Works well.
Cheers André |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,diciembre 2017 - 23:23 |
| Yes Fabrice and Andre. I have read the help file and know about the infinite stuff. But that's why I posted. When I type hourglass it comes up red and no matter what I do it won't allow the word hourglass. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,diciembre 2017 - 11:46 |
hmmm
the only thing I can think of would be that you are using hourglass in a code area where it's not authorized (project init code, as there is no window here to display the infinite progress bar) comes to mind, or in a secondary thread...
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,diciembre 2017 - 12:03 |
No, its in some code that calls a procedure, all initiated from a button.
I had better take a closer look at the example.
BTW This is WM21 not 22 just in case that was an update although Help did say it was supported in 21.
Thx |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,diciembre 2017 - 12:33 |
John,
In WM21 I get a "no suitable syntax proposed by Hourglass function of WL/Android framework" when using Hourglass() in the Windev IDE.
However Hourglass(True) and Hourglass(False) seems to work. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,diciembre 2017 - 12:49 |
Now that is VERY interesting. Yes Hourglass(false) works. But for me Hourglass(True) still says Syntax error.
That's why I posted as I could not see why hourglass(false) was supported but not the other.
Hmmm
Thx |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,diciembre 2017 - 14:10 |
Strange indeed.
I just took the Android Explorer example and it's working here WM21 32 bit - latest version |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,diciembre 2017 - 14:28 |
| Surely not? Hourglass is in red. That's what I am getting. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,diciembre 2017 - 14:29 |
Oops sorry. I see what you mean.
OK I must be having some kind of insanity moment. Now it works!!!
I wonder if the IDE or something got a bit messed up. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,diciembre 2017 - 15:04 |
| Too many glasses for too many hours may also be your problem :cheers: |
| |
| |
| | | |
|
| | |