2016-04-24 18:18 GMT+02:00 Martin Schreiber <[email protected]>:
> The background can be set by TTrayIcon.color, face and frame. TTrayIcon is a
> window with a window handle like a toplevel window. MSEgui does not support
> transparent windows with a window handle. I suggest to use a cl_ltgray to
> cl_gray colourgradient background which harmonises well with most
> environments.
See attached screen. My icon is the music one. So currently it isn't
possible to set trasnparent background as other icons have? That is
ok, I'll just create some fancy frame and face. It is only cosmetic
issue
> TTrayIcon.Width should return that information.
Indeed. But not at main form creation stage. I'm setting trayicon in
overrided mainform "AfterConstruction" method and here
TTrayWidget.Width return original widget size (50x50). But when
checking that property for example on tbutton click, then it is
correct 24x24. So I guess that I'm checking it too early and tray is
not placed on taskbar yet. What could be the last event (tray or main
form) where I could call it and prepare correct icon size? Tried with
TMainForm.OnLoaded / OnCreate / OnShow but still getting 50x50. I
guess that I can just create TTrayWidget.OnPaint widget, and if
imagenr=-1 then get canvas size and load icon but maybe there is nicer
solution
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk