Are you opening the modal form (or any other
"progress" form) *after* you make these calls? The
new window might change the window base
co-ordinates and might make (140, 136) invalid???
Just a guess, I might be wrong.
"Michael J. Maigret" <[EMAIL PROTECTED]> wrote in message
news:30610@palm-dev-forum...
>
> I tried adding a 19x13 gadget to my form and using the following code to
> display the signal strength indicator...
>
> // Initialize the wireless strength indicator
> RectangleType r;
>
> FormPtr pForm = FrmGetFormPtr(ModalForm);
> FrmGetObjectBounds(pForm, FrmGetObjectIndex(pForm,
> ModalFormSignalStrengthGadget), &r);
>
> INetLibWiCmd(m_uNetRef, wiCmdInit, 0, 0);
> INetLibWiCmd(m_uNetRef, wiCmdSetLocation, r.topLeft.x, r.topLeft.y);
> INetLibWiCmd(m_uNetRef, wiCmdSetEnabled, 1, 0);
>
> but still no luck. The bounds for the gadget look correct and and I have
> tried this on both the emulator and the Palm VII device. One thing that
> may be screwing things up is that my form is modal, with topleft origin at
> 1,1 and extent of 159,159. Is there a trick to display the signal
strength
> meter in a modal form?
>
> Thanks again for any and all comments.
>
> Mike
>
> Chris DiPierro <[EMAIL PROTECTED]> wrote in article
> <30562@palm-dev-forum>...
> >
> > It's been my experience that it doesn't work int he emulator, but does
on
> > the device.
> >
> > Be careful though. It's possible to be using INetLib on an OmniSky
> device,
> > but those
> > devices don't support the signal strength indicator and will crash with
> the
> > calls below.
> >
> >
> > Michael J. Maigret <[EMAIL PROTECTED]> wrote in message
> > news:30489@palm-dev-forum...
> > >
> > > Does the Palm VII with PalmOS 3.2.5 support displaying the signal
> strength
> > > indicator programmatically? I am following the SDK information
> explicitly
> > > in my application, but I cannot seem to display the indicator. Also,
> does
> > > it work at all in the emulator? I am trying to display it in at
> location
> > > (140,36)... is this an invalid location?
> > >
> > > I cannot seem to display the indicator no matter what I do.
> > >
> > > Currently, after opening the Inet library, I am executing the
following
> > > code
> > >
> > > INetLibWiCmd(m_uNetRef, wiCmdInit, 0, 0);
> > > INetLibWiCmd(m_uNetRef, wiCmdSetLocation, 140, 36);
> > > INetLibWiCmd(m_uNetRef, wiCmdSetEnabled, 1, 0);
> > >
> > > Upon sending and receiving data and retrieving events using
> > > INetLibGetEvent, I never see the wireless indicator.
> > >
> > > There is currently no other objects at that (top left extending the
> size
> > of
> > > the indicator) location in the form.
> > >
> > > Thanks for any help.
> > >
> > > Mike
> > >
> > >
> >
> >
> >
> >
> >
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/