From bagonergi at gmail.com Mon Oct 1 11:19:10 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 1 Oct 2018 11:19:10 +0200 Subject: [Gambas-user] Error compiling on Fedora In-Reply-To: References: <20180929212707.GA1811@highrise.localdomain> <20180930152022.GA12450@highrise.localdomain> Message-ID: Il giorno dom 30 set 2018 alle ore 20:31 Gianluigi ha scritto: > Just for your information I have compiled Gambas3 Master on Fedora 28 > Workstation following this step by step procedure: > Note: Every time the terminal asks for confirmation we answer with y (yes). > > sudo dnf groupupdate "Development Tools" "Development Libraries" > (this command can also be given in our language) > > Download the latest rpmfusion-free-release-stable rpm from: > http://download1.rpmfusion.org/free/fedora/ > > Install with: sudo rpm -Uvh rpmfusion-free-release-stable.noarch.rpm > > sudo dnf install medialibrary-devel > > Note: The next command, if copied, must be rebuilt in a text editor like > gedit. We need to remove the wrap and the libraries must be separated by a > space. > > sudo dnf install gcc-c++-x86_64-linux-gnu libtool libtool-ltdl-devel > libffi-devel libzip libzip-devel cairo-devel libcryptui-devel > community-mysql-devel unixODBC-devel postgresql-devel sqlite2-devel > imlib2-devel librsvg2-devel libsqlite3x-devel libXtst-devel > libgnome-keyring-devel gtk2-devel gtk3-devel gtkglext-devel > gdk-pixbuf2-devel libxml-devel gsl-devel imlib-devel gstreamer1-devel > gmime-devel ghc-OpenGL-devel glslang-devel glusterfs-devel poppler-devel > poppler-qt-devel qt-devel poppler-qt5-devel PackageKit-Qt5-devel SDL-devel > SDL2-devel SDL_sound-devel SDL_ttf-devel SDL_net-devel SDL_mixer-devel > SDL_image-devel SDL_gfx-devel SDL_Pango-devel mesa-libGLU-devel > mesa-libGLw-devel mesa-libGL-devel glew-devel qtwebkit-devel > qt5-devel.noarch openal-soft-devel qt5-qtwebkit-devel alure-devel > freealut-devel SDL2_image-devel SDL2_net-devel SDL2_ttf-devel > SDL2_mixer-devel libjpeg-turbo-devel libv4l-devel gstreamer-devel > gstreamer-plugins-base-devel libxslt-devel pulseaudio-libs-devel > audiofile-devel sage-devel esound-devel qt5-qtmultimedia-devel > qt5-gstreamer-devel > > Since git is already installed on Fedora 28: > > git clone --depth=1 https://gitlab.com/gambas/gambas.git gambasdevel > > cd gambasdevel > > ./reconf-all && ./configure -C > > If response = || ALL COMPONENTS WILL BE COMPILED: > > make > > sudo make install > > Done. > > Regards > Gianluigi > Someone who compiles Gambas on Fedora, could check the procedure and the libraries? I think some of them are useless or wrong. TIA Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.j.teixeira at gmail.com Mon Oct 1 11:39:29 2018 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Mon, 1 Oct 2018 10:39:29 +0100 Subject: [Gambas-user] open-ssl In-Reply-To: References: Message-ID: Thank you very much Christof. Problem solved. Regards Ant?nio Teixeira > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Oct 1 14:59:47 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 1 Oct 2018 08:59:47 -0400 Subject: [Gambas-user] open-ssl In-Reply-To: References: Message-ID: http://gambaswiki.org/wiki/comp/gb.openssl/cipher/issupported are empty, i'm curious about it! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-10-01 5:39 GMT-04:00 Antonio Teixeira : > Thank you very much Christof. > Problem solved. > > Regards > > Ant?nio Teixeira > > >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Oct 1 15:12:56 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 1 Oct 2018 09:12:56 -0400 Subject: [Gambas-user] PostgreSQL column type numeric(N, M) segfaults DataBrowser In-Reply-To: References: Message-ID: seems both are only happened in 3.11 as i already said! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-09-28 6:57 GMT-04:00 Jorge Carri?n : > I confirm that IDE crash when trying to see proprties of a connection. > Both sqlite and Mysql types. I did not reported before because I can't > isolate the bug... > > > > El vie., 28 sept. 2018 a las 12:42, Constantin Teodorescu (< > brailateo at gmail.com>) escribi?: > >> Hi everyone, >> >> I just discovered that using numeric(10,2) in PostgreSQL crashes Gambas >> DataBrowser! >> When type changed to double precision everything is OK! >> >> Would it be fixed that in a future version or should I avoid using >> numeric in tables? >> >> Thanks for Gambas3, in my opinion the best R.A.D. choice for any Linux >> GUI application with databases >> Constantin Teodorescu >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Mon Oct 1 18:21:11 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 1 Oct 2018 18:21:11 +0200 Subject: [Gambas-user] open-ssl In-Reply-To: References: Message-ID: <20181001162111.GB12450@highrise.localdomain> On Mon, 01 Oct 2018, PICCORO McKAY Lenz wrote: > http://gambaswiki.org/wiki/comp/gb.openssl/cipher/issupported > > are empty, i'm curious about it! > Static Function IsSupported ( Method As String ) As Boolean It checks if the cipher method /Method/ is supported by the OpenSSL library. ^- I added the above to the docs. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Wed Oct 3 02:27:51 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 3 Oct 2018 03:27:51 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> References: <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> Message-ID: Still working on the JIT? I have taken some time off doing other things, so maybe I have missed something... Jussi On Wed, Aug 29, 2018 at 12:27 PM Beno?t Minisini wrote: > Le 29/08/2018 ? 01:15, Jussi Lahtinen a ?crit : > > Benoit, are you working on this crash (attachment)? Just checking, > > because you are usually very quick... > > > > > > Jussi > > The crash is fixed in commit > > https://gitlab.com/gambas/gambas/commit/7a680d738b1c195a1beca72c3be79283e460a617, > > but there is another one. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.12.tar.gz Type: application/gzip Size: 27207 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Oct 3 04:03:34 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 3 Oct 2018 04:03:34 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> Message-ID: Le 03/10/2018 ? 02:27, Jussi Lahtinen a ?crit?: > Still working on the JIT? > I have taken some time off doing other things, so maybe I have missed > something... > > Jussi > No, as there is no pending crash as far as I know. -- Beno?t Minisini From brailateo at gmail.com Wed Oct 3 05:58:56 2018 From: brailateo at gmail.com (Constantin Teodorescu) Date: Wed, 3 Oct 2018 06:58:56 +0300 Subject: [Gambas-user] [CRASH REPORT] Facturi august Message-ID: Hello, Damned, my program crashed Gambas that way : Just opened in dataBrowser a PostgreSQL table with the structure: autentificare=# \d incasari Table "public.incasari" Column | Type | Collation | Nullable | Default --------------------+-----------------------------+-----------+----------+-------------------------------------- id | integer | | not null | nextval('incasari_id_seq'::regclass) ziua | date | | not null | wks | character varying(128) | | not null | total | numeric(6,2) | | not null | valoare | numeric(6,2) | | not null | tva | numeric(6,2) | | not null | societate | character varying(512) | | not null | ''::character varying cui | character varying(16) | | not null | ''::character varying regcom | character varying(24) | | not null | ''::character varying adresa | character varying(512) | | not null | ''::character varying nr_factura | integer | | not null | nextval('seq_nr_factura'::regclass) data_factura | date | | | doar_baza | character(1) | | not null | 'N'::bpchar import_excel | character(1) | | not null | 'N'::bpchar ts_confirmare | timestamp without time zone | | | confirmat_prin_wks | character varying(8) | | | facturat_total | numeric(6,2) | | | facturat_valoare | numeric(6,2) | | | facturat_tva | numeric(6,2) | | | Indexes: "incasari_pkey" PRIMARY KEY, btree (id) "incasari_nr_factura" UNIQUE, btree (nr_factura) "incasari_wks" btree (wks) Triggers: trigger_calcul_tva BEFORE INSERT OR UPDATE ON incasari FOR EACH ROW EXECUTE PROCEDURE functie_calcul_tva() -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: AugustIQM-0.0.1-crash-181003-065457.tar.bz2 Type: application/x-bzip Size: 14516 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Oct 3 06:31:46 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 3 Oct 2018 06:31:46 +0200 Subject: [Gambas-user] PostgreSQL column type numeric(N, M) segfaults DataBrowser In-Reply-To: References: Message-ID: Le 28/09/2018 ? 12:41, Constantin Teodorescu a ?crit?: > Hi?everyone, > > I just discovered that using numeric(10,2) in PostgreSQL crashes Gambas > DataBrowser! > When type changed to double precision everything is OK! > > Would it be fixed that in a future version or should I avoid using > numeric in tables? > > Thanks for Gambas3, in my opinion the best R.A.D. choice for any Linux > GUI application with databases > Constantin Teodorescu > Hi, I have no crash at all. What do you do exactly? Can you send a little project and a database dump that allows me to reproduce your problem? -- Beno?t Minisini From bagonergi at gmail.com Wed Oct 3 09:45:37 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 3 Oct 2018 09:45:37 +0200 Subject: [Gambas-user] How to Change Keyboard Layout Message-ID: >Lee, I subscribed to the list you mentioned but should I repeate the same thread there or what? >Charlie, thanks for your answer but it didn't exactly did what I want >I'm using Ubuntu >the code you put gave me this result: XKBLAYOUT=us,ara >what I need to get is the current keyboard layout >maybe I wasn't clear while putting my problem, so I"ll try to explain more >I want to check my current keyboard layout so if its Arabic, it would be changed to English (in >some textboxes) and vices versa. >i.e I want to use English in some textboxes and Arabic in others, and I want that to be done >through a code to check Keyboard layout and change it if needed or keep it if no need to change >it >thanks in advance to everyone trying to help This code that need to do something else, maybe you can direct it to a key that makes you understand if the keyboard is 'ara' or 'us'. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CapsLock-key-0.0.1.tar.gz Type: application/gzip Size: 11867 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Wed Oct 3 14:25:43 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 3 Oct 2018 15:25:43 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <95b439d6-b3b0-0b90-d2e4-42b633a70da7@gmail.com> <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> Message-ID: There is the "null object" error, which happens only when JIT is enabled. See the attachment. Jussi On Wed, Oct 3, 2018 at 5:04 AM Beno?t Minisini wrote: > Le 03/10/2018 ? 02:27, Jussi Lahtinen a ?crit : > > Still working on the JIT? > > I have taken some time off doing other things, so maybe I have missed > > something... > > > > Jussi > > > > No, as there is no pending crash as far as I know. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.12.tar.gz Type: application/gzip Size: 27207 bytes Desc: not available URL: From bagonergi at gmail.com Wed Oct 3 15:00:52 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 3 Oct 2018 15:00:52 +0200 Subject: [Gambas-user] How to Change Keyboard Layout In-Reply-To: References: Message-ID: With this code, I'm trying to explain better what I meant to say: Public Sub TextBox1_GotFocus() Dim s As String Desktop.SendKeys("{[Shift_L]6}") Wait 0.1 s = TextBox1.Text Print s Wait 0.1 TextBox1.Clear If s = "&" Then Print "Italian keyboard" Else Print "Stranger keyboard" Endif End Regards Gianluigi Il giorno mer 3 ott 2018 alle ore 09:45 Gianluigi ha scritto: > >Lee, I subscribed to the list you mentioned but should I repeate the same > thread there or what? > > >Charlie, thanks for your answer but it didn't exactly did what I want > >I'm using Ubuntu > >the code you put gave me this result: XKBLAYOUT=us,ara > >what I need to get is the current keyboard layout > >maybe I wasn't clear while putting my problem, so I"ll try to explain more > >I want to check my current keyboard layout so if its Arabic, it would be > changed to English (in >some textboxes) and vices versa. > >i.e I want to use English in some textboxes and Arabic in others, and I > want that to be done >through a code to check Keyboard layout and change it > if needed or keep it if no need to change >it > >thanks in advance to everyone trying to help > > This code that need to do something else, maybe you can direct it to a key > that makes you understand if the keyboard is 'ara' or 'us'. > > Regards > Gianluigi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Oct 3 16:18:45 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 3 Oct 2018 16:18:45 +0200 Subject: [Gambas-user] PostgreSQL column type numeric(N, M) segfaults DataBrowser In-Reply-To: References: Message-ID: <9c0dae10-dab5-f35b-4a96-436f49d94ea2@gmail.com> Le 03/10/2018 ? 06:31, Beno?t Minisini a ?crit?: > Le 28/09/2018 ? 12:41, Constantin Teodorescu a ?crit?: >> Hi?everyone, >> >> I just discovered that using numeric(10,2) in PostgreSQL crashes >> Gambas DataBrowser! >> When type changed to double precision everything is OK! >> >> Would it be fixed that in a future version or should I avoid using >> numeric in tables? >> >> Thanks for Gambas3, in my opinion the best R.A.D. choice for any Linux >> GUI application with databases >> Constantin Teodorescu >> > > Hi, > > I have no crash at all. What do you do exactly? Can you send a little > project and a database dump that allows me to reproduce your problem? > Does it work with the last commit of the development version? -- Beno?t Minisini From wael79xy at yahoo.com Wed Oct 3 23:27:09 2018 From: wael79xy at yahoo.com (Wael M) Date: Wed, 3 Oct 2018 21:27:09 +0000 (UTC) Subject: [Gambas-user] How to Change Keyboard Layout References: <558634464.3991550.1538602029273.ref@mail.yahoo.com> Message-ID: <558634464.3991550.1538602029273@mail.yahoo.com> Thank you very much Gianluigi for your help, grazie :) it worked and could detect my language but not the way I want let me tell you my story :) I came to linux from windows and I'm trying to translate an app I did with VB to the corresponding codes in Gambas. I realized that Gambas is not the same as VB because Linux is not the same as windows Gambas is just using the same names and following the main rules of VB in my app I had a form that with three textboxes are filled in Arabic and three are filled in English when I put the cursor in a textbox it detects the keyboard layout and change it to the desired language I followed the code you gave but I want to put the event of this code to be when textbox got focus here is the problem, when I put cursor in the desired textbox, it evokes the code and losing the focus the focus again the textbox making it evoking the same code again and so on so what I really need is to detect the keyboard layout like reading it directly from linux again and again thank you very much for your patience and help -------------------------------------------- On Wed, 10/3/18, Gianluigi wrote: Subject: Re: [Gambas-user] How to Change Keyboard Layout To: "Gambas Mailing List" Date: Wednesday, October 3, 2018, 4:00 PM With this code, I'm trying to explain better what I meant to say: Public Sub TextBox1_GotFocus() ? ? Dim s As String ? ? Desktop.SendKeys("{[Shift_L]6}") ? Wait 0.1 ? s = TextBox1.Text ? Print s ? Wait 0.1 ? TextBox1.Clear ? If s = "&" Then ??? Print "Italian keyboard" ? Else ??? Print "Stranger keyboard" ? Endif ? End Regards Gianluigi Il giorno mer 3 ott 2018 alle ore 09:45 Gianluigi ha scritto: >Lee, I subscribed to the list you mentioned but should I repeate the same thread there or what? >Charlie, thanks for your answer but it didn't exactly did what I want >I'm using Ubuntu >the code you put gave me this result: XKBLAYOUT=us,ara >what I need to get is the current keyboard layout >maybe I wasn't clear while putting my problem, so I"ll try to explain more >I want to check my current keyboard layout so if its Arabic, it would be changed to English (in >some textboxes) and vices versa. >i.e I want to use English in some textboxes and Arabic in others, and I want that to be done >through a code to check Keyboard layout and change it if needed or keep it if no need to change >it >thanks in advance to everyone trying to help This code that need to do something else, maybe you can direct it to a key that makes you understand if the keyboard is 'ara' or 'us'. RegardsGianluigi ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -----Inline Attachment Follows----- From bagonergi at gmail.com Thu Oct 4 01:00:32 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 4 Oct 2018 01:00:32 +0200 Subject: [Gambas-user] How to Change Keyboard Layout In-Reply-To: <558634464.3991550.1538602029273@mail.yahoo.com> References: <558634464.3991550.1538602029273.ref@mail.yahoo.com> <558634464.3991550.1538602029273@mail.yahoo.com> Message-ID: If you get the layout when you open the app, it should work. Just keep an eye on the switches, e.g: Private $bItalian As Boolean Public Sub Form_Open() Dim s As String Dim hTxt As TextBox hTxt = New TextBox(Me) hTxt.Foreground = Color.Transparent hTxt.SetFocus Me.Show Wait 0.1 Desktop.SendKeys("{[Shift_L]6}") Wait 0.1 s = hTxt.Text hTxt.Delete If s = "&" Then $bItalian = True Print "Italian keyboard" Else $bItalian = False Print "Stranger keyboard" Endif Print $bItalian End Public Sub Form_KeyPress() ' I don't remember your shortcut to switch keyboard layout, supposing Ctrl+K If Key.Code = Key["K"] And If Key.Control Then $bItalian = Not $bItalian Print $bItalian End If End Regards Gianluigi Il giorno mer 3 ott 2018 alle ore 23:28 Wael M via User < user at lists.gambas-basic.org> ha scritto: > Thank you very much Gianluigi for your help, grazie :) > it worked and could detect my language but not the way I want > let me tell you my story :) > I came to linux from windows and I'm trying to translate an app I did with > VB to the corresponding codes in Gambas. > I realized that Gambas is not the same as VB because Linux is not the same > as windows > Gambas is just using the same names and following the main rules of VB > in my app I had a form that with three textboxes are filled in Arabic and > three are filled in English > when I put the cursor in a textbox it detects the keyboard layout and > change it to the desired language > I followed the code you gave but I want to put the event of this code to > be when textbox got focus > here is the problem, when I put cursor in the desired textbox, it evokes > the code and losing the focus the focus again the textbox making it evoking > the same code again and so on > so what I really need is to detect the keyboard layout like reading it > directly from linux > > again and again thank you very much for your patience and help > > -------------------------------------------- > On Wed, 10/3/18, Gianluigi wrote: > > Subject: Re: [Gambas-user] How to Change Keyboard Layout > To: "Gambas Mailing List" > Date: Wednesday, October 3, 2018, 4:00 PM > > With this code, I'm trying to explain better > what I meant to say: > > Public > Sub TextBox1_GotFocus() > > Dim s As String > > > Desktop.SendKeys("{[Shift_L]6}") > Wait 0.1 > s = > TextBox1.Text > Print s > > Wait 0.1 > TextBox1.Clear > If s = "&" Then > Print "Italian keyboard" > Else > Print > "Stranger keyboard" > Endif > > End > > Regards > Gianluigi > > Il giorno > mer 3 ott 2018 alle ore 09:45 Gianluigi > ha scritto: > >Lee, I subscribed to the list > you mentioned but should I repeate the same thread there or > what? > > > > >Charlie, thanks for your answer but it didn't > exactly did what I want > > >I'm using Ubuntu > > >the code you put gave me this result: > XKBLAYOUT=us,ara > > >what I need to get is the current keyboard layout > > >maybe I wasn't clear while putting my problem, so > I"ll try to explain more > > >I want to check my current keyboard layout so if its > Arabic, it would be changed to English (in >some > textboxes) and vices versa. > > >i.e I want to use English in some textboxes and Arabic > in others, and I > want that to be done >through a code to check Keyboard > layout and change > it if needed or keep it if no need to change >it > > >thanks in advance to everyone trying to help > > This > code that need to do something else, maybe you can direct it > to a key that makes you understand if the keyboard is > 'ara' or 'us'. > RegardsGianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -----Inline Attachment Follows----- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Oct 4 09:59:47 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 4 Oct 2018 09:59:47 +0200 Subject: [Gambas-user] How to Change Keyboard Layout In-Reply-To: References: <558634464.3991550.1538602029273.ref@mail.yahoo.com> <558634464.3991550.1538602029273@mail.yahoo.com> Message-ID: > here is the problem, when I put cursor in the desired textbox, it evokes > the code and losing the focus the focus again the textbox making it evoking > the same code again and so on I can not understand the reason for the loss of focus, in the simple tests I made this does not happen, eg: Public Sub TextBox1_GotFocus() keyboard(TextBox1) End Public Sub TextBox2_GotFocus() keyboard(TextBox2) End ' Etcetera... Private Sub keyboard(hTxt As TextBox) Dim s As String Desktop.SendKeys("{[Shift_L]6}") Wait 0.1 s = Mid(hTxt.Text, hTxt.Pos, 1) Print s Wait 0.1 Desktop.SendKeys("[BackSpace]") If s = "&" Then Print "Italian keyboard" Else Print "Stranger keyboard" Endif End Regards Gianluigi Il giorno gio 4 ott 2018 alle ore 01:00 Gianluigi ha scritto: > If you get the layout when you open the app, it should work. > Just keep an eye on the switches, e.g: > > Private $bItalian As Boolean > > Public Sub Form_Open() > > Dim s As String > Dim hTxt As TextBox > > hTxt = New TextBox(Me) > hTxt.Foreground = Color.Transparent > hTxt.SetFocus > Me.Show > Wait 0.1 > Desktop.SendKeys("{[Shift_L]6}") > Wait 0.1 > s = hTxt.Text > > hTxt.Delete > If s = "&" Then > $bItalian = True > Print "Italian keyboard" > Else > $bItalian = False > Print "Stranger keyboard" > Endif > Print $bItalian > > End > > Public Sub Form_KeyPress() > > ' I don't remember your shortcut to switch keyboard layout, supposing > Ctrl+K > If Key.Code = Key["K"] And If Key.Control Then > $bItalian = Not $bItalian > Print $bItalian > End If > > End > > Regards > Gianluigi > > Il giorno mer 3 ott 2018 alle ore 23:28 Wael M via User < > user at lists.gambas-basic.org> ha scritto: > >> Thank you very much Gianluigi for your help, grazie :) >> it worked and could detect my language but not the way I want >> let me tell you my story :) >> I came to linux from windows and I'm trying to translate an app I did >> with VB to the corresponding codes in Gambas. >> I realized that Gambas is not the same as VB because Linux is not the >> same as windows >> Gambas is just using the same names and following the main rules of VB >> in my app I had a form that with three textboxes are filled in Arabic and >> three are filled in English >> when I put the cursor in a textbox it detects the keyboard layout and >> change it to the desired language >> I followed the code you gave but I want to put the event of this code to >> be when textbox got focus >> here is the problem, when I put cursor in the desired textbox, it evokes >> the code and losing the focus the focus again the textbox making it evoking >> the same code again and so on >> so what I really need is to detect the keyboard layout like reading it >> directly from linux >> >> again and again thank you very much for your patience and help >> >> -------------------------------------------- >> On Wed, 10/3/18, Gianluigi wrote: >> >> Subject: Re: [Gambas-user] How to Change Keyboard Layout >> To: "Gambas Mailing List" >> Date: Wednesday, October 3, 2018, 4:00 PM >> >> With this code, I'm trying to explain better >> what I meant to say: >> >> Public >> Sub TextBox1_GotFocus() >> >> Dim s As String >> >> >> Desktop.SendKeys("{[Shift_L]6}") >> Wait 0.1 >> s = >> TextBox1.Text >> Print s >> >> Wait 0.1 >> TextBox1.Clear >> If s = "&" Then >> Print "Italian keyboard" >> Else >> Print >> "Stranger keyboard" >> Endif >> >> End >> >> Regards >> Gianluigi >> >> Il giorno >> mer 3 ott 2018 alle ore 09:45 Gianluigi >> ha scritto: >> >Lee, I subscribed to the list >> you mentioned but should I repeate the same thread there or >> what? >> >> >> >> >Charlie, thanks for your answer but it didn't >> exactly did what I want >> >> >I'm using Ubuntu >> >> >the code you put gave me this result: >> XKBLAYOUT=us,ara >> >> >what I need to get is the current keyboard layout >> >> >maybe I wasn't clear while putting my problem, so >> I"ll try to explain more >> >> >I want to check my current keyboard layout so if its >> Arabic, it would be changed to English (in >some >> textboxes) and vices versa. >> >> >i.e I want to use English in some textboxes and Arabic >> in others, and I >> want that to be done >through a code to check Keyboard >> layout and change >> it if needed or keep it if no need to change >it >> >> >thanks in advance to everyone trying to help >> >> This >> code that need to do something else, maybe you can direct it >> to a key that makes you understand if the keyboard is >> 'ara' or 'us'. >> RegardsGianluigi >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> -----Inline Attachment Follows----- >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Thu Oct 4 12:11:46 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 4 Oct 2018 12:11:46 +0200 Subject: [Gambas-user] GridView and selection Message-ID: Is it normal in multiselection mode that when you have multiple line selected you must click outside the selection to clear the selection ? .. well but when you have a full selected array ? normally when you click on the selection it must unselect all and select the one under the mouse... no ? -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Oct 4 14:08:48 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 4 Oct 2018 08:08:48 -0400 Subject: [Gambas-user] How to Change Keyboard Layout In-Reply-To: <558634464.3991550.1538602029273@mail.yahoo.com> References: <558634464.3991550.1538602029273.ref@mail.yahoo.com> <558634464.3991550.1538602029273@mail.yahoo.com> Message-ID: <12b9ed31-2347-4668-853f-bd2390d1a123@gmail.com> If each box will use a specific layout, you could use a semaphore. [code] Public $IsEnglishLayout = True Public Sub EnglishTextbox1_GotFocus() If Not $IsEnglishLayout then Destkop.Sendkeys(blah) $IsEnglishLayout = True End Public Sub ArabicTextbox1_GotFocus() If $IsEnglishLayout then Destkop.Sendkeys(blah) $IsEnglishLayout = False End [/code] ___ Lee On 10/3/18 5:27 PM, Wael M via User wrote: > Thank you very much Gianluigi for your help, grazie :) > it worked and could detect my language but not the way I want > let me tell you my story :) > I came to linux from windows and I'm trying to translate an app I did with VB to the corresponding codes in Gambas. > I realized that Gambas is not the same as VB because Linux is not the same as windows > Gambas is just using the same names and following the main rules of VB > in my app I had a form that with three textboxes are filled in Arabic and three are filled in English > when I put the cursor in a textbox it detects the keyboard layout and change it to the desired language > I followed the code you gave but I want to put the event of this code to be when textbox got focus > here is the problem, when I put cursor in the desired textbox, it evokes the code and losing the focus the focus again the textbox making it evoking the same code again and so on > so what I really need is to detect the keyboard layout like reading it directly from linux > > again and again thank you very much for your patience and help From bagonergi at gmail.com Thu Oct 4 17:13:10 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 4 Oct 2018 17:13:10 +0200 Subject: [Gambas-user] Unselect text of TextBox Message-ID: Does anyone know a way in QT to avoid that on Shift+Tab the text of the TextBox is selected? See attached test. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestUselect-0.0.1.tar.gz Type: application/gzip Size: 11733 bytes Desc: not available URL: From gambas.fr at gmail.com Thu Oct 4 17:18:43 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 4 Oct 2018 17:18:43 +0200 Subject: [Gambas-user] Unselect text of TextBox In-Reply-To: References: Message-ID: Unselect it on gotfocus Event Le jeu. 4 oct. 2018 17:14, Gianluigi a ?crit : > Does anyone know a way in QT to avoid that on Shift+Tab the text of the > TextBox is selected? > See attached test. > > Regards > Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Oct 4 17:23:58 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 4 Oct 2018 17:23:58 +0200 Subject: [Gambas-user] Unselect text of TextBox In-Reply-To: References: Message-ID: It's not working, can you see the test? Thank you. Gianluigi Il giorno gio 4 ott 2018 alle ore 17:19 Fabien Bodard ha scritto: > Unselect it on gotfocus Event > > Le jeu. 4 oct. 2018 17:14, Gianluigi a ?crit : > >> Does anyone know a way in QT to avoid that on Shift+Tab the text of the >> TextBox is selected? >> See attached test. >> >> Regards >> Gianluigi >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Oct 4 17:28:25 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 4 Oct 2018 17:28:25 +0200 Subject: [Gambas-user] GridView and selection In-Reply-To: References: Message-ID: You can get help from the Shift or Ctrl keys, but I agree with what you say. A "usual" operation should include what you said, also the click on a cell, if present the line number, should select only the cell (click on the number for the whole line). Regards Gianluigi Il giorno gio 4 ott 2018 alle ore 12:12 Fabien Bodard ha scritto: > Is it normal in multiselection mode that when you have multiple line > selected you must click outside the selection to clear the selection ? .. > well but when you have a full selected array ? > > normally when you click on the selection it must unselect all and select > the one under the mouse... no ? > > -- > Fabien Bodard > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Thu Oct 4 19:06:24 2018 From: genbraga1 at gmail.com (gen braga) Date: Thu, 4 Oct 2018 14:06:24 -0300 Subject: [Gambas-user] Get the clicked shape in MapView Message-ID: After I add some points in MapView by calling AddPoint method, how to manipulate it, like clicking or draging? Is there any function returning the key associated with the clicked shape? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Thu Oct 4 20:19:27 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 4 Oct 2018 20:19:27 +0200 Subject: [Gambas-user] Get the clicked shape in MapView In-Reply-To: References: Message-ID: well i need to implement that :-)... in my first use i've not the need to move the item... but it's not so much work. Le jeu. 4 oct. 2018 ? 19:07, gen braga a ?crit : > After I add some points in MapView by calling AddPoint method, how to > manipulate it, like clicking or draging? > > Is there any function returning the key associated with the clicked shape? > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From wael79xy at yahoo.com Thu Oct 4 21:40:38 2018 From: wael79xy at yahoo.com (Wael M) Date: Thu, 4 Oct 2018 19:40:38 +0000 (UTC) Subject: [Gambas-user] How to Change Keyboard Layout References: <189848967.4718937.1538682038055.ref@mail.yahoo.com> Message-ID: <189848967.4718937.1538682038055@mail.yahoo.com> Thanks Gianluigi and thanks Lee you both put some solutions that seems brilliant but I got confused and couldn't get an appropriate code out of those is my fault I know but don't forget I'm new to Gambas so if you please could send me an example for a forum with two textboxes each one changes the keyboard language when it get focus, I will be profoundly appreciated thanks again for your valuable time -------------------------------------------- On Thu, 10/4/18, T Lee Davidson wrote: Subject: Re: [Gambas-user] How to Change Keyboard Layout To: user at lists.gambas-basic.org Date: Thursday, October 4, 2018, 3:08 PM If each box will use a specific layout, you could use a semaphore. [code] Public $IsEnglishLayout = True Public Sub EnglishTextbox1_GotFocus() ? If Not $IsEnglishLayout then Destkop.Sendkeys(blah) ? $IsEnglishLayout = True End Public Sub ArabicTextbox1_GotFocus() ? If $IsEnglishLayout then Destkop.Sendkeys(blah) ? $IsEnglishLayout = False End [/code] ___ Lee On 10/3/18 5:27 PM, Wael M via User wrote: > Thank you very much Gianluigi for your help, grazie :) > it worked and could detect my language but not the way I want > let me tell you my story :) > I came to linux from windows and I'm trying to translate an app I did with VB to the corresponding codes in Gambas. > I realized that Gambas is not the same as VB because Linux is not the same as windows > Gambas is just using the same names and following the main rules of VB > in my app I had a form that with three textboxes are filled in Arabic and three are filled in English > when I put the cursor in a textbox it detects the keyboard layout and change it to the desired language > I followed the code you gave but I want to put the event of this code to be when textbox got focus > here is the problem, when I put cursor in the desired textbox, it evokes the code and losing the focus the focus again the textbox making it evoking the same code again and so on > so what I really need is to detect the keyboard layout like reading it directly from linux > > again and again thank you very much for your patience and help ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From bagonergi at gmail.com Thu Oct 4 22:59:27 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 4 Oct 2018 22:59:27 +0200 Subject: [Gambas-user] How to Change Keyboard Layout In-Reply-To: <189848967.4718937.1538682038055@mail.yahoo.com> References: <189848967.4718937.1538682038055.ref@mail.yahoo.com> <189848967.4718937.1538682038055@mail.yahoo.com> Message-ID: With activated gb.desktop component: Private $bArabian As Boolean Public Sub Form_Open() Dim s As String Dim hTxt As TextBox hTxt = New TextBox(Me) hTxt.Foreground = Color.Transparent hTxt.SetFocus Me.Show Wait 0.1 ' This combination works with the Italian layout and not with the American one. ' You must find a combination suitable for Arabic. Desktop.SendKeys("{[Shift_L]6}") Wait 0.1 s = hTxt.Text hTxt.Delete If s = "&" Then $bArabian = True Print "Arabian keyboard" Else $bArabian = False Print "American keyboard" Endif Print $bArabian End Public Sub txtArabian_GotFocus() ' I don't remember your shortcut to switch keyboard layout, supposing Ctrl+K If $bArabian = False Then Desktop.SendKeys("{[Control_L]K}") $bArabian = True Endif End Public Sub txtAmerican_GotFocus() ' I don't remember your shortcut to switch keyboard layout, supposing Ctrl+K If $bArabian Then Desktop.SendKeys("{[Control_L]K}") $bArabian = False Endif End Public Sub Form_KeyPress() If Key.Code = Key["K"] And If Key.Control Then Print "SWITCH KEYBOARD" End If End Regards Gianluigi Il giorno gio 4 ott 2018 alle ore 21:41 Wael M via User < user at lists.gambas-basic.org> ha scritto: > Thanks Gianluigi and thanks Lee > you both put some solutions that seems brilliant but I got confused and > couldn't get an appropriate code out of those > is my fault I know but don't forget I'm new to Gambas > so if you please could send me an example for a forum with two textboxes > each one changes the keyboard language when it get focus, I will be > profoundly appreciated > > thanks again for your valuable time > > -------------------------------------------- > On Thu, 10/4/18, T Lee Davidson wrote: > > Subject: Re: [Gambas-user] How to Change Keyboard Layout > To: user at lists.gambas-basic.org > Date: Thursday, October 4, 2018, 3:08 PM > > If each box will use a specific > layout, you could use a semaphore. > > [code] > Public $IsEnglishLayout > = True > > Public Sub > EnglishTextbox1_GotFocus() > If Not > $IsEnglishLayout then Destkop.Sendkeys(blah) > $IsEnglishLayout = True > End > > Public Sub > ArabicTextbox1_GotFocus() > If > $IsEnglishLayout then Destkop.Sendkeys(blah) > $IsEnglishLayout = False > End > [/code] > > > ___ > Lee > > > On 10/3/18 5:27 PM, Wael M > via User wrote: > > Thank you very much > Gianluigi for your help, grazie :) > > it > worked and could detect my language but not the way I > want > > let me tell you my story :) > > I came to linux from windows and I'm > trying to translate an app I did with VB to the > corresponding codes in Gambas. > > I > realized that Gambas is not the same as VB because Linux is > not the same as windows > > Gambas is just > using the same names and following the main rules of VB > > in my app I had a form that with three > textboxes are filled in Arabic and three are filled in > English > > when I put the cursor in a > textbox it detects the keyboard layout and change it to the > desired language > > I followed the code > you gave but I want to put the event of this code to be when > textbox got focus > > here is the problem, > when I put cursor in the desired textbox, it evokes the code > and losing the focus the focus again the textbox making it > evoking the same code again and so on > > > so what I really need is to detect the keyboard layout like > reading it directly from linux > > > > again and again thank you very much for > your patience and help > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Oct 5 06:40:10 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 5 Oct 2018 06:40:10 +0200 Subject: [Gambas-user] How to Change Keyboard Layout In-Reply-To: References: <189848967.4718937.1538682038055.ref@mail.yahoo.com> <189848967.4718937.1538682038055@mail.yahoo.com> Message-ID: In fact as the switching d?pend of the desktop it os not easily portable to other desktop... it s a quite hard coded thing. You will need to add a config option to your program to allow final user to adapt it to its current desktop shortcut. Le jeu. 4 oct. 2018 23:00, Gianluigi a ?crit : > With activated gb.desktop component: > > Private $bArabian As Boolean > > Public Sub Form_Open() > > Dim s As String > Dim hTxt As TextBox > > hTxt = New TextBox(Me) > hTxt.Foreground = Color.Transparent > hTxt.SetFocus > Me.Show > Wait 0.1 > ' This combination works with the Italian layout and not with the > American one. > ' You must find a combination suitable for Arabic. > Desktop.SendKeys("{[Shift_L]6}") > Wait 0.1 > s = hTxt.Text > hTxt.Delete > If s = "&" Then > $bArabian = True > Print "Arabian keyboard" > Else > $bArabian = False > Print "American keyboard" > Endif > Print $bArabian > > End > > Public Sub txtArabian_GotFocus() > ' I don't remember your shortcut to switch keyboard layout, supposing > Ctrl+K > If $bArabian = False Then > Desktop.SendKeys("{[Control_L]K}") > $bArabian = True > Endif > > End > > Public Sub txtAmerican_GotFocus() > ' I don't remember your shortcut to switch keyboard layout, supposing > Ctrl+K > If $bArabian Then > Desktop.SendKeys("{[Control_L]K}") > $bArabian = False > Endif > > End > > Public Sub Form_KeyPress() > > If Key.Code = Key["K"] And If Key.Control Then > Print "SWITCH KEYBOARD" > End If > > End > > Regards > Gianluigi > > Il giorno gio 4 ott 2018 alle ore 21:41 Wael M via User < > user at lists.gambas-basic.org> ha scritto: > >> Thanks Gianluigi and thanks Lee >> you both put some solutions that seems brilliant but I got confused and >> couldn't get an appropriate code out of those >> is my fault I know but don't forget I'm new to Gambas >> so if you please could send me an example for a forum with two textboxes >> each one changes the keyboard language when it get focus, I will be >> profoundly appreciated >> >> thanks again for your valuable time >> >> -------------------------------------------- >> On Thu, 10/4/18, T Lee Davidson wrote: >> >> Subject: Re: [Gambas-user] How to Change Keyboard Layout >> To: user at lists.gambas-basic.org >> Date: Thursday, October 4, 2018, 3:08 PM >> >> If each box will use a specific >> layout, you could use a semaphore. >> >> [code] >> Public $IsEnglishLayout >> = True >> >> Public Sub >> EnglishTextbox1_GotFocus() >> If Not >> $IsEnglishLayout then Destkop.Sendkeys(blah) >> $IsEnglishLayout = True >> End >> >> Public Sub >> ArabicTextbox1_GotFocus() >> If >> $IsEnglishLayout then Destkop.Sendkeys(blah) >> $IsEnglishLayout = False >> End >> [/code] >> >> >> ___ >> Lee >> >> >> On 10/3/18 5:27 PM, Wael M >> via User wrote: >> > Thank you very much >> Gianluigi for your help, grazie :) >> > it >> worked and could detect my language but not the way I >> want >> > let me tell you my story :) >> > I came to linux from windows and I'm >> trying to translate an app I did with VB to the >> corresponding codes in Gambas. >> > I >> realized that Gambas is not the same as VB because Linux is >> not the same as windows >> > Gambas is just >> using the same names and following the main rules of VB >> > in my app I had a form that with three >> textboxes are filled in Arabic and three are filled in >> English >> > when I put the cursor in a >> textbox it detects the keyboard layout and change it to the >> desired language >> > I followed the code >> you gave but I want to put the event of this code to be when >> textbox got focus >> > here is the problem, >> when I put cursor in the desired textbox, it evokes the code >> and losing the focus the focus again the textbox making it >> evoking the same code again and so on >> > >> so what I really need is to detect the keyboard layout like >> reading it directly from linux >> > >> > again and again thank you very much for >> your patience and help >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Oct 5 15:04:07 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 5 Oct 2018 15:04:07 +0200 Subject: [Gambas-user] Unselect text of TextBox In-Reply-To: References: Message-ID: Hi Fabien, should I report it as a bug? Regards Gianluigi Il giorno gio 4 ott 2018 alle ore 17:19 Fabien Bodard ha scritto: > Unselect it on gotfocus Event > > Le jeu. 4 oct. 2018 17:14, Gianluigi a ?crit : > >> Does anyone know a way in QT to avoid that on Shift+Tab the text of the >> TextBox is selected? >> See attached test. >> >> Regards >> Gianluigi >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Oct 5 15:05:33 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 5 Oct 2018 15:05:33 +0200 Subject: [Gambas-user] How to Change Keyboard Layout In-Reply-To: References: <189848967.4718937.1538682038055.ref@mail.yahoo.com> <189848967.4718937.1538682038055@mail.yahoo.com> Message-ID: Hi Fabien, I confess to having bluffed, I do not know how to set up and calls with SendKeys: Super_L+Space, by default on Ubuntu Bionic to switch layout. ;-D Maybe we should ask the user of the program to set himself the keyboard shortcut for example on CTRL+ALT+K and some other (simple) similar alternative, what do you think? Regards Gianluigi Il giorno ven 5 ott 2018 alle ore 06:41 Fabien Bodard ha scritto: > In fact as the switching d?pend of the desktop it os not easily portable > to other desktop... it s a quite hard coded thing. You will need to add a > config option to your program to allow final user to adapt it to its > current desktop shortcut. > > Le jeu. 4 oct. 2018 23:00, Gianluigi a ?crit : > >> With activated gb.desktop component: >> >> Private $bArabian As Boolean >> >> Public Sub Form_Open() >> >> Dim s As String >> Dim hTxt As TextBox >> >> hTxt = New TextBox(Me) >> hTxt.Foreground = Color.Transparent >> hTxt.SetFocus >> Me.Show >> Wait 0.1 >> ' This combination works with the Italian layout and not with the >> American one. >> ' You must find a combination suitable for Arabic. >> Desktop.SendKeys("{[Shift_L]6}") >> Wait 0.1 >> s = hTxt.Text >> hTxt.Delete >> If s = "&" Then >> $bArabian = True >> Print "Arabian keyboard" >> Else >> $bArabian = False >> Print "American keyboard" >> Endif >> Print $bArabian >> >> End >> >> Public Sub txtArabian_GotFocus() >> ' I don't remember your shortcut to switch keyboard layout, supposing >> Ctrl+K >> If $bArabian = False Then >> Desktop.SendKeys("{[Control_L]K}") >> $bArabian = True >> Endif >> >> End >> >> Public Sub txtAmerican_GotFocus() >> ' I don't remember your shortcut to switch keyboard layout, supposing >> Ctrl+K >> If $bArabian Then >> Desktop.SendKeys("{[Control_L]K}") >> $bArabian = False >> Endif >> >> End >> >> Public Sub Form_KeyPress() >> >> If Key.Code = Key["K"] And If Key.Control Then >> Print "SWITCH KEYBOARD" >> End If >> >> End >> >> Regards >> Gianluigi >> >> Il giorno gio 4 ott 2018 alle ore 21:41 Wael M via User < >> user at lists.gambas-basic.org> ha scritto: >> >>> Thanks Gianluigi and thanks Lee >>> you both put some solutions that seems brilliant but I got confused and >>> couldn't get an appropriate code out of those >>> is my fault I know but don't forget I'm new to Gambas >>> so if you please could send me an example for a forum with two textboxes >>> each one changes the keyboard language when it get focus, I will be >>> profoundly appreciated >>> >>> thanks again for your valuable time >>> >>> -------------------------------------------- >>> On Thu, 10/4/18, T Lee Davidson wrote: >>> >>> Subject: Re: [Gambas-user] How to Change Keyboard Layout >>> To: user at lists.gambas-basic.org >>> Date: Thursday, October 4, 2018, 3:08 PM >>> >>> If each box will use a specific >>> layout, you could use a semaphore. >>> >>> [code] >>> Public $IsEnglishLayout >>> = True >>> >>> Public Sub >>> EnglishTextbox1_GotFocus() >>> If Not >>> $IsEnglishLayout then Destkop.Sendkeys(blah) >>> $IsEnglishLayout = True >>> End >>> >>> Public Sub >>> ArabicTextbox1_GotFocus() >>> If >>> $IsEnglishLayout then Destkop.Sendkeys(blah) >>> $IsEnglishLayout = False >>> End >>> [/code] >>> >>> >>> ___ >>> Lee >>> >>> >>> On 10/3/18 5:27 PM, Wael M >>> via User wrote: >>> > Thank you very much >>> Gianluigi for your help, grazie :) >>> > it >>> worked and could detect my language but not the way I >>> want >>> > let me tell you my story :) >>> > I came to linux from windows and I'm >>> trying to translate an app I did with VB to the >>> corresponding codes in Gambas. >>> > I >>> realized that Gambas is not the same as VB because Linux is >>> not the same as windows >>> > Gambas is just >>> using the same names and following the main rules of VB >>> > in my app I had a form that with three >>> textboxes are filled in Arabic and three are filled in >>> English >>> > when I put the cursor in a >>> textbox it detects the keyboard layout and change it to the >>> desired language >>> > I followed the code >>> you gave but I want to put the event of this code to be when >>> textbox got focus >>> > here is the problem, >>> when I put cursor in the desired textbox, it evokes the code >>> and losing the focus the focus again the textbox making it >>> evoking the same code again and so on >>> > >>> so what I really need is to detect the keyboard layout like >>> reading it directly from linux >>> > >>> > again and again thank you very much for >>> your patience and help >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Oct 5 17:58:30 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 5 Oct 2018 17:58:30 +0200 Subject: [Gambas-user] How to Change Keyboard Layout In-Reply-To: References: <189848967.4718937.1538682038055.ref@mail.yahoo.com> <189848967.4718937.1538682038055@mail.yahoo.com> Message-ID: I noticed that if we don't add Wait 0.1 *before* SendKeys in the textbox's gotfocus event, we get an error in case of tabs from empty textbox. It is also better to restore the current language on Form_Close event. Regards Gianluigi Il giorno gio 4 ott 2018 alle ore 22:59 Gianluigi ha scritto: > With activated gb.desktop component: > > Private $bArabian As Boolean > > Public Sub Form_Open() > > Dim s As String > Dim hTxt As TextBox > > hTxt = New TextBox(Me) > hTxt.Foreground = Color.Transparent > hTxt.SetFocus > Me.Show > Wait 0.1 > ' This combination works with the Italian layout and not with the > American one. > ' You must find a combination suitable for Arabic. > Desktop.SendKeys("{[Shift_L]6}") > Wait 0.1 > s = hTxt.Text > hTxt.Delete > If s = "&" Then > $bArabian = True > Print "Arabian keyboard" > Else > $bArabian = False > Print "American keyboard" > Endif > Print $bArabian > > End > > Public Sub txtArabian_GotFocus() > ' I don't remember your shortcut to switch keyboard layout, supposing > Ctrl+K > If $bArabian = False Then > Desktop.SendKeys("{[Control_L]K}") > $bArabian = True > Endif > > End > > Public Sub txtAmerican_GotFocus() > ' I don't remember your shortcut to switch keyboard layout, supposing > Ctrl+K > If $bArabian Then > Desktop.SendKeys("{[Control_L]K}") > $bArabian = False > Endif > > End > > Public Sub Form_KeyPress() > > If Key.Code = Key["K"] And If Key.Control Then > Print "SWITCH KEYBOARD" > End If > > End > > Regards > Gianluigi > > Il giorno gio 4 ott 2018 alle ore 21:41 Wael M via User < > user at lists.gambas-basic.org> ha scritto: > >> Thanks Gianluigi and thanks Lee >> you both put some solutions that seems brilliant but I got confused and >> couldn't get an appropriate code out of those >> is my fault I know but don't forget I'm new to Gambas >> so if you please could send me an example for a forum with two textboxes >> each one changes the keyboard language when it get focus, I will be >> profoundly appreciated >> >> thanks again for your valuable time >> >> -------------------------------------------- >> On Thu, 10/4/18, T Lee Davidson wrote: >> >> Subject: Re: [Gambas-user] How to Change Keyboard Layout >> To: user at lists.gambas-basic.org >> Date: Thursday, October 4, 2018, 3:08 PM >> >> If each box will use a specific >> layout, you could use a semaphore. >> >> [code] >> Public $IsEnglishLayout >> = True >> >> Public Sub >> EnglishTextbox1_GotFocus() >> If Not >> $IsEnglishLayout then Destkop.Sendkeys(blah) >> $IsEnglishLayout = True >> End >> >> Public Sub >> ArabicTextbox1_GotFocus() >> If >> $IsEnglishLayout then Destkop.Sendkeys(blah) >> $IsEnglishLayout = False >> End >> [/code] >> >> >> ___ >> Lee >> >> >> On 10/3/18 5:27 PM, Wael M >> via User wrote: >> > Thank you very much >> Gianluigi for your help, grazie :) >> > it >> worked and could detect my language but not the way I >> want >> > let me tell you my story :) >> > I came to linux from windows and I'm >> trying to translate an app I did with VB to the >> corresponding codes in Gambas. >> > I >> realized that Gambas is not the same as VB because Linux is >> not the same as windows >> > Gambas is just >> using the same names and following the main rules of VB >> > in my app I had a form that with three >> textboxes are filled in Arabic and three are filled in >> English >> > when I put the cursor in a >> textbox it detects the keyboard layout and change it to the >> desired language >> > I followed the code >> you gave but I want to put the event of this code to be when >> textbox got focus >> > here is the problem, >> when I put cursor in the desired textbox, it evokes the code >> and losing the focus the focus again the textbox making it >> evoking the same code again and so on >> > >> so what I really need is to detect the keyboard layout like >> reading it directly from linux >> > >> > again and again thank you very much for >> your patience and help >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Fri Oct 5 18:58:19 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 5 Oct 2018 19:58:19 +0300 Subject: [Gambas-user] How to Change Keyboard Layout In-Reply-To: References: <189848967.4718937.1538682038055.ref@mail.yahoo.com> <189848967.4718937.1538682038055@mail.yahoo.com> Message-ID: "Wait" should never be used in events. Instead you need to use "sleep". Jussi On Fri, Oct 5, 2018 at 6:59 PM Gianluigi wrote: > I noticed that if we don't add Wait 0.1 *before* SendKeys in the > textbox's gotfocus event, we get an error in case of tabs from empty > textbox. > It is also better to restore the current language on Form_Close event. > > Regards > Gianluigi > > Il giorno gio 4 ott 2018 alle ore 22:59 Gianluigi > ha scritto: > >> With activated gb.desktop component: >> >> Private $bArabian As Boolean >> >> Public Sub Form_Open() >> >> Dim s As String >> Dim hTxt As TextBox >> >> hTxt = New TextBox(Me) >> hTxt.Foreground = Color.Transparent >> hTxt.SetFocus >> Me.Show >> Wait 0.1 >> ' This combination works with the Italian layout and not with the >> American one. >> ' You must find a combination suitable for Arabic. >> Desktop.SendKeys("{[Shift_L]6}") >> Wait 0.1 >> s = hTxt.Text >> hTxt.Delete >> If s = "&" Then >> $bArabian = True >> Print "Arabian keyboard" >> Else >> $bArabian = False >> Print "American keyboard" >> Endif >> Print $bArabian >> >> End >> >> Public Sub txtArabian_GotFocus() >> ' I don't remember your shortcut to switch keyboard layout, supposing >> Ctrl+K >> If $bArabian = False Then >> Desktop.SendKeys("{[Control_L]K}") >> $bArabian = True >> Endif >> >> End >> >> Public Sub txtAmerican_GotFocus() >> ' I don't remember your shortcut to switch keyboard layout, supposing >> Ctrl+K >> If $bArabian Then >> Desktop.SendKeys("{[Control_L]K}") >> $bArabian = False >> Endif >> >> End >> >> Public Sub Form_KeyPress() >> >> If Key.Code = Key["K"] And If Key.Control Then >> Print "SWITCH KEYBOARD" >> End If >> >> End >> >> Regards >> Gianluigi >> >> Il giorno gio 4 ott 2018 alle ore 21:41 Wael M via User < >> user at lists.gambas-basic.org> ha scritto: >> >>> Thanks Gianluigi and thanks Lee >>> you both put some solutions that seems brilliant but I got confused and >>> couldn't get an appropriate code out of those >>> is my fault I know but don't forget I'm new to Gambas >>> so if you please could send me an example for a forum with two textboxes >>> each one changes the keyboard language when it get focus, I will be >>> profoundly appreciated >>> >>> thanks again for your valuable time >>> >>> -------------------------------------------- >>> On Thu, 10/4/18, T Lee Davidson wrote: >>> >>> Subject: Re: [Gambas-user] How to Change Keyboard Layout >>> To: user at lists.gambas-basic.org >>> Date: Thursday, October 4, 2018, 3:08 PM >>> >>> If each box will use a specific >>> layout, you could use a semaphore. >>> >>> [code] >>> Public $IsEnglishLayout >>> = True >>> >>> Public Sub >>> EnglishTextbox1_GotFocus() >>> If Not >>> $IsEnglishLayout then Destkop.Sendkeys(blah) >>> $IsEnglishLayout = True >>> End >>> >>> Public Sub >>> ArabicTextbox1_GotFocus() >>> If >>> $IsEnglishLayout then Destkop.Sendkeys(blah) >>> $IsEnglishLayout = False >>> End >>> [/code] >>> >>> >>> ___ >>> Lee >>> >>> >>> On 10/3/18 5:27 PM, Wael M >>> via User wrote: >>> > Thank you very much >>> Gianluigi for your help, grazie :) >>> > it >>> worked and could detect my language but not the way I >>> want >>> > let me tell you my story :) >>> > I came to linux from windows and I'm >>> trying to translate an app I did with VB to the >>> corresponding codes in Gambas. >>> > I >>> realized that Gambas is not the same as VB because Linux is >>> not the same as windows >>> > Gambas is just >>> using the same names and following the main rules of VB >>> > in my app I had a form that with three >>> textboxes are filled in Arabic and three are filled in >>> English >>> > when I put the cursor in a >>> textbox it detects the keyboard layout and change it to the >>> desired language >>> > I followed the code >>> you gave but I want to put the event of this code to be when >>> textbox got focus >>> > here is the problem, >>> when I put cursor in the desired textbox, it evokes the code >>> and losing the focus the focus again the textbox making it >>> evoking the same code again and so on >>> > >>> so what I really need is to detect the keyboard layout like >>> reading it directly from linux >>> > >>> > again and again thank you very much for >>> your patience and help >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Oct 5 19:04:34 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 5 Oct 2018 19:04:34 +0200 Subject: [Gambas-user] Unselect text of TextBox In-Reply-To: References: Message-ID: You can report for unselect that does not work at all for your case use this : Public Sub TextBox1_GotFocus() TextBox1.Select(0, 0) End Le ven. 5 oct. 2018 ? 15:05, Gianluigi a ?crit : > Hi Fabien, > should I report it as a bug? > > Regards > Gianluigi > > Il giorno gio 4 ott 2018 alle ore 17:19 Fabien Bodard > ha scritto: > >> Unselect it on gotfocus Event >> >> Le jeu. 4 oct. 2018 17:14, Gianluigi a ?crit : >> >>> Does anyone know a way in QT to avoid that on Shift+Tab the text of the >>> TextBox is selected? >>> See attached test. >>> >>> Regards >>> Gianluigi >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Oct 5 20:05:34 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 5 Oct 2018 20:05:34 +0200 Subject: [Gambas-user] How to Change Keyboard Layout In-Reply-To: References: <189848967.4718937.1538682038055.ref@mail.yahoo.com> <189848967.4718937.1538682038055@mail.yahoo.com> Message-ID: Hi Jussi, thank you it work well :-) Regards Gianluigi Il giorno ven 5 ott 2018 alle ore 18:59 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > "Wait" should never be used in events. Instead you need to use "sleep". > > Jussi > > On Fri, Oct 5, 2018 at 6:59 PM Gianluigi wrote: > >> I noticed that if we don't add Wait 0.1 *before* SendKeys in the >> textbox's gotfocus event, we get an error in case of tabs from empty >> textbox. >> It is also better to restore the current language on Form_Close event. >> >> Regards >> Gianluigi >> >> Il giorno gio 4 ott 2018 alle ore 22:59 Gianluigi >> ha scritto: >> >>> With activated gb.desktop component: >>> >>> Private $bArabian As Boolean >>> >>> Public Sub Form_Open() >>> >>> Dim s As String >>> Dim hTxt As TextBox >>> >>> hTxt = New TextBox(Me) >>> hTxt.Foreground = Color.Transparent >>> hTxt.SetFocus >>> Me.Show >>> Wait 0.1 >>> ' This combination works with the Italian layout and not with the >>> American one. >>> ' You must find a combination suitable for Arabic. >>> Desktop.SendKeys("{[Shift_L]6}") >>> Wait 0.1 >>> s = hTxt.Text >>> hTxt.Delete >>> If s = "&" Then >>> $bArabian = True >>> Print "Arabian keyboard" >>> Else >>> $bArabian = False >>> Print "American keyboard" >>> Endif >>> Print $bArabian >>> >>> End >>> >>> Public Sub txtArabian_GotFocus() >>> ' I don't remember your shortcut to switch keyboard layout, supposing >>> Ctrl+K >>> If $bArabian = False Then >>> Desktop.SendKeys("{[Control_L]K}") >>> $bArabian = True >>> Endif >>> >>> End >>> >>> Public Sub txtAmerican_GotFocus() >>> ' I don't remember your shortcut to switch keyboard layout, supposing >>> Ctrl+K >>> If $bArabian Then >>> Desktop.SendKeys("{[Control_L]K}") >>> $bArabian = False >>> Endif >>> >>> End >>> >>> Public Sub Form_KeyPress() >>> >>> If Key.Code = Key["K"] And If Key.Control Then >>> Print "SWITCH KEYBOARD" >>> End If >>> >>> End >>> >>> Regards >>> Gianluigi >>> >>> Il giorno gio 4 ott 2018 alle ore 21:41 Wael M via User < >>> user at lists.gambas-basic.org> ha scritto: >>> >>>> Thanks Gianluigi and thanks Lee >>>> you both put some solutions that seems brilliant but I got confused and >>>> couldn't get an appropriate code out of those >>>> is my fault I know but don't forget I'm new to Gambas >>>> so if you please could send me an example for a forum with two >>>> textboxes each one changes the keyboard language when it get focus, I will >>>> be profoundly appreciated >>>> >>>> thanks again for your valuable time >>>> >>>> -------------------------------------------- >>>> On Thu, 10/4/18, T Lee Davidson wrote: >>>> >>>> Subject: Re: [Gambas-user] How to Change Keyboard Layout >>>> To: user at lists.gambas-basic.org >>>> Date: Thursday, October 4, 2018, 3:08 PM >>>> >>>> If each box will use a specific >>>> layout, you could use a semaphore. >>>> >>>> [code] >>>> Public $IsEnglishLayout >>>> = True >>>> >>>> Public Sub >>>> EnglishTextbox1_GotFocus() >>>> If Not >>>> $IsEnglishLayout then Destkop.Sendkeys(blah) >>>> $IsEnglishLayout = True >>>> End >>>> >>>> Public Sub >>>> ArabicTextbox1_GotFocus() >>>> If >>>> $IsEnglishLayout then Destkop.Sendkeys(blah) >>>> $IsEnglishLayout = False >>>> End >>>> [/code] >>>> >>>> >>>> ___ >>>> Lee >>>> >>>> >>>> On 10/3/18 5:27 PM, Wael M >>>> via User wrote: >>>> > Thank you very much >>>> Gianluigi for your help, grazie :) >>>> > it >>>> worked and could detect my language but not the way I >>>> want >>>> > let me tell you my story :) >>>> > I came to linux from windows and I'm >>>> trying to translate an app I did with VB to the >>>> corresponding codes in Gambas. >>>> > I >>>> realized that Gambas is not the same as VB because Linux is >>>> not the same as windows >>>> > Gambas is just >>>> using the same names and following the main rules of VB >>>> > in my app I had a form that with three >>>> textboxes are filled in Arabic and three are filled in >>>> English >>>> > when I put the cursor in a >>>> textbox it detects the keyboard layout and change it to the >>>> desired language >>>> > I followed the code >>>> you gave but I want to put the event of this code to be when >>>> textbox got focus >>>> > here is the problem, >>>> when I put cursor in the desired textbox, it evokes the code >>>> and losing the focus the focus again the textbox making it >>>> evoking the same code again and so on >>>> > >>>> so what I really need is to detect the keyboard layout like >>>> reading it directly from linux >>>> > >>>> > again and again thank you very much for >>>> your patience and help >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Oct 5 20:07:47 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 5 Oct 2018 20:07:47 +0200 Subject: [Gambas-user] Unselect text of TextBox In-Reply-To: References: Message-ID: Hi Fabien, thank you I reported the bug, sorry the trick don't work :-( Regards Gianluigi Il giorno ven 5 ott 2018 alle ore 19:05 Fabien Bodard ha scritto: > You can report for unselect that does not work at all > > for your case use this : > > Public Sub TextBox1_GotFocus() > > TextBox1.Select(0, 0) > > End > > > Le ven. 5 oct. 2018 ? 15:05, Gianluigi a ?crit : > >> Hi Fabien, >> should I report it as a bug? >> >> Regards >> Gianluigi >> >> Il giorno gio 4 ott 2018 alle ore 17:19 Fabien Bodard < >> gambas.fr at gmail.com> ha scritto: >> >>> Unselect it on gotfocus Event >>> >>> Le jeu. 4 oct. 2018 17:14, Gianluigi a ?crit : >>> >>>> Does anyone know a way in QT to avoid that on Shift+Tab the text of the >>>> TextBox is selected? >>>> See attached test. >>>> >>>> Regards >>>> Gianluigi >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > -- > Fabien Bodard > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wael79xy at yahoo.com Sun Oct 7 01:19:03 2018 From: wael79xy at yahoo.com (Wael M) Date: Sat, 6 Oct 2018 23:19:03 +0000 (UTC) Subject: [Gambas-user] Search Between Dates References: <1208445169.2012020.1538867943067.ref@mail.yahoo.com> Message-ID: <1208445169.2012020.1538867943067@mail.yahoo.com> Hi all I have a SQLite database I need to search between two dates I'm using this code but doesn't work it gives no error but returns nothing TextBox1.Text = Format(DateBox1.Value, "yyyy/m/d") TextBox2.Text = Format(DateBox2.Value, "yyyy/m/d") $rs = ModMain.$con.Exec("SELECT * FROM Visits WHERE Vdate BETWEEN '" & TextBox1.Text & "' AND '" & TextBox2.Text & "'") any suggestions? WaeL From denisc at exemail.com.au Sun Oct 7 03:47:58 2018 From: denisc at exemail.com.au (Denis Crowther) Date: Sun, 7 Oct 2018 12:47:58 +1100 Subject: [Gambas-user] Search Between Dates In-Reply-To: <1208445169.2012020.1538867943067@mail.yahoo.com> References: <1208445169.2012020.1538867943067.ref@mail.yahoo.com> <1208445169.2012020.1538867943067@mail.yahoo.com> Message-ID: <7cbbddf6-509a-791c-108d-9a9743e2e571@exemail.com.au> Sql date format uses "-" and 2 digit month/days, so Format(DateBox1.Value, "yyyy-mm-dd") You should also take care with the possibility of 'times' creeping in. I would use; Select from visits where vdate >= date1 and < (date2 + 1 day) which will get any in the date range req'd no matter what time they may have. Regards Denis On 7/10/18 10:19 am, Wael M via User wrote: > Hi all > > I have a SQLite database > I need to search between two dates > I'm using this code but doesn't work > it gives no error but returns nothing > > TextBox1.Text = Format(DateBox1.Value, "yyyy/m/d") > TextBox2.Text = Format(DateBox2.Value, "yyyy/m/d") > > $rs = ModMain.$con.Exec("SELECT * FROM Visits WHERE Vdate BETWEEN '" & TextBox1.Text & "' AND '" & TextBox2.Text & "'") > > any suggestions? > > WaeL > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From wael79xy at yahoo.com Sun Oct 7 11:26:52 2018 From: wael79xy at yahoo.com (Wael M) Date: Sun, 7 Oct 2018 09:26:52 +0000 (UTC) Subject: [Gambas-user] Search Between Dates References: <588947836.5971453.1538904412035.ref@mail.yahoo.com> Message-ID: <588947836.5971453.1538904412035@mail.yahoo.com> I figured out what was wrong I put search criteria as "yyyy/m/d" but I had the date saved as "dd/mm/yyyy" so all I needed to do is to save the date in this format "yyyy/m/d" and it worked accurately thanks Denis but using "/" worked and gave me the same results as using "-" also date format as "yyyy/m/d" gave more accurate results than "yyyy/mm/dd" maybe sqlite is different that sql ... idk WaeL -------------------------------------------- On Sun, 10/7/18, Denis Crowther wrote: Subject: Re: [Gambas-user] Search Between Dates To: "Wael M via User" Date: Sunday, October 7, 2018, 4:47 AM Sql date format uses "-" and 2 digit month/days, so Format(DateBox1.Value, "yyyy-mm-dd") You should also take care with the possibility of 'times' creeping in. I would use; Select from visits where vdate >= date1 and < (date2 + 1 day) which will get any in the date range req'd no matter what time they may have. Regards Denis On 7/10/18 10:19 am, Wael M via User wrote: > Hi all > > I have a SQLite database > I need to search between two dates > I'm using this code but doesn't work > it gives no error but returns nothing > >? TextBox1.Text = Format(DateBox1.Value, "yyyy/m/d") >? ? TextBox2.Text = Format(DateBox2.Value, "yyyy/m/d") > >? ? $rs = ModMain.$con.Exec("SELECT * FROM Visits WHERE Vdate BETWEEN '" & TextBox1.Text & "' AND '" & TextBox2.Text & "'") >? ? > any suggestions? > > WaeL > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From g4mba5 at gmail.com Sun Oct 7 16:48:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 7 Oct 2018 16:48:43 +0200 Subject: [Gambas-user] Search Between Dates In-Reply-To: <1208445169.2012020.1538867943067@mail.yahoo.com> References: <1208445169.2012020.1538867943067.ref@mail.yahoo.com> <1208445169.2012020.1538867943067@mail.yahoo.com> Message-ID: <052c79c9-6a98-e359-b73c-c6cc338ad0d5@gmail.com> Le 07/10/2018 ? 01:19, Wael M via User a ?crit?: > Hi all > > I have a SQLite database > I need to search between two dates > I'm using this code but doesn't work > it gives no error but returns nothing > > TextBox1.Text = Format(DateBox1.Value, "yyyy/m/d") > TextBox2.Text = Format(DateBox2.Value, "yyyy/m/d") > > $rs = ModMain.$con.Exec("SELECT * FROM Visits WHERE Vdate BETWEEN '" & TextBox1.Text & "' AND '" & TextBox2.Text & "'") > > any suggestions? > > WaeL > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > You have to use the value substitution feature! In other words, you must not write: $rs = ModMain.$con.Exec("SELECT * FROM Visits WHERE Vdate BETWEEN '" & TextBox1.Text & "' AND '" & TextBox2.Text & "'") BUT: $rs = ModMain.$con.Exec("SELECT * FROM Visits WHERE Vdate BETWEEN &1 AND &2", Val(TextBox1.Text), Val(TextBox2.Text)) And you must ensure that the text inside the TextBox controls is a date following the representation of your locale, so that Val() actually returns a date. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sun Oct 7 20:09:28 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 7 Oct 2018 20:09:28 +0200 Subject: [Gambas-user] gb.qt5.webkit Cookies In-Reply-To: <20180823125602.4DBA920006BA@h08.hostsharing.net> References: <20180823125602.4DBA920006BA@h08.hostsharing.net> Message-ID: <79194beb-0639-9600-e793-e00a702f6501@gmail.com> Le 23/08/2018 ? 06:55, james at lixce.com a ?crit : > Has anyone been able to store and read cookies with qt5.webkit? > > I'm iterating through WebView1.Cookies and writting each field and a > key to a file when I close the form. > > Public Sub CookieJar_Store() Dim cFile As File Dim macaroon As > Cookie > > File.Save("/home/james/macaroons.txt", "") cFile = Open > "/home/james/macaroons.txt" For Write Output To cFile For Each > macaroon In WebView1.Cookies Print "Domain: " & macaroon.Domain Print > "Expire: " & macaroon.ExpirationDate Print "HttpON: " & > macaroon.HttpOnly Print "Name: " & macaroon.Name Print "Path: " & > macaroon.Path Print "Secure: " & macaroon.Secure Print "Session: " & > macaroon.Session Print "Value: " & macaroon.Value Next > > Output To Default Close cFile End > > Then when on open I read them back into an array, then copy that > array to WebView1.Cookies (kind ov verbose,trying to figure out waht > is happening Public Sub CookieJar_Fill() > > Dim cFile As File Dim sLine As String Dim macaroon As New Cookie Dim > myCookies As New Cookie[] > > If Not Exist("/home/james/macaroons.txt") Then Return > > cFile = Open "/home/james/macaroons.txt" For Input > > While Not Eof(cFile) > > Line Input #cFile, sLine 'sLine = Replace(sLine, "\n", "") If sLine > Begins "Domain: " Then macaroon.Domain = String.Right(sLine, -8) > Endif If sLine Begins "Expire: " Then macaroon.ExpirationDate = > String.Right(sLine, -8) Endif If sLine Begins "HttpON: " Then > macaroon.HttpOnly = String.Right(sLine, -8) Endif If sLine Begins > "Name: " Then macaroon.Name = String.Right(sLine, -6) Endif If sLine > Begins "Path: " Then macaroon.Path = String.Right(sLine, -6) Endif If > sLine Begins "Secure: " Then macaroon.Secure = String.Right(sLine, > -8) Endif If sLine Begins "Value: " Then macaroon.Value > =String.Right(sLine, -7) myCookies.Add(macaroon) Endif Wend > > Close cFile > > WebView1.Cookies = myCookies > > Print "Cookie Count: " & WebView1.Cookies.Count End > > When I Print the cookies to the console using a sub similar to the > CookieJar_Store, after loading, they look the same as the text file > (minus the keys of course). But Google, Amazon, NFCU refuse to > accept them, the sites act the same as if there are no cookies at > all. I don't think I need to store the session cookies but makes no > difference if I don't. > > I have looked at the WebBrowser example and Gentleman Borwser but > niether of them do anything with cookies. There is an old project > called Aredia that is written in Gambas but I cannot figure out what > they were doing with cookies. > > So, anyone figured out a way to save and restore cookies in > gb.qt5.webkit. > > Thanks, -j > Your code can't work: you create only one cookie object when loading your file, and your final cookie array contains several times the same cookie object. You must create one cookie object for each cookie stored in your text file. Maybe it won't change nothing, I don't know. But who can guess what QtWebkit does with an array of several times the same cookie object? Regards, -- Beno?t Minisini From g4mba5 at gmail.com Mon Oct 8 00:50:11 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Oct 2018 00:50:11 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> Message-ID: <47e09f45-5292-1adb-0a80-be456a7b8b9b@gmail.com> Le 03/10/2018 ? 14:25, Jussi Lahtinen a ?crit?: > There is the "null object" error, which happens only when JIT is > enabled. See the attachment. > > Jussi > It comes from the fact that a public variable is declared in a child class with the same name as in the parent class. It works by luck in the interpreter, but not in the JIT compiler. I think I should forbid that. Having two different variables with the same name is obviously a design error. It's different from overriding a method, a property or a constant, which is perfectly useful. -- Beno?t Minisini From jussi.lahtinen at gmail.com Mon Oct 8 01:32:29 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 8 Oct 2018 02:32:29 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: <47e09f45-5292-1adb-0a80-be456a7b8b9b@gmail.com> References: <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> <47e09f45-5292-1adb-0a80-be456a7b8b9b@gmail.com> Message-ID: OK, I thought it is effectively the same as overriding a property. I use it also in "real code", where I do not need setter & getters. And yes, I do know the OO philosophy about them, but I disagree. For me it's just huge amount of useless code. But yes, I think the compiler should raise error. Jussi On Mon, Oct 8, 2018 at 1:51 AM Beno?t Minisini wrote: > Le 03/10/2018 ? 14:25, Jussi Lahtinen a ?crit : > > There is the "null object" error, which happens only when JIT is > > enabled. See the attachment. > > > > Jussi > > > > It comes from the fact that a public variable is declared in a child > class with the same name as in the parent class. > > It works by luck in the interpreter, but not in the JIT compiler. > > I think I should forbid that. Having two different variables with the > same name is obviously a design error. It's different from overriding a > method, a property or a constant, which is perfectly useful. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Oct 8 01:42:45 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Oct 2018 01:42:45 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> <47e09f45-5292-1adb-0a80-be456a7b8b9b@gmail.com> Message-ID: Le 08/10/2018 ? 01:32, Jussi Lahtinen a ?crit?: > OK, I thought it is effectively the same as overriding a property. I use > it also in "real code", where I do not need setter & getters. And yes, I > do know the OO philosophy about them, but I disagree. For me it's just > huge amount of useless code. > But yes, I think the compiler should raise error. > > Jussi > I don't understand what you agree with and what you don't. Variable looks like properties from the outside, but they aren't. Properties are methods, code. Variables are storage. I don't see any need for overriding variables, except code obfuscation! -- Beno?t Minisini From jussi.lahtinen at gmail.com Mon Oct 8 01:52:50 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 8 Oct 2018 02:52:50 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: References: <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> <47e09f45-5292-1adb-0a80-be456a7b8b9b@gmail.com> Message-ID: > > Variable looks like properties from the outside, but they aren't. > Properties are methods, code. Variables are storage. I don't see any > need for overriding variables, except code obfuscation! > Exactly for the same reasons, than overriding properties, but with the advantage of not having unnecessary setter & getters. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Oct 8 06:23:49 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 8 Oct 2018 06:23:49 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> <47e09f45-5292-1adb-0a80-be456a7b8b9b@gmail.com> Message-ID: Le lun. 8 oct. 2018 01:54, Jussi Lahtinen a ?crit : > Variable looks like properties from the outside, but they aren't. >> Properties are methods, code. Variables are storage. I don't see any >> need for overriding variables, except code obfuscation! >> > > Exactly for the same reasons, than overriding properties, but with the > advantage of not having unnecessary setter & getters. > > > Jussi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Yes I'm agree... Benoit, Why not a syntactic sugar like PROPERTY MyProperty As String TO sVar ??? -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Mon Oct 8 08:58:59 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 8 Oct 2018 08:58:59 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> <47e09f45-5292-1adb-0a80-be456a7b8b9b@gmail.com> Message-ID: <20181008065859.GA7644@highrise.localdomain> On Mon, 08 Oct 2018, Fabien Bodard wrote: > Le lun. 8 oct. 2018 01:54, Jussi Lahtinen a > ?crit : > > > Variable looks like properties from the outside, but they aren't. > >> Properties are methods, code. Variables are storage. I don't see any > >> need for overriding variables, except code obfuscation! > >> > > > > Exactly for the same reasons, than overriding properties, but with the > > advantage of not having unnecessary setter & getters. > > > > > > Jussi > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > Yes I'm agree... > > Benoit, > > Why not a syntactic sugar like > > PROPERTY MyProperty As String TO sVar > > ??? That one (or something close to it) has been proposed and "accepted" in the bugtracker already [1]. It isn't implemented yet. Regards, Tobi [1] https://lists.gambas-basic.org/pipermail/bugtracker/2018-July/000180.html -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Mon Oct 8 09:22:59 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Oct 2018 09:22:59 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: <20181008065859.GA7644@highrise.localdomain> References: <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> <47e09f45-5292-1adb-0a80-be456a7b8b9b@gmail.com> <20181008065859.GA7644@highrise.localdomain> Message-ID: <19776c50-77f4-406c-f01b-1294ea14393b@gmail.com> Le 08/10/2018 ? 08:58, Tobias Boege a ?crit?: > On Mon, 08 Oct 2018, Fabien Bodard wrote: >> >> Yes I'm agree... >> >> Benoit, >> >> Why not a syntactic sugar like >> >> PROPERTY MyProperty As String TO sVar >> >> ??? > > That one (or something close to it) has been proposed and "accepted" in the > bugtracker already [1]. It isn't implemented yet. > > Regards, > Tobi > > [1] https://lists.gambas-basic.org/pipermail/bugtracker/2018-July/000180.html > ...but all that is not related to the discussion with Jussi: whether overriding public variables should be allowed or not. I think this is useless, that they should not, and it will help the JIT compiler. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Mon Oct 8 15:35:42 2018 From: adamnt42 at gmail.com (Me) Date: Tue, 9 Oct 2018 00:05:42 +1030 Subject: [Gambas-user] JIT crash In-Reply-To: <19776c50-77f4-406c-f01b-1294ea14393b@gmail.com> References: <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> <47e09f45-5292-1adb-0a80-be456a7b8b9b@gmail.com> <20181008065859.GA7644@highrise.localdomain> <19776c50-77f4-406c-f01b-1294ea14393b@gmail.com> Message-ID: <20181009000542.fa4e84d3403437270c5488d3@gmail.com> On Mon, 8 Oct 2018 09:22:59 +0200 Beno?t Minisini wrote: > Le 08/10/2018 ? 08:58, Tobias Boege a ?crit?: > > On Mon, 08 Oct 2018, Fabien Bodard wrote: > >> > >> Yes I'm agree... > >> > >> Benoit, > >> > >> Why not a syntactic sugar like > >> > >> PROPERTY MyProperty As String TO sVar > >> > >> ??? > > > > That one (or something close to it) has been proposed and "accepted" in the > > bugtracker already [1]. It isn't implemented yet. > > > > Regards, > > Tobi > > > > [1] https://lists.gambas-basic.org/pipermail/bugtracker/2018-July/000180.html > > > > ...but all that is not related to the discussion with Jussi: whether > overriding public variables should be allowed or not. I think this is > useless, that they should not, and it will help the JIT compiler. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Forgive me for wading in on this, but Public variables are a curse. They will come back and bite you when you least expect it. There is no control. None. It's a bit like leaving your wallet on a bar thinking "Oh, no-one will touch that." Yes, having to declare a simple property that only exposes a state variable is so much of a pain. Oh, it takes an inordinate amount of keystrokes, probably about 20 or so. But, consider the amount of effort that goes into finding the bit of code that someone else wrote that used a particular value of that variable "because it was handy". Enough. Yes dont let them be overridden, better still ban the damn things in any class that has the magic word "Export" in it. Trust me on this. I know. Once upon a time I thought that an exposed boolean was safe. Ha! We had a young guy working for us that found a "magic" way to use specific negative values as flags with the obvious later disasters. The only thing that should ever be exposed unprotected is a constant. (I don't know whether it is possible to override a constant? And I'm not about to try. .... AAAARRGH Override a constant with a public variable??? The mind boggles.) Anyway. Sorry for butting in. cheers b -- adamant42 at gmail.com From genbraga1 at gmail.com Mon Oct 8 15:41:37 2018 From: genbraga1 at gmail.com (gen braga) Date: Mon, 8 Oct 2018 10:41:37 -0300 Subject: [Gambas-user] Get the clicked shape in MapView Message-ID: Fabien, would be great, and would I appreciate a lot! Greetings, well i need to implement that :-)... in my first use i've not the need to move the item... but it's not so much work. Le jeu. 4 oct. 2018 ? 19:07, gen braga a ?crit : > After I add some points in MapView by calling AddPoint method, how to > manipulate it, like clicking or draging? > > Is there any function returning the key associated with the clicked shape? > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Oct 8 15:57:02 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 8 Oct 2018 16:57:02 +0300 Subject: [Gambas-user] JIT crash In-Reply-To: <20181009000542.fa4e84d3403437270c5488d3@gmail.com> References: <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> <47e09f45-5292-1adb-0a80-be456a7b8b9b@gmail.com> <20181008065859.GA7644@highrise.localdomain> <19776c50-77f4-406c-f01b-1294ea14393b@gmail.com> <20181009000542.fa4e84d3403437270c5488d3@gmail.com> Message-ID: No intention to offend, but that is just silly. C doesn't have properties, yet "the curse" is absent. You are essentially also bashing structures, etc. OO is great, functional programming is great, procedural programing is great, etc, etc, but if you force user to use only one of them or claim any one of them is superior, you are talking about religion, not practical programming. They all have their strong and weak sides, and you should use them accordingly. Jussi On Mon, Oct 8, 2018 at 4:36 PM Me wrote: > On Mon, 8 Oct 2018 09:22:59 +0200 > Beno?t Minisini wrote: > > > Le 08/10/2018 ? 08:58, Tobias Boege a ?crit : > > > On Mon, 08 Oct 2018, Fabien Bodard wrote: > > >> > > >> Yes I'm agree... > > >> > > >> Benoit, > > >> > > >> Why not a syntactic sugar like > > >> > > >> PROPERTY MyProperty As String TO sVar > > >> > > >> ??? > > > > > > That one (or something close to it) has been proposed and "accepted" > in the > > > bugtracker already [1]. It isn't implemented yet. > > > > > > Regards, > > > Tobi > > > > > > [1] > https://lists.gambas-basic.org/pipermail/bugtracker/2018-July/000180.html > > > > > > > ...but all that is not related to the discussion with Jussi: whether > > overriding public variables should be allowed or not. I think this is > > useless, that they should not, and it will help the JIT compiler. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Forgive me for wading in on this, but > > Public variables are a curse. They will come back and bite you when you > least expect it. > There is no control. None. It's a bit like leaving your wallet on a bar > thinking "Oh, no-one > will touch that." > Yes, having to declare a simple property that only exposes a state > variable is so much of a > pain. Oh, it takes an inordinate amount of keystrokes, probably about 20 > or so. But, consider > the amount of effort that goes into finding the bit of code that someone > else wrote that used > a particular value of that variable "because it was handy". > > Enough. Yes dont let them be overridden, better still ban the damn things > in any class that has the > magic word "Export" in it. > > Trust me on this. I know. Once upon a time I thought that an exposed > boolean was safe. Ha! We > had a young guy working for us that found a "magic" way to use specific > negative values as flags > with the obvious later disasters. > > The only thing that should ever be exposed unprotected is a constant. > (I don't know whether it is possible to override a constant? And I'm not > about to try. .... > AAAARRGH Override a constant with a public variable??? The mind boggles.) > > Anyway. Sorry for butting in. > > cheers > b > > -- > adamant42 at gmail.com > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Oct 8 15:59:39 2018 From: adamnt42 at gmail.com (Me) Date: Tue, 9 Oct 2018 00:29:39 +1030 Subject: [Gambas-user] Mousewheel seems to have a flat tyre? Message-ID: <20181009002939.17975b1fa695f69d1bf0aa80@gmail.com> (The previous was not why I cam here. This is) I don't know whether I've done this somehow but I seem to have too many (git) branches on our main dev machine. The outcome of which is that the mousewheel doesn't work in "some" controls anymore. "Some" is still somewhat unclear but it seems to include comboboxes and possibly anything that has a scrollbar. I note that there has been some recent commits mentioning mousewheels, but I can't see what they were aimed at. So. Does anyone else see this type of behaviour (or lack thereof) or have I screwed up our local copy somehow? The current origin/master (6b7a879232...) is about 5 days old, there are two local branches (for our own nefarious reasons) the active one matches that fetch, the other one is some weeks old. I am "sure" that what is installed is the more recent one but I cant seem to work out which is actually active. Anyway. regards b -- Me From adamnt42 at gmail.com Mon Oct 8 16:05:17 2018 From: adamnt42 at gmail.com (Me) Date: Tue, 9 Oct 2018 00:35:17 +1030 Subject: [Gambas-user] JIT crash In-Reply-To: References: <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> <47e09f45-5292-1adb-0a80-be456a7b8b9b@gmail.com> <20181008065859.GA7644@highrise.localdomain> <19776c50-77f4-406c-f01b-1294ea14393b@gmail.com> <20181009000542.fa4e84d3403437270c5488d3@gmail.com> Message-ID: <20181009003517.ccadbf41bf03b4a72320c06a@gmail.com> On Mon, 8 Oct 2018 16:57:02 +0300 Jussi Lahtinen wrote: > No intention to offend, but that is just silly. C doesn't have properties, > yet "the curse" is absent. You are essentially also bashing structures, etc. > OO is great, functional programming is great, procedural programing is > great, etc, etc, but if you force user to use only one of them or claim any > one of them is superior, you are talking about religion, not practical > programming. > They all have their strong and weak sides, and you should use them > accordingly. > > > Jussi > > Yes, you are right. It is religion. Sorry. :-) > > > > On Mon, Oct 8, 2018 at 4:36 PM Me wrote: > > > On Mon, 8 Oct 2018 09:22:59 +0200 > > Beno?t Minisini wrote: > > > > > Le 08/10/2018 ? 08:58, Tobias Boege a ?crit : > > > > On Mon, 08 Oct 2018, Fabien Bodard wrote: > > > >> > > > >> Yes I'm agree... > > > >> > > > >> Benoit, > > > >> > > > >> Why not a syntactic sugar like > > > >> > > > >> PROPERTY MyProperty As String TO sVar > > > >> > > > >> ??? > > > > > > > > That one (or something close to it) has been proposed and "accepted" > > in the > > > > bugtracker already [1]. It isn't implemented yet. > > > > > > > > Regards, > > > > Tobi > > > > > > > > [1] > > https://lists.gambas-basic.org/pipermail/bugtracker/2018-July/000180.html > > > > > > > > > > ...but all that is not related to the discussion with Jussi: whether > > > overriding public variables should be allowed or not. I think this is > > > useless, that they should not, and it will help the JIT compiler. > > > > > > Regards, > > > > > > -- > > > Beno?t Minisini > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > Forgive me for wading in on this, but > > > > Public variables are a curse. They will come back and bite you when you > > least expect it. > > There is no control. None. It's a bit like leaving your wallet on a bar > > thinking "Oh, no-one > > will touch that." > > Yes, having to declare a simple property that only exposes a state > > variable is so much of a > > pain. Oh, it takes an inordinate amount of keystrokes, probably about 20 > > or so. But, consider > > the amount of effort that goes into finding the bit of code that someone > > else wrote that used > > a particular value of that variable "because it was handy". > > > > Enough. Yes dont let them be overridden, better still ban the damn things > > in any class that has the > > magic word "Export" in it. > > > > Trust me on this. I know. Once upon a time I thought that an exposed > > boolean was safe. Ha! We > > had a young guy working for us that found a "magic" way to use specific > > negative values as flags > > with the obvious later disasters. > > > > The only thing that should ever be exposed unprotected is a constant. > > (I don't know whether it is possible to override a constant? And I'm not > > about to try. .... > > AAAARRGH Override a constant with a public variable??? The mind boggles.) > > > > Anyway. Sorry for butting in. > > > > cheers > > b > > > > -- > > adamant42 at gmail.com > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -- Me From g4mba5 at gmail.com Mon Oct 8 16:25:01 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Oct 2018 16:25:01 +0200 Subject: [Gambas-user] Mousewheel seems to have a flat tyre? In-Reply-To: <20181009002939.17975b1fa695f69d1bf0aa80@gmail.com> References: <20181009002939.17975b1fa695f69d1bf0aa80@gmail.com> Message-ID: Le 08/10/2018 ? 15:59, Me a ?crit?: > (The previous was not why I cam here. This is) > > I don't know whether I've done this somehow but I seem to have too many (git) branches > on our main dev machine. The outcome of which is that the mousewheel doesn't work in > "some" controls anymore. > > "Some" is still somewhat unclear but it seems to include comboboxes and possibly anything > that has a scrollbar. > > I note that there has been some recent commits mentioning mousewheels, but I can't see > what they were aimed at. > > So. > > Does anyone else see this type of behaviour (or lack thereof) or have I screwed up our local > copy somehow? The current origin/master (6b7a879232...) is about 5 days old, there are two > local branches (for our own nefarious reasons) the active one matches that fetch, the other > one is some weeks old. I am "sure" that what is installed is the more recent one but I cant seem > to work out which is actually active. > > Anyway. > > regards > b > Mousewheel events on QT still does not work anymore for some controls. I identified some. If you can identify exactly some of them, just tell me, it will help. -- Beno?t Minisini From g4mba5 at gmail.com Mon Oct 8 16:43:14 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Oct 2018 16:43:14 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <55f0285f-05d4-94bc-2be3-36a6f445f101@gmail.com> <229aed71-d3d6-cb54-17b4-0ebdb0203cf8@gmail.com> <3d4139f5-a553-0409-d43f-6218711264a8@gmail.com> Message-ID: <4f615256-bf17-a6a0-98c2-35c4d876ca23@gmail.com> Le 03/10/2018 ? 14:25, Jussi Lahtinen a ?crit?: > There is the "null object" error, which happens only when JIT is > enabled. See the attachment. > > Jussi > I create a new thread, this one is too deep for my screen. :-) -- Beno?t Minisini From g4mba5 at gmail.com Mon Oct 8 16:44:05 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Oct 2018 16:44:05 +0200 Subject: [Gambas-user] JIT compiler debugging Message-ID: Le 03/10/2018 ? 14:25, Jussi Lahtinen a ?crit : > There is the "null object" error, which happens only when JIT is > enabled. See the attachment. > > Jussi > This should be fixed in the last commit. -- Beno?t Minisini From adamnt42 at gmail.com Mon Oct 8 23:51:28 2018 From: adamnt42 at gmail.com (Me) Date: Tue, 9 Oct 2018 08:21:28 +1030 Subject: [Gambas-user] Mousewheel seems to have a flat tyre? In-Reply-To: References: <20181009002939.17975b1fa695f69d1bf0aa80@gmail.com> Message-ID: <20181009082128.40d494a2ddf8b4c45c38da99@gmail.com> On Mon, 8 Oct 2018 16:25:01 +0200 Beno?t Minisini wrote: > Le 08/10/2018 ? 15:59, Me a ?crit?: > > (The previous was not why I cam here. This is) > > > > I don't know whether I've done this somehow but I seem to have too many (git) branches > > on our main dev machine. The outcome of which is that the mousewheel doesn't work in > > "some" controls anymore. > > > > "Some" is still somewhat unclear but it seems to include comboboxes and possibly anything > > that has a scrollbar. > > > > I note that there has been some recent commits mentioning mousewheels, but I can't see > > what they were aimed at. > > > > So. > > > > Does anyone else see this type of behaviour (or lack thereof) or have I screwed up our local > > copy somehow? The current origin/master (6b7a879232...) is about 5 days old, there are two > > local branches (for our own nefarious reasons) the active one matches that fetch, the other > > one is some weeks old. I am "sure" that what is installed is the more recent one but I cant seem > > to work out which is actually active. > > > > Anyway. > > > > regards > > b > > > > Mousewheel events on QT still does not work anymore for some controls. I > identified some. If you can identify exactly some of them, just tell me, > it will help. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Three that don't work here are: TabStrip ComboBox WebView regards b -- Me From g4mba5 at gmail.com Mon Oct 8 23:54:25 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Oct 2018 23:54:25 +0200 Subject: [Gambas-user] Mousewheel seems to have a flat tyre? In-Reply-To: <20181009082128.40d494a2ddf8b4c45c38da99@gmail.com> References: <20181009002939.17975b1fa695f69d1bf0aa80@gmail.com> <20181009082128.40d494a2ddf8b4c45c38da99@gmail.com> Message-ID: <200e179c-b5b5-783e-863f-8116d13b9139@gmail.com> Le 08/10/2018 ? 23:51, Me a ?crit?: > > Three that don't work here are: > TabStrip > ComboBox > WebView > > regards > b > ComboBox and WebView work here, so I guess you don't run the last commit. -- Beno?t Minisini From jussi.lahtinen at gmail.com Tue Oct 9 01:11:40 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 9 Oct 2018 02:11:40 +0300 Subject: [Gambas-user] JIT compiler debugging In-Reply-To: References: Message-ID: I don't think this "PROPERTY MyProperty As String TO sVar" is unrelated to the issue. I use public variables exactly as I would use properties, but without need of setters & getters, where they really aren't needed. And this is the reason: First the code was this one line: Public y As New TestClass1 Now this is the functionally equivalent code: Property y As TestClass1 Private $y As New TestClass1 Private Function y_Read() As TestClass1 Return $y End Private Sub y_Write(Value As TestClass1) $y = Value End Things didn't get simpler, less bug prone, efficient, etc, only much longer. You really don't see any use for the shorter option? Even as the syntactic sugar? Jussi On Mon, Oct 8, 2018 at 5:45 PM Beno?t Minisini wrote: > Le 03/10/2018 ? 14:25, Jussi Lahtinen a ?crit : > > There is the "null object" error, which happens only when JIT is > > enabled. See the attachment. > > > > Jussi > > > > This should be fixed in the last commit. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Oct 9 01:41:29 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 9 Oct 2018 01:41:29 +0200 Subject: [Gambas-user] JIT compiler debugging In-Reply-To: References: Message-ID: <87f3e706-e2de-c471-3e6b-96b2a6b0832c@gmail.com> Le 09/10/2018 ? 01:11, Jussi Lahtinen a ?crit?: > I don't think this "PROPERTY MyProperty As String TO sVar" is unrelated > to the issue. I use public variables exactly as I would use properties, > but without need of setters & getters, where they really aren't needed. > And this is the reason: > > First the code was this one line: > Public y As New TestClass1 > > Now this is the functionally equivalent code: > Property y As TestClass1 > Private $y As New TestClass1 > > Private Function y_Read() As TestClass1 > ? Return $y > End > > Private Sub y_Write(Value As TestClass1) > ? $y = Value > End > > Things didn't get simpler, less bug prone, efficient, etc, only much > longer. You really don't see any use for the shorter option? Even as the > syntactic sugar? > > > Jussi > A symbol can only be overriden with a symbol of the same kind in a child class. And if you use a symbol Y as a public variable in a class, then I don't see any reason why overriding it by another public variable would be useful. I don't see any relation with having a syntax to quickly declare a property and the private variable it is associated with. -- Beno?t Minisini From jussi.lahtinen at gmail.com Tue Oct 9 01:55:50 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 9 Oct 2018 02:55:50 +0300 Subject: [Gambas-user] JIT compiler debugging In-Reply-To: <87f3e706-e2de-c471-3e6b-96b2a6b0832c@gmail.com> References: <87f3e706-e2de-c471-3e6b-96b2a6b0832c@gmail.com> Message-ID: > > A symbol can only be overriden with a symbol of the same kind in a child > class. > What I did used to work. That is fact. Thus the whole bug report relating to JIT (where it did not work). > And if you use a symbol Y as a public variable in a class, then I don't > see any reason why overriding it by another public variable would be > useful. > To avoid writing eight lines instead of one line. Is that not useful? If not, why? I don't see any relation with having a syntax to quickly declare a > property and the private variable it is associated with. > Because they are *functionally* equivalent to how things were before forbidding overriding public variables. "Public y As Something" and as override "Public y As SomethingElse". --> "PROPERTY y As String TO Something" and as override "PROPERTY y As String TO SomethingElse" Thus no need to write eight lines! Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Oct 9 01:59:02 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 9 Oct 2018 02:59:02 +0300 Subject: [Gambas-user] JIT compiler debugging In-Reply-To: References: <87f3e706-e2de-c471-3e6b-96b2a6b0832c@gmail.com> Message-ID: Sorry, I meant of course: "PROPERTY y As Something TO $Something" and as override "PROPERTY y As SomethingElse TO $SomethingElse" or so... Jussi On Tue, Oct 9, 2018 at 2:55 AM Jussi Lahtinen wrote: > A symbol can only be overriden with a symbol of the same kind in a child >> class. >> > > What I did used to work. That is fact. Thus the whole bug report relating > to JIT (where it did not work). > > > >> And if you use a symbol Y as a public variable in a class, then I don't >> see any reason why overriding it by another public variable would be >> useful. >> > > To avoid writing eight lines instead of one line. Is that not useful? If > not, why? > > > I don't see any relation with having a syntax to quickly declare a >> property and the private variable it is associated with. >> > > Because they are *functionally* equivalent to how things were before > forbidding overriding public variables. > > "Public y As Something" and as override "Public y As SomethingElse". > > --> > > "PROPERTY y As String TO Something" and as override "PROPERTY y As > String TO SomethingElse" > > Thus no need to write eight lines! > > > Jussi > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Oct 9 03:11:46 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 9 Oct 2018 04:11:46 +0300 Subject: [Gambas-user] JIT compiler debugging In-Reply-To: References: <87f3e706-e2de-c471-3e6b-96b2a6b0832c@gmail.com> Message-ID: I think this all boils down to typesafety. If in inheritance tree there is exception, where object uses example boolean instead of integer (to describe something very similar), then I prefer to override the integer, instead of keeping the integer and giving it 0 / 1 values. However, when I look at my code there are only very few instances where I actually use this (I have no clue about possible OO standards) and it can be written other way... So at the end, not a big deal for me as I initially thought. For consistency I think properties shouldn't be allowed to override like this: Property y As Object --> Property y As TestClass1 Jussi On Tue, Oct 9, 2018 at 2:59 AM Jussi Lahtinen wrote: > Sorry, I meant of course: > > "PROPERTY y As Something TO $Something" and as override "PROPERTY y As > SomethingElse TO $SomethingElse" > or so... > > > Jussi > > On Tue, Oct 9, 2018 at 2:55 AM Jussi Lahtinen > wrote: > >> A symbol can only be overriden with a symbol of the same kind in a child >>> class. >>> >> >> What I did used to work. That is fact. Thus the whole bug report relating >> to JIT (where it did not work). >> >> >> >>> And if you use a symbol Y as a public variable in a class, then I don't >>> see any reason why overriding it by another public variable would be >>> useful. >>> >> >> To avoid writing eight lines instead of one line. Is that not useful? If >> not, why? >> >> >> I don't see any relation with having a syntax to quickly declare a >>> property and the private variable it is associated with. >>> >> >> Because they are *functionally* equivalent to how things were before >> forbidding overriding public variables. >> >> "Public y As Something" and as override "Public y As SomethingElse". >> >> --> >> >> "PROPERTY y As String TO Something" and as override "PROPERTY y As >> String TO SomethingElse" >> >> Thus no need to write eight lines! >> >> >> Jussi >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Oct 9 19:36:15 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 9 Oct 2018 19:36:15 +0200 Subject: [Gambas-user] SpinBox malfunctioning Message-ID: Hi Benoit, not being possible to add new attachments to this post [0] I do so here. Specifying that I attach the code as it was originally with different only the minimum value of SpinBoxes (now at zero). As you can see if the spin works (previous code) does not work if you type from the keyboard. If the typing works (this code), the spin doesn't work. I admit that mine will not be a particularly smart code but before the last changes it worked well. I invite you to review the new of the SpinBoxes so that the functioning is compatible with the codes already written. Thank you Gianluigi [0] http://gambaswiki.org/bugtracker/edit?object=BUG.1432&from=L21haW4- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SpinBox-test-2-0.0.1.tar.gz Type: application/gzip Size: 13320 bytes Desc: not available URL: From bagonergi at gmail.com Tue Oct 9 22:42:15 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 9 Oct 2018 22:42:15 +0200 Subject: [Gambas-user] SpinBox malfunctioning In-Reply-To: References: Message-ID: Hi Benoit, now works as before thank you very much. Regards Gianluigi Il giorno mar 9 ott 2018 alle ore 19:36 Gianluigi ha scritto: > Hi Benoit, > not being possible to add new attachments to this post [0] I do so here. > Specifying that I attach the code as it was originally with different only > the minimum value of SpinBoxes (now at zero). > As you can see if the spin works (previous code) does not work if you type > from the keyboard. > If the typing works (this code), the spin doesn't work. > I admit that mine will not be a particularly smart code but before the > last changes it worked well. > I invite you to review the new of the SpinBoxes so that the functioning is > compatible with the codes already written. > > Thank you > Gianluigi > > [0] http://gambaswiki.org/bugtracker/edit?object=BUG.1432&from=L21haW4- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shordi at gmail.com Wed Oct 10 19:08:16 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 10 Oct 2018 19:08:16 +0200 Subject: [Gambas-user] desktop.open warning Message-ID: Hi, With Linux Mint 19 when using Desktop.Open(path), this warning appears on console: "This tool has been deprecated, use 'gio open' instead. See 'gio help open' for more info." Who send the message, gb.Desktop component or Linux Mint? I have a lot of Linux Mint machines from version 17.2 to 19 running programs with desktop.open() commands in... I don't like see how they stop from working. Best Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Oct 10 21:04:22 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 10 Oct 2018 22:04:22 +0300 Subject: [Gambas-user] desktop.open warning In-Reply-To: References: Message-ID: It's form Mint, the component uses "xdg-open". Perhaps the Desktop component needs bit updating... What exactly you are trying to open when you get that warning? I don't see that warning in Mint 19. Jussi On Wed, Oct 10, 2018 at 8:09 PM Jorge Carri?n wrote: > Hi, > > With Linux Mint 19 when using Desktop.Open(path), this warning appears on > console: > > "This tool has been deprecated, use 'gio open' instead. > See 'gio help open' for more info." > > Who send the message, gb.Desktop component or Linux Mint? > > I have a lot of Linux Mint machines from version 17.2 to 19 running > programs with desktop.open() commands in... I don't like see how they stop > from working. > > Best Regards > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Wed Oct 10 21:09:25 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 10 Oct 2018 21:09:25 +0200 Subject: [Gambas-user] desktop.open warning In-Reply-To: References: Message-ID: https://github.com/github/hub/issues/1473 Le mer. 10 oct. 2018 21:05, Jussi Lahtinen a ?crit : > It's form Mint, the component uses "xdg-open". Perhaps the Desktop > component needs bit updating... What exactly you are trying to open when > you get that warning? > I don't see that warning in Mint 19. > > Jussi > > On Wed, Oct 10, 2018 at 8:09 PM Jorge Carri?n wrote: > >> Hi, >> >> With Linux Mint 19 when using Desktop.Open(path), this warning appears on >> console: >> >> "This tool has been deprecated, use 'gio open' instead. >> See 'gio help open' for more info." >> >> Who send the message, gb.Desktop component or Linux Mint? >> >> I have a lot of Linux Mint machines from version 17.2 to 19 running >> programs with desktop.open() commands in... I don't like see how they stop >> from working. >> >> Best Regards >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Wed Oct 10 20:19:36 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Wed, 10 Oct 2018 20:19:36 +0200 Subject: [Gambas-user] desktop.open warning In-Reply-To: References: Message-ID: Hello, I use Linux Mint 19 and I confirm the warning. Il 10.10.2018 19:08 Jorge Carri?n ha scritto: > Hi, > With Linux Mint 19 when using Desktop.Open(path), this warning appears on console: > "This tool has been deprecated, use 'gio open' instead. > See 'gio help open' for more info." > Who send the message, gb.Desktop component or Linux Mint? > I have a lot of Linux Mint machines from version 17.2 to 19 running programs with desktop.open() commands in... I don't like see how they stop from working. > Best Regards Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 10? di credito omaggio! SCOPRI DI PIU? http://tisca.li/myopen -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Oct 10 21:20:01 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 10 Oct 2018 22:20:01 +0300 Subject: [Gambas-user] desktop.open warning In-Reply-To: References: Message-ID: OK, thanks! So, the issue is resolved by updating xdg-open. The version should be >= 1.1.2. You can check the version with "xdg-open --version". Jussi On Wed, Oct 10, 2018 at 10:10 PM Fabien Bodard wrote: > https://github.com/github/hub/issues/1473 > > Le mer. 10 oct. 2018 21:05, Jussi Lahtinen a > ?crit : > >> It's form Mint, the component uses "xdg-open". Perhaps the Desktop >> component needs bit updating... What exactly you are trying to open when >> you get that warning? >> I don't see that warning in Mint 19. >> >> Jussi >> >> On Wed, Oct 10, 2018 at 8:09 PM Jorge Carri?n wrote: >> >>> Hi, >>> >>> With Linux Mint 19 when using Desktop.Open(path), this warning appears >>> on console: >>> >>> "This tool has been deprecated, use 'gio open' instead. >>> See 'gio help open' for more info." >>> >>> Who send the message, gb.Desktop component or Linux Mint? >>> >>> I have a lot of Linux Mint machines from version 17.2 to 19 running >>> programs with desktop.open() commands in... I don't like see how they stop >>> from working. >>> >>> Best Regards >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Oct 10 21:22:16 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 10 Oct 2018 22:22:16 +0300 Subject: [Gambas-user] desktop.open warning In-Reply-To: References: Message-ID: IE update xdg-utils. Jussi On Wed, Oct 10, 2018 at 10:20 PM Jussi Lahtinen wrote: > OK, thanks! > So, the issue is resolved by updating xdg-open. The version should be >= > 1.1.2. > You can check the version with "xdg-open --version". > > > Jussi > > On Wed, Oct 10, 2018 at 10:10 PM Fabien Bodard > wrote: > >> https://github.com/github/hub/issues/1473 >> >> Le mer. 10 oct. 2018 21:05, Jussi Lahtinen a >> ?crit : >> >>> It's form Mint, the component uses "xdg-open". Perhaps the Desktop >>> component needs bit updating... What exactly you are trying to open when >>> you get that warning? >>> I don't see that warning in Mint 19. >>> >>> Jussi >>> >>> On Wed, Oct 10, 2018 at 8:09 PM Jorge Carri?n wrote: >>> >>>> Hi, >>>> >>>> With Linux Mint 19 when using Desktop.Open(path), this warning appears >>>> on console: >>>> >>>> "This tool has been deprecated, use 'gio open' instead. >>>> See 'gio help open' for more info." >>>> >>>> Who send the message, gb.Desktop component or Linux Mint? >>>> >>>> I have a lot of Linux Mint machines from version 17.2 to 19 running >>>> programs with desktop.open() commands in... I don't like see how they stop >>>> from working. >>>> >>>> Best Regards >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From clhamilto at gmail.com Wed Oct 10 23:21:12 2018 From: clhamilto at gmail.com (Curtis Hamilton) Date: Wed, 10 Oct 2018 17:21:12 -0400 Subject: [Gambas-user] Compile Fails on FreeBSD PowerPC64 Message-ID: I've can build Gambas3 on 32-bit PowerPC, but get the compile fails when building components. Below is the errors: Build fails when compiling gb.gui.base and gb.form with errors:Installing the components... Compiling gb.eval.highlight... OK Installing gb.eval.highlight... Compiling gb.args... OK Installing gb.args... Compiling gb.settings... OK Installing gb.settings... Compiling gb.gui.base... Action.class:24: error: Unknown identifier: Control Compiling gb.form... Balloon.class:5: error: Unknown identifier: Control Compiling gb.form.stock... Anyone ideas? Regards, Curtis -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Oct 10 23:45:40 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 10 Oct 2018 23:45:40 +0200 Subject: [Gambas-user] desktop.open warning In-Reply-To: References: Message-ID: I have the most updated version and with both QT and GTK I get the alert. Only if I write the command in this way I don't get any warning: Desktop.Open("my/document/path", True) Regards Gianluigi Il giorno mer 10 ott 2018 alle ore 21:24 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > IE update xdg-utils. > > > Jussi > > > On Wed, Oct 10, 2018 at 10:20 PM Jussi Lahtinen > wrote: > >> OK, thanks! >> So, the issue is resolved by updating xdg-open. The version should be >= >> 1.1.2. >> You can check the version with "xdg-open --version". >> >> >> Jussi >> >> On Wed, Oct 10, 2018 at 10:10 PM Fabien Bodard >> wrote: >> >>> https://github.com/github/hub/issues/1473 >>> >>> Le mer. 10 oct. 2018 21:05, Jussi Lahtinen a >>> ?crit : >>> >>>> It's form Mint, the component uses "xdg-open". Perhaps the Desktop >>>> component needs bit updating... What exactly you are trying to open when >>>> you get that warning? >>>> I don't see that warning in Mint 19. >>>> >>>> Jussi >>>> >>>> On Wed, Oct 10, 2018 at 8:09 PM Jorge Carri?n wrote: >>>> >>>>> Hi, >>>>> >>>>> With Linux Mint 19 when using Desktop.Open(path), this warning appears >>>>> on console: >>>>> >>>>> "This tool has been deprecated, use 'gio open' instead. >>>>> See 'gio help open' for more info." >>>>> >>>>> Who send the message, gb.Desktop component or Linux Mint? >>>>> >>>>> I have a lot of Linux Mint machines from version 17.2 to 19 running >>>>> programs with desktop.open() commands in... I don't like see how they stop >>>>> from working. >>>>> >>>>> Best Regards >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Oct 11 00:05:05 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 11 Oct 2018 00:05:05 +0200 Subject: [Gambas-user] desktop.open warning In-Reply-To: References: Message-ID: Le 10/10/2018 ? 19:08, Jorge Carri?n a ?crit?: > Hi, > > With Linux Mint 19 when using Desktop.Open(path), this warning appears > on console: > > "This tool has been deprecated, use 'gio open' instead. > See 'gio help open' for more info." > > Who send the message, gb.Desktop component or Linux Mint? > > I have a lot of Linux Mint machines from version 17.2 to 19 running > programs with desktop.open() commands in... I don't like see how they > stop from working. > > Best Regards > xdg-open is embedded inside the gb.desktop component and was out of date. Is it better with the last commit? -- Beno?t Minisini From gambas.fr at gmail.com Thu Oct 11 07:41:40 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 11 Oct 2018 07:41:40 +0200 Subject: [Gambas-user] Compile Fails on FreeBSD PowerPC64 In-Reply-To: References: Message-ID: Yes your log hide the fact that you have no gui toolkit compiled Neither qt nor gtk Look for dev packages and retry Le mer. 10 oct. 2018 23:22, Curtis Hamilton a ?crit : > I've can build Gambas3 on 32-bit PowerPC, but get the compile fails when building components. Below is the errors: > > Build fails when compiling gb.gui.base and gb.form with errors:Installing the components... > Compiling gb.eval.highlight... > OK > Installing gb.eval.highlight... > Compiling gb.args... > OK > Installing gb.args... > Compiling gb.settings... > OK > Installing gb.settings... > Compiling gb.gui.base... > Action.class:24: error: Unknown identifier: Control > Compiling gb.form... > Balloon.class:5: error: Unknown identifier: Control > Compiling gb.form.stock... > > Anyone ideas? > > Regards, > > Curtis > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From clhamilto at gmail.com Thu Oct 11 14:06:46 2018 From: clhamilto at gmail.com (Curtis Hamilton) Date: Thu, 11 Oct 2018 08:06:46 -0400 Subject: [Gambas-user] Compile Fails on FreeBSD PowerPC64 Message-ID: <78905676-e64f-332a-5336-72ba590de624@gmail.com> I checked and both qt and gtk are compiled. In fact, I have gtk, gtk3, qt4 and qt5 compiled and each get installed. > Yes your log hide the fact that you have no gui toolkit compiled > > Neither qt nor gtk > > Look for dev packages and retry > > Le mer. 10 oct. 2018 23:22, Curtis Hamilton a ?crit : > I've can build Gambas3 on 32-bit PowerPC, but get the compile fails when building components. Below is the errors: > > Build fails when compiling gb.gui.base and gb.form with errors:Installing the components... > Compiling gb.eval.highlight... > OK > Installing gb.eval.highlight... > Compiling gb.args... > OK > Installing gb.args... > Compiling gb.settings... > OK > Installing gb.settings... > Compiling gb.gui.base... > Action.class:24: error: Unknown identifier: Control > Compiling gb.form... > Balloon.class:5: error: Unknown identifier: Control > Compiling gb.form.stock... > > Anyone ideas? > > Regards, > > Curtis > > > ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Oct 11 14:09:52 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 11 Oct 2018 14:09:52 +0200 Subject: [Gambas-user] Compile Fails on FreeBSD PowerPC64 In-Reply-To: <78905676-e64f-332a-5336-72ba590de624@gmail.com> References: <78905676-e64f-332a-5336-72ba590de624@gmail.com> Message-ID: Le 11/10/2018 ? 14:06, Curtis Hamilton a ?crit?: > I checked and both qt and gtk are compiled. > > In fact, I have gtk, gtk3, qt4 and qt5 compiled and each get installed. > > Please send the full output log, from the first configuration line. -- Beno?t Minisini From hans at gambas-buch.de Thu Oct 11 19:49:08 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 11 Oct 2018 19:49:08 +0200 Subject: [Gambas-user] Where to store special files? Message-ID: <82bd6b4a-ea3a-e9e5-7083-c281f287e724@gambas-buch.de> Hello, for a chapter on paths in Gambas in the online book at https://www.gambas-buch.de/doku.php I would also like to describe the static properties Desktop.ConfigDir, Desktop.DataDir, Desktop.RuntimeDir and Desktop.CacheDir of the Desktop class (gb.desktop) and give hints for using the base directories behind these properties. The Gambas documentation and the explanations in https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html are not really helpful if you want to decide with sufficient certainty which special files belong in which directory defined with Desktop.ConfigDir, Desktop.DataDir, Desktop.RuntimeDir and Desktop.CacheDir. * Temporary Files * Shell scripts * Scripts in other languages * Databases * DB Views, DB Trigger as SQL File * Pictures and picture collections * Icon, Favicon * Configuration files * Data files such as CSV file, XML file, CSS file, HTML file, music file, sound file * MarkDown file * Help file * Named Pipe * Unix socket * Libraries Where should the above files be stored? Yours sincerely Hans From jussi.lahtinen at gmail.com Fri Oct 12 00:30:32 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 12 Oct 2018 01:30:32 +0300 Subject: [Gambas-user] Where to store special files? In-Reply-To: <82bd6b4a-ea3a-e9e5-7083-c281f287e724@gambas-buch.de> References: <82bd6b4a-ea3a-e9e5-7083-c281f287e724@gambas-buch.de> Message-ID: Inside Gambas there is Data directory for files to be included and if you want to copy them out of Gambas executable you do that according to Linux Filesystem Hierarchy Standard. https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.pdf Jussi On Thu, Oct 11, 2018 at 8:50 PM Hans Lehmann wrote: > Hello, > > for a chapter on paths in Gambas in the online book at > https://www.gambas-buch.de/doku.php I would also like to describe the > static properties Desktop.ConfigDir, Desktop.DataDir, Desktop.RuntimeDir > and Desktop.CacheDir of the Desktop class (gb.desktop) and give hints > for using the base directories behind these properties. > > The Gambas documentation and the explanations in > > https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html > are not really helpful if you want to decide with sufficient certainty > which special files belong in which directory defined with > Desktop.ConfigDir, Desktop.DataDir, Desktop.RuntimeDir and > Desktop.CacheDir. > > * Temporary Files > * Shell scripts > * Scripts in other languages > * Databases > * DB Views, DB Trigger as SQL File > * Pictures and picture collections > * Icon, Favicon > * Configuration files > * Data files such as CSV file, XML file, CSS file, HTML file, music > file, sound file > * MarkDown file > * Help file > * Named Pipe > * Unix socket > * Libraries > > Where should the above files be stored? > > Yours sincerely > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Fri Oct 12 19:05:31 2018 From: karl.reinl at fen-net.de (Karl Reinl) Date: Fri, 12 Oct 2018 19:05:31 +0200 Subject: [Gambas-user] sourceforge.net Downloads: 136 This Week Message-ID: <1539363931.15207.3.camel@Scenic.local> Salut Beno?t, you should drop a notice on sourceforge.net, there still guys downloading the version from 08/2017, and/or give them a link to the new gambas download area. -- Amicalement Charlie From clhamilto at gmail.com Fri Oct 12 21:17:50 2018 From: clhamilto at gmail.com (Curtis Hamilton) Date: Fri, 12 Oct 2018 15:17:50 -0400 Subject: [Gambas-user] Compile Fails on FreeBSD PowerPC64 In-Reply-To: References: <78905676-e64f-332a-5336-72ba590de624@gmail.com> Message-ID: <2ed7a6fe-cf9c-dd4d-cbdc-b42ea34d2385@gmail.com> Could this be an endian issue? On 10/11/18 08:32, Curtis Hamilton wrote: > Attached is the configuration output. > > > Please send the full output log, from the first configuration line. > > > > -- > > Beno?t Minisini > ------------------------------------------------------------------------ > > On 10/11/18 08:06, Curtis Hamilton wrote: >> >> I checked and both qt and gtk are compiled. >> >> In fact, I have gtk, gtk3, qt4 and qt5 compiled and each get installed. >> >> >> > Yes your log hide the fact that you have no gui toolkit compiled >> > >> > Neither qt nor gtk >> > >> > Look for dev packages and retry >> > >> > Le mer. 10 oct. 2018 23:22, Curtis Hamilton a >> ?crit : >>> I've can build Gambas3 on 32-bit PowerPC, but get the compile fails when building components. Below is the errors: >>> >>> Build fails when compiling gb.gui.base and gb.form with errors:Installing the components... >>> Compiling gb.eval.highlight... >>> OK >>> Installing gb.eval.highlight... >>> Compiling gb.args... >>> OK >>> Installing gb.args... >>> Compiling gb.settings... >>> OK >>> Installing gb.settings... >>> Compiling gb.gui.base... >>> Action.class:24: error: Unknown identifier: Control >>> Compiling gb.form... >>> Balloon.class:5: error: Unknown identifier: Control >>> Compiling gb.form.stock... >>> >>> Anyone ideas? >>> >>> Regards, >>> >>> Curtis >>> >>> >>> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- >>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Sat Oct 13 13:36:05 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 13 Oct 2018 13:36:05 +0200 Subject: [Gambas-user] Documentation CHMOD In-Reply-To: References: <82bd6b4a-ea3a-e9e5-7083-c281f287e724@gambas-buch.de> Message-ID: <92bd4e10-4f00-1b41-90db-2f5e4d914cb3@gambas-buch.de> Hello, how is the following sentence "Moreover, any omitted or unknown character in that string is ignored. That way, you can change only specific parts of the file permissions you need to change." to be understood in the documentation? It's all about the word "omitted"? So what does a right string with omitted characters look like? For example, I use CHMOD sTempScriptPath To "..x.......", where the dot stands for an unknown character. With kind regards Hans From t.lee.davidson at gmail.com Sat Oct 13 18:42:46 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 13 Oct 2018 12:42:46 -0400 Subject: [Gambas-user] Documentation CHMOD In-Reply-To: <92bd4e10-4f00-1b41-90db-2f5e4d914cb3@gambas-buch.de> References: <82bd6b4a-ea3a-e9e5-7083-c281f287e724@gambas-buch.de> <92bd4e10-4f00-1b41-90db-2f5e4d914cb3@gambas-buch.de> Message-ID: <29695e4c-ab28-cf97-7b2b-467b9b814cb9@gmail.com> In the example given on the documentation page (Chmod "~/Documents" To "rwxr-x---"), the special mode bits are omitted. As I understand it, if you wanted to change only the Group and Other bits, you could use the permission string, "r-x---". It appears that your example string, "..x.......", has one too many characters if the eXecute bit is positioned correctly. ___ Lee On 10/13/18 7:36 AM, Hans Lehmann wrote: > Hello, > > how is the following sentence "Moreover, any omitted or unknown character in that string is ignored. That way, you can change > only specific parts of the file permissions you need to change." to be understood in the documentation? It's all about the word > "omitted"? So what does a right string with omitted characters look like? For example, I use CHMOD sTempScriptPath To > "..x.......", where the dot stands for an unknown character. > > With kind regards > > Hans > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From sbungay at smartsonsite.com Tue Oct 16 16:55:28 2018 From: sbungay at smartsonsite.com (sbungay at smartsonsite.com) Date: Tue, 16 Oct 2018 10:55:28 -0400 Subject: [Gambas-user] Frameless frame control? Message-ID: If this is a repost then I appologize. The frame control has no visible frame (see attached PNG). What happened to the frame? Can it be restored? -------------- next part -------------- A non-text attachment was scrubbed... Name: FramlessFrameContainer.png Type: image/png Size: 21401 bytes Desc: not available URL: From g4mba5 at gmail.com Tue Oct 16 16:58:03 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 16 Oct 2018 16:58:03 +0200 Subject: [Gambas-user] Frameless frame control? In-Reply-To: References: Message-ID: <853eee85-3315-9469-7b65-7ebf5eafdbce@gmail.com> Le 16/10/2018 ? 16:55, sbungay at smartsonsite.com a ?crit?: > ? If this is a repost then I appologize. > The frame control has no visible frame (see attached PNG). What happened > to the frame? Can it be restored? > > Which toolkit do you use? -- Beno?t Minisini From sbungay at smartsonsite.com Tue Oct 16 17:08:13 2018 From: sbungay at smartsonsite.com (sbungay at smartsonsite.com) Date: Tue, 16 Oct 2018 11:08:13 -0400 Subject: [Gambas-user] Frameless frame Message-ID: <23265eb68874791cad1d80dde0193459@smartsonsite.com> The IDE doesn't show the frame but the running app does? Whatever happened to WYSIWYG in a GUI design environment? Steve. From charlie at cogier.com Wed Oct 17 11:31:17 2018 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 17 Oct 2018 10:31:17 +0100 Subject: [Gambas-user] The Gambas Playground In-Reply-To: <23265eb68874791cad1d80dde0193459@smartsonsite.com> References: <23265eb68874791cad1d80dde0193459@smartsonsite.com> Message-ID: Hi, The Gambas Playground has been unavailable for some time now. If you do manage to get on the site any code samples you run don't work either. Does anybody know the people involved in the project so that I/we could contact them. If they are not interested in fixing it I would like to try and install it elsewhere if I could get hold of the code. Regards, Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Oct 17 12:02:20 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 17 Oct 2018 12:02:20 +0200 Subject: [Gambas-user] The Gambas Playground In-Reply-To: References: <23265eb68874791cad1d80dde0193459@smartsonsite.com> Message-ID: <499c077e-f2d7-b95c-92db-aff76074da9d@gmail.com> Le 17/10/2018 ? 11:31, Charlie Ogier a ?crit?: > Hi, > > The Gambas Playground has been > unavailable for some time now. If you do manage to get on the site any > code samples you run don't work either. Does anybody know the people > involved in the project so that I/we could contact them. > > If they are not interested in fixing it I would like to try and install > it elsewhere if I could get hold of the code. > > Regards, > > Charlie > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > It's Adrien Prokopowicz that made the site, but I have no news about him from months. Apparently his HTTPS certificate has expired. -- Beno?t Minisini From d4t4full at gmail.com Wed Oct 17 12:26:35 2018 From: d4t4full at gmail.com (ML) Date: Wed, 17 Oct 2018 07:26:35 -0300 Subject: [Gambas-user] The Gambas Playground In-Reply-To: <499c077e-f2d7-b95c-92db-aff76074da9d@gmail.com> References: <23265eb68874791cad1d80dde0193459@smartsonsite.com> <499c077e-f2d7-b95c-92db-aff76074da9d@gmail.com> Message-ID: On 17/10/18 07:02, Beno?t Minisini wrote: > Le 17/10/2018 ? 11:31, Charlie Ogier a ?crit?: >> Hi, >> The Gambas Playground has been >> unavailable for some time now. If you do manage to get on the site >> any code samples you run don't work either. Does anybody know the >> people involved in the project so that I/we could contact them. >> If they are not interested in fixing it I would like to try and >> install it elsewhere if I could get hold of the code. >> Regards, >> Charlie >> > > It's Adrien Prokopowicz that made the site, but I have no news about > him from months. > Apparently his HTTPS certificate has expired. Not only sec cert expired, it also looks like the Docker container used up all its space judging from the error that appears when RUNning any simple program. From jussi.lahtinen at gmail.com Thu Oct 18 04:20:24 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 18 Oct 2018 05:20:24 +0300 Subject: [Gambas-user] JIT compiler debugging In-Reply-To: References: <87f3e706-e2de-c471-3e6b-96b2a6b0832c@gmail.com> Message-ID: If I understand correctly, overriding like this should not be allowed ( http://gambaswiki.org/wiki/doc/object-model#t19 ): Property y As Object --> Property y As TestClass1 But no error is raised. See the attachment (baseclass & childclass). Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.12.tar.gz Type: application/gzip Size: 27256 bytes Desc: not available URL: From hans at gambas-buch.de Thu Oct 18 14:45:28 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 18 Oct 2018 14:45:28 +0200 Subject: [Gambas-user] How do I dynamically integrate a library into a project? Message-ID: An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Fri Oct 19 19:53:03 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Fri, 19 Oct 2018 19:53:03 +0200 Subject: [Gambas-user] Use of a Gambas library in a module Message-ID: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> Hello, i created a library and it is located in the path /home/hans/.local/share/gambas3/lib/gambasbook_de/lib2:0.0.gambas. I would like to use this library in a module! But I can't find a way, because there is no possibility to select the corresponding library in a (graphical) dialog. Can anyone help in this case? What to do? With kind regards Hans From jussi.lahtinen at gmail.com Fri Oct 19 23:05:57 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 20 Oct 2018 00:05:57 +0300 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> Message-ID: Compile the library as Gambas executable and after that it should be found from the dialog. Jussi On Fri, Oct 19, 2018 at 8:54 PM Hans Lehmann wrote: > Hello, > > i created a library and it is located in the path > /home/hans/.local/share/gambas3/lib/gambasbook_de/lib2:0.0.gambas. > > I would like to use this library in a module! But I can't find a way, > because there is no possibility to select the corresponding library in a > (graphical) dialog. > > Can anyone help in this case? > What to do? > > With kind regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Oct 20 07:45:05 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 20 Oct 2018 07:45:05 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> Message-ID: Hi Hans, Is yours a study hypothesis, or is it a real case? Why don't you use modules and/or classes instead of the library, or connect the library in a traditional way via IDE, as Jussi says? Regards Gianluigi Il giorno ven 19 ott 2018 alle ore 23:07 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > Compile the library as Gambas executable and after that it should be found > from the dialog. > > Jussi > > On Fri, Oct 19, 2018 at 8:54 PM Hans Lehmann wrote: > >> Hello, >> >> i created a library and it is located in the path >> /home/hans/.local/share/gambas3/lib/gambasbook_de/lib2:0.0.gambas. >> >> I would like to use this library in a module! But I can't find a way, >> because there is no possibility to select the corresponding library in a >> (graphical) dialog. >> >> Can anyone help in this case? >> What to do? >> >> With kind regards >> >> Hans >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Oct 20 13:55:30 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Oct 2018 13:55:30 +0200 Subject: [Gambas-user] JIT compiler debugging In-Reply-To: References: <87f3e706-e2de-c471-3e6b-96b2a6b0832c@gmail.com> Message-ID: Le 18/10/2018 ? 04:20, Jussi Lahtinen a ?crit?: > If I understand correctly, overriding like this should not be allowed ( > http://gambaswiki.org/wiki/doc/object-model#t19 ): > Property y As Object --> Property y As TestClass1 > > But no error is raised. See the attachment (baseclass & childclass). > > > Jussi > The documentation is not accurate. The datatype of the child must not be the same as the parent. It must be compatible. - If the datatypes are not objects, then both datatypes must be the same. - If the datatypes are objects, then either the parent must be 'Object', or the child datatype must inherit the parent datatype. Except for public variables where inheritance is now forbidden. This is not a JIT-related problem by the way. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Oct 20 15:32:09 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Oct 2018 15:32:09 +0200 Subject: [Gambas-user] JIT compiler debugging In-Reply-To: References: <87f3e706-e2de-c471-3e6b-96b2a6b0832c@gmail.com> Message-ID: <32a5c87b-62cc-9875-e6ed-4029d46033c6@gmail.com> Le 20/10/2018 ? 13:55, Beno?t Minisini a ?crit?: > Le 18/10/2018 ? 04:20, Jussi Lahtinen a ?crit?: >> If I understand correctly, overriding like this should not be allowed >> ( http://gambaswiki.org/wiki/doc/object-model#t19 ): >> Property y As Object --> Property y As TestClass1 >> >> But no error is raised. See the attachment (baseclass & childclass). >> >> >> Jussi >> > > The documentation is not accurate. The datatype of the child must not be > the same as the parent. It must be compatible. > > - If the datatypes are not objects, then both datatypes must be the same. > > - If the datatypes are objects, then either the parent must be 'Object', > or the child datatype must inherit the parent datatype. > > Except for public variables where inheritance is now forbidden. > > This is not a JIT-related problem by the way. > > Regards, > I have updated the documentation. -- Beno?t Minisini From jussi.lahtinen at gmail.com Sat Oct 20 16:46:30 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 20 Oct 2018 17:46:30 +0300 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> Message-ID: The IDE might not see the library, if it is not compiled recently. Thus the problem I assume. Jussi On Sat, Oct 20, 2018 at 8:46 AM Gianluigi wrote: > Hi Hans, > Is yours a study hypothesis, or is it a real case? > Why don't you use modules and/or classes instead of the library, or > connect the library in a traditional way via IDE, as Jussi says? > > Regards > Gianluigi > > Il giorno ven 19 ott 2018 alle ore 23:07 Jussi Lahtinen < > jussi.lahtinen at gmail.com> ha scritto: > >> Compile the library as Gambas executable and after that it should be >> found from the dialog. >> >> Jussi >> >> On Fri, Oct 19, 2018 at 8:54 PM Hans Lehmann wrote: >> >>> Hello, >>> >>> i created a library and it is located in the path >>> /home/hans/.local/share/gambas3/lib/gambasbook_de/lib2:0.0.gambas. >>> >>> I would like to use this library in a module! But I can't find a way, >>> because there is no possibility to select the corresponding library in a >>> (graphical) dialog. >>> >>> Can anyone help in this case? >>> What to do? >>> >>> With kind regards >>> >>> Hans >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Oct 20 17:21:32 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 20 Oct 2018 17:21:32 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> Message-ID: So, as usual, I didn't understand. I thought Hans was still looking for a dynamic way to integrate libraries. I send to this lesson [0] for more information on this question. Regards Gianluigi [0] http://www.gambas-it.org/wiki/index.php?title=Importare_ed_utilizzare_librerie_.gambas Il giorno sab 20 ott 2018 alle ore 16:47 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > The IDE might not see the library, if it is not compiled recently. Thus > the problem I assume. > > Jussi > > On Sat, Oct 20, 2018 at 8:46 AM Gianluigi wrote: > >> Hi Hans, >> Is yours a study hypothesis, or is it a real case? >> Why don't you use modules and/or classes instead of the library, or >> connect the library in a traditional way via IDE, as Jussi says? >> >> Regards >> Gianluigi >> >> Il giorno ven 19 ott 2018 alle ore 23:07 Jussi Lahtinen < >> jussi.lahtinen at gmail.com> ha scritto: >> >>> Compile the library as Gambas executable and after that it should be >>> found from the dialog. >>> >>> Jussi >>> >>> On Fri, Oct 19, 2018 at 8:54 PM Hans Lehmann >>> wrote: >>> >>>> Hello, >>>> >>>> i created a library and it is located in the path >>>> /home/hans/.local/share/gambas3/lib/gambasbook_de/lib2:0.0.gambas. >>>> >>>> I would like to use this library in a module! But I can't find a way, >>>> because there is no possibility to select the corresponding library in >>>> a >>>> (graphical) dialog. >>>> >>>> Can anyone help in this case? >>>> What to do? >>>> >>>> With kind regards >>>> >>>> Hans >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Oct 20 18:37:22 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Oct 2018 18:37:22 +0200 Subject: [Gambas-user] New JIT compiler wiki page Message-ID: Hi, I have updated the JIT compiler page on the wiki, with some details on its implementation and configuration. Read it at: http://gambaswiki.org/wiki/doc/jit Regards, -- Beno?t Minisini From hans at gambas-buch.de Sat Oct 20 18:39:34 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 20 Oct 2018 18:39:34 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> Message-ID: Am 20.10.18 um 17:21 schrieb Gianluigi: > So, as usual, I didn't understand. > I thought Hans was still looking for a dynamic way to integrate libraries. This is exactly my problem: How do I integrate a library that lies in a standard search path into a Gambas program at runtime - not in the IDE! A solution is sought for this task. > I send to this lesson [0] for more information on this question. The content of the link does not help. Too bad. With kind regards Hans From g4mba5 at gmail.com Sat Oct 20 19:11:55 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Oct 2018 19:11:55 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> Message-ID: <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> Le 20/10/2018 ? 18:39, Hans Lehmann a ?crit?: > Am 20.10.18 um 17:21 schrieb Gianluigi: >> So, as usual, I didn't understand. >> I thought Hans was still looking for a dynamic way to integrate >> libraries. > > This is exactly my problem: How do I integrate a library that lies in a > standard search path into a Gambas program at runtime - not in the IDE! > A solution is sought for this task. > >> I send to this lesson [0] for more information on this question. > > The content of the link does not help. Too bad. > > > With kind regards > > Hans > I don't understand what your problem is. What does not work with 'Component.Load()'? -- Beno?t Minisini From hans at gambas-buch.de Sat Oct 20 20:11:52 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 20 Oct 2018 20:11:52 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> Message-ID: Am 20.10.18 um 19:11 schrieb Beno?t Minisini: > I don't understand what your problem is. > > What does not work with 'Component.Load()'? > > -- > Beno?t Minisini Hello, in the attachment the library and the program that should use the library. If I install the library in this path /home/hans/.local/share/gambas3/lib/gambasbook_de/mylibrary:0.0.gambas and select this library in the dialog (menu/project/properties.../libraries/Add) in the program, then everything works. But I want to use 'Component.Load()', which unfortunately doesn't work. What's the matter? Why? Hans -------------- next part -------------- A non-text attachment was scrubbed... Name: myLibrary-0.0.10.tar.gz Type: application/gzip Size: 10510 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: myProject-1.2.28.tar.gz Type: application/gzip Size: 35852 bytes Desc: not available URL: From t.lee.davidson at gmail.com Sun Oct 21 04:08:15 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 20 Oct 2018 22:08:15 -0400 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> Message-ID: On 10/20/18 2:11 PM, Hans Lehmann wrote: > Am 20.10.18 um 19:11 schrieb Beno?t Minisini: >> I don't understand what your problem is. >> >> What does not work with 'Component.Load()'? >> >> --? >> Beno?t Minisini > > Hello, > in the attachment the library and the program that should use the library. > > If I install the library in this path /home/hans/.local/share/gambas3/lib/gambasbook_de/mylibrary:0.0.gambas and select this > library in the dialog (menu/project/properties.../libraries/Add) in the program, then everything works. > > But I want to use 'Component.Load()', which unfortunately doesn't work. What's the matter? > Why? > > Hans > I also cannot get this to work. When the library is added via the IDE menu, its name is "gambasbook_de/myLibrary" (note the capital "L"; though correcting that in the code does not help). I've tried as many path combinations I could think of including specifying a runtime library search path with relative paths and also with just the name, "gambasbook_de/myLibrary". No luck. I did notice that when the filename part of the path is "myLibrary:0.0.gambas", the error message states that it cannot load component "myLibrary:0.0". If I specify the filename as "myLibrary:0.0", then the error message says it can't load component "myLibrary:0". With a dot appended to the filename, ie. "myLibrary:0.0.gambas.", then it cannot load component "myLibrary:0.0.gambas". Apparently, the trailing filename extension is being blindly stripped -- whatever import that may have. ___ Lee From hans at gambas-buch.de Sun Oct 21 07:30:35 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 21 Oct 2018 07:30:35 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> Message-ID: Hello Lee, in the last email (20.10.2018 - 20:11) I sent my program and the library as an archive (attached). You can use this for testing. Yours sincerely Hans -------------- next part -------------- A non-text attachment was scrubbed... Name: myLibrary-0.0.10.tar.gz Type: application/gzip Size: 10510 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: myProject-1.2.28.tar.gz Type: application/gzip Size: 35852 bytes Desc: not available URL: From bagonergi at gmail.com Sun Oct 21 16:42:37 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 21 Oct 2018 16:42:37 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> Message-ID: As suggested by Benoit and Jussi, the Library should be copied inside the project, then in Sub Open you writs: Dim sPath As String sPath = "/usr/lib/gambas3/myLibrary:0" Component.Load(sPath) and with help from this lesson [0], completes the project. Regards Gianluigi [0] http://www.gambas-it.org/wiki/index.php?title=Attivare_un_Componente_dinamicamente_da_codice Il giorno dom 21 ott 2018 alle ore 07:31 Hans Lehmann ha scritto: > Hello Lee, > > in the last email (20.10.2018 - 20:11) I sent my program and the library > as an archive (attached). > You can use this for testing. > > Yours sincerely > > Hans > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Oct 21 20:05:21 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 21 Oct 2018 20:05:21 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> Message-ID: <42dd6c8a-34de-93f3-f1d8-e290f170ca6e@gmail.com> Le 21/10/2018 ? 07:30, Hans Lehmann a ?crit?: > Hello Lee, > > in the last email (20.10.2018 - 20:11) I sent my program and the library > as an archive (attached). > You can use this for testing. > > Yours sincerely > > Hans > Hi Hans, I have downloaded the two projects and I confirm the problem. While I'm trying to fix it, can you explain me why you want to load a library dynamically, and not add it to the main project from the project property dialog? Thanks. -- Beno?t Minisini From hans at gambas-buch.de Sun Oct 21 20:06:44 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 21 Oct 2018 20:06:44 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> Message-ID: Am 21.10.18 um 16:42 schrieb Gianluigi: > As suggested by Benoit and Jussi, the Library should be copied inside > the project, then in Sub Open you writs: Hello Gianluigi, How should the copying be realized? Root rights are required! What permissions does this copied file need?? Calling ? sPath = "/usr/lib/gambas3/mylibrary:0" ? Component.Load(sPath) always leads to an error, even if I copied the library manually into the specified directory. Greetings Hans From bagonergi at gmail.com Sun Oct 21 20:20:09 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 21 Oct 2018 20:20:09 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> Message-ID: Il giorno dom 21 ott 2018 alle ore 20:07 Hans Lehmann ha scritto: > Am 21.10.18 um 16:42 schrieb Gianluigi: > > As suggested by Benoit and Jussi, the Library should be copied inside > > the project, then in Sub Open you writs: > > Hello Gianluigi, > > How should the copying be realized? Root rights are required! What > permissions does this copied file need? Calling > > sPath = "/usr/lib/gambas3/mylibrary:0" > Component.Load(sPath) > > always leads to an error, even if I copied the library manually into the > specified directory. > > Greetings > > Hans > > Sorry Hans, I meant already copied, not copied dynamically. I see that also Benoit asks you why want to load a library dynamically. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Oct 21 20:47:37 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 21 Oct 2018 14:47:37 -0400 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> Message-ID: <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> Actually, "/usr/lib/gambas3/" would be the *system* path where all the components are stored. You get that particular path string with Component.Path. When you make an executable of a library (in this case resulting in "myLibrary.gambas"), a copy is also automatically placed in the *user* path: /gambas3/lib// (filename in this case is "myLibrary:0.0.gambas"). ___ Lee On 10/21/18 10:42 AM, Gianluigi wrote: > As suggested by Benoit and Jussi, the Library should be copied inside the project, then in Sub Open you writs: > > ? Dim sPath As String > ? sPath = "/usr/lib/gambas3/myLibrary:0" > ? Component.Load(sPath) > > and with help from this lesson [0], completes the project. > > Regards > Gianluigi From bagonergi at gmail.com Sun Oct 21 22:31:57 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 21 Oct 2018 22:31:57 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> Message-ID: Hans, Lee, this attached code, here works. Regards Gianluigi Il giorno dom 21 ott 2018 alle ore 20:48 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > Actually, "/usr/lib/gambas3/" would be the *system* path where all the > components are stored. You get that particular path > string with Component.Path. > > When you make an executable of a library (in this case resulting in > "myLibrary.gambas"), a copy is also automatically placed in > the *user* path: > /gambas3/lib// (filename in this > case is "myLibrary:0.0.gambas"). > > > ___ > Lee > > > On 10/21/18 10:42 AM, Gianluigi wrote: > > As suggested by Benoit and Jussi, the Library should be copied inside > the project, then in Sub Open you writs: > > > > Dim sPath As String > > sPath = "/usr/lib/gambas3/myLibrary:0" > > Component.Load(sPath) > > > > and with help from this lesson [0], completes the project. > > > > Regards > > Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: myProject-1.2.28.tar.gz Type: application/gzip Size: 36372 bytes Desc: not available URL: From bagonergi at gmail.com Mon Oct 22 16:46:02 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 22 Oct 2018 16:46:02 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> Message-ID: Hi Hans, I attach the Dynamic libraries folder that contains the Mathematical Library Project that initially does only two operations (sum and subtraction). With the method already explained above I use the library in TestMat. I create the TestMat executable (see LibTwo folder) that works using the library (if present in the same folder). Extending the Mat library with two other operations (multiplication and division), the TestMat executable updates automatically (see LibFour folder). Regards Gianluigi Il giorno dom 21 ott 2018 alle ore 22:31 Gianluigi ha scritto: > Hans, Lee, > this attached code, here works. > > Regards > Gianluigi > > Il giorno dom 21 ott 2018 alle ore 20:48 T Lee Davidson < > t.lee.davidson at gmail.com> ha scritto: > >> Actually, "/usr/lib/gambas3/" would be the *system* path where all the >> components are stored. You get that particular path >> string with Component.Path. >> >> When you make an executable of a library (in this case resulting in >> "myLibrary.gambas"), a copy is also automatically placed in >> the *user* path: >> /gambas3/lib// (filename in this >> case is "myLibrary:0.0.gambas"). >> >> >> ___ >> Lee >> >> >> On 10/21/18 10:42 AM, Gianluigi wrote: >> > As suggested by Benoit and Jussi, the Library should be copied inside >> the project, then in Sub Open you writs: >> > >> > Dim sPath As String >> > sPath = "/usr/lib/gambas3/myLibrary:0" >> > Component.Load(sPath) >> > >> > and with help from this lesson [0], completes the project. >> > >> > Regards >> > Gianluigi >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Dinamic libraries.tar.xz Type: application/x-xz Size: 14596 bytes Desc: not available URL: From t.lee.davidson at gmail.com Mon Oct 22 20:50:54 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 22 Oct 2018 14:50:54 -0400 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> Message-ID: <71a70499-30e8-34c2-29cb-3b8330976fcd@gmail.com> Yes, Gianluigi, that code does work. Interestingly, with the library located within the project directory, I was able to load it with, literally, 'Component.Load("/doesnotexist/myLibrary")'. But, it would not find it with the path specified as "myLibrary", "../myLibrary", or "./myLibrary". Apparently, since it could not be found at a path that does not exist, Gambas then applied the Library Search Paths [0] finding the library in the first path searched, the project directory. However, if the library is not in the project directory and since Gambas does not know its vendor, the library cannot be found in (regexp expressed): ($XDG_DATA_HOME | ~/.local/share)/gambas3/lib//:.gambas or any of the other search paths since they also rely on . And that brings up a question. Reference [0] states, "When a project that depends on a library is executed, the library executable is searched for in the following paths [...]" Now, for a project to 'know' that it depends on a library, the library must be specified in the Project properties Libraries tab, correct? And, if that is done, then the project would already 'know' the location of the library. So then, why the need for search paths? If the search paths are to facilitate dynamic loading of libraries, then all but one path would be guaranteed to fail to produce results since the vendor of the library would not be known unless somehow specified. Is it supposed to be possible to load a library by specifying its name as "/" or "/:" [ie. Component.Load("gambasbook_de/myLibrary)]? [0] http://gambaswiki.org/wiki/doc/library#t2 ___ Lee P.S. Gianluigi, calling the Main method of Class.Load[ed] Module1 also works as: Dim Module1 As Class Module1 = Class.Load("Module1") Object.Call(Module1, "Main") On 10/21/18 4:31 PM, Gianluigi wrote: > Hans, Lee, > this attached code, here works. > > Regards > Gianluigi > > Il giorno dom 21 ott 2018 alle ore 20:48 T Lee Davidson > ha scritto: > > Actually, "/usr/lib/gambas3/" would be the *system* path where all the components are stored. You get that particular path > string with Component.Path. > > When you make an executable of a library (in this case resulting in "myLibrary.gambas"), a copy is also automatically placed in > the *user* path: > /gambas3/lib// (filename in this case is "myLibrary:0.0.gambas"). > > > ___ > Lee > > > On 10/21/18 10:42 AM, Gianluigi wrote: > > As suggested by Benoit and Jussi, the Library should be copied inside the project, then in Sub Open you writs: > > > > ? Dim sPath As String > > ? sPath = "/usr/lib/gambas3/myLibrary:0" > > ? Component.Load(sPath) > > > > and with help from this lesson [0], completes the project. > > > > Regards > > Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From bagonergi at gmail.com Mon Oct 22 22:52:11 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 22 Oct 2018 22:52:11 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: <71a70499-30e8-34c2-29cb-3b8330976fcd@gmail.com> References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> <71a70499-30e8-34c2-29cb-3b8330976fcd@gmail.com> Message-ID: Hi Lee, I don't know how to respond to your comments, let's see what Benoit has to say, the wiki page (unknown to me until now) seems to conflict with the last code I posted (see my post with 'Dynamic libraries' attached). Probably because it refers to the libraries loaded through the IDE dialog. The code: Object.Call(Module1, "Main"), I think works because it is inserted in the Sub Main (try to double click on the library). Regards Gianluigi Il giorno lun 22 ott 2018 alle ore 20:51 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > Yes, Gianluigi, that code does work. > > Interestingly, with the library located within the project directory, I > was able to load it with, literally, > 'Component.Load("/doesnotexist/myLibrary")'. But, it would not find it > with the path specified as "myLibrary", "../myLibrary", > or "./myLibrary". > > Apparently, since it could not be found at a path that does not exist, > Gambas then applied the Library Search Paths [0] finding > the library in the first path searched, the project directory. However, if > the library is not in the project directory and since > Gambas does not know its vendor, the library cannot be found in (regexp > expressed): > ($XDG_DATA_HOME | > ~/.local/share)/gambas3/lib//:.gambas > or any of the other search paths since they also rely on . > > > And that brings up a question. > > Reference [0] states, "When a project that depends on a library is > executed, the library executable is searched for in the > following paths [...]" > > Now, for a project to 'know' that it depends on a library, the library > must be specified in the Project properties Libraries > tab, correct? And, if that is done, then the project would already 'know' > the location of the library. > > So then, why the need for search paths? > > If the search paths are to facilitate dynamic loading of libraries, then > all but one path would be guaranteed to fail to produce > results since the vendor of the library would not be known unless somehow > specified. > > Is it supposed to be possible to load a library by specifying its name as > "/" or "/:" [ie. > Component.Load("gambasbook_de/myLibrary)]? > > > [0] http://gambaswiki.org/wiki/doc/library#t2 > > > ___ > Lee > > P.S. Gianluigi, calling the Main method of Class.Load[ed] Module1 also > works as: > Dim Module1 As Class > > Module1 = Class.Load("Module1") > Object.Call(Module1, "Main") > > > On 10/21/18 4:31 PM, Gianluigi wrote: > > Hans, Lee, > > this attached code, here works. > > > > Regards > > Gianluigi > > > > Il giorno dom 21 ott 2018 alle ore 20:48 T Lee Davidson < > t.lee.davidson at gmail.com > ha scritto: > > > > Actually, "/usr/lib/gambas3/" would be the *system* path where all > the components are stored. You get that particular path > > string with Component.Path. > > > > When you make an executable of a library (in this case resulting in > "myLibrary.gambas"), a copy is also automatically placed in > > the *user* path: > > /gambas3/lib// (filename in > this case is "myLibrary:0.0.gambas"). > > > > > > ___ > > Lee > > > > > > On 10/21/18 10:42 AM, Gianluigi wrote: > > > As suggested by Benoit and Jussi, the Library should be copied > inside the project, then in Sub Open you writs: > > > > > > Dim sPath As String > > > sPath = "/usr/lib/gambas3/myLibrary:0" > > > Component.Load(sPath) > > > > > > and with help from this lesson [0], completes the project. > > > > > > Regards > > > Gianluigi > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Tue Oct 23 10:56:15 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 23 Oct 2018 10:56:15 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> <71a70499-30e8-34c2-29cb-3b8330976fcd@gmail.com> Message-ID: <79da1ca3-c129-f2b9-dd2d-ff1bb20cf210@gambas-buch.de> Hello, in menu/project/properties/libraries you can enter a path under 'Runtime library search path'. Question: Which path can or should I enter there? I can't find a hint in the documentation. With kind regards Hans From g4mba5 at gmail.com Tue Oct 23 11:09:04 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 23 Oct 2018 11:09:04 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: <79da1ca3-c129-f2b9-dd2d-ff1bb20cf210@gambas-buch.de> References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> <71a70499-30e8-34c2-29cb-3b8330976fcd@gmail.com> <79da1ca3-c129-f2b9-dd2d-ff1bb20cf210@gambas-buch.de> Message-ID: <67fa30db-c19f-19f7-f08e-07a6f21c91bc@gmail.com> Le 23/10/2018 ? 10:56, Hans Lehmann a ?crit?: > Hello, > > in menu/project/properties/libraries you can enter a path under 'Runtime > library search path'. > Question: Which path can or should I enter there? > > I can't find a hint in the documentation. > > With kind regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > It's an additional directory where the libraries will be searched for. Not very useful per se actually, because you can't exactly know where your program will be installed. I'm still waiting for your answer about my question: can you explain me why you want to load a library dynamically, and not add it to the main project from the project property dialog? Thanks. -- Beno?t Minisini From bagonergi at gmail.com Tue Oct 23 13:19:17 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 23 Oct 2018 13:19:17 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: <67fa30db-c19f-19f7-f08e-07a6f21c91bc@gmail.com> References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> <71a70499-30e8-34c2-29cb-3b8330976fcd@gmail.com> <79da1ca3-c129-f2b9-dd2d-ff1bb20cf210@gambas-buch.de> <67fa30db-c19f-19f7-f08e-07a6f21c91bc@gmail.com> Message-ID: Hi Benoit, have you tried the code in the 'Dynamic libraries' folder? Have you noticed that to load the library as a component just indicate the path "/usr/lib/gambas3/:0" but also "/foo/gambas3/:0" as indicated by Lee? Have you noticed that you don't need to load the library with the IDE dialog but just insert the library in the project? In fact it seems that if you load with the dialog then the code works less well (loading the combobox). As you noticed if you use 'Component.Load()' the library will not load. Best regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From sbungay at smartsonsite.com Tue Oct 23 13:33:34 2018 From: sbungay at smartsonsite.com (sbungay) Date: Tue, 23 Oct 2018 07:33:34 -0400 Subject: [Gambas-user] Frame container bug? Message-ID: <0e0fbead-d263-f923-de25-0b4c5cbf6ad6@smartsonsite.com> Add text to a frame container and when the app is run the frame border vanishes. Anyone know how to keep the border visible AND have set the text property? -- Steve From g4mba5 at gmail.com Tue Oct 23 13:51:07 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 23 Oct 2018 13:51:07 +0200 Subject: [Gambas-user] Frame container bug? In-Reply-To: <0e0fbead-d263-f923-de25-0b4c5cbf6ad6@smartsonsite.com> References: <0e0fbead-d263-f923-de25-0b4c5cbf6ad6@smartsonsite.com> Message-ID: <7d86da0e-667a-dabf-eed6-c6b23cf4d275@gmail.com> Le 23/10/2018 ? 13:33, sbungay a ?crit?: > ? Add text to a frame container and when the app is run the frame > border vanishes. Anyone know how to keep the border visible AND have set > the text property? > Please provide a project that shows the bug *and* your system information. Thanks. -- Beno?t Minisini From t.lee.davidson at gmail.com Tue Oct 23 15:03:30 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 23 Oct 2018 09:03:30 -0400 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> <71a70499-30e8-34c2-29cb-3b8330976fcd@gmail.com> <79da1ca3-c129-f2b9-dd2d-ff1bb20cf210@gambas-buch.de> <67fa30db-c19f-19f7-f08e-07a6f21c91bc@gmail.com> Message-ID: <952c6267-ad0c-82db-e050-f286ea6ba5cf@gmail.com> On 10/23/18 7:19 AM, Gianluigi wrote: > Hi Benoit, > have you tried the code in the 'Dynamic libraries' folder? > Have you noticed that to load the library as a component just indicate the path "/usr/lib/gambas3/:0" but also > "/foo/gambas3/:0" as indicated by Lee? > Have you noticed that you don't need to load the library with the IDE dialog but just insert the library in the project? > In fact it seems that if you load with the dialog then the code works less well (loading the combobox). > As you noticed if you use 'Component.Load()' the library will not load. > > Best regards > Gianluigi > To clarify for whomever it may concern... With the library located in the project folder, yes, I have loaded it by specifying a path (with or without full or partial information) where it cannot be found, eg. "//myLibrary". When the library is added via the Project > Properties > Library dialog and its exported module is also loaded dynamically as a class, it has an extra symbol, namely, just a dot, ".". This shows up in the ComboBox that is dynamically populated from the symbols of the exported module that was loaded as a class (by the TestMat project in Gianluigi's 'Dynamic libraries' archive attached in a previous message). I just noticed that when a library that has no vendor specified is compiled into an executable, the copy that is automatically installed is placed in "~/.local/share/gambas3/lib/(unknown)". I'm just curious if those parentheses are required because bash does not like them, "bash: syntax error near unexpected token `('". ___ Lee From t.lee.davidson at gmail.com Tue Oct 23 15:07:46 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 23 Oct 2018 09:07:46 -0400 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: <952c6267-ad0c-82db-e050-f286ea6ba5cf@gmail.com> References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> <71a70499-30e8-34c2-29cb-3b8330976fcd@gmail.com> <79da1ca3-c129-f2b9-dd2d-ff1bb20cf210@gambas-buch.de> <67fa30db-c19f-19f7-f08e-07a6f21c91bc@gmail.com> <952c6267-ad0c-82db-e050-f286ea6ba5cf@gmail.com> Message-ID: <8d289592-8683-5543-bc78-0ae1003c4947@gmail.com> On 10/23/18 9:03 AM, T Lee Davidson wrote: > [snip] > > With the library located in the project folder, yes, I have loaded it by specifying a path (with or without full or partial > information) where it cannot be found, eg. "//myLibrary". Oops, I meant information. ___ Lee From bagonergi at gmail.com Tue Oct 23 15:56:43 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 23 Oct 2018 15:56:43 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: <952c6267-ad0c-82db-e050-f286ea6ba5cf@gmail.com> References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> <71a70499-30e8-34c2-29cb-3b8330976fcd@gmail.com> <79da1ca3-c129-f2b9-dd2d-ff1bb20cf210@gambas-buch.de> <67fa30db-c19f-19f7-f08e-07a6f21c91bc@gmail.com> <952c6267-ad0c-82db-e050-f286ea6ba5cf@gmail.com> Message-ID: Il giorno mar 23 ott 2018 alle ore 15:04 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > > On 10/23/18 7:19 AM, Gianluigi wrote: > > Hi Benoit, > > have you tried the code in the 'Dynamic libraries' folder? > > Have you noticed that to load the library as a component just indicate > the path "/usr/lib/gambas3/:0" but also > > "/foo/gambas3/:0" as indicated by Lee? > > Have you noticed that you don't need to load the library with the IDE > dialog but just insert the library in the project? > > In fact it seems that if you load with the dialog then the code works > less well (loading the combobox). > > As you noticed if you use 'Component.Load()' the > library will not load. > > > > Best regards > > Gianluigi > > > > To clarify for whomever it may concern... > > With the library located in the project folder, yes, I have loaded it by > specifying a path (with or without full or partial > information) where it cannot be found, eg. > "//myLibrary". > If I don't write the path like this: ".../gambas3/:0" I get an error. > When the library is added via the Project > Properties > Library dialog > and its exported module is also loaded dynamically as a > class, it has an extra symbol, namely, just a dot, ".". This shows up in > the ComboBox that is dynamically populated from the > symbols of the exported module that was loaded as a class (by the TestMat > project in Gianluigi's 'Dynamic libraries' archive > attached in a previous message). Either you have that malfunction or you don't load the library with Component.Load and, if I'm not mistaken, you are unable to create an executable that works on another computer than yours. With the addition that you cannot automatically update the library. > I just noticed that when a library that has no vendor specified is > compiled into an executable, the copy that is automatically > installed is placed in "~/.local/share/gambas3/lib/(unknown)". I'm just > curious if those parentheses are required because bash > does not like them, "bash: syntax error near unexpected token `('" I didn't write the name of the vendor because with this method (Dynamic libraries) you don't need, you just need the library to be located in the same directory as the project that uses it, and, as already mentioned, it can be updated with another one library that has more functions Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From sbungay at smartsonsite.com Tue Oct 23 17:56:06 2018 From: sbungay at smartsonsite.com (sbungay) Date: Tue, 23 Oct 2018 11:56:06 -0400 Subject: [Gambas-user] Frame container bug? In-Reply-To: <7d86da0e-667a-dabf-eed6-c6b23cf4d275@gmail.com> References: <0e0fbead-d263-f923-de25-0b4c5cbf6ad6@smartsonsite.com> <7d86da0e-667a-dabf-eed6-c6b23cf4d275@gmail.com> Message-ID: I did send a sample project along yesterday and it never got posted. Will try again, hope it gets through this time. I have two frames on the form, two text boxes, a listview, and three labels. One of the labels has no text property set, but uses a lebel with the text "FOO!". The label is located approximately where I would expect it to be if it was being created by the the text property of the frame view. The other frame view has its text property set and does not use a label. The text value is "BAR". When the program is run, frame view #1 (with the "FOO!" label) looks like I would expect a frameview to look when its text property is set. However, frame view #2 (with its text property set to "BAR") has no frame around it. System: Mint 17.3 Desktop: Mate Toolkit: qt4 On 18-10-23 07:51 AM, Beno?t Minisini wrote: > Le 23/10/2018 ? 13:33, sbungay a ?crit?: >> ?? Add text to a frame container and when the app is run the frame >> border vanishes. Anyone know how to keep the border visible AND have >> set the text property? >> > > Please provide a project that shows the bug *and* your system information. > > Thanks. > -------------- next part -------------- A non-text attachment was scrubbed... Name: Harness-0.0.1.tar.gz Type: application/gzip Size: 11839 bytes Desc: not available URL: From t.lee.davidson at gmail.com Wed Oct 24 01:31:02 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 23 Oct 2018 19:31:02 -0400 Subject: [Gambas-user] Frame container bug? In-Reply-To: References: <0e0fbead-d263-f923-de25-0b4c5cbf6ad6@smartsonsite.com> <7d86da0e-667a-dabf-eed6-c6b23cf4d275@gmail.com> Message-ID: <7cbca35e-39f1-2395-b188-e7e2ab57006d@gmail.com> Just for future reference, you can get more full system information, and likely of the type that Beno?t would be looking for, by using the "System information..." item in the IDE Help ("?") menu. ___ Lee On 10/23/18 11:56 AM, sbungay wrote: > I did send a sample project along yesterday and it never got posted. Will try again, hope it gets through this time. > > I have two frames on the form, two text boxes, a listview, and three labels. > > One of the labels has no text property set, but uses a lebel with the text "FOO!". The label is located approximately where I > would expect it to be if it was being created by the the text property of the frame view. > > The other frame view has its text property set and does not use a label. The text value is "BAR". When the program is run, frame > view #1 (with the "FOO!" label) looks like I would expect a frameview to look when its text property is set. However, frame view > #2 (with its text property set to "BAR") has no frame around it. > > System: Mint 17.3 > Desktop: Mate > Toolkit: qt4 > > On 18-10-23 07:51 AM, Beno?t Minisini wrote: >> Le 23/10/2018 ? 13:33, sbungay a ?crit?: >>> ?? Add text to a frame container and when the app is run the frame border vanishes. Anyone know how to keep the border >>> visible AND have set the text property? >>> >> >> Please provide a project that shows the bug *and* your system information. >> >> Thanks. >> > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From g4mba5 at gmail.com Wed Oct 24 01:55:12 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 24 Oct 2018 01:55:12 +0200 Subject: [Gambas-user] Frame container bug? In-Reply-To: References: <0e0fbead-d263-f923-de25-0b4c5cbf6ad6@smartsonsite.com> <7d86da0e-667a-dabf-eed6-c6b23cf4d275@gmail.com> Message-ID: Le 23/10/2018 ? 17:56, sbungay a ?crit?: > I did send a sample project along yesterday and it never got posted. > Will try again, hope it gets through this time. > > I have two frames on the form, two text boxes, a listview, and three > labels. > > One of the labels has no text property set, but uses a lebel with the > text "FOO!". The label is located approximately where I would expect it > to be if it was being created by the the text property of the frame view. > > The other frame view has its text property set and does not use a label. > The text value is "BAR". When the program is run, frame view #1 (with > the "FOO!" label) looks like I would expect a frameview to look when its > text property is set. However, frame view #2 (with its text property set > to "BAR") has no frame around it. > > System: Mint 17.3 > Desktop: Mate > Toolkit: qt4 > Yes, of course: the Frame widget look depends on the widget theme. If you use, for example, CleanLooks widget theme, the Frame widget will look like as you expect. Oxygen and Breeze themes decided to draw frames with the label inside the frame, and not on top. Regards, -- Beno?t Minisini From hans at gambas-buch.de Wed Oct 24 14:21:07 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 24 Oct 2018 14:21:07 +0200 Subject: [Gambas-user] Use of a Gambas library in a module In-Reply-To: References: <7dbbd599-aecf-57ba-af90-f15e7ace3443@gambas-buch.de> <96429f87-503b-0783-6a89-8d36b803cecb@gmail.com> <768b21cd-89ef-d7be-a62c-79471d3053e3@gmail.com> <71a70499-30e8-34c2-29cb-3b8330976fcd@gmail.com> <79da1ca3-c129-f2b9-dd2d-ff1bb20cf210@gambas-buch.de> <67fa30db-c19f-19f7-f08e-07a6f21c91bc@gmail.com> <952c6267-ad0c-82db-e050-f286ea6ba5cf@gmail.com> Message-ID: Hello Beno?t, here is the answer to the question: Can you explain to me why you want to load a library dynamically and not add it to the main project from the project properties dialog? If the search paths to the libraries are presented in detail in the documentation on the libraries, then in my opinion this is of particular importance. The paths only make sense if you want to integrate libraries dynamically into the main program. With kind regards Hans From jussi.lahtinen at gmail.com Wed Oct 24 14:36:53 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 24 Oct 2018 15:36:53 +0300 Subject: [Gambas-user] JIT compiler debugging In-Reply-To: References: <87f3e706-e2de-c471-3e6b-96b2a6b0832c@gmail.com> Message-ID: OK, it's clear now. Jussi On Sat, Oct 20, 2018 at 2:56 PM Beno?t Minisini wrote: > Le 18/10/2018 ? 04:20, Jussi Lahtinen a ?crit : > > If I understand correctly, overriding like this should not be allowed ( > > http://gambaswiki.org/wiki/doc/object-model#t19 ): > > Property y As Object --> Property y As TestClass1 > > > > But no error is raised. See the attachment (baseclass & childclass). > > > > > > Jussi > > > > The documentation is not accurate. The datatype of the child must not be > the same as the parent. It must be compatible. > > - If the datatypes are not objects, then both datatypes must be the same. > > - If the datatypes are objects, then either the parent must be 'Object', > or the child datatype must inherit the parent datatype. > > Except for public variables where inheritance is now forbidden. > > This is not a JIT-related problem by the way. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Oct 25 10:16:18 2018 From: adamnt42 at gmail.com (Me) Date: Thu, 25 Oct 2018 18:46:18 +1030 Subject: [Gambas-user] Offline help ; trouble with the wiki/en download Message-ID: <20181025184618.80418227f6c16491b20a2cd9@gmail.com> Somehow? I can't update my offline help. I open a project, go to project properties/help and other... etc and it says that new help is available. But when I click on the update, it downloads every (registered) language but the en subdirectory. All I get is two subdirs "api" and "app" but none of the others like "app" "comp" etc etc. I have tried: 1) clearing the cache 2) deleting the entire ~/.local/gambas/wiki directory 3) standing on top of a hill wearing a red top hat and a Stewart tartan kilt ( and various other things) None have worked. Any clues? bruce p.s. I am in a remote spot in South Australia at the moment so it may take me some time to get any replies and/or send more detail. tia -- Me From g4mba5 at gmail.com Thu Oct 25 12:16:14 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 25 Oct 2018 12:16:14 +0200 Subject: [Gambas-user] Offline help ; trouble with the wiki/en download In-Reply-To: <20181025184618.80418227f6c16491b20a2cd9@gmail.com> References: <20181025184618.80418227f6c16491b20a2cd9@gmail.com> Message-ID: Le 25/10/2018 ? 10:16, Me a ?crit?: > Somehow? I can't update my offline help. > I open a project, go to project properties/help and other... etc and it says that new help is available. But when I click on the update, it downloads every (registered) language but the en subdirectory. All I get is two subdirs "api" and "app" but none of the others like "app" "comp" etc etc. > I have tried: > 1) clearing the cache > 2) deleting the entire ~/.local/gambas/wiki directory > 3) standing on top of a hill wearing a red top hat and a Stewart tartan kilt ( and various other things) > None have worked. > > Any clues? > > bruce > p.s. I am in a remote spot in South Australia at the moment so it may take me some time to get any replies and/or send more detail. > > tia > I have just updated my offline help, and I had no problem. Nothing like you described. Which version of Gambas do you use? Note the downloaded wiki.tar.bz2 is normally kept in the '~/.local/share/gambas3/wiki' folder. -- Beno?t Minisini From dsanroma at gmail.com Thu Oct 25 13:30:38 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Thu, 25 Oct 2018 13:30:38 +0200 Subject: [Gambas-user] Detecting just Control Key Message-ID: Hello everyone, I am brand new to Gambas and I must say I am loving it. I do have 2 questions... * I am trying to use a GridView (Mode = Single) and once I select an element, I don't seem to find the way to "Unselect" it via the UI in run-time. I tried Ctrl+Click, Alt+Click, Shift.... and so on and no dice. Something I should know ? * I tried to "implement" my own Ctrl+Click to unselect the current row and I found an strange behavior which seems inconsistent with the documentation. Public Sub FormatsGridView_KeyPress() ??? Print Key.Control End It prints False when I just press the Ctrl key by it self. However, it prints True when I press Ctrl+A I tried the code in the documentation (http://gambaswiki.org/wiki/comp/gb.qt4/key/control?nl) and same thing. Me.Text is always set to False if the only key that is pressed is the Control key by itself. Please forgive my inexperience with Gambas ;) TIA, David From gambas.fr at gmail.com Thu Oct 25 14:12:04 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 25 Oct 2018 14:12:04 +0200 Subject: [Gambas-user] Detecting just Control Key In-Reply-To: References: Message-ID: If you want to do that you must use the Mouse event : Public Sub MyGrid_MouseDown() If Mouse.Ctrl then MyGrid...... end if End Le jeu. 25 oct. 2018 ? 13:31, David Sanrom? a ?crit : > Hello everyone, > > I am brand new to Gambas and I must say I am loving it. > > > I do have 2 questions... > > * I am trying to use a GridView (Mode = Single) and once I select an > element, I don't seem to find the way to "Unselect" it via the UI in > run-time. I tried Ctrl+Click, Alt+Click, Shift.... and so on and no > dice. Something I should know ? > > > * I tried to "implement" my own Ctrl+Click to unselect the current row > and I found an strange behavior which seems inconsistent with the > documentation. > > > Public Sub FormatsGridView_KeyPress() > > Print Key.Control > > End > > > It prints False when I just press the Ctrl key by it self. However, it > prints True when I press Ctrl+A > > > I tried the code in the documentation > (http://gambaswiki.org/wiki/comp/gb.qt4/key/control?nl) and same thing. > Me.Text is always set to False if the only key that is pressed is the > Control key by itself. > > > Please forgive my inexperience with Gambas ;) > > TIA, > > David > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsanroma at gmail.com Thu Oct 25 14:30:36 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Thu, 25 Oct 2018 14:30:36 +0200 Subject: [Gambas-user] Detecting just Control Key In-Reply-To: References: Message-ID: <1bba968a-07ab-6ed8-bb37-1184df28557f@gmail.com> Wonderful, This is exactly the work-around I was looking for.... Thanks a lot... Out of curiosity, any ideas about detecting just Ctrl key on KeyPress ? According to what I have seen, it seems to be inconsistent with the documentation I mentioned. ;) TIA, David El 25/10/18 a las 14:12, Fabien Bodard escribi?: > If you want to do that you must use the Mouse event : > > Public Sub MyGrid_MouseDown() > > ? If Mouse.Ctrl then > ? ? ?MyGrid...... > ? end if > > End > > Le?jeu. 25 oct. 2018 ??13:31, David Sanrom? > a ?crit?: > > Hello everyone, > > I am brand new to Gambas and I must say I am loving it. > > > I do have 2 questions... > > * I am trying to use a GridView (Mode = Single) and once I select an > element, I don't seem to find the way to "Unselect" it via the UI in > run-time. I tried Ctrl+Click, Alt+Click, Shift.... and so on and no > dice. Something I should know ? > > > * I tried to "implement" my own Ctrl+Click to unselect the current > row > and I found an strange behavior which seems inconsistent with the > documentation. > > > Public Sub FormatsGridView_KeyPress() > > ???? Print Key.Control > > End > > > It prints False when I just press the Ctrl key by it self. > However, it > prints True when I press Ctrl+A > > > I tried the code in the documentation > (http://gambaswiki.org/wiki/comp/gb.qt4/key/control?nl) and same > thing. > Me.Text is always set to False if the only key that is pressed is the > Control key by itself. > > > Please forgive my inexperience with Gambas ;) > > TIA, > > David > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > -- > Fabien Bodard > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Oct 25 15:06:20 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 25 Oct 2018 15:06:20 +0200 Subject: [Gambas-user] Detecting just Control Key In-Reply-To: <1bba968a-07ab-6ed8-bb37-1184df28557f@gmail.com> References: <1bba968a-07ab-6ed8-bb37-1184df28557f@gmail.com> Message-ID: <2382a570-ef5e-6b84-6f44-3fd3385851c0@gmail.com> Le 25/10/2018 ? 14:30, David Sanrom? a ?crit?: > Wonderful, > > > This is exactly the work-around I was looking for.... Thanks a lot... > > > Out of curiosity, any ideas about detecting just Ctrl key on KeyPress ? > According to what I have seen, it seems to be inconsistent with the > documentation I mentioned. ;) > > > TIA, > > David > You must check if Key.Code equals the Key.ControlKey constant. Regards, -- Beno?t Minisini From dsanroma at gmail.com Thu Oct 25 15:10:56 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Thu, 25 Oct 2018 15:10:56 +0200 Subject: [Gambas-user] Detecting just Control Key In-Reply-To: <2382a570-ef5e-6b84-6f44-3fd3385851c0@gmail.com> References: <1bba968a-07ab-6ed8-bb37-1184df28557f@gmail.com> <2382a570-ef5e-6b84-6f44-3fd3385851c0@gmail.com> Message-ID: <06a58717-db37-b1d9-310d-c4a55dd8c215@gmail.com> I just tried your solution and it works prefect!!!!! Thank you much.... ;) David El 25/10/18 a las 15:06, Beno?t Minisini escribi?: > Le 25/10/2018 ? 14:30, David Sanrom? a ?crit?: >> Wonderful, >> >> >> This is exactly the work-around I was looking for.... Thanks a lot... >> >> >> Out of curiosity, any ideas about detecting just Ctrl key on KeyPress >> ? According to what I have seen, it seems to be inconsistent with the >> documentation I mentioned. ;) >> >> >> TIA, >> >> David >> > > You must check if Key.Code equals the Key.ControlKey constant. > > Regards, > From t.lee.davidson at gmail.com Thu Oct 25 15:49:59 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 25 Oct 2018 09:49:59 -0400 Subject: [Gambas-user] Offline help ; trouble with the wiki/en download In-Reply-To: References: <20181025184618.80418227f6c16491b20a2cd9@gmail.com> Message-ID: <9b8534a6-a367-6429-33ec-4f8fefc681d1@gmail.com> On 10/25/18 6:16 AM, Beno?t Minisini wrote: > Le 25/10/2018 ? 10:16, Me a ?crit?: >> Somehow? I can't update my offline help. >> I open a project, go to project properties/help and other... etc and it says that new help is available. But when I click on >> the update, it downloads every (registered) language but the en subdirectory.? All I get is two subdirs "api" and "app" but >> none of the others like "app" "comp" etc etc. >> I have tried: >> 1) clearing the cache >> 2) deleting the entire ~/.local/gambas/wiki directory >> 3) standing on top of a hill wearing a red top hat and a Stewart tartan kilt ( and various other things) >> None have worked. >> >> Any clues? >> >> bruce >> p.s. I am in a remote spot in South Australia at the moment so it may take me some time to get any replies and/or send more >> detail. >> >> tia >> > > I have just updated my offline help, and I had no problem. Nothing like you described. Which version of Gambas do you use? > > Note the downloaded wiki.tar.bz2 is normally kept in the '~/.local/share/gambas3/wiki' folder. > On my system, there is no '~/.local/share/gambas3/wiki' folder. I looked at the online wiki for information on how to download the offline help, and found none. What is that procedure? ___ Lee From g4mba5 at gmail.com Fri Oct 26 20:39:21 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 26 Oct 2018 20:39:21 +0200 Subject: [Gambas-user] Gambs authors list Message-ID: Hi, The list of Gambas authors and translators is now inside in the standard AUTHORS files, located on the root of the source directory. If you are concerned, can you check that file and tell me if you see some errors or omissions? I'm sure there are... I want it to be clean for the release of Gambas 3.12. Thanks in advance. -- Beno?t Minisini From g4mba5 at gmail.com Fri Oct 26 23:57:32 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 26 Oct 2018 23:57:32 +0200 Subject: [Gambas-user] Gambs authors list In-Reply-To: References: Message-ID: <4ca5fedf-f392-46fd-021b-e31088a9f6ca@gmail.com> Le 26/10/2018 ? 20:39, Beno?t Minisini a ?crit?: > Hi, > > The list of Gambas authors and translators is now inside in the standard > AUTHORS files, located on the root of the source directory. > > If you are concerned, can you check that file and tell me if you see > some errors or omissions? I'm sure there are... > > I want it to be clean for the release of Gambas 3.12. > > Thanks in advance. > It seems tht my new keybord hs lredy key tht fils to trigger. Sigh... -- Beno?t Minisini From jussi.lahtinen at gmail.com Sat Oct 27 01:18:18 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 27 Oct 2018 02:18:18 +0300 Subject: [Gambas-user] Gambs authors list In-Reply-To: <4ca5fedf-f392-46fd-021b-e31088a9f6ca@gmail.com> References: <4ca5fedf-f392-46fd-021b-e31088a9f6ca@gmail.com> Message-ID: What's the brand? Sus? Cer? Pple? Jussi On Sat, Oct 27, 2018 at 12:58 AM Beno?t Minisini wrote: > Le 26/10/2018 ? 20:39, Beno?t Minisini a ?crit : > > Hi, > > > > The list of Gambas authors and translators is now inside in the standard > > AUTHORS files, located on the root of the source directory. > > > > If you are concerned, can you check that file and tell me if you see > > some errors or omissions? I'm sure there are... > > > > I want it to be clean for the release of Gambas 3.12. > > > > Thanks in advance. > > > > It seems tht my new keybord hs lredy key tht fils to trigger. Sigh... > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Oct 27 08:11:08 2018 From: adamnt42 at gmail.com (Me) Date: Sat, 27 Oct 2018 16:41:08 +1030 Subject: [Gambas-user] Offline help ; trouble with the wiki/en download In-Reply-To: References: <20181025184618.80418227f6c16491b20a2cd9@gmail.com> Message-ID: <20181027164108.ddad9de4c83b9e49dcfd0bce@gmail.com> On Thu, 25 Oct 2018 12:16:14 +0200 Beno?t Minisini wrote: > Le 25/10/2018 ? 10:16, Me a ?crit?: > > Somehow? I can't update my offline help. > > I open a project, go to project properties/help and other... etc and it says that new help is available. But when I click on the update, it downloads every (registered) language but the en subdirectory. All I get is two subdirs "api" and "app" but none of the others like "app" "comp" etc etc. > > I have tried: > > 1) clearing the cache > > 2) deleting the entire ~/.local/gambas/wiki directory > > 3) standing on top of a hill wearing a red top hat and a Stewart tartan kilt ( and various other things) > > None have worked. > > > > Any clues? > > > > bruce > > p.s. I am in a remote spot in South Australia at the moment so it may take me some time to get any replies and/or send more detail. > > > > tia > > > > I have just updated my offline help, and I had no problem. Nothing like > you described. Which version of Gambas do you use? > > Note the downloaded wiki.tar.bz2 is normally kept in the > '~/.local/share/gambas3/wiki' folder. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- The version is from the git about 4 or 5 days ago : b8987158 (the ssl merge). It is totally weird. The only thing I can think of is that the local here is en_AU. But no idea if that makes a difference. Finally, I downloaded the actual bzip file from gambaswiki and decompressed it manually. Now I have help. I get back to you in a couple of days if I find anything that may be causing this. (Oh I also tried another login and even created a new user, but they still had the same result.) regards bruce -- Me From bruno.capeleto at abcreseau.com Sun Oct 28 07:33:51 2018 From: bruno.capeleto at abcreseau.com (Bruno CAPELETO) Date: Sun, 28 Oct 2018 07:33:51 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed Message-ID: Dear users, I am a debian user and I want to report that the procedure for the compilation of gambas is not up to date : it does not work for the latest Debian release (9 "stretch" June 2017). These are the missing package : - libmysqlclient-dev - libsage-dev The compilation under Debian 9 gave : THESE COMPONENTS ARE DISABLED: || - gb.db.postgresql || - gb.jit || - gb.openssl || - gb.qt4.opengl || - gb.qt4.webkit After installation, the gambas IDE does not work and my Gambas software does not work either. Any help would be appreciated, Bruno -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun Oct 28 09:24:04 2018 From: adamnt42 at gmail.com (Me) Date: Sun, 28 Oct 2018 18:54:04 +1030 Subject: [Gambas-user] Well another weirdo - create a copy of a control in a TabStrip to a newly created tab Message-ID: <20181028185404.d6e85229eb51e3669d262cd8@gmail.com> I thought this one would be easy... haha I have a tabstrip (call it "tabMain") that has a variable number of tabs in it, determined by the actions held on a particular date. Wthin each of those tabs I need (want) to create a child (call it "tabSchedule") that is another tabstrip. That child would be based on a "template" TabStrip control that is one the tabMain[0] tab. tabSchedule is quite complex, 7 tabs with about 80 controls. So I thought that maybe I could copy the "template" control as a new control in a different location. Unless I have missed something obvious, this does not seem possible. ??? tia bruce -- Me From bagonergi at gmail.com Sun Oct 28 09:50:06 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 28 Oct 2018 09:50:06 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: Message-ID: You can download here (you have to subscribe) the procedure in Italian for Debian Stretch 9.5: http://www.gambas-it.org/smf/index.php?topic=6515.msg44259#msg44259 For different procedure to the Master you can also download this: http://www.gambas-it.org/smf/index.php?topic=6424.msg44058#msg44058 Regards Gianluigi Il giorno dom 28 ott 2018 alle ore 07:35 Bruno CAPELETO < bruno.capeleto at abcreseau.com> ha scritto: > Dear users, > > I am a debian user and I want to report that the procedure for the > compilation of gambas is not up to date : it does not work for the latest > Debian release (9 "stretch" June 2017). > > These are the missing package : > - libmysqlclient-dev > - libsage-dev > > The compilation under Debian 9 gave : > > THESE COMPONENTS ARE DISABLED: > || - gb.db.postgresql > || - gb.jit > || - gb.openssl > || - gb.qt4.opengl > || - gb.qt4.webkit > > After installation, the gambas IDE does not work and my Gambas software > does not work either. > > Any help would be appreciated, > Bruno > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Oct 28 15:10:56 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 28 Oct 2018 15:10:56 +0100 Subject: [Gambas-user] Well another weirdo - create a copy of a control in a TabStrip to a newly created tab In-Reply-To: <20181028185404.d6e85229eb51e3669d262cd8@gmail.com> References: <20181028185404.d6e85229eb51e3669d262cd8@gmail.com> Message-ID: <20181028140214.GB1042@highrise.localdomain> On Sun, 28 Oct 2018, Me wrote: > I thought this one would be easy... haha > > I have a tabstrip (call it "tabMain") that has a variable number of tabs in it, determined by the actions held on a particular date. > Wthin each of those tabs I need (want) to create a child (call it "tabSchedule") that is another tabstrip. That child would be based on > a "template" TabStrip control that is one the tabMain[0] tab. > > tabSchedule is quite complex, 7 tabs with about 80 controls. So I thought that maybe I could copy the "template" control as a new control in a > different location. > > Unless I have missed something obvious, this does not seem possible. > Yeah, I don't think this is possible. But how about replacing "template" by "class" and "copy" by "creating a new instance" in your scheme? Did you create custom controls with the form editor before? I can only recommend it. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Sun Oct 28 15:30:41 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 28 Oct 2018 15:30:41 +0100 Subject: [Gambas-user] Gambs authors list In-Reply-To: References: <4ca5fedf-f392-46fd-021b-e31088a9f6ca@gmail.com> Message-ID: Le 27/10/2018 ? 01:18, Jussi Lahtinen a ?crit?: > What's the brand? Sus? Cer? Pple? > > > Jussi > Logitech. No "A" in the brand name! -- Beno?t Minisini From bruno.capeleto at abcreseau.com Sun Oct 28 15:32:46 2018 From: bruno.capeleto at abcreseau.com (Bruno CAPELETO) Date: Sun, 28 Oct 2018 15:32:46 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: Message-ID: Dear Gianluigi, Despites my name sounds Italian, I unfortunately do not speak Italian at all :-( Could you please provide the link to the document ? Bruno Le dim. 28 oct. 2018 09:51, Gianluigi a ?crit : > You can download here (you have to subscribe) the procedure in Italian for > Debian Stretch 9.5: > http://www.gambas-it.org/smf/index.php?topic=6515.msg44259#msg44259 > For different procedure to the Master you can also download this: > http://www.gambas-it.org/smf/index.php?topic=6424.msg44058#msg44058 > > Regards > Gianluigi > > > Il giorno dom 28 ott 2018 alle ore 07:35 Bruno CAPELETO < > bruno.capeleto at abcreseau.com> ha scritto: > >> Dear users, >> >> I am a debian user and I want to report that the procedure for the >> compilation of gambas is not up to date : it does not work for the latest >> Debian release (9 "stretch" June 2017). >> >> These are the missing package : >> - libmysqlclient-dev >> - libsage-dev >> >> The compilation under Debian 9 gave : >> >> THESE COMPONENTS ARE DISABLED: >> || - gb.db.postgresql >> || - gb.jit >> || - gb.openssl >> || - gb.qt4.opengl >> || - gb.qt4.webkit >> >> After installation, the gambas IDE does not work and my Gambas software >> does not work either. >> >> Any help would be appreciated, >> Bruno >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Oct 28 16:14:07 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 28 Oct 2018 16:14:07 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: Message-ID: Hi Bruno, I've already posted the links. Documents are available only for subscribers. In order to download the documents you have to subscribe (click on "Registrati") to our forum (Gambas-it.org). For your registration, you can to receive help from Google translator... Then if you have any questions you can post it in English also at our place, there are many non-Italian subscribers... Regards Gianluigi Il giorno dom 28 ott 2018 alle ore 15:34 Bruno CAPELETO < bruno.capeleto at abcreseau.com> ha scritto: > Dear Gianluigi, > > Despites my name sounds Italian, I unfortunately do not speak Italian at > all :-( > Could you please provide the link to the document ? > > Bruno > > > Le dim. 28 oct. 2018 09:51, Gianluigi a ?crit : > >> You can download here (you have to subscribe) the procedure in Italian >> for Debian Stretch 9.5: >> http://www.gambas-it.org/smf/index.php?topic=6515.msg44259#msg44259 >> For different procedure to the Master you can also download this: >> http://www.gambas-it.org/smf/index.php?topic=6424.msg44058#msg44058 >> >> Regards >> Gianluigi >> >> >> Il giorno dom 28 ott 2018 alle ore 07:35 Bruno CAPELETO < >> bruno.capeleto at abcreseau.com> ha scritto: >> >>> Dear users, >>> >>> I am a debian user and I want to report that the procedure for the >>> compilation of gambas is not up to date : it does not work for the latest >>> Debian release (9 "stretch" June 2017). >>> >>> These are the missing package : >>> - libmysqlclient-dev >>> - libsage-dev >>> >>> The compilation under Debian 9 gave : >>> >>> THESE COMPONENTS ARE DISABLED: >>> || - gb.db.postgresql >>> || - gb.jit >>> || - gb.openssl >>> || - gb.qt4.opengl >>> || - gb.qt4.webkit >>> >>> After installation, the gambas IDE does not work and my Gambas software >>> does not work either. >>> >>> Any help would be appreciated, >>> Bruno >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.capeleto at abcreseau.com Sun Oct 28 18:15:35 2018 From: bruno.capeleto at abcreseau.com (Bruno CAPELETO) Date: Sun, 28 Oct 2018 18:15:35 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: Message-ID: The registration failed, in fact the captcha function did not work... Le dim. 28 oct. 2018 ? 16:15, Gianluigi a ?crit : > Hi Bruno, > I've already posted the links. > Documents are available only for subscribers. > In order to download the documents you have to subscribe (click on > "Registrati") to our forum (Gambas-it.org). > For your registration, you can to receive help from Google translator... > Then if you have any questions you can post it in English also at our > place, there are many non-Italian subscribers... > > Regards > Gianluigi > > Il giorno dom 28 ott 2018 alle ore 15:34 Bruno CAPELETO < > bruno.capeleto at abcreseau.com> ha scritto: > >> Dear Gianluigi, >> >> Despites my name sounds Italian, I unfortunately do not speak Italian at >> all :-( >> Could you please provide the link to the document ? >> >> Bruno >> >> >> Le dim. 28 oct. 2018 09:51, Gianluigi a ?crit : >> >>> You can download here (you have to subscribe) the procedure in Italian >>> for Debian Stretch 9.5: >>> http://www.gambas-it.org/smf/index.php?topic=6515.msg44259#msg44259 >>> For different procedure to the Master you can also download this: >>> http://www.gambas-it.org/smf/index.php?topic=6424.msg44058#msg44058 >>> >>> Regards >>> Gianluigi >>> >>> >>> Il giorno dom 28 ott 2018 alle ore 07:35 Bruno CAPELETO < >>> bruno.capeleto at abcreseau.com> ha scritto: >>> >>>> Dear users, >>>> >>>> I am a debian user and I want to report that the procedure for the >>>> compilation of gambas is not up to date : it does not work for the latest >>>> Debian release (9 "stretch" June 2017). >>>> >>>> These are the missing package : >>>> - libmysqlclient-dev >>>> - libsage-dev >>>> >>>> The compilation under Debian 9 gave : >>>> >>>> THESE COMPONENTS ARE DISABLED: >>>> || - gb.db.postgresql >>>> || - gb.jit >>>> || - gb.openssl >>>> || - gb.qt4.opengl >>>> || - gb.qt4.webkit >>>> >>>> After installation, the gambas IDE does not work and my Gambas software >>>> does not work either. >>>> >>>> Any help would be appreciated, >>>> Bruno >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Oct 28 18:43:08 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 28 Oct 2018 18:43:08 +0100 Subject: [Gambas-user] Gambs authors list In-Reply-To: References: <4ca5fedf-f392-46fd-021b-e31088a9f6ca@gmail.com> Message-ID: <4f24ab5a-210d-0526-e10c-bbcc0c5e016e@deganius.de> Am 28.10.18 um 15:30 schrieb Beno?t Minisini: > Logitech. No "A" in the brand name! Hahaha! :-) Always buy mechanical Cherry with MX-switches. They are made where I live. In Germany in the Oberpfalz. They are made out of potatoes. ;-) https://www.cherry-world.com/products/keyboards.html?cat=464 Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Sun Oct 28 19:31:51 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 28 Oct 2018 19:31:51 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: Message-ID: I tried to register a new user and re-captha works well. You have to try again, paying attention to all the images. First check that the data entered is accepted (checked in green). See attached image. Regards Gianluigi Il giorno dom 28 ott 2018 alle ore 18:16 Bruno CAPELETO < bruno.capeleto at abcreseau.com> ha scritto: > The registration failed, in fact the captcha function did not work... > > Le dim. 28 oct. 2018 ? 16:15, Gianluigi a ?crit : > >> Hi Bruno, >> I've already posted the links. >> Documents are available only for subscribers. >> In order to download the documents you have to subscribe (click on >> "Registrati") to our forum (Gambas-it.org). >> For your registration, you can to receive help from Google translator... >> Then if you have any questions you can post it in English also at our >> place, there are many non-Italian subscribers... >> >> Regards >> Gianluigi >> >> Il giorno dom 28 ott 2018 alle ore 15:34 Bruno CAPELETO < >> bruno.capeleto at abcreseau.com> ha scritto: >> >>> Dear Gianluigi, >>> >>> Despites my name sounds Italian, I unfortunately do not speak Italian at >>> all :-( >>> Could you please provide the link to the document ? >>> >>> Bruno >>> >>> >>> Le dim. 28 oct. 2018 09:51, Gianluigi a ?crit : >>> >>>> You can download here (you have to subscribe) the procedure in Italian >>>> for Debian Stretch 9.5: >>>> http://www.gambas-it.org/smf/index.php?topic=6515.msg44259#msg44259 >>>> For different procedure to the Master you can also download this: >>>> http://www.gambas-it.org/smf/index.php?topic=6424.msg44058#msg44058 >>>> >>>> Regards >>>> Gianluigi >>>> >>>> >>>> Il giorno dom 28 ott 2018 alle ore 07:35 Bruno CAPELETO < >>>> bruno.capeleto at abcreseau.com> ha scritto: >>>> >>>>> Dear users, >>>>> >>>>> I am a debian user and I want to report that the procedure for the >>>>> compilation of gambas is not up to date : it does not work for the latest >>>>> Debian release (9 "stretch" June 2017). >>>>> >>>>> These are the missing package : >>>>> - libmysqlclient-dev >>>>> - libsage-dev >>>>> >>>>> The compilation under Debian 9 gave : >>>>> >>>>> THESE COMPONENTS ARE DISABLED: >>>>> || - gb.db.postgresql >>>>> || - gb.jit >>>>> || - gb.openssl >>>>> || - gb.qt4.opengl >>>>> || - gb.qt4.webkit >>>>> >>>>> After installation, the gambas IDE does not work and my Gambas >>>>> software does not work either. >>>>> >>>>> Any help would be appreciated, >>>>> Bruno >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: registrati.jpg Type: image/jpeg Size: 45108 bytes Desc: not available URL: From charlie at cogier.com Sun Oct 28 19:24:01 2018 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 28 Oct 2018 18:24:01 +0000 Subject: [Gambas-user] DirChooserProblem Message-ID: Hi, I am having trouble getting DirChooser to refresh, even with Wait. I have attached an example with system information included. Is this a bug or am I missing something? Thanks, Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: DirChooserProblem-0.0.1.tar.gz Type: application/gzip Size: 13017 bytes Desc: not available URL: From bagonergi at gmail.com Sun Oct 28 22:46:07 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 28 Oct 2018 22:46:07 +0100 Subject: [Gambas-user] DirChooserProblem In-Reply-To: References: Message-ID: Hi Charlie, try with DirChooser1.Reload (not Refresh). Regards Gianluigi Il giorno dom 28 ott 2018 alle ore 19:47 Charlie Ogier ha scritto: > Hi, > > I am having trouble getting DirChooser to refresh, even with Wait. I > have attached an example with system information included. > > Is this a bug or am I missing something? > > Thanks, > > Charlie > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Oct 29 00:15:41 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 29 Oct 2018 00:15:41 +0100 Subject: [Gambas-user] DirChooserProblem In-Reply-To: References: Message-ID: <7d234c1a-4d67-ed21-f17d-c3c467c67116@gmail.com> Le 28/10/2018 ? 22:46, Gianluigi a ?crit?: > Hi Charlie, > try with DirChooser1.Reload (not Refresh). > > Regards > Gianluigi > > Il giorno dom 28 ott 2018 alle ore 19:47 Charlie Ogier > > ha scritto: > > Hi, > > I am having trouble getting DirChooser to refresh, even with Wait. I > have attached an example with system information included. > > Is this a bug or am I missing something? > > Thanks, > > Charlie > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Yes. Refresh() triggers a redraw. Only Reload() refresh the directory contents from the disk. Regards, -- Beno?t Minisini From charlie at cogier.com Mon Oct 29 15:08:45 2018 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 29 Oct 2018 14:08:45 +0000 Subject: [Gambas-user] DirChooserProblem In-Reply-To: <7d234c1a-4d67-ed21-f17d-c3c467c67116@gmail.com> References: <7d234c1a-4d67-ed21-f17d-c3c467c67116@gmail.com> Message-ID: <9366c046-85a2-b1bf-5b2b-be9bb20eb8e9@cogier.com> Thanks, that's sorted it! On 28/10/2018 23:15, Beno?t Minisini wrote: > Le 28/10/2018 ? 22:46, Gianluigi a ?crit?: >> Hi Charlie, >> try with DirChooser1.Reload (not Refresh). >> >> Regards >> Gianluigi >> >> Il giorno dom 28 ott 2018 alle ore 19:47 Charlie Ogier >> > ha scritto: >> >> ??? Hi, >> >> ??? I am having trouble getting DirChooser to refresh, even with Wait. I >> ??? have attached an example with system information included. >> >> ??? Is this a bug or am I missing something? >> >> ??? Thanks, >> >> ??? Charlie >> >> ??? ----[ Gambas mailing-list is hosted by >> https://www.hostsharing.net ]---- >> > > Yes. Refresh() triggers a redraw. Only Reload() refresh the directory > contents from the disk. > > Regards, > From hans at gambas-buch.de Tue Oct 30 12:14:03 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 30 Oct 2018 12:14:03 +0100 Subject: [Gambas-user] Documentation for LOCK In-Reply-To: <714e3968-36dc-e830-d45c-be793f68cd59@gambas-buch.de> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> <714e3968-36dc-e830-d45c-be793f68cd59@gambas-buch.de> Message-ID: Hello. I am working on a chapter "Paths in Gambas" for the Gambas book in connection with the stream & input/output functions. The documentation says: /Beware that the locked file is emptied! So never use a file whose contents is important./ But when I execute the following statement: ? Public hLockFile As Stream ? ... ? Try hLockFile = Lock Desktop.DataDir &/ "gambasbook/test.txt" then the file is not emptied. Is the documentation faulty? Yours sincerely Hans From g4mba5 at gmail.com Tue Oct 30 12:33:05 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 30 Oct 2018 12:33:05 +0100 Subject: [Gambas-user] Documentation for LOCK In-Reply-To: References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> <714e3968-36dc-e830-d45c-be793f68cd59@gambas-buch.de> Message-ID: <346eb9d7-4f9b-0e4f-0b3a-b873fdf85f40@gmail.com> Le 30/10/2018 ? 12:14, Hans Lehmann a ?crit?: > > Hello. > > I am working on a chapter "Paths in Gambas" for the Gambas book in > connection with the stream & input/output functions. > The documentation says: > > /Beware that the locked file is emptied! So never use a file whose > contents is important./ > > But when I execute the following statement: > > ? Public hLockFile As Stream > ? ... > ? Try hLockFile = Lock Desktop.DataDir &/ "gambasbook/test.txt" > > then the file is not emptied. Is the documentation faulty? > > Yours sincerely > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- It depends on the Gambas version. Now it is not emptied anymore. Regards, -- Beno?t Minisini From hans at gambas-buch.de Tue Oct 30 12:52:43 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 30 Oct 2018 12:52:43 +0100 Subject: [Gambas-user] Documentation for LOCK In-Reply-To: <346eb9d7-4f9b-0e4f-0b3a-b873fdf85f40@gmail.com> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> <714e3968-36dc-e830-d45c-be793f68cd59@gambas-buch.de> <346eb9d7-4f9b-0e4f-0b3a-b873fdf85f40@gmail.com> Message-ID: <5d740e7b-0bda-3abf-825f-b1fed3759e14@gambas-buch.de> Am 30.10.18 um 12:33 schrieb Beno?t Minisini: > It depends on the Gambas version. Now it is not emptied anymore. Hello. Ok. In order to inform book readers, it would be helpful to know which Gambas version does not empty a locked file anymore. Hans From hans at gambas-buch.de Tue Oct 30 13:02:15 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 30 Oct 2018 13:02:15 +0100 Subject: [Gambas-user] Documentation for LOCK In-Reply-To: <346eb9d7-4f9b-0e4f-0b3a-b873fdf85f40@gmail.com> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> <714e3968-36dc-e830-d45c-be793f68cd59@gambas-buch.de> <346eb9d7-4f9b-0e4f-0b3a-b873fdf85f40@gmail.com> Message-ID: <058e4356-c1cb-7c07-0a6d-a4b0a2338acc@gambas-buch.de> Please change the documentation for LOCK. Hans From zerkowski at bouquiniste.biz Wed Oct 31 16:50:52 2018 From: zerkowski at bouquiniste.biz (zerkowski sur bouquiniste.biz) Date: Wed, 31 Oct 2018 16:50:52 +0100 Subject: [Gambas-user] Probleme gambas avec mysql sur les dates Message-ID: <43cc42af-01d8-cb59-948a-08fe06795331@bouquiniste.biz> Bonjour, J'ai plusieurs programmes fonctionnant en production qui tourne sous ubuntu 16.04 . Sur une machine de test j'ai install? ubuntu 18.04 et r?install? les m?mes programmes et les m?mes bases de donn?es. J'ai deux soucis avec gambas et mysql : - avant je r?cup?rais une date sous la forme mm/jj/aaaa maintenant je r?cup?re la date sous la forme mm/jj/aaaa hh:mm - quand je lis une date dans une table mysql, j'obtiens la date mysql moins 1 jour ! quelques tests ci-dessous. merci pour votre aide. C.Z. ================================================================= Code gambas utilis? Public Sub Button1_Click() Dim $cCon As Connection Dim r As String Dim res As Result ? $cCon = New Connection ?? With $cCon ??? .Type = "mysql" ??? .Host = "127.0.0.1" ??? .Login = "root" ??? .Password = "******" ??? .Name = "livres" ??? .Open ? End With ? r = "select * from livres where numero=122" ? res = $cCon.Exec(r) ? Print ">> gambas : " & res["datecreation"] End =================================================================== MACHINE DE PRODUCTION - ubuntu 16.04 - mysql 5.7.23-0 - gambas 3.8.4 -------------------------- resultat mysql -------------------------- mysql> use livres; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> select datecreation from livres where numero=122; +--------------+ | datecreation | +--------------+ | 2009-02-19?? | +--------------+ 1 row in set (0,01 sec) mysql> ---------------------------------------- resultat gambas avec le programme de test ---------------------------------------- >> gambas : 02/19/2009 ===================================================================== MACHINE DE TEST - ubuntu 18.04 - mysql 5.7.23-0 - gambas 3.11.4 (origine ppa) -------------------------- resultat mysql -------------------------- mysql> use livres; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> select datecreation from livres where numero=122 ??? -> ; +--------------+ | datecreation | +--------------+ | 2009-02-19?? | +--------------+ 1 row in set (0.05 sec) mysql> ---------------------------------------- resultat gambas avec le programme de test ---------------------------------------- >> gambas : 02/18/2009 22:00:00 _______________________________________________ Gambas-user-fr mailing list Gambas-user-fr at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user-fr From g4mba5 at gmail.com Wed Oct 31 18:15:20 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 31 Oct 2018 18:15:20 +0100 Subject: [Gambas-user] Probleme gambas avec mysql sur les dates In-Reply-To: <43cc42af-01d8-cb59-948a-08fe06795331@bouquiniste.biz> References: <43cc42af-01d8-cb59-948a-08fe06795331@bouquiniste.biz> Message-ID: <1aaba69b-89c6-5266-aeea-98d2d1105395@gmail.com> Le 31/10/2018 ? 16:50, zerkowski sur bouquiniste.biz a ?crit?: > Bonjour, > This is an english mailing-list, please write in english! -- Beno?t Minisini