Hi,
This must seem really obvious, but how can I open a dialog/window which
I created in PhAB, in code? I know I can make a dialog callback in PhAb,
and this will open the dialog, but I need to be able to open the dialog
using code. I printf ABW_MyDialog but it’s NULL, my ABW_base prints a
normal pointer, so I guess I need to make an instance of ABW_MyDialog?
Since you have ABW_MyDialog name I am assuming you have created the dialog
from PhAB and not within code. You need to create an Internal link for the
dialog ( I am assuming your using 6.2.1 since you don’t mention which
version your working with). You can create the Internal Link from the PhAB
menu - Application->Internal Link
After you create the internal link you can then use the following to create
an instance of the dialog
PtWidget_t *wp;
Since you have ABW_MyDialog name I am assuming you have created the dialog
from PhAB and not within code. You need to create an Internal link for the
dialog ( I am assuming your using 6.2.1 since you don’t mention which
version your working with). You can create the Internal Link from the PhAB
menu - Application->Internal Link
After you create the internal link you can then use the following to create
an instance of the dialog
PtWidget_t *wp;
Hi,
This must seem really obvious, but how can I open a dialog/window which
I created in PhAB, in code? I know I can make a dialog callback in PhAb,
and this will open the dialog, but I need to be able to open the dialog
using code. I printf ABW_MyDialog but it’s NULL, my ABW_base prints a
normal pointer, so I guess I need to make an instance of ABW_MyDialog?
How can I detect IF a dialog is currently realized in code?
Check its ABW variable – the library sets it to NULL when the dialog is
destroyed. (If you really mean the dialog exists but is unrealized,
you’ll have to check its Pt_REALIZED flag.)
Note that this only works with dialog modules (as opposed to window
modules or menu modules) and only with the dialog’s window (i.e.
ABW_the_dialog rather than ABW_some_button_in_the_dialog),