how can I get the current position of the cursor?

I want to get the value of the cursor’s position in my program written with
PhAB; then I try to call PhQueryCursor(unsigned short ig,PhCursorInfo_t
*buf), but I do not know the value of the first parameter,i.e.,ig,input
group, so I fail to call this function.
Can you tell me what should I do?
Thanks for any info.
Zhoujun

zhoujun <jzhou@mail.nairc.ac.cn> wrote:
: I want to get the value of the cursor’s position in my program written with
: PhAB; then I try to call PhQueryCursor(unsigned short ig,PhCursorInfo_t
: *buf), but I do not know the value of the first parameter,i.e.,ig,input
: group, so I fail to call this function.
: Can you tell me what should I do?
: Thanks for any info.

You can determine the current input group as follows:

  • If you have an event, use its input group (e.g. cbinfo->event->input_group)
    if it’s nonzero.

  • If that fails, get the value of the PHIG environment variable. If this
    value is nonzero, use it.

  • If neither of the above if nonzero, specify an input group of 1.

In Photon 2.0, there’s a function called PhInputGroup() that does this
for you.



\

Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

Steve Reid wrote:

In Photon 2.0, there’s a function called PhInputGroup() that does this
for you.


Steve Reid > stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

This is qnx4.photon group. So when will Photon 2.0 for qnx4 be released?

Friedhelm Schuetz
H.Kleinknecht & Co. GmbH

Friedhelm Schuetz <Friedhelm.Schuetz@kleinknecht.de> wrote:

In Photon 2.0, there’s a function called PhInputGroup() that does this
for you.

This is qnx4.photon group. So when will Photon 2.0 for qnx4 be released?

In the interests of helping you plan your products, assume never.

<pete@qnx.com> schrieb in im Newsbeitrag: 915fr5$s4i$2@nntp.qnx.com

Friedhelm Schuetz <> Friedhelm.Schuetz@kleinknecht.de> > wrote:

In Photon 2.0, there’s a function called PhInputGroup() that does this
for you.

This is qnx4.photon group. So when will Photon 2.0 for qnx4 be released?

In the interests of helping you plan your products, assume never.

Does this mean that Photon won’t be updated any more for qnx4?

Markus Jauslin <markus.jauslin@ch.mullermartini.com> wrote:

pete@qnx.com> > schrieb in im Newsbeitrag: 915fr5$s4i$> 2@nntp.qnx.com> …
Friedhelm Schuetz <> Friedhelm.Schuetz@kleinknecht.de> > wrote:

In Photon 2.0, there’s a function called PhInputGroup() that does this
for you.

This is qnx4.photon group. So when will Photon 2.0 for qnx4 be released?

In the interests of helping you plan your products, assume never.

Does this mean that Photon won’t be updated any more for qnx4?

No… it means that if you are a developer, you should not plan on using Photon
2.0 under QNX4.