hi
while creating different widgets from code (not phab)
and attaching callbacks w/ PtAddCallback (… ) meat
such a problem:
w/ PtButton type widgets Pt_CB_Activate works fine
but w/ PtLabel Acivate callback rejects to work
Pt_SELECTABLE & other Pt_ARGS_FLAGS do not help
i decided Activate not works w/ PtLabel at all, but
then tried it in PhAB, and there all works fine…
pls, help
quickcode <quickcode@narod.ru> wrote:
hi
while creating different widgets from code (not phab)
and attaching callbacks w/ PtAddCallback (… ) meat
such a problem:
w/ PtButton type widgets Pt_CB_Activate works fine
but w/ PtLabel Acivate callback rejects to work
Pt_SELECTABLE & other Pt_ARGS_FLAGS do not help
i decided Activate not works w/ PtLabel at all, but
then tried it in PhAB, and there all works fine…
pls, help
The only thing I can think of is that you are
not setting the flags correctly.
PtArg_t tsArg[1];
PtSetArg(tsArg, Pt_ARG_FLAGS, Pt_SELECTABLE, Pt_SELECTABLE);
PtSetResources(label_widget, 1, tsArg);
Other than that … no idea what the problem would be.
thanx, found it
PtSetArg(tsArg, Pt_ARG_FLAGS, Pt_SELECTABLE, Pt_SELECTABLE);
here it is, my error was in last argument:
PtSetArg(…, sizeof(Pt_ARG_FLAGS));
again, thanx …