Forums › Forums › SIMPOL Programming › changing mouse pointer
- This topic has 4 replies, 3 voices, and was last updated 11 years, 2 months ago by JD Kromkowski.
- AuthorPosts
- February 18, 2013 at 7:32 pm #50JD KromkowskiParticipant
I can’t seem to find this in the documentation. Between the starting of an application and the first window and form being opened up there can be a second or 2 (or 10). I’d like to change the mouse pointer to “hourglass” or whatever we are calling the circle loading thing. So that the user knows thing are starting and does impatiently start more and more instances of the program. how do I do that? Thank you
February 19, 2013 at 3:48 am #2119Jean ValleeParticipantOn 2/18/2013 2:32 PM, kromkowski wrote:
> I can't seem to find this in the documentation.
>
> Between the starting of an application and the first window and form
> being opened up there can be a second or 2 (or 10). I'd like to change
> the mouse pointer to "hourglass" or whatever we are calling the circle
> loading thing. So that the user knows thing are starting and does
> impatiently start more and more instances of the program.
>
> how do I do that?
>
> Thank youI'd like to know too!
Jean ValleeFebruary 19, 2013 at 4:27 pm #2120Jim LockerMemberIn Simpol, it is a local form property: f.setcursor("wait") then
f.setcursor("") to restore.Since it is a local form property, it only works when a form is open and
it only works when the mouse cursor is over the form. So it does not work
to provide an activity indicator when starting up.I am sure that the Windows mechanism for doing this can be accessed, but I
have not investigated that.Easiest just to pop a requester on startup with a progress bar on it that
says "starting up", periodically update that progress bar, then close that
requester when you are ready to go. The function CreateMeter (which is in
the libraries someplace… gaugelib, I believe) will do that for you.February 23, 2013 at 3:00 am #1501Jean ValleeParticipantOn 2/19/2013 11:27 AM, jim wrote:
> In Simpol, it is a local form property: f.setcursor("wait") then
> f.setcursor("") to restore.
>
> Since it is a local form property, it only works when a form is open and
> it only works when the mouse cursor is over the form. So it does not work
> to provide an activity indicator when starting up.
>
> I am sure that the Windows mechanism for doing this can be accessed, but I
> have not investigated that.
>
> Easiest just to pop a requester on startup with a progress bar on it that
> says "starting up", periodically update that progress bar, then close that
> requester when you are ready to go. The function CreateMeter (which is in
> the libraries someplace… gaugelib, I believe) will do that for you.
>
As this is something more than one of us would like to know, I am
willing to start the research on how to access this windows function.
I'm spending a lot of time waiting for my app to come up and it would be
helpful to inform my users they need to be patient…February 25, 2013 at 4:38 pm #2134JD KromkowskiParticipantI make this my first two lines
wxwindow startWindow
startWindow =@ wxwindow.new(500,500,500,10,captiontext = "please
wait…")and then just before I set the first window to visible I destroy the window
startWindow =@ .nul
appw.w.setstate(visible=.true)On 02/22/13 10:00 PM, JV wrote:
> On 2/19/2013 11:27 AM, jim wrote:
>> In Simpol, it is a local form property: f.setcursor("wait") then
>> f.setcursor("") to restore.
>>
>> Since it is a local form property, it only works when a form is open and
>> it only works when the mouse cursor is over the form. So it does not
>> work
>> to provide an activity indicator when starting up.
>>
>> I am sure that the Windows mechanism for doing this can be accessed,
>> but I
>> have not investigated that.
>>
>> Easiest just to pop a requester on startup with a progress bar on it that
>> says "starting up", periodically update that progress bar, then close
>> that
>> requester when you are ready to go. The function CreateMeter (which
>> is in
>> the libraries someplace… gaugelib, I believe) will do that for you.
>>
> As this is something more than one of us would like to know, I am
> willing to start the research on how to access this windows function.
> I'm spending a lot of time waiting for my app to come up and it would be
> helpful to inform my users they need to be patient…
> - AuthorPosts
- You must be logged in to reply to this topic.