How to set icon ?

How to set icon image in taskbar ?

What resource I need to set ?


Thanks !

Mike Gorchak <mike@malva.com.ua> wrote:

How to set icon image in taskbar ?

What resource I need to set ?

You need to use phabbind and attach an icon resource to the application.
The resource names are SIcon and LIcon (for small and large icons). This
is generally done from within PhAB. What I would do is make a PhAB
project, add an Icon resource. Put the large and small icons within
that resource and save the project. Then you will get an Icon.wgti file
in the wgt/ subdir of the project. Then you can bindres that icon resource
to your existing application. You will find phabbind and bindres in
/usr/photon/appbuilder. I have never done this before so there might
be a few other things you need to make this all work. The phabbind
script should be very informative though.

chris

\

Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

What resource I need to set ?
You need to use phabbind and attach an icon resource to the application.
The resource names are SIcon and LIcon (for small and large icons). This
is generally done from within PhAB. What I would do is make a PhAB
project, add an Icon resource. Put the large and small icons within
that resource and save the project. Then you will get an Icon.wgti file
in the wgt/ subdir of the project. Then you can bindres that icon
resource
to your existing application. You will find phabbind and bindres in
/usr/photon/appbuilder. I have never done this before so there might
be a few other things you need to make this all work. The phabbind
script should be very informative though.

Thanks, but I mean runtime switching icons, this is for port of SDL/Photon,
which I do last 4 month.

But thanks anyway :slight_smile:

Thanks, but I mean runtime switching icons, this is for port of SDL/Photon,
which I do last 4 month.

But thanks anyway > :slight_smile:

Yeah, I understood this after talking to Coody. You can’t is the answer. :slight_smile:

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/