How to write widget (for example PtLabel) to *.wgtp file ?

Photon version 1.14A

Functions ApOpenDBaseFile(), ApSaveDBaseFile() allows to use *.wgtp
files as a widgets databases inside the application. I can also remove a
widget from the open widgets base using ApDeleteWidget() function.
Using ApCopyWidget() I can move them between open bases.
Unfortunately, I can’t find any informations, how to ADD a widget
created by my application to the base.
I can do this using PhAB manually, but my application must to do it
independently.

Can I to count on to appear that kind of function or description of the
*.wgtp file structure?
(It is different that was in 1.13 Photon version…)

Arkadiusz Benes

Arkadiusz Benes <abenes@mikrobsa.com.pl> wrote:

Photon version 1.14A

Functions ApOpenDBaseFile(), ApSaveDBaseFile() allows to use *.wgtp
files as a widgets databases inside the application. I can also remove a
widget from the open widgets base using ApDeleteWidget() function.
Using ApCopyWidget() I can move them between open bases.
Unfortunately, I can’t find any informations, how to ADD a widget
created by my application to the base.
I can do this using PhAB manually, but my application must to do it
independently.

Can I to count on to appear that kind of function or description of the
*.wgtp file structure?
(It is different that was in 1.13 Photon version…)

There is no such function. The only way to create PhAB widgets is
manually within PhAB. There is no code in the library that would allow
you to add or modify resources of a database widget, or create a new
database widget. And I don’t think we have any plans to add such code.

The only thing you can do is invent your own file format and write your
own code to do what you want. Sorry…

Pozdrowienia!

Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.