[Q] How to allow expanding of one child widget in a PtPane ?

Hi,

I’m creating a widget that have two childs, a PtText on the left and a
PtButton on the right. The position of the PtButton is set (using P_ARG_POS)
to stick to the PtText widget.

When this widget is placed on a PtGroup (for instance), I would like the
PtText to expand if needed (like when all childs of the PtGroup are asked to
have the same width), but I don’t seems to find a way to do that …

I guess the behaviours of the anchoring and resizing are not all that clear to
me … it’s kind of tricky.

Thanks.

Regards,

jean-louis

Hi Jean-Louis,

I have spoken with one of the developers and
There isn’t sufficient information here for him to troubleshoot your
problem. An elaboration or code snippet would be helpful.

Calling PxLoadImage() from a timer event should be OK, provided
you doesn’t allow your app to process event during the load. If you
do and the load takes a little while you might get into handling
another timer event and as it stands, PxLoadImage() is not re-entrant.

Regards
Brenda

Jean-Louis Villecroze <jlv@kirilla.com> wrote:

Hi,

I’m creating a widget that have two childs, a PtText on the left and a
PtButton on the right. The position of the PtButton is set (using P_ARG_POS)
to stick to the PtText widget.

When this widget is placed on a PtGroup (for instance), I would like the
PtText to expand if needed (like when all childs of the PtGroup are asked to
have the same width), but I don’t seems to find a way to do that …

I guess the behaviours of the anchoring and resizing are not all that clear to
me … it’s kind of tricky.

Thanks.

Regards,

jean-louis

Sorry, I posted this to the wrong question…

Regards
Brenda

Gui Group <gui@qnx.com> wrote:

Hi Jean-Louis,

I have spoken with one of the developers and
There isn’t sufficient information here for him to troubleshoot your
problem. An elaboration or code snippet would be helpful.

Calling PxLoadImage() from a timer event should be OK, provided
you doesn’t allow your app to process event during the load. If you
do and the load takes a little while you might get into handling
another timer event and as it stands, PxLoadImage() is not re-entrant.

Regards
Brenda

Jean-Louis Villecroze <> jlv@kirilla.com> > wrote:

Hi,

I’m creating a widget that have two childs, a PtText on the left and a
PtButton on the right. The position of the PtButton is set (using P_ARG_POS)
to stick to the PtText widget.

When this widget is placed on a PtGroup (for instance), I would like the
PtText to expand if needed (like when all childs of the PtGroup are asked to
have the same width), but I don’t seems to find a way to do that …

I guess the behaviours of the anchoring and resizing are not all that clear to
me … it’s kind of tricky.

Thanks.

Regards,

jean-louis

In message <9ik4dq$88b$2@nntp.qnx.com>, Gui Group wrote:

Sorry, I posted this to the wrong question…

Hello Brenda,

Yeah, I was wondering what you were talking about … :slight_smile:

So I guess no answer to my own post ? :frowning:

Regards,

jean-louis

Hi Jean-Louis,

Could you give me a little more info on how you are trying to set up these
widget?

A code snippet would help greatly…

Thanks
Brenda


Jean-Louis Villecroze <jlv@kirilla.com> wrote:

In message <9ik4dq$88b$> 2@nntp.qnx.com> >, Gui Group wrote:
Sorry, I posted this to the wrong question…

Hello Brenda,

Yeah, I was wondering what you were talking about … > :slight_smile:

So I guess no answer to my own post ? > :frowning:

Regards,

jean-louis

In message <9j1drk$jkc$1@nntp.qnx.com>, Gui Group wrote:

Hi Jean-Louis,

Could you give me a little more info on how you are trying to set up these
widget?

A code snippet would help greatly…

Hi Brenda,

I’m currently without installed QNX (should be re-installed this week-end),
so I will send you that then.

Thanks for the answer.

Regards

jean-louis