Re: [MSEide-MSEgui-talk] TTrayWidget, transparent and icon size

2016-04-25 Thread Krzysztof
2016-04-25 9:23 GMT+02:00 Martin Schreiber :
> Please try again with git master 8415b12ab20a25863747a4765510204bfdc10667.

Everything is working fine now. Thanks!

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


Re: [MSEide-MSEgui-talk] TTrayWidget, transparent and icon size

2016-04-25 Thread Martin Schreiber
On Sunday 24 April 2016 20:54:15 Krzysztof wrote:
>
> Reproduced. Run attached demo, click on button "Dock", then click on
> tdirdropdownedit (not on drop down button but on empty text). Empty
> text is selected automatically then click on it again to set marker
> and you can do with it what ever you want like with normal text. It
> should disappear

Please try again with git master 8415b12ab20a25863747a4765510204bfdc10667.

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


Re: [MSEide-MSEgui-talk] TTrayWidget, transparent and icon size

2016-04-24 Thread Martin Schreiber
On Sunday 24 April 2016 20:23:34 Krzysztof wrote:
> Found weird bug in tdirdropdownedit when app has traywidget. Spent
> half hour wondering what I changed in tdirdropdownedit and finally
> deleted tray widget and everything is ok :D . When app has traywidget,
> clicking on dropdown button is hidding main form and you see only
> dropdown tree popup menu. Just run attached demo and click on dropdown
> button. Then delete traywidget and everything is ok.
>
Please try again with git master 64fabbff7973b5f8055637f0e996d3a66428281e.

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


Re: [MSEide-MSEgui-talk] TTrayWidget, transparent and icon size

2016-04-24 Thread Krzysztof
2016-04-24 20:23 GMT+02:00 Krzysztof :
> There is also second issue with tdirdropdownedit, not related to
> traywidget but to the new property eo_showfocused. Entering (by mouse)
> into tdirdropdownedit is autoselecting all empty text, I can even
> modify it, change marker, add new chars, it is not disappear but
> behave as normal text.  Can't reproduce this on empty demo even when
> copy and paste mfm structure from my app. Maybe because in my app,
> tdirdropdownedit is deep inside
> (tmainform->twidget->tsubform->tsimplewidget->tdirdropdownedit).
> tsubform is created at runtime and docked inside TWidget which is on
> main form. I'll get you more info when I reproduce this on clear demo

Reproduced. Run attached demo, click on button "Dock", then click on
tdirdropdownedit (not on drop down button but on empty text). Empty
text is selected automatically then click on it again to set marker
and you can do with it what ever you want like with normal text. It
should disappear


mse_focused.7z
Description: application/7z-compressed
--
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


Re: [MSEide-MSEgui-talk] TTrayWidget, transparent and icon size

2016-04-24 Thread Martin Schreiber
On Sunday 24 April 2016 20:23:34 Krzysztof wrote:
> Found weird bug in tdirdropdownedit when app has traywidget. Spent
> half hour wondering what I changed in tdirdropdownedit and finally
> deleted tray widget and everything is ok :D .
> When app has traywidget, 
> clicking on dropdown button is hidding main form and you see only
> dropdown tree popup menu. Just run attached demo and click on dropdown
> button. Then delete traywidget and everything is ok.
>

:-)
it is a Z-order problem, the form is in the background. I have a suspicion 
about the reason, I'll check it tomorrow.

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


Re: [MSEide-MSEgui-talk] TTrayWidget, transparent and icon size

2016-04-24 Thread Krzysztof
Found weird bug in tdirdropdownedit when app has traywidget. Spent
half hour wondering what I changed in tdirdropdownedit and finally
deleted tray widget and everything is ok :D . When app has traywidget,
clicking on dropdown button is hidding main form and you see only
dropdown tree popup menu. Just run attached demo and click on dropdown
button. Then delete traywidget and everything is ok.

There is also second issue with tdirdropdownedit, not related to
traywidget but to the new property eo_showfocused. Entering (by mouse)
into tdirdropdownedit is autoselecting all empty text, I can even
modify it, change marker, add new chars, it is not disappear but
behave as normal text.  Can't reproduce this on empty demo even when
copy and paste mfm structure from my app. Maybe because in my app,
tdirdropdownedit is deep inside
(tmainform->twidget->tsubform->tsimplewidget->tdirdropdownedit).
tsubform is created at runtime and docked inside TWidget which is on
main form. I'll get you more info when I reproduce this on clear demo


mse_tray.7z
Description: application/7z-compressed
--
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


Re: [MSEide-MSEgui-talk] TTrayWidget, transparent and icon size

2016-04-24 Thread Martin Schreiber
On Sunday 24 April 2016 19:17:47 Krzysztof wrote:
> 2016-04-24 18:18 GMT+02:00 Martin Schreiber :
> > 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


Re: [MSEide-MSEgui-talk] TTrayWidget, transparent and icon size

2016-04-24 Thread Krzysztof
2016-04-24 18:18 GMT+02:00 Martin Schreiber :
> 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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] TTrayWidget, transparent and icon size

2016-04-24 Thread Krzysztof
Hi Martin,

Two questions:
1. How to make trayicon transparent? Changed all found color
properties to cl_transparent but it is still gray
2. Is it possible to retrieve tray area size at runtime?
TTrayWidget.size is widget size and TTrayWidget.icon.size is 0. I'm
creating icon at runtime from font awesome, so knowing tray area size
I could create fitting icon. IIRC in KDE it is 24x24, GNOME 22x22 and
windows 16x16

Regards

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