How to add an image to a window

174 views
Skip to first unread message

Rob Rice

unread,
Jun 22, 2017, 5:28:27 PM6/22/17
to pinnacle3-users
Hello, I've implemented Bert Goudry's method of creating menus described below.


Does anyone know how one can add an image (like a jpg) to such a window?

Thank you,

Rob Rice

MichaelJ

unread,
Jun 25, 2017, 5:30:07 AM6/25/17
to pinnacle3-users
You can add images as ColorIcon widgets, first you need to convert your image to a .xpm. There's a few free online tools to do this.

Then the following syntax should do the trick (thanks to Sam Painter for this):

Store.StringAt.LogoPath = "/usr/local/adacnew/PinnacleSiteData/Scripts/LCTCMCTC_Menu";
Store.At.LogoPath.AppendString = "/lctcmctclogo6.xpm";

Store.At.LCTCMCTCWindow.AddChild = "";
Store.At.LCTCMCTCWindow.WidgetList.Last = {
ParentName = "TopLevel";
WidgetClass = "ColorIcon";
X = 2;
Y = 2;
UseDefaultSize = 1;
QueryValueKey = "Store.StringAt.LogoPath";
UseQueryForLabel = 1;

Rob Rice

unread,
Jun 26, 2017, 10:36:56 AM6/26/17
to pinnacle3-users
Thank you, Michael.  This works perfectly.

Rob
Reply all
Reply to author
Forward
0 new messages