On Sunday 24 April 2016 19:17:47 Krzysztof wrote:
> 2016-04-24 18:18 GMT+02:00 Martin Schreiber <mse00...@gmail.com>:
> > 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?

Correct. Actually transparency is not possible if a widget is no child of a 
MSEgui window.

> That is 
> ok, I'll just create some fancy frame and face. It is only cosmetic
> issue
>
BTW, it is even possible to place child widgets in TTrayWidget, for example a 
TDataButton in order to switch states.

> > 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?

Please use TTrayWidget.OnResize.

Martin

------------------------------------------------------------------------------
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to