Sorry but I do not understand the difference;
>From Gambas documentation on DesktopWindow.VisibleName (gb.desktop):
Returns the window visible name, i.e. the window title as displayed by the
window manager.
The visible name may be different from the name, when two or more windows
have the same name.

Then I did three different applications with a window of the same name
(FOO) I launched, and then I launched a fourth (Write) with this code.
I do not know differences in output.

Regards
Gianluigi
'----------------------------------------------------------
Public Sub Form_Open()

  Dim w As DesktopWindow

  For Each w In Desktop.Windows
    Print w.Name
  Next
  For Each w In Desktop.Windows
    Print w.VisibleName
  Next

End

Output with IDE:

Scrivania
FOO
FMain.form - App-3 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!
FOO
FMain.form - App-2 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!
FOO
FMain.form - App-1 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!
FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!


Scrivania
FOO
FMain.form - App-3 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!
FOO
FMain.form - App-2 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!
FOO
FMain.form - App-1 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!
FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!

Output with Executable:

Scrivania
FOO
FOO
FOO
FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!


Scrivania
FOO
FOO
FOO
FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!

Output without title:

Scrivania
Application one
Application two
Application three
FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!


Scrivania
Application one
Application two
Application three
FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!

Output with Spreadsheet:

Scrivania
Spreadsheet-1.ods - LibreOffice Calc
Spreadsheet-1.ods - LibreOffice Calc
Spreadsheet-1.ods - LibreOffice Calc
FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!


Scrivania
Spreadsheet-1.ods - LibreOffice Calc
Spreadsheet-1.ods - LibreOffice Calc
Spreadsheet-1.ods - LibreOffice Calc
FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN
RISK!

'--------------------------------------------------------------------------------------------------------------------------------------------------

2017-06-16 22:40 GMT+02:00 adamn...@gmail.com <adamn...@gmail.com>:

> On Fri, 16 Jun 2017 16:47:06 +0200
> Gianluigi <bagone...@gmail.com> wrote:
>
> > Thank you very much.
> > So if I understand well, there is no difference between the two
> properties.
> >
> > Regards
> > Gianluigi
> >
> > 2017-06-16 15:19 GMT+02:00 adamn...@gmail.com <adamn...@gmail.com>:
> >
> > > On Fri, 16 Jun 2017 15:07:20 +0200
> > > Gianluigi <bagone...@gmail.com> wrote:
> > >
> > > > Please take a look at the attached test.
> > > > From DesktopWindow.Name I would expect the name of the Form Name
> > > property,
> > > > and instead I get the Title.
> > > > Do you think it should be reported as a bug?
> > > >
> > > > Regards
> > > > Gianluigi
> > >
> > > No, that is 100% correct under the Portland definition (and exactly
> what
> > > the Gambas help says.)
> > >
> > > b
> > > --
> > > B Bruen <adamn...@gnail.com (sort of)>
> > >
>
> Consider opening four spreadsheets at the same time in libreOffice - each
> of the window titles includes the name of the file as well as the
> application name. If it were just the application name how could you tell
> which window had which file.
>
> b
> --
> B Bruen <adamn...@gnail.com (sort of)>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to