PhAB widget pointer ABW_xxxx == NULL

bridged with qdn.public.photon
Post Reply
Wolfgang Kaml

PhAB widget pointer ABW_xxxx == NULL

Post by Wolfgang Kaml » Mon Jun 23, 2003 11:13 pm

To whom it may concern,

I have a problem after adding a PtList item to an existing Builder file. The
file consisted of a Window:base with some sub entries, and a Picture:dbase
with another set of sub entries. Besides some existing PtLabel andPtButton
objects, I just added a PtList object and called it my_list. It is part of
the group Picture:dbase.

I have seen that the lines

Extern const int ABW_my_list;
#define ABW_my_list AbGetABW( ABN_log_list )

were added to my existing abdefine.h file.
For some reason, however, it appears that I cannot use ABW_my_list as a
valid widget because that pointer contains NULL when I debug my code.
What do I have to do to get a valid pointer?

Thanks,
Wolfgang

mirtch

Re: PhAB widget pointer ABW_xxxx == NULL

Post by mirtch » Thu Jul 03, 2003 1:00 pm

Wolfgang Kaml wrote:
To whom it may concern,

I have a problem after adding a PtList item to an existing Builder file. The
file consisted of a Window:base with some sub entries, and a Picture:dbase
with another set of sub entries. Besides some existing PtLabel andPtButton
objects, I just added a PtList object and called it my_list. It is part of
the group Picture:dbase.

I have seen that the lines

Extern const int ABW_my_list;
#define ABW_my_list AbGetABW( ABN_log_list )
normally, PhAB (2.01) generates:

extern const int ABN_xyz
#define ABW_xyz AbGetABW( ABN_xyz )

so it's would be very strange, if your lines define the same widget
were added to my existing abdefine.h file.
For some reason, however, it appears that I cannot use ABW_my_list as a
valid widget because that pointer contains NULL when I debug my code.
What do I have to do to get a valid pointer?

Thanks,
Wolfgang

Post Reply

Return to “qdn.public.photon”