PDA

View Full Version : That pesky Window icon



HankFay
2014-04-24, 12:06
Hi,

In deploying a desktop app, I can change the app window title from attributes, works fine.

I'm not having the same luck in changing the window icon in the same attributes section for the app.

Questions:

1) where does the image go?
2) what size is the image? (I'm assuming 16x .ico, but have other sizes available)
3) will it work with a multi-size .ico?
4) what path should be specified in the app settings (and how should it be specified)?

thanks,

Hank

barrymavin
2014-04-24, 22:29
The window icon is specified as a command line arg to lianjaruntime. This is then used throughout your App as the default icon for all Forms and Dialogs.

lianjaruntime --icon fullpathtoicon.ext

where ext can be png, jpg or bmp

It is 16x16 by default but will scale if its bigger.

The App tile icons are specified in the App Settings.

659

You can also specify your own splash screen with:

lianjaruntime --splashscreen fullpathtoimage.ext

HankFay
2014-04-25, 12:43
Hi Barry,

I was referring to App Configuration, Custom Header Icon. Sorry for the confusion.

I can see now that is just for headers, and the "window" icon has to be specified at Runtime. An "all sizes" icon seems to work for the --icon setting.

thanks,

Hank