Forums › Forums › SIMPOL Programming › Setcursor()
- This topic has 2 replies, 2 voices, and was last updated 14 years, 6 months ago by
Dan Jinks.
- AuthorPosts
- August 1, 2011 at 4:27 pm #260
Dan Jinks
ParticipantHow 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
August 1, 2011 at 9:41 pm #1902Michael
KeymasterOn 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.contentCiao, Neil
August 1, 2011 at 10:43 pm #1904Dan Jinks
ParticipantHello Neil,
Excellent! I see now.
Thanks for your response.
-DanOn 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 - AuthorPosts
- You must be logged in to reply to this topic.