Skip to content

Setcursor()

Forums Forums SIMPOL Programming Setcursor()

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #260
    Dan Jinks
    Participant

    How do I convert from dataform1 to wxform so that I can use setsursor()? I can get to the wxwindow: appw.w ….but there is no wxform object in the wxwindow. I tried assigning setting it from the dataform1 directly also: dataform1 df1 wxform wxf df1 =@ appw.form wxf =@ df1 ….but that is the wrong object type. -Dan

    #1902
    Michael
    Keymaster

    On 01/08/2011 17:27, djinks wrote:
    > How do I convert from dataform1 to wxform so that I can use
    > setsursor()?

    Every dataform1 contains 1 or more pages. Each page hosts the wxform
    object. The way I tend to do it is like this:

    dataform1 f

    ….

    f.currentpage.wxformpage.setcursor()

    f.currentpage holds a reference to the currently displayed dataform1page
    on the form.

    dataform1page.wxformpage contains the wxform object for the page.

    > I can get to the wxwindow: appw.w
    >
    > ….but there is no wxform object in the wxwindow.

    Actually, there is. It is wxwindow.content.

    > I tried assigning setting it from the dataform1 directly also:
    > dataform1 df1
    > wxform wxf
    > df1 =@ appw.form
    > wxf =@ df1
    >
    > ….but that is the wrong object type.

    Correct.

    dataform1 df1
    wxform wxf
    df1 =@ appw.form
    wxf =@ df1.currentpage.wxformpage
    // or
    wxf =@ appw.w.content

    Ciao, Neil

    #1904
    Dan Jinks
    Participant

    Hello Neil,
    Excellent! I see now.
    Thanks for your response.
    -Dan

    On 8/1/2011 5:41 PM, Neil Robinson wrote:
    > On 01/08/2011 17:27, djinks wrote:
    >> How do I convert from dataform1 to wxform so that I can use
    >> setsursor()?
    >
    > Every dataform1 contains 1 or more pages. Each page hosts the wxform
    > object. The way I tend to do it is like this:
    >
    > dataform1 f
    >
    > …
    >
    > f.currentpage.wxformpage.setcursor()
    >
    > f.currentpage holds a reference to the currently displayed dataform1page
    > on the form.
    >
    > dataform1page.wxformpage contains the wxform object for the page.
    >
    >> I can get to the wxwindow: appw.w
    >>
    >> ….but there is no wxform object in the wxwindow.
    >
    > Actually, there is. It is wxwindow.content.
    >
    >> I tried assigning setting it from the dataform1 directly also:
    >> dataform1 df1
    >> wxform wxf
    >> df1 =@ appw.form
    >> wxf =@ df1
    >>
    >> ….but that is the wrong object type.
    >
    > Correct.
    >
    > dataform1 df1
    > wxform wxf
    > df1 =@ appw.form
    > wxf =@ df1.currentpage.wxformpage
    > // or
    > wxf =@ appw.w.content
    >
    > Ciao, Neil

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