Re: [MSEide-MSEgui-talk] Form icon issue (again)

2017-03-08 Thread Krzysztof
2017-03-08 7:55 GMT+01:00 Martin Schreiber :
>
> AFAIK you use options two_usedbus? Are there messages in 'View'-'Target
> Console'? Maybe killing the application disturbs DBUS.
> Please report if you find a reproducible testcase.
>

Yes, I use two_usedbus. I'll dig deeper when get it next time
--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2017-03-07 Thread Martin Schreiber
On Tuesday 07 March 2017 20:11:25 Krzysztof wrote:
> Yesterday had first issue with tray icon. I debugged and killed my app
> dozens times (by Lazarus STOP action) and finally got error at startup (see
> attachments). I ignored this exception and application start fine but
> without tray icon. As expected, after reboot everything is fine. This is
> probably very rare scenario and I wouldn't worry about it

AFAIK you use options two_usedbus? Are there messages in 'View'-'Target 
Console'? Maybe killing the application disturbs DBUS.
Please report if you find a reproducible testcase.

Martin

--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2017-01-07 Thread Martin Schreiber
On Friday 06 January 2017 14:00:41 Krzysztof wrote:
> I did git pull few minutes ago. Trying to build mymseide and getting a lot
> of compiler errors. I have FPC 2.6.4 64bit
>
> msedbusinterface.pas(639,37) Error: Incompatible types: got "PPTypeInfo"
> expected "PTypeInfo"
[...]

git master 861cefdf67718ea7e15d398c77b9a8d3e4d96fa9 compiles with FPC 2.6.4.

Martin

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2017-01-06 Thread Krzysztof
Ok installed FPC 3.0.0 in my home directory and changed paths in MSEIDE
configuration. Did quick tests and seems that tray icon is working perfect.
Don't know what you meant with net_system_tray_opcode but I need to use
two_usedbus option, without this option tray icon behave as previous (pop
menu on wrong position etc). I'll do more tests tomorrow but looks very
good, thanks a lot. BTW I have now KDE Plasma 5.8.5, got big stable release
update week ago on my Linux Mint 18.

Regards
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2017-01-06 Thread Martin Schreiber
On Friday 06 January 2017 14:20:45 Krzysztof wrote:
> Yes, the goal for my project is to use FPC 3.0 but on my main machine I
> need to have FPC 2.6.4 due to my company restrictions. Never have two FPC
> versions on same OS, is it even possible?
Sure. I have a ".fpc.cfg" with the path settings in #ifdef blocks, example:
"
...
#IFDEF svnfixes_2_6
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/rtl/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/libc/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/x11/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/fcl-image/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/pasjpeg/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/paszlib/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/fcl-base/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/hash/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/fcl-db/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/postgres/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/mysql/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/sqlite/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/odbc/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/chm/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/fcl-xml/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/gdbint/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/users/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/fcl-process/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/fcl-web/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_2_6/packages/fcl-net/units/$fpctarget
#ELSE
#IFDEF svnfixes_3_0
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/rtl/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/rtl-objpas/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/rtl-extra/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/libc/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/x11/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/fcl-image/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/pasjpeg/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/paszlib/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/fcl-base/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/hash/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/fcl-db/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/postgres/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/mysql/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/sqlite/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/odbc/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/chm/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/fcl-xml/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/gdbint/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/users/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/fcl-process/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/fcl-web/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/fcl-net/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/openssl/units/$fpctarget
-Fu/home/mse/packs/standard/svn/fp/fixes_3_0/packages/fcl-passrc/units/$fpctarget
#ELSE
...
"
"-dsvnfixes_3_0" at FPC commandline selects the units 
from /home/mse/packs/standard/svn/fp/fixes_3_0 for the fixes_3_0 compiler.

Martin

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2017-01-06 Thread Krzysztof
Yes, the goal for my project is to use FPC 3.0 but on my main machine I
need to have FPC 2.6.4 due to my company restrictions. Never have two FPC
versions on same OS, is it even possible? If not then I prepare new
virtualbox guest with complete FPC 3.0 enviromnent
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2017-01-06 Thread Martin Schreiber
On Friday 06 January 2017 14:00:41 Krzysztof wrote:
> I did git pull few minutes ago. Trying to build mymseide and getting a lot
> of compiler errors. I have FPC 2.6.4 64bit
>
Can you use FPC 3.0+? I am not sure if it is possible to make the dbus 
interface FPC 2.6.4 compatible because of changes in RTTI.

Martin

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2017-01-06 Thread Krzysztof
I did git pull few minutes ago. Trying to build mymseide and getting a lot
of compiler errors. I have FPC 2.6.4 64bit

msedbusinterface.pas(639,37) Error: Incompatible types: got "PPTypeInfo"
expected "PTypeInfo"
msedbusinterface.pas(1092,22) Error: Identifier not found "pmanagedfield"
msedbusinterface.pas(1092,22) Error: Error in type definition
msedbusinterface.pas(1098,43) Error: Incompatible type for arg no. 1: Got
"PPTypeInfo", expected "PTypeInfo"
msedbusinterface.pas(1102,33) Error: identifier idents no member
"managedfldcount"
msedbusinterface.pas(1102,61) Error: identifier idents no member
"managedfldcount"
msedbusinterface.pas(1103,16) Error: identifier idents no member
"managedfldcount"
msedbusinterface.pas(1105,39) Error: Illegal qualifier
msedbusinterface.pas(1106,5) Error: Operator is not overloaded: inc
""
msedbusinterface.pas(1192,22) Error: Identifier not found "pmanagedfield"
msedbusinterface.pas(1192,22) Error: Error in type definition
msedbusinterface.pas(1199,40) Error: Incompatible type for arg no. 1: Got
"PPTypeInfo", expected "PTypeInfo"
msedbusinterface.pas(1203,33) Error: identifier idents no member
"managedfldcount"
msedbusinterface.pas(1203,61) Error: identifier idents no member
"managedfldcount"
msedbusinterface.pas(1204,16) Error: identifier idents no member
"managedfldcount"
msedbusinterface.pas(1206,33) Error: Illegal qualifier
msedbusinterface.pas(1207,5) Error: Operator is not overloaded: inc
""
msedbusinterface.pas(1367,19) Error: Identifier not found "pmanagedfield"
msedbusinterface.pas(1367,19) Error: Error in type definition
msedbusinterface.pas(1393,23) Error: Illegal qualifier
msedbusinterface.pas(1393,23) Error: Ordinal or string expression expected
msedbusinterface.pas(1393,23) Fatal: Syntax error, "OF" expected but
"identifier KIND" found
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2017-01-03 Thread Krzysztof
2017-01-02 17:38 GMT+01:00 Martin Schreiber :
>
> git master 30abcbe9abb89d1733fd75ca824227a258b8ed17 uses DBus if
> available and
> traywidget.options two_usedbus is set. Overhead and development effort are
> crazy...
> There are also workarounds for net_system_tray_opcode on newer window
> managers
> so it is possible that ttraywidget is usable on your KDE version without
> two_usedbus.


Thanks! I'll test this today evening
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-12-07 Thread Martin Schreiber
On 12/07/2016 08:25 PM, Krzysztof wrote:
> 2016-12-07 6:43 GMT+01:00 Martin Schreiber :
> 
>> What happens with a MSEgui tray icon if the application has been closed
>> and started again? For me it shows only the first time.
> 
> 
> Work fine here on git master
> 
Then KDE seems to have fixed that problem in the mean time. Nonetheless
MSEgui needs to be working on older KDE versions too.

Martin

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-12-07 Thread Krzysztof
2016-12-07 6:43 GMT+01:00 Martin Schreiber :

> What happens with a MSEgui tray icon if the application has been closed
> and started again? For me it shows only the first time.


Work fine here on git master
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-12-06 Thread Martin Schreiber
On 12/06/2016 08:55 PM, Krzysztof wrote:
> 2016-12-06 20:31 GMT+01:00 Martin Schreiber :
>>
>> I don't know. Or KDE makes their compatibility layer so that it works with
>> Skype. Did you try to kill Skipe and check if the icon still works after
>> restart in the same session?
> 
> 
> Don't know if understood question. Did quick test:
> 1. Run skype
> 2. command "killall skype"
> 3. Tray icon disappear immediately
> 4. Run skype again
> 5. Tray icon show immediately too
> 
> Linux Mint 18 KDE edition, Plasma 5.6.5
> 
What happens with a MSEgui tray icon if the application has been closed
and started again? For me it shows only the first time.

Martin

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-12-06 Thread Krzysztof
2016-12-06 20:31 GMT+01:00 Martin Schreiber :
>
> I don't know. Or KDE makes their compatibility layer so that it works with
> Skype. Did you try to kill Skipe and check if the icon still works after
> restart in the same session?


Don't know if understood question. Did quick test:
1. Run skype
2. command "killall skype"
3. Tray icon disappear immediately
4. Run skype again
5. Tray icon show immediately too

Linux Mint 18 KDE edition, Plasma 5.6.5
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-12-06 Thread Martin Schreiber
On Tuesday 06 December 2016 20:05:44 Krzysztof wrote:
> I'm not familiar with background but wondering how it is possible that on
> old Skype app which wasn't update from a years for linux, tray icon and pop
> up is still working fine? They build it on DBUS from the beginning?

I don't know. Or KDE makes their compatibility layer so that it works with 
Skype. Did you try to kill Skipe and check if the icon still works after 
restart in the same session? Another problem I have in OpenSUSE Leap 42.1 is 
that resizing of the icon not always works. In order to debug all effects and 
find workarounds I would need to compile KDE with debug info and run in 
debugger. No easy task either...
And read what David writes:

"
Note, that we consider embedded trays legacy, and instead support the
modern protocol:
https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/

For best results, mseide should use that.
You'll get better results in Unity too.
"

Martin

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-12-06 Thread Krzysztof
I'm not familiar with background but wondering how it is possible that on
old Skype app which wasn't update from a years for linux, tray icon and pop
up is still working fine? They build it on DBUS from the beginning?
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-12-06 Thread Krzysztof
2016-12-06 18:36 GMT+01:00 Martin Schreiber :

> On 11/27/2016 02:47 PM, Krzysztof wrote:
> > 2016-11-26 17:54 GMT+01:00 Martin Schreiber :
> >>
> >> It seems most of current windowmanagers have broken support for the
> >> net_system_tray_opcode protocol. That means that I must implement a
> >> complete DBus interface in MSEgui. A very big Expenditure only in order
> >> to show a tray icon, it will take a while.
> >
> >
> > No problem. I do not hurry
> >
> The amount of work to show a tray icon on modern desktop environments is
> completely crazy. A full blown DBus connection is necessary. And I fear
> that there are slight differences in how the different environments
> work. So currently I am not sure whether I have enough capacity to
> finish the job.
>

The beauty of linux's distros defragmentation :/ . I'm wondering what
awaits us when Wayland become more popular :(
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-12-06 Thread Martin Schreiber
On 11/27/2016 02:47 PM, Krzysztof wrote:
> 2016-11-26 17:54 GMT+01:00 Martin Schreiber :
>>
>> It seems most of current windowmanagers have broken support for the
>> net_system_tray_opcode protocol. That means that I must implement a
>> complete DBus interface in MSEgui. A very big Expenditure only in order
>> to show a tray icon, it will take a while.
> 
> 
> No problem. I do not hurry
> 
The amount of work to show a tray icon on modern desktop environments is
completely crazy. A full blown DBus connection is necessary. And I fear
that there are slight differences in how the different environments
work. So currently I am not sure whether I have enough capacity to
finish the job.

Martin

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-11-27 Thread Krzysztof
2016-11-26 17:54 GMT+01:00 Martin Schreiber :
>
> It seems most of current windowmanagers have broken support for the
> net_system_tray_opcode protocol. That means that I must implement a
> complete DBus interface in MSEgui. A very big Expenditure only in order
> to show a tray icon, it will take a while.


No problem. I do not hurry
--
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-11-26 Thread Martin Schreiber
On 11/23/2016 07:25 PM, Krzysztof wrote:
> 2016-11-23 19:00 GMT+01:00 Martin Schreiber :
>>
>> It becomes difficult...
>> I spent many hours with experiments, see
>> https://www.mail-archive.com/kde-devel@kde.org/msg09024.html
> 
> 
> That not sound good :/
> On Linux Mint 18 I have KDE Plasma 5.6.5 but there is 5.8 on the way soon
> from kubuntu backports
> 
It seems most of current windowmanagers have broken support for the
net_system_tray_opcode protocol. That means that I must implement a
complete DBus interface in MSEgui. A very big Expenditure only in order
to show a tray icon, it will take a while.

Martin

--
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-11-23 Thread Krzysztof
2016-11-23 19:00 GMT+01:00 Martin Schreiber :

>
>
> On 21.11.2016 08:56, Martin Schreiber wrote:
> > On 11/21/2016 08:26 AM, Martin Schreiber wrote:
> >> I'll try with some other window manger in order to reproduce the
> problem.
> >>
> > Yup, it happens with "modern" compositing window managers which seem to
> > implement the embedding protocol differently. I'll try to find
> workarounds.
> >
> It becomes difficult...
> I spent many hours with experiments, see
> https://www.mail-archive.com/kde-devel@kde.org/msg09024.html


Did you look how Qt5 is handle it? Maybe you find something useful in
qsystemtrayiconXXX:
http://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/util
--
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-11-23 Thread Krzysztof
2016-11-23 19:00 GMT+01:00 Martin Schreiber :
>
> It becomes difficult...
> I spent many hours with experiments, see
> https://www.mail-archive.com/kde-devel@kde.org/msg09024.html


That not sound good :/
On Linux Mint 18 I have KDE Plasma 5.6.5 but there is 5.8 on the way soon
from kubuntu backports
--
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-11-23 Thread Martin Schreiber


On 21.11.2016 08:56, Martin Schreiber wrote:
> On 11/21/2016 08:26 AM, Martin Schreiber wrote:
>> I'll try with some other window manger in order to reproduce the problem.
>>
> Yup, it happens with "modern" compositing window managers which seem to
> implement the embedding protocol differently. I'll try to find workarounds.
>
It becomes difficult...
I spent many hours with experiments, see
https://www.mail-archive.com/kde-devel@kde.org/msg09024.html

Martin

--
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-11-20 Thread Martin Schreiber
On 11/21/2016 08:26 AM, Martin Schreiber wrote:
> 
> I'll try with some other window manger in order to reproduce the problem.
> 
Yup, it happens with "modern" compositing window managers which seem to
implement the embedding protocol differently. I'll try to find workarounds.

Martin


--
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-11-20 Thread Martin Schreiber
On Sunday 20 November 2016 18:20:01 Krzysztof wrote:
> 2016-11-19 10:59 GMT+01:00 Martin Schreiber :
> > Probably a sideeffect. Please try again with git master
> > e23b0fed97e80a2c1dc0d414fe3860c84af37f57.
>
> Thanks. Mouse seems to responding fine now, but there are two issues which
> may could be improved:
> 1. Menu is showing on the screen's right edge. Can it show at icon as other
> tray menus? See attached movie

Works for me.

> 2. When main form is focused (or window from another program) then I have
> to right-click twice to show tray context menu. Seems like trayicon is
> stealing focus first, and then second right click is showing menu. Other
> apps dont' have this problem
>
Works for me.

I'll try with some other window manger in order to reproduce the problem.

Martin

--
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-11-20 Thread Krzysztof
2016-11-19 10:59 GMT+01:00 Martin Schreiber :

> Probably a sideeffect. Please try again with git master
> e23b0fed97e80a2c1dc0d414fe3860c84af37f57.
>

Thanks. Mouse seems to responding fine now, but there are two issues which
may could be improved:
1. Menu is showing on the screen's right edge. Can it show at icon as other
tray menus? See attached movie
2. When main form is focused (or window from another program) then I have
to right-click twice to show tray context menu. Seems like trayicon is
stealing focus first, and then second right click is showing menu. Other
apps dont' have this problem

Video: https://drive.google.com/open?id=0B33a2H5HSPjSOWlZMjJJUFpKWVE
--
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-11-19 Thread Martin Schreiber
On Friday 18 November 2016 22:26:12 Krzysztof wrote:
> Found another problem with tray. See video. I remember that trayicon menu
> worked perfect on my old laptop and Kubuntu so don't know if it is Linux
> Mint 18 KDE problem or something broke in mse git master (maybe after fix
> for closing app when popup is showing?).

Probably a sideeffect. Please try again with git master 
e23b0fed97e80a2c1dc0d414fe3860c84af37f57.

Martin

--
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-11-18 Thread Krzysztof
Ahh forgot that form icon has own mask options :/ . Now everything is
working fine except that tray regression. I'll try to debug this
--
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Form icon issue (again)

2016-11-18 Thread Martin Schreiber
On Thursday 17 November 2016 23:03:05 Krzysztof wrote:
> Hi Martin,
>
> Do you remember my issues with Intel HD Skylake 520 and bmo_graymask?
> Setting bmo_colormask fixed this issue on both graphics: HD 520 and old HD
> 4400.
>
> Few things changed form that time: I have now Linux Mint 18 KDE edition
> (instead of Kubuntu 16.04) and recently had big updates on mesa from
> official stable repo.
>
> Today tried set main form icon in my new app and implement tray icon.
> Noticed regressions between bmo_graymask and bmo_colormask. See attached
> video
>
> bmo_colormask:
> 1. Main form icon has icon but background has weird artifacts

See below.

> 2. Tray icon doesn't have transparent background but that is known since
> MSE doesn't have support for it.
> But sometimes background has different 
> width when switching between colors
>
> bmo_graymask:
> 1. First of all, it is suprise that icons finally are showing at HD 520 at
> all (maybe messa updates have something to do with?)

Probably. :-)

> 2. Main form icon is not drawed but background's artifacts still appear

Works for me with attached files.

> 3. Tray icon after first timagelisttray.bitmap.init() has transparent
> background. How it is possible? :o
>
I don't know.

> BTW: I want to add customizable icon color in my app.
> Is timagelisttray.bitmap.init() correct way for do this? Or better clear
> imagelist and readd icons with glyphs.getcell(,)?
>
Because the glyph outline is in mask only, calling timagelist.bitmap.init() is 
the most performant method.

> When creating this demo I noticed another issue with tray icon. Function
> below is from my old MSE app made on previous laptop. It is connected
> to ttraywidget.onresize event. I remember that onresize event was triggered
> twice, first with initial 50x50 and then with correct tray X window size
> (IIRC 26x26). Now it is called only once with 50x50 but icon
> is surprisingly drawed fine (rescaled?). Goal for this function was create
> tray icon fit exactly to X window size. As you can see in attached demo, I
> commented condition on <>50
>
It probably depends on the window-manager/desktop-environment how it handles 
try icon windows. I fear you need to expect everything...

Martin
object mainfo: tmainfo
  bounds_x = 986
  bounds_y = 763
  bounds_cx = 399
  bounds_cy = 237
  container.frame.localprops = []
  container.frame.localprops1 = []
  container.bounds = (
0
0
399
237
  )
  icon.options = [bmo_masked, bmo_graymask]
  onloaded = LoadIcons
  moduleclassname = 'tmainform'
  object ticon1: ticon
bounds_x = 88
bounds_y = 48
imagelist = timagelist1
  end
  object tbutton1: tbutton
taborder = 1
bounds_x = 128
bounds_y = 32
bounds_cx = 66
bounds_cy = 44
state = [as_localimagelist]
imagelist = timagelist1
  end
  object tbutton2: tbutton
taborder = 2
bounds_x = 72
bounds_y = 128
bounds_cx = 50
bounds_cy = 20
state = [as_localcaption, as_localonexecute]
caption = 'black'
onexecute = ChangeColor
  end
  object tbutton3: tbutton
Tag = 1
taborder = 3
bounds_x = 136
bounds_y = 128
bounds_cx = 50
bounds_cy = 20
state = [as_localcaption, as_localonexecute]
caption = 'red'
onexecute = ChangeColor
  end
  object tbutton4: tbutton
Tag = 2
taborder = 4
bounds_x = 200
bounds_y = 128
bounds_cx = 50
bounds_cy = 20
state = [as_localcaption, as_localonexecute]
caption = 'blue'
onexecute = ChangeColor
  end
  object tbutton5: tbutton
Tag = 3
taborder = 5
bounds_x = 264
bounds_y = 128
bounds_cx = 50
bounds_cy = 20
state = [as_localcaption, as_localonexecute]
caption = 'green'
onexecute = ChangeColor
  end
  object ttraywidget1: ttraywidget
taborder = 6
bounds_x = 288
bounds_y = 64
bounds_cx = 50
bounds_cy = 50
onresize = InitTrayIcon
imagelist = timagelisttray
  end
  object tbutton6: tbutton
taborder = 7
bounds_x = 208
bounds_y = 48
bounds_cx = 50
bounds_cy = 20
state = [as_localimagelist]
imagelist = timagelist1
  end
  object timagelist1: timagelist
options = [bmo_masked, bmo_graymask]
left = 272
top = 32
  end
  object timagelisttray: timagelist
options = [bmo_masked, bmo_graymask]
left = 272
top = 4
  end
end
unit main_mfm;
{$ifdef FPC}{$mode objfpc}{$h+}{$endif}

interface

implementation
uses
 mseclasses,main;

const
 objdata: record size: integer; data: array[0..1485] of byte end =
  (size: 1486; data: (
  84,80,70,48,7,116,109,97,105,110,102,111,6,109,97,105,110,102,111,8,
  98,111,117,110,100,115,95,120,3,218,3,8,98,111,117,110,100,115,95,121,
  3,251,2,9,98,111,117,110,100,115,95,99,120,3,143,1,9,98,111,117,
  110,100,115,95,99,121,3,237,0,26,99,111,110,116,97,105,110,101,114,46,
  102,114,97,109,101,46,108,111,99,97,108,112,114,111,112,115,11,0,27,99,