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] Twidgetgrid and assitive interface.

2016-12-06 Thread Fred van Stappen
>> ;-) Yes, thanks but... does it search for frame.Caption or hint too ? (I 
>> know, I am insupportable.)

> Sure.

That it does search for frame or that I am insupportable or both ? ;-)

OK I will do some comparaison and decide after if i switch to 
getassistivecaption().
The thing is that with "WhatName" procedure, it does a filter and assist only 
the components that I already know and have tested.

Thanks.

Fre;D
--
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] Twidgetgrid and assitive interface.

2016-12-06 Thread Martin Schreiber
On 12/06/2016 01:13 PM, Fred van Stappen wrote:
> 
>> Maybe use "iaSender.getassistivecaption()" instead?
> 
> ;-) Yes, thanks but... does it search for frame.Caption or hint too ? (I 
> know, I am insupportable.)
> 
Sure. The purpose of iassistiveclient is to provide the assistive server
with the needed information without the requirement that the server must
know the actual widget.
"
function twidget.getassistivecaption(): msestring;
begin
 if fframe <> nil then begin
  result:= fframe.getassistivecaption();
 end
 else begin
  result:= '';
 end;
end;

function tcustomcaptionframe.getassistivecaption(): msestring;
begin
 result:= getcaption();
end;

function tmenuitem.getassistivecaption(): msestring;
var
 item1: tmenuitem;
begin
 if getactiveitem(item1) then begin
  result:= item1.finfo.captiontext;
 end
 else begin
  result:= '';
 end;
end;

function tcustombutton.getassistivecaption(): msestring;
begin
 if factioninfo.captiontext <> '' then begin
  result:= factioninfo.captiontext;
 end
 else begin
  result:= inherited getassistivecaption();
 end;
end;

function tcustomtabbar.getassistivecaption(): msestring;
begin
 with flayoutinfo do begin
  if (focusedtab >= 0) and (focusedtab < tabs.count) then begin
   result:= tabs[focusedtab].caption;
  end
  else begin
   result:= inherited getassistivecaption();
  end;
 end;
end;
"

 Please remember the signature of "iassistiveclient":
"
 assistiveflagty =
(asf_embedded,asf_grid,asf_gridcell,asf_datetime,asf_menu);
 assistiveflagsty = set of assistiveflagty;

 iassistiveclient = interface(inullinterface)[miid_iassistiveclient]
  function getinstance: tobject;
  function getassistivename(): msestring;
  function getassistivecaption(): msestring;
  function getassistivetext(): msestring;
  function getassistivecaretindex(): int32; //-1 -> none
  function getassistivehint(): msestring;
  function getassistiveflags(): assistiveflagsty;
 {$ifdef mse_with_ifi}
  function getifidatalinkintf(): iifidatalink; //can be nil
 {$endif}
 end;
"

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] MSEgui and screenreader

2016-12-06 Thread Fred van Stappen
>> Thanks.  And I just discover that the space key does the trick too ;-)

> This is not the same.

Yep, it works only for Tenumedit.

>> I know that it is possible to use Alt+V then Alt+U,  Alt+M, ...
> Alt+V U, Alt+V M, ... works too.

Oh, perfect, many thanks for the tip.

PS: For console project, sincerely, I am able to do everything (load ideu 
assisted and edit-change-check-compile-run the project) in the dark (and eyes 
closed).
And your Target Console is fabulous: it is assisted too. ;-)
But my main problem is the keyboard, I have to train to use it without to look 
at it (like a real programmer).

For gui project, I did not try yet.

Many thanks Martin.

Fre;D
--
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] Twidgetgrid and assitive interface.

2016-12-06 Thread Fred van Stappen
>> But selecting a "boolean" cell, there is a access violation error (see 
>> attachment twidgetgrid_crash.jpg).

> function TSak.WhatName(iaSender: iassistiveclient): msestring;
> [...]
>  if (Sender is tbooleaneditradio) then
>  begin
>  if (trim(Tbooleaneditradio(Sender).frame.Caption) <> '') then

Well seen Martin ! (Aaaargh, why did I not see it ?)

This solves all:

  [...]
 if assigned(Tbooleanedit(Sender).frame) then
 if (trim(Tbooleanedit(Sender).frame.Caption) <> '') then
  [...]


Many thanks Martin to give your time to check my code.

> Maybe use "iaSender.getassistivecaption()" instead?

;-) Yes, thanks but... does it search for frame.Caption or hint too ? (I know, 
I am insupportable.)

Many thanks Martin, you are very strong.

Fre;D

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