Setting Resources of widgets inside a dialog module

Hi

I have a callback on a button that opens a dialog where the user can input values into a text box and a integer box

I need it so that every time the user opens the dialog, the previous values that were entered show up in the text box and the integer box. Basically I am just storing the values into variables and then using PtSetResource to set the values when the dialog is called again.

But I can’t use PtSetResource to set the resources of the widgets in the dialog, it says they are undeclared.

anyone know how I can make this work?

dy

Just tried it with realize callback for a dialog, it works perfectly fine.

check spelling of your widget’s name in the PtSetResource() call, make sure to use ABW_ prefix.