Skip to content

changing mouse pointer

Forums Forums SIMPOL Programming changing mouse pointer

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #50
    JD Kromkowski
    Participant

    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

    #2119
    Jean Vallee
    Participant

    On 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 you

    I'd like to know too!
    Jean Vallee

    #2120
    Jim Locker
    Member

    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.

    #1501
    Jean Vallee
    Participant

    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…

    #2134
    JD Kromkowski
    Participant

    I 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…
    >

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.