Scenario:
I create a simple app (in PhAB) one base window, and one Picture
Database. The Picture Database
contains a single button. In the realize event of the base window (it
does not have to be the base window
for this problem to occur), I create two instances of the button from
the Picture Database. Everything
works fine.
If I add, for example, two labels on the base window (using PhAB, not
dymanically), and group them
together, then the dynamic widgets (buttons) do not appear. The program
runs normally - no errors.
What happened to my widgets?
Any help would be greatly appreciated. I could strip and attached the
project to a subsequent article
if that would help - but I believe that this may be a known issue that I
have not heard about - or I am
doing something obviously wrong in the grouping of the widgets (but the
group works well).
Here is the small sample you asked for.
On the base window, there are two labels which are grouped together. You
should
not see the two buttons which are added at runtime (at least I don’t).
If you ungroup the two labels and re-compile, then the buttons will
appear.
Ian.
GUI Group wrote:
Hi Ian,
Could you post a small sample app that show the problem you are having?
Thanks
Brenda
NDT Technologies Inc. wrote:
I have a strange problem.
Scenario:
I create a simple app (in PhAB) one base window, and one Picture
Database. The Picture Database
contains a single button. In the realize event of the base window (it
does not have to be the base window
for this problem to occur), I create two instances of the button from
the Picture Database. Everything
works fine.
If I add, for example, two labels on the base window (using PhAB, not
dymanically), and group them
together, then the dynamic widgets (buttons) do not appear. The program
runs normally - no errors.
What happened to my widgets?
Any help would be greatly appreciated. I could strip and attached the
project to a subsequent article
if that would help - but I believe that this may be a known issue that I
have not heard about - or I am
doing something obviously wrong in the grouping of the widgets (but the
group works well).
Could you post a small sample app that show the problem you are having?
Thanks
Brenda
NDT Technologies Inc. wrote:
I have a strange problem.
Scenario:
I create a simple app (in PhAB) one base window, and one Picture
Database. The Picture Database
contains a single button. In the realize event of the base window (it
does not have to be the base window
for this problem to occur), I create two instances of the button from
the Picture Database. Everything
works fine.
If I add, for example, two labels on the base window (using PhAB, not
dymanically), and group them
together, then the dynamic widgets (buttons) do not appear. The program
runs normally - no errors.
What happened to my widgets?
Any help would be greatly appreciated. I could strip and attached the
project to a subsequent article
if that would help - but I believe that this may be a known issue that I
have not heard about - or I am
doing something obviously wrong in the grouping of the widgets (but the
group works well).
By the way,
I tried the same scenario in QNX 6.1 with the same results.
Ian Todd.
info wrote:
Hi Brenda
Here is the small sample you asked for.
On the base window, there are two labels which are grouped together. You
should
not see the two buttons which are added at runtime (at least I don’t).
If you ungroup the two labels and re-compile, then the buttons will
appear.
Ian.
GUI Group wrote:
Hi Ian,
Could you post a small sample app that show the problem you are having?
Thanks
Brenda
NDT Technologies Inc. wrote:
I have a strange problem.
Scenario:
I create a simple app (in PhAB) one base window, and one Picture
Database. The Picture Database
contains a single button. In the realize event of the base window (it
does not have to be the base window
for this problem to occur), I create two instances of the button from
the Picture Database. Everything
works fine.
If I add, for example, two labels on the base window (using PhAB, not
dymanically), and group them
together, then the dynamic widgets (buttons) do not appear. The program
runs normally - no errors.
What happened to my widgets?
Any help would be greatly appreciated. I could strip and attached the
project to a subsequent article
if that would help - but I believe that this may be a known issue that I
have not heard about - or I am
doing something obviously wrong in the grouping of the widgets (but the
group works well).
If you look at the docs for ApCreateWidget in the helpviewer - it
creates the widgets with the default parent which is usually the most
recently created container - once the group is added it is the parent
You can fix this by adding one line before you create your two buttons.
PtSetParentWidget(ABW_base);
This should allow your buttons to show up now
Hope this helps
Regards
Brenda
info wrote:
Hi Brenda
Here is the small sample you asked for.
On the base window, there are two labels which are grouped together. You
should
not see the two buttons which are added at runtime (at least I don’t).
If you ungroup the two labels and re-compile, then the buttons will
appear.
Ian.
GUI Group wrote:
Hi Ian,
Could you post a small sample app that show the problem you are having?
Thanks
Brenda
NDT Technologies Inc. wrote:
I have a strange problem.
Scenario:
I create a simple app (in PhAB) one base window, and one Picture
Database. The Picture Database
contains a single button. In the realize event of the base window (it
does not have to be the base window
for this problem to occur), I create two instances of the button from
the Picture Database. Everything
works fine.
If I add, for example, two labels on the base window (using PhAB, not
dymanically), and group them
together, then the dynamic widgets (buttons) do not appear. The program
runs normally - no errors.
What happened to my widgets?
Any help would be greatly appreciated. I could strip and attached the
project to a subsequent article
if that would help - but I believe that this may be a known issue that I
have not heard about - or I am
doing something obviously wrong in the grouping of the widgets (but the
group works well).