Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Selecting a PtFileSel item from code
Ref. No. QNX.000009911
Category(ies) Development
Issue We are using a PtFileSel widget and would like to have one of the files selected when the widget is displayed (so that there is a default selection).
We can not find any flag in PhAB to control this and can not think of a way to do it programatically.
Any suggestions?x09x09


Solution In a pre-realize callback, call PtFSSelect() for the item you wish to have selected. You may wish to also do a PtFSGoto(), so the scrollbar gets moved to make the selected item visible.