From ian.roper at iinet.net.au Tue Dec 1 00:01:28 2020 From: ian.roper at iinet.net.au (Ian Roper) Date: Tue, 1 Dec 2020 07:01:28 +0800 Subject: [Gambas-user] Colour button - colour not displaying after selecting. Message-ID: Added a colour button to a form. At run time, I can select a colour and set the background colour of another control from the returned value. However the colour button control stays 'white' Any ideas ? Cheers, Ian [System] Gambas=3.15.90 OperatingSystem=Linux Kernel=5.4.0-54-generic Architecture=x86_64 *Distribution=Linux Mint 20 Ulyana* Desktop=CINNAMON Theme=qt5ctproxy Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=4.6.7 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=cinnamon GDM_LANG=en_AU GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=3875 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=en_AU.UTF-8 LANGUAGE=en_AU.UTF-8 LC_ALL=en_AU.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/1358,unix/:/tmp/.ICE-unix/1358 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1430 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 force_s3tc_enable=true -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Tue Dec 1 09:30:08 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 1 Dec 2020 10:30:08 +0200 Subject: [Gambas-user] Cancel the closing of a WebForm In-Reply-To: <4d2be4e8-7999-aa3a-71e7-260f4093f560@gmail.com> References: <20201130201222.M63338@455.co.il> <4d2be4e8-7999-aa3a-71e7-260f4093f560@gmail.com> Message-ID: <20201201082615.M92397@455.co.il> On Mon, 30 Nov 2020 21:27:40 +0100, Beno?t Minisini wrote > Le 30/11/2020 ? 21:20, Mayost Sharon a ?crit?: > > Hello > > > > How to prevent a window WebForm2 closing by clicking the X on the left side of the WebForm2 > > > > > > In WebForm1 When I press a button I display WebForm2 as follows > > > > Export > > > > > > Public Sub WebButton1_Click() > > > > Webform2.ShowModal(Webform1) > > > > End > > > > > > How to cancel close WebForm2 by the X on the side > > > > Thanks > > > > You have to cancel the Close event with STOP EVENT. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- I tried, inside WebForm2 at the event Close Public Sub WebForm_Close() Stop Event End It does not work, still the WebForm2 closes when I press the X button Thanks From sharon at 455.co.il Tue Dec 1 09:51:06 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 1 Dec 2020 10:51:06 +0200 Subject: [Gambas-user] Complete WebForm after a period mark Message-ID: <20201201084239.M46939@455.co.il> When I open Gambas 3.15.2 (FEDORA 64BIT) New project In the type of project I choose: Web Form Application Before I run the project I get into a button Click event And impression webform1. He completes and gives me a list of all the properties and commands After I run the project Again I enter the event and make an impression WebForm1. He gives me a partial list and does not show the whole list Does this indicate any problem? I am attaching two image files that show the problem Thanks From sharon at 455.co.il Tue Dec 1 10:16:49 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 1 Dec 2020 11:16:49 +0200 Subject: [Gambas-user] Complete WebForm after a period mark In-Reply-To: <20201201084239.M46939@455.co.il> References: <20201201084239.M46939@455.co.il> Message-ID: <20201201091649.M65079@455.co.il> On Tue, 1 Dec 2020 10:51:06 +0200, Mayost Sharon wrote > When I open Gambas 3.15.2 (FEDORA 64BIT) > > New project > > In the type of project I choose: > Web Form Application > > Before I run the project I get into a button Click event > And impression > webform1. > He completes and gives me a list of all the properties and commands > > After I run the project > Again I enter the event and make an impression > WebForm1. > He gives me a partial list and does not show the whole list > > Does this indicate any problem? > > I am attaching two image files that show the problem > > Thanks > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Sorry I forgot to attach the files in the previous post -------------- next part -------------- A non-text attachment was scrubbed... Name: Before_Run.jpg Type: image/jpeg Size: 95360 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: After_Run.jpg Type: image/jpeg Size: 91947 bytes Desc: not available URL: From charlie at cogier.com Tue Dec 1 13:24:11 2020 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 1 Dec 2020 12:24:11 +0000 Subject: [Gambas-user] Colour button - colour not displaying after selecting. In-Reply-To: References: Message-ID: Hi Ian, Try the attached as a possible work around. Charlie On 30/11/2020 23:01, Ian Roper wrote: > > Added a colour button to a form. > > At run time, I can select a colour and set the background colour of > another control from the returned value. > > However the colour button control stays 'white' > > > Any ideas ? > > > Cheers, > > Ian > > > [System] > Gambas=3.15.90 > OperatingSystem=Linux > Kernel=5.4.0-54-generic > Architecture=x86_64 > *Distribution=Linux Mint 20 Ulyana* > Desktop=CINNAMON > Theme=qt5ctproxy > Language=en_AU.UTF-8 > Memory=3808M > > [Libraries] > Cairo=libcairo.so.2.11600.0 > Curl=libcurl.so.4.6.0 > DBus=libdbus-1.so.3.19.11 > GDK2=libgdk-x11-2.0.so.0.2400.32 > GDK3=libgdk-3.so.0.2404.16 > GStreamer=libgstreamer-1.0.so.0.1602.0 > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2404.16 > OpenGL=libGL.so.1.7.0 > Poppler=libpoppler.so.97.0.0 > QT5=libQt5Core.so.5.12.8 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CINNAMON_VERSION=4.6.7 > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt5 > GDMSESSION=cinnamon > GDM_LANG=en_AU > GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop > GIO_LAUNCHED_DESKTOP_FILE_PID=3875 > GJS_DEBUG_OUTPUT=stderr > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > LANG=en_AU.UTF-8 > LANGUAGE=en_AU.UTF-8 > LC_ALL=en_AU.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin > PWD= > QT_ACCESSIBILITY=1 > QT_LOGGING_RULES=*.debug=false > QT_QPA_PLATFORMTHEME=qt5ct > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1358,unix/:/tmp/.ICE-unix/1358 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1430 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_CLASS=user > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > force_s3tc_enable=true > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestNew-0.0.1.tar.gz Type: application/gzip Size: 12036 bytes Desc: not available URL: From bsteers4 at gmail.com Tue Dec 1 15:35:01 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 1 Dec 2020 14:35:01 +0000 Subject: [Gambas-user] Cancel the closing of a WebForm In-Reply-To: <20201201082615.M92397@455.co.il> References: <20201130201222.M63338@455.co.il> <4d2be4e8-7999-aa3a-71e7-260f4093f560@gmail.com> <20201201082615.M92397@455.co.il> Message-ID: You need to use the name of the object not the object type. Try this.. Public Sub WebForm2_Close() :) On Tue, 1 Dec 2020 at 08:31, Mayost Sharon wrote: > On Mon, 30 Nov 2020 21:27:40 +0100, Beno?t Minisini wrote > > Le 30/11/2020 ? 21:20, Mayost Sharon a ?crit : > > > Hello > > > > > > How to prevent a window WebForm2 closing by clicking the X on the left > side of the WebForm2 > > > > > > > > > In WebForm1 When I press a button I display WebForm2 as follows > > > > > > Export > > > > > > > > > Public Sub WebButton1_Click() > > > > > > Webform2.ShowModal(Webform1) > > > > > > End > > > > > > > > > How to cancel close WebForm2 by the X on the side > > > > > > Thanks > > > > > > > You have to cancel the Close event with STOP EVENT. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > I tried, inside WebForm2 at the event Close > > Public Sub WebForm_Close() > > Stop Event > > End > > > It does not work, still the WebForm2 closes when I press the X button > > Thanks > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Dec 1 15:42:26 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 1 Dec 2020 14:42:26 +0000 Subject: [Gambas-user] Complete WebForm after a period mark In-Reply-To: <20201201091649.M65079@455.co.il> References: <20201201084239.M46939@455.co.il> <20201201091649.M65079@455.co.il> Message-ID: I found if you type some letters and an incomplete list appears pressing backspace a couple of times the correct list appears :) :) On Tue, 1 Dec 2020 at 09:17, Mayost Sharon wrote: > On Tue, 1 Dec 2020 10:51:06 +0200, Mayost Sharon wrote > > When I open Gambas 3.15.2 (FEDORA 64BIT) > > > > New project > > > > In the type of project I choose: > > Web Form Application > > > > Before I run the project I get into a button Click event > > And impression > > webform1. > > He completes and gives me a list of all the properties and commands > > > > After I run the project > > Again I enter the event and make an impression > > WebForm1. > > He gives me a partial list and does not show the whole list > > > > Does this indicate any problem? > > > > I am attaching two image files that show the problem > > > > Thanks > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > Sorry > I forgot to attach the files in the previous post > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Tue Dec 1 15:54:49 2020 From: adamnt42 at gmail.com (Bruce) Date: Wed, 2 Dec 2020 01:24:49 +1030 Subject: [Gambas-user] Colour button - colour not displaying after selecting. In-Reply-To: References: Message-ID: <1d0d6a2b-cf16-31f2-462c-b4473070df78@gmail.com> On 1/12/20 9:31 am, Ian Roper wrote: > Added a colour button to a form. > > At run time, I can select a colour and set the background colour of > another control from the returned value. > > However the colour button control stays 'white' > > > Any ideas ? > > > Cheers, > > Ian > > ... > > [Libraries] > Cairo=libcairo.so.2.11600.0 > Curl=libcurl.so.4.6.0 > DBus=libdbus-1.so.3.19.11 > GDK2=libgdk-x11-2.0.so.0.2400.32 > GDK3=libgdk-3.so.0.2404.16 > GStreamer=libgstreamer-1.0.so.0.1602.0 > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2404.16 > OpenGL=libGL.so.1.7.0 > Poppler=libpoppler.so.97.0.0 > QT5=libQt5Core.so.5.12.8 ... > GB_GUI=gb.qt5 Interesting...? The attached works properly here for QT4 and QT5 but not for GTK3 and yet your sysinfos says you are usinf QT5. What does the attached project show? regards bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: clrbtn-0.0.1.tar.gz Type: application/gzip Size: 11959 bytes Desc: not available URL: From adamnt42 at gmail.com Tue Dec 1 15:59:02 2020 From: adamnt42 at gmail.com (Bruce) Date: Wed, 2 Dec 2020 01:29:02 +1030 Subject: [Gambas-user] Report woes again In-Reply-To: References: <2a3714ba-6492-a4c3-c266-d6869b3ee91c@gmail.com> Message-ID: On 1/12/20 6:09 am, Fabien Bodard wrote: > Give me a fail exemple so I can debug > > Le dim. 29 nov. 2020 ? 16:16, Bruce a ?crit : > >> After the update the Visible property now works OK, thank you! >> But now it seems to want to print 4200 odd pages or at least thats how >> far it gets before appearing to hang. >> >> ??? >> >> regards >> bruce >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi Fabien, It turns out that this happens with only one report. I think it must be something in that report layout but I am having trouble identifying what is causing it. Put this on the backburner for a while. regards bruce From bsteers4 at gmail.com Tue Dec 1 16:08:16 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 1 Dec 2020 15:08:16 +0000 Subject: [Gambas-user] customising my gambas TextEditorMode In-Reply-To: References: Message-ID: Never mind i found it :) If anyone else finds this post looking to do the same type of mod I did this. In app/src/gambas3/.src/Editor/Code/FEditor.class I changed the *InsertFunction*() parameters on lines 619 and 621, added an additional optional field.. *InsertFunction(sName & "_Read", sType, False, "", bStatic, "Return $" & sName)* and * InsertFunction(sName & "_Write", "", False, "Value As " & sType, bStatic, "$" & sName & " = Value")* The last parameters are new " *Optional sInsertString As String*" The write commands in *InsertFunction*() at line 514 now look like this.. * If sType Then $hEditor.Insert("\n" & sStatic & sPublic & " Function " & sProc & "(" & sSign & ") As " & sType & "\n\n" & Space$(Project.TabSize) & IIf(sInsertString, sInsertString, "") & "\n\nEnd\n") Else $hEditor.Insert("\n" & sStatic & sPublic & " Sub " & sProc & "(" & sSign & ")\n\n" & Space$(Project.TabSize) & IIf(sInsertString, sInsertString, "") & "\n\nEnd\n") Endif* Got my gambas doing this now... http://bws.org.uk/images/screenrecord-2020-12-01_14.54.36.mp4 Loving it, that'll save me some typing :) BruceS On Fri, 27 Nov 2020 at 19:40, Bruce Steers wrote: > Hi > I'm trying to customise my gambas a bit. but i cannot find the code (not > for a lack of looking) > > What i want to do is alter the auto-fill when i type a property. > If i type for example .. > *Property Runable As Boolean* (then hit return) > I get automatically written at the bottom of my file > > > > > > > > *Private Function Runable_Read() As Boolean EndPrivate Sub > Runable_Write(Value As Boolean)End* > --- > That's awesome but i want it to add something more like this ... > *Private $Runable As Boolean *(this added just below the property > declaration) > > > > > > > *Private Function Runable_Read() As BooleanReturn $RunableEndPrivate Sub > Runable_Write(Value As Boolean)* > > *$Runable = Value * > *End* > > Have been through the highlight and mode and editor code but not seeing > where it happens to modify it, ? > > tia > all the best > BruceS > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Dec 1 16:12:00 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 1 Dec 2020 15:12:00 +0000 Subject: [Gambas-user] customising my gambas TextEditorMode In-Reply-To: References: Message-ID: forgot to mention I also added this to line 617 .. * $hEditor.Insert("\n\nPrivate $" & sName & " As " & sType & gb.Lf)* > In app/src/gambas3/.src/Editor/Code/FEditor.class > I changed the *InsertFunction*() parameters on lines 619 and 621, added > an additional optional field.. > *InsertFunction(sName & "_Read", sType, False, "", bStatic, "Return $" & > sName)* > and > * InsertFunction(sName & "_Write", "", False, "Value As " & sType, > bStatic, "$" & sName & " = Value")* > > > Got my gambas doing this now... > http://bws.org.uk/images/screenrecord-2020-12-01_14.54.36.mp4 > > Loving it, that'll save me some typing :) > BruceS > > BruceS > >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Tue Dec 1 16:39:50 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 1 Dec 2020 17:39:50 +0200 Subject: [Gambas-user] Cancel the closing of a WebForm In-Reply-To: References: <20201130201222.M63338@455.co.il> <4d2be4e8-7999-aa3a-71e7-260f4093f560@gmail.com> <20201201082615.M92397@455.co.il> Message-ID: <20201201153752.M80647@455.co.il> On Tue, 1 Dec 2020 14:35:01 +0000, Bruce Steers wrote > You need to use the name of the object not the object type. > Try this.. > > Public Sub WebForm2_Close() > :) > > On Tue, 1 Dec 2020 at 08:31, Mayost Sharon wrote: > > > On Mon, 30 Nov 2020 21:27:40 +0100, Beno?t Minisini wrote > > > Le 30/11/2020 ? 21:20, Mayost Sharon a ?crit : > > > > Hello > > > > > > > > How to prevent a window WebForm2 closing by clicking the X on the left > > side of the WebForm2 > > > > > > > > > > > > In WebForm1 When I press a button I display WebForm2 as follows > > > > > > > > Export > > > > > > > > > > > > Public Sub WebButton1_Click() > > > > > > > > Webform2.ShowModal(Webform1) > > > > > > > > End > > > > > > > > > > > > How to cancel close WebForm2 by the X on the side > > > > > > > > Thanks > > > > > > > > > > You have to cancel the Close event with STOP EVENT. > > > > > > Regards, > > > > > > -- > > > Beno?t Minisini > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > I tried, inside WebForm2 at the event Close > > > > Public Sub WebForm_Close() > > > > Stop Event > > > > End > > > > > > It does not work, still the WebForm2 closes when I press the X button > > > > Thanks > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > I checked and also does not work Regarding the event it gives me WebForm_Close when I right click on the form and there select events and then the IDE creates the event itself Thanks From sharon at 455.co.il Tue Dec 1 16:53:58 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 1 Dec 2020 17:53:58 +0200 Subject: [Gambas-user] Complete WebForm after a period mark In-Reply-To: References: <20201201084239.M46939@455.co.il> <20201201091649.M65079@455.co.il> Message-ID: <20201201155351.M75039@455.co.il> On Tue, 1 Dec 2020 14:42:26 +0000, Bruce Steers wrote > I found if you type some letters and an incomplete list appears pressing > backspace a couple of times the correct list appears :) > > :) > > On Tue, 1 Dec 2020 at 09:17, Mayost Sharon wrote: > > > On Tue, 1 Dec 2020 10:51:06 +0200, Mayost Sharon wrote > > > When I open Gambas 3.15.2 (FEDORA 64BIT) > > > > > > New project > > > > > > In the type of project I choose: > > > Web Form Application > > > > > > Before I run the project I get into a button Click event > > > And impression > > > webform1. > > > He completes and gives me a list of all the properties and commands > > > > > > After I run the project > > > Again I enter the event and make an impression > > > WebForm1. > > > He gives me a partial list and does not show the whole list > > > > > > Does this indicate any problem? > > > > > > I am attaching two image files that show the problem > > > > > > Thanks > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > Sorry > > I forgot to attach the files in the previous post > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > I checked with me it does not work But maybe you meant that when you click back you also delete the number 1 so it gives you full completion but when you register with the number 1 it does not give a complete list WebForm gives a complete list WebForm1 does not give a complete list Thanks From g4mba5 at gmail.com Tue Dec 1 18:14:01 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 1 Dec 2020 18:14:01 +0100 Subject: [Gambas-user] customising my gambas TextEditorMode In-Reply-To: References: Message-ID: <9438c767-78cf-b757-e43f-da0cc561b205@gmail.com> Le 01/12/2020 ? 16:12, Bruce Steers a ?crit?: > > forgot to mention I also added this to line 617 .. > *? $hEditor.Insert("\n\nPrivate $" & sName & " As " & sType & gb.Lf) > * > Otherwise, you can use the syntax: Property FooBar As String Use $sFooBar It's faster to write! https://gambaswiki.org/wiki/lang/propdecl Regards, -- Beno?t Minisini From gambas.fr at gmail.com Tue Dec 1 18:18:21 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 1 Dec 2020 18:18:21 +0100 Subject: [Gambas-user] Report woes again In-Reply-To: References: <2a3714ba-6492-a4c3-c266-d6869b3ee91c@gmail.com> Message-ID: there is something caused by the fact you add something.. the report try to reach something but can't. or something is too big for one page so try to push it to the next page. or too small for the container. The logic behind the report engine is in the vertical way if something can't be put in a container then create a new page with the same elements but not with the container content... then continue to fill it. Le mar. 1 d?c. 2020 ? 16:00, Bruce a ?crit : > > On 1/12/20 6:09 am, Fabien Bodard wrote: > > Give me a fail exemple so I can debug > > > > Le dim. 29 nov. 2020 ? 16:16, Bruce a ?crit : > > > >> After the update the Visible property now works OK, thank you! > >> But now it seems to want to print 4200 odd pages or at least thats how > >> far it gets before appearing to hang. > >> > >> ??? > >> > >> regards > >> bruce > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >> > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > Hi Fabien, > > It turns out that this happens with only one report. I think it must be > something in that report layout but I am having trouble identifying what > is causing it. > > Put this on the backburner for a while. > > regards > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From adamnt42 at gmail.com Tue Dec 1 19:05:32 2020 From: adamnt42 at gmail.com (Bruce) Date: Wed, 2 Dec 2020 04:35:32 +1030 Subject: [Gambas-user] IDE crash with commit e186a1b75 (TabStrip should not crash anymore with an undefined symbol) Message-ID: <6285cfdb-1b39-b3d7-dfff-695632185fdd@gmail.com> My IDE crashes with the following error when I access the help. ------------------------------------------------------ This application has raised an unexpected error and must abort. 11] Unknown symbol 'Clear' in class 'WebView'. MHelp.InitWebViewWith.448 --------------------------------------------- A similar error also happens if I have autocompletion turned on and I start typeing a keyword or symbol name etc. Has anyone else experienced this (it might be a local error)? tia bruce [System] Gambas=3.15.2 f525b7012 (master) <-- ignore this it is a local merge OperatingSystem=Linux Kernel=5.9.10-pclos1 Architecture=x86_64 Distribution=PCLinuxOS Desktop=MATE Theme=plastique Language=en_AU.UTF-8 Memory=7425M [Libraries] [Environment] BROWSER=/usr/bin/www-browser CANBERRA_DRIVER=pulse DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-lCmrp7cmCc,guid=31c7f8ef039ac26d9e8831415fc58307 DERBY_HOME=/usr/lib/jvm/jdk-15.0.1/db DESKTOP_SESSION=/etc/X11/dm/Sessions/05MATE DISPLAY=:0 DSSI_PATH=/usr/lib64/dssi EDITOR=pluma GB_GUI=gb.qt4 GCONF_TMPDIR=/tmp GIO_LAUNCHED_DESKTOP_FILE=/Desktop/projectbrowser5.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=13535 GIT_PAGER=less -FRS GTK2_RC_FILES=/.gtkrc-2.0 GTK_CSD=0 GTK_OVERLAY_SCROLLING=0 G_FILENAME_ENCODING=@locale HISTCONTROL=ignoredups HISTSIZE=1000 HOME= HOSTNAME= INPUTRC=/etc/inputrc J2REDIR=/usr/lib/jvm/jdk-15.0.1 J2SDKDIR=/usr/lib/jvm/jdk-15.0.1 JAVA_HOME=/usr/lib/jvm/jdk-15.0.1 LADSPA_PATH=/usr/lib64/ladspa/ LANG=en_AU.UTF-8 LANGUAGE=en_AU.UTF-8 LC_ADDRESS=en_AU.UTF-8 LC_ALL=en_AU.UTF-8 LC_COLLATE=en_AU.UTF-8 LC_CTYPE=en_AU.UTF-8 LC_IDENTIFICATION=en_AU.UTF-8 LC_MEASUREMENT=en_AU.UTF-8 LC_MESSAGES=en_AU.UTF-8 LC_MONETARY=en_AU.UTF-8 LC_NAME=en_AU.UTF-8 LC_NUMERIC=en_AU.UTF-8 LC_PAPER=en_AU.UTF-8 LC_SOURCED=1 LC_TELEPHONE=en_AU.UTF-8 LC_TIME=en_AU.UTF-8 LD_PRELOAD=/usr/lib64/libgtk3-nocsd.so.0 LESS=-MM LESSCHARSET=utf-8 LESSKEY=/etc/.less LESSOPEN=|/usr/bin/lesspipe.sh %s LOGNAME= LS_COLORS= MAIL=/var/spool/mail/ MATE_DESKTOP_SESSION_ID=this-is-deprecated MDV_MENU_STYLE=discovery MESA_GLSL_CACHE_DISABLE=1 META_CLASS=desktop NLSPATH=/usr/share/locale/%l/%N PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/libexec:/usr/games:/usr/lib64/qt5/bin:/usr/lib64/qt4/bin:/bin:/sbin:/usr/sbin PWD= PYTHONDONTWRITEBYTECODE=1 PYTHONSTARTUP=/etc/pythonrc.py QML_DISABLE_DISK_CACHE=1 QT4DOCDIR=/usr/share/doc/qt4 QT5DOCDIR=/usr/share/doc/qt5 QTDIR=/usr/lib64/qt4 QTDIR5=/usr/lib64/qt5 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_PLUGIN_PATH=/usr/lib64/qt5/plugins:/usr/lib64/qt5/plugins/kcms: QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/7343,unix/:/tmp/.ICE-unix/7343 SHELL=/bin/bash SHLVL=1 SSH_AUTH_SOCK=/var/run/user/500/keyring/ssh TMP=/tmp/ TMPDIR=/tmp/ TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CACHE_HOME=/.cache XDG_CONFIG_DIRS=/etc/xdg/mate:/etc/xdg/discovery:/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_DATA_HOME=/.local/share XDG_RUNTIME_DIR=/var/run/user/500 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_COOKIE=-1606779655.549814-1303751307 XDG_SESSION_DESKTOP= XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session3 XDG_SESSION_TYPE=x11 XDG_VTNR=8 XMODIFIERS=@im=none _=/usr/bin/gambas3 From g4mba5 at gmail.com Tue Dec 1 19:25:00 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 1 Dec 2020 19:25:00 +0100 Subject: [Gambas-user] IDE crash with commit e186a1b75 (TabStrip should not crash anymore with an undefined symbol) In-Reply-To: <6285cfdb-1b39-b3d7-dfff-695632185fdd@gmail.com> References: <6285cfdb-1b39-b3d7-dfff-695632185fdd@gmail.com> Message-ID: <2b840f3c-a617-2151-3a9f-20f2e0fc4c54@gmail.com> Le 01/12/2020 ? 19:05, Bruce a ?crit?: > My IDE crashes with the following error when I access the help. > > ------------------------------------------------------ > This application has raised an unexpected > error and must abort. > > 11] Unknown symbol 'Clear' in class 'WebView'. > > MHelp.InitWebViewWith.448 > --------------------------------------------- > Something is wrong in your Gambas installation. The WebView.Clear method has been implemented in 'gb.gtk3.webview', 'gb.qt4.webview' and 'gb.qt5.webview' since Nov. 14th. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Tue Dec 1 21:57:58 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 1 Dec 2020 20:57:58 +0000 Subject: [Gambas-user] customising my gambas TextEditorMode In-Reply-To: <9438c767-78cf-b757-e43f-da0cc561b205@gmail.com> References: <9438c767-78cf-b757-e43f-da0cc561b205@gmail.com> Message-ID: Haha. I learn something new every day. Just a shame I didn't learn it yesterday ? Thanks Ben. One less mod to apply to my flavour of gambas ? ? My branch is now just going to have project argument preservation, quote wrapping pressing alt and the mime check in the install file to speed up installation. (And my sh highlight updates of course) It's good, I dont really want a different gambas I just gotta have some things my way. Merci On Tue, 1 Dec 2020, 17:15 Beno?t Minisini, wrote: > Le 01/12/2020 ? 16:12, Bruce Steers a ?crit : > > > > forgot to mention I also added this to line 617 .. > > * $hEditor.Insert("\n\nPrivate $" & sName & " As " & sType & gb.Lf) > > * > > > > Otherwise, you can use the syntax: > > Property FooBar As String Use $sFooBar > > It's faster to write! > > https://gambaswiki.org/wiki/lang/propdecl > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.roper at iinet.net.au Tue Dec 1 22:52:03 2020 From: ian.roper at iinet.net.au (Ian Roper) Date: Wed, 2 Dec 2020 05:52:03 +0800 Subject: [Gambas-user] Colour button - colour not displaying after selecting. In-Reply-To: <1d0d6a2b-cf16-31f2-462c-b4473070df78@gmail.com> References: <1d0d6a2b-cf16-31f2-462c-b4473070df78@gmail.com> Message-ID: <3aeb159e-53f7-2fe1-88ca-b291e12faab5@iinet.net.au> Thanks Bruce, As you can see by the attached image , it replicates the problem. I have switched between the various graphics entities but there is no change to the outcome. It has worked in the past on the same machine I'm using now, but can't remember how long ago. Obviously, a previous version of Gambas and the previous version of Mint (19) Cheers, I. On 1/12/20 10:54 pm, Bruce wrote: > On 1/12/20 9:31 am, Ian Roper wrote: >> Added a colour button to a form. >> >> At run time, I can select a colour and set the background colour of >> another control from the returned value. >> >> However the colour button control stays 'white' >> >> >> Any ideas ? >> >> >> Cheers, >> >> Ian >> >> > ... >> >> [Libraries] >> Cairo=libcairo.so.2.11600.0 >> Curl=libcurl.so.4.6.0 >> DBus=libdbus-1.so.3.19.11 >> GDK2=libgdk-x11-2.0.so.0.2400.32 >> GDK3=libgdk-3.so.0.2404.16 >> GStreamer=libgstreamer-1.0.so.0.1602.0 >> GTK+2=libgtk-x11-2.0.so.0.2400.32 >> GTK+3=libgtk-3.so.0.2404.16 >> OpenGL=libGL.so.1.7.0 >> Poppler=libpoppler.so.97.0.0 >> QT5=libQt5Core.so.5.12.8 > > ... >> GB_GUI=gb.qt5 > > > Interesting...? The attached works properly here for QT4 and QT5 but > not for GTK3 and yet your sysinfos says you are usinf QT5. > > What does the attached project show? > > regards > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2020-12-02 05-39-21.png Type: image/png Size: 8292 bytes Desc: not available URL: From karl.reinl at fen-net.de Tue Dec 1 23:10:35 2020 From: karl.reinl at fen-net.de (Karl Reinl) Date: Tue, 01 Dec 2020 23:10:35 +0100 Subject: [Gambas-user] Colour button - colour not displaying after selecting. In-Reply-To: <3aeb159e-53f7-2fe1-88ca-b291e12faab5@iinet.net.au> References: <1d0d6a2b-cf16-31f2-462c-b4473070df78@gmail.com> <3aeb159e-53f7-2fe1-88ca-b291e12faab5@iinet.net.au> Message-ID: <6ccfb2681858675180cbb340f7bb6b6e718c02d9.camel@fen-net.de> Am Mittwoch, den 02.12.2020, 05:52 +0800 schrieb Ian Roper via User: > Thanks Bruce, > As you can see by the attached image , it replicates the problem. > I have switched between the various graphics entities but there > is no change to the outcome. > It has worked in the past on the same machine I'm using now, but > can't remember how long ago. > Obviously, a previous version of Gambas and the previous version > of Mint (19) > > > > Cheers, > > > I. > > > > > > > > > > > > On 1/12/20 10:54 pm, Bruce wrote: > > > > > On > > 1/12/20 9:31 am, Ian Roper wrote: > > > > > > > > > Added a colour button to a form. > > > > > > > > > > > > > > > At run time, I can select a colour and set the background > > > colour > > > of another control from the returned value. > > > > > > > > > > > > > > > However the colour button control stays 'white' > > > > > > > > > > > > > > > > > > > > > Any ideas ? > > > > > > > > > > > > > > > > > > > > > Cheers, > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > [Libraries] > > > > > > > > > Cairo=libcairo.so.2.11600.0 > > > > > > > > > Curl=libcurl.so.4.6.0 > > > > > > > > > DBus=libdbus-1.so.3.19.11 > > > > > > > > > GDK2=libgdk-x11-2.0.so.0.2400.32 > > > > > > > > > GDK3=libgdk-3.so.0.2404.16 > > > > > > > > > GStreamer=libgstreamer-1.0.so.0.1602.0 > > > > > > > > > GTK+2=libgtk-x11-2.0.so.0.2400.32 > > > > > > > > > GTK+3=libgtk-3.so.0.2404.16 > > > > > > > > > OpenGL=libGL.so.1.7.0 > > > > > > > > > Poppler=libpoppler.so.97.0.0 > > > > > > > > > QT5=libQt5Core.so.5.12.8 > > > > > > > > > > > > > > > > > ... > > > > > > > > > GB_GUI=gb.qt5 > > > > > > > > > > > > > > > > > > > > > Interesting...? The attached works properly here for QT4 and > > QT5 > > but not for GTK3 and yet your sysinfos says you are usinf > > QT5. > > > > > > > > > > What does the attached project show? > > > > > > > > > > regards > > > > > > bruce > > > > > > > > > > Salut Ian , do you use gtk3? I ran into 'drawing problems' with gtk3 witch i had not with gtk2 and qt4/qt5. -- Amicalement Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 2 02:22:43 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 2 Dec 2020 01:22:43 +0000 Subject: [Gambas-user] customising my gambas TextEditorMode In-Reply-To: <9438c767-78cf-b757-e43f-da0cc561b205@gmail.com> References: <9438c767-78cf-b757-e43f-da0cc561b205@gmail.com> Message-ID: Hey I Just reverted the changes I made , I tried it and found Using Use $name doesn't work. [System] Gambas=3.15.90 6ac1a7b3f (bruces-patched) OperatingSystem=Linux Kernel=5.4.0-56-generic Architecture=x86_64 Distribution=Linux Mint 20 Ulyana Desktop=MATE Theme=qt5ctproxy Language=en_GB.UTF-8 Memory=7952M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 CLUTTER_IM_MODULE=ibus DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=mate GDM_LANG=en_GB GIO_LAUNCHED_DESKTOP_FILE_PID=5028 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=0 HOME= LANG=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LIBVIRT_DEFAULT_URI=qemu:///system LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=ibus QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=ibus QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=qt5ct QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1112,unix/:/tmp/.ICE-unix/1112 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1226 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/share/mate:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus force_s3tc_enable=true On Tue, 1 Dec 2020 at 17:15, Beno?t Minisini wrote: > Le 01/12/2020 ? 16:12, Bruce Steers a ?crit : > > > > forgot to mention I also added this to line 617 .. > > * $hEditor.Insert("\n\nPrivate $" & sName & " As " & sType & gb.Lf) > > * > > > > Otherwise, you can use the syntax: > > Property FooBar As String Use $sFooBar > > It's faster to write! > > https://gambaswiki.org/wiki/lang/propdecl > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 2 16:24:59 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 2 Dec 2020 15:24:59 +0000 Subject: [Gambas-user] using search crashing ide (sometimes) In-Reply-To: <46130180.706.1606335074822.JavaMail.zimbra@westwoodsvcs.com> References: <46130180.706.1606335074822.JavaMail.zimbra@westwoodsvcs.com> Message-ID: I think I fixed mine. :-\ It took a reinstall. But i mean a complete full download/reinstal of everything gambas. I fully uninstalled using *make uninstall* I manually deleted anything gambas related left in */usr/bin /usr/lib /usr/share* I deleted my downloaded gambas clone dir. I re-downloaded the git clone did all from ./reconf-all to 'make install' Now both issues of not getting a menu right clicking the designer and the search box crashing seem to have gone :) Must have been something not getting deleted/refreshed during the compile/install commands Suffice to say the above steps have worked for me. (fingers crossed it stays that way) BruceS On Wed, 25 Nov 2020 at 20:22, Brian G wrote: > I am having the same problem with the filter/search box the ide hangs or > crashes randomly > > Thank You > Brian G > > ------------------------------ > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Dec 3 00:30:07 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 2 Dec 2020 23:30:07 +0000 Subject: [Gambas-user] customising my gambas TextEditorMode In-Reply-To: <9438c767-78cf-b757-e43f-da0cc561b205@gmail.com> References: <9438c767-78cf-b757-e43f-da0cc561b205@gmail.com> Message-ID: Can anyone confirm or deny doing what Ben says works? I tried... Private Type As Integer Use $Type And nothing happened. Bruce. On Tue, 1 Dec 2020, 17:15 Beno?t Minisini, wrote: > Le 01/12/2020 ? 16:12, Bruce Steers a ?crit : > > > > forgot to mention I also added this to line 617 .. > > * $hEditor.Insert("\n\nPrivate $" & sName & " As " & sType & gb.Lf) > > * > > > > Otherwise, you can use the syntax: > > Property FooBar As String Use $sFooBar > > It's faster to write! > > https://gambaswiki.org/wiki/lang/propdecl > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Thu Dec 3 01:03:01 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Wed, 2 Dec 2020 19:03:01 -0500 Subject: [Gambas-user] customising my gambas TextEditorMode In-Reply-To: References: <9438c767-78cf-b757-e43f-da0cc561b205@gmail.com> Message-ID: Nothing should happen.? Did you try compiling your code?? Running your code ie writing to and reading from your property?? It should work. According to the wiki: *Property*?Name *As* *String**Use*?$sName is an exact equivalent of: *Property*?Name *As* *String* *Private*?$sName *As* *String* *Private* *Sub*?Name_Read*()* *As* *String* *Return*?$sName *End* *Private* *Sub*?Name_Write*(*Value *As* *String**)* ??$sName *=*?Value *End* Gambas does not create the equivalent code, as it would with a code snippet.? The property declaration with Use replaces all that code. On 2020-12-02 6:30 p.m., Bruce Steers wrote: > Can anyone confirm or deny doing what Ben says works? > > I tried... > Private Type As Integer Use $Type > > And nothing happened. > Bruce. > > > On Tue, 1 Dec 2020, 17:15 Beno?t Minisini, > wrote: > > Le 01/12/2020 ? 16:12, Bruce Steers a ?crit?: > > > > forgot to mention I also added this to line 617 .. > > *? $hEditor.Insert("\n\nPrivate $" & sName & " As " & sType & gb.Lf) > > * > > > > Otherwise, you can use the syntax: > > Property FooBar As String Use $sFooBar > > It's faster to write! > > https://gambaswiki.org/wiki/lang/propdecl > > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Dec 3 02:55:26 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 3 Dec 2020 01:55:26 +0000 Subject: [Gambas-user] customising my gambas TextEditorMode In-Reply-To: References: <9438c767-78cf-b757-e43f-da0cc561b205@gmail.com> Message-ID: aaaah , thank you sir. Now i understand. (slaps head in stupidity) On Thu, 3 Dec 2020 at 00:12, Tony Morehen wrote: > Nothing should happen. Did you try compiling your code? Running your > code ie writing to and reading from your property? It should work. > > According to the wiki: > > *Property* Name *As* *String* *Use* $sName > > is an exact equivalent of: > > *Property* Name *As* *String**Private* $sName *As* *String* > *Private* *Sub* Name_Read*()* *As* *String* *Return* $sName*End* > *Private* *Sub* Name_Write*(*Value *As* *String**)* > $sName *=* Value*End* > > Gambas does not create the equivalent code, as it would with a code > snippet. The property declaration with Use replaces all that code. > > On 2020-12-02 6:30 p.m., Bruce Steers wrote: > > Can anyone confirm or deny doing what Ben says works? > > I tried... > Private Type As Integer Use $Type > > And nothing happened. > Bruce. > > > On Tue, 1 Dec 2020, 17:15 Beno?t Minisini, wrote: > >> Le 01/12/2020 ? 16:12, Bruce Steers a ?crit : >> > >> > forgot to mention I also added this to line 617 .. >> > * $hEditor.Insert("\n\nPrivate $" & sName & " As " & sType & gb.Lf) >> > * >> > >> >> Otherwise, you can use the syntax: >> >> Property FooBar As String Use $sFooBar >> >> It's faster to write! >> >> https://gambaswiki.org/wiki/lang/propdecl >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Thu Dec 3 07:13:59 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 3 Dec 2020 07:13:59 +0100 Subject: [Gambas-user] customising my gambas TextEditorMode In-Reply-To: References: <9438c767-78cf-b757-e43f-da0cc561b205@gmail.com> Message-ID: And if you add some of the code by your self like Public sub Prop_Write(valie as type) Control of value End It override the virtual one generate by USE.. magic ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Thu Dec 3 11:56:48 2020 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Thu, 3 Dec 2020 11:56:48 +0100 Subject: [Gambas-user] Gambas Web-Form-Apps Message-ID: Hi Although I gained some knowledge about Gambas over the years, I failed to write a Web-App with Gambas. My aim: Writing a Web-Form-App which provides a GUI on a Web-Browser just like those GUIs you get, when you connect with a web-browser to a router or NAS for configuration. My Web-applications would be purely technical, which means, that I want to manage (control) some equipment through a serial interface and this shall be possible from any PC/ mobile phone in my house. So I started a Web-Form-App and added gb.net for the serial interface (the IDE didn't provide any warning). To my disappointment I found, that SerialPort-objects can be generated with a New-constructor, but they didn't work as usual. Right after generating the SerialPort-object I was able to send something over the RS232 interface, but any later attempt raised an "Null object" error. What is wrong? Did I make any mistake? Are Gambas Web-Apps limited to database applications? Are Web-Form-Apps limited to controls designated as "Web"-controls? Are there any workarounds? Would it be possible to include gb.net into a Web-Form-App in the future if not possible today? I have zero experience with web apps and would be grateful for any reply. Best regards Claus P.S: I was using Gambas V3.15.2 with the embedded server. From rwe-sse at osnanet.de Thu Dec 3 12:12:20 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 3 Dec 2020 12:12:20 +0100 Subject: [Gambas-user] Gambas Web-Form-Apps In-Reply-To: References: Message-ID: <711a25c4-c1e2-a0a8-897a-13e9809dd2ac@osnanet.de> Hi Claus The reason for your surprise might be that you do not consider that apps for the web run "on demand" only. So when the page is read, the application runs through once, produces the answer page, sends it and stops. Maybe I am writing nonsense here and gb.web is different? I don't think so, but please correct me if I'm wrong. I have no experience with gb.web yet, only have programmed a few purely coded web applications couple of years ago and did some testing when gb.web was still fairly new. There is a newer technique which lets you think the application runs continuously, like does my banking website. This is called AJAX or Web 2.0, but if you look under the hood, these apps merely run some of the code within the browser and still lease requests in the background like ever before. Regards Rolf Am 03.12.20 um 11:56 schrieb Claus Dietrich: > Hi > > Although I gained some knowledge about Gambas over the years, I failed to write a Web-App with Gambas. My aim: Writing a Web-Form-App which provides a GUI on a Web-Browser just like those GUIs you get, when you connect with a web-browser to a router or NAS for configuration. My Web-applications would be purely technical, which means, that I want to manage (control) some equipment through a serial interface and this shall be possible from any PC/ mobile phone in my house. > > So I started a Web-Form-App and added gb.net for the serial interface (the IDE didn't provide any warning). To my disappointment I found, that SerialPort-objects can be generated with a New-constructor, but they didn't work as usual. Right after generating the SerialPort-object I was able to send something over the RS232 interface, but any later attempt raised an "Null object" error. > > What is wrong? Did I make any mistake? Are Gambas Web-Apps limited to database applications? Are Web-Form-Apps limited to controls designated as "Web"-controls? Are there any workarounds? Would it be possible to include gb.net into a Web-Form-App in the future if not possible today? > > I have zero experience with web apps and would be grateful for any reply. > > Best regards > > Claus > > P.S: I was using Gambas V3.15.2 with the embedded server. > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From g4mba5 at gmail.com Thu Dec 3 12:16:25 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 3 Dec 2020 12:16:25 +0100 Subject: [Gambas-user] Gambas Web-Form-Apps In-Reply-To: References: Message-ID: <9605dd03-4dc9-9eee-917a-9d1daf4825ec@gmail.com> Le 03/12/2020 ? 11:56, Claus Dietrich a ?crit : > Hi > > Although I gained some knowledge about Gambas over the years, I > failed to write a Web-App with Gambas. My aim: Writing a Web-Form-App > which provides a GUI on a Web-Browser just like those GUIs you get, > when you connect with a web-browser to a router or NAS for > configuration. My Web-applications would be purely technical, which > means, that I want to manage (control) some equipment through a > serial interface and this shall be possible from any PC/ mobile phone > in my house. > > So I started a Web-Form-App and added gb.net for the serial interface > (the IDE didn't provide any warning). To my disappointment I found, > that SerialPort-objects can be generated with a New-constructor, but > they didn't work as usual. Right after generating the > SerialPort-object I was able to send something over the RS232 > interface, but any later attempt raised an "Null object" error. > > What is wrong? Did I make any mistake? Are Gambas Web-Apps limited to > database applications? Are Web-Form-Apps limited to controls > designated as "Web"-controls? Are there any workarounds? Would it be > possible to include gb.net into a Web-Form-App in the future if not > possible today? > > I have zero experience with web apps and would be grateful for any > reply. > > Best regards > > Claus > > P.S: I was using Gambas V3.15.2 with the embedded server. > > Where is that project that does not work? Do you use 'gb.web.gui' ? You must use a real http server. The embedded http server is for debugging, it try to serialize requests, so some things may not work with it. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu Dec 3 12:17:44 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 3 Dec 2020 12:17:44 +0100 Subject: [Gambas-user] Gambas Web-Form-Apps In-Reply-To: <711a25c4-c1e2-a0a8-897a-13e9809dd2ac@osnanet.de> References: <711a25c4-c1e2-a0a8-897a-13e9809dd2ac@osnanet.de> Message-ID: <3466d74e-45f0-7795-c711-552f2313980e@gmail.com> Le 03/12/2020 ? 12:12, Rolf-Werner Eilert a ?crit?: > Hi Claus > > The reason for your surprise might be that you do not consider that apps > for the web run "on demand" only. So when the page is read, the > application runs through once, produces the answer page, sends it and > stops. > This is why I replaced 'gb.web.form' by 'gb.web.gui'. With 'gb.web.gui', you can write tasks that continue to run even between requests, as each web session is replaced by a unique process. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Thu Dec 3 12:34:52 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 3 Dec 2020 12:34:52 +0100 Subject: [Gambas-user] Gambas Web-Form-Apps In-Reply-To: <3466d74e-45f0-7795-c711-552f2313980e@gmail.com> References: <711a25c4-c1e2-a0a8-897a-13e9809dd2ac@osnanet.de> <3466d74e-45f0-7795-c711-552f2313980e@gmail.com> Message-ID: <3e079277-413f-ed39-2a0e-061b186d0e2b@osnanet.de> Am 03.12.20 um 12:17 schrieb Beno?t Minisini: > Le 03/12/2020 ? 12:12, Rolf-Werner Eilert a ?crit?: >> Hi Claus >> >> The reason for your surprise might be that you do not consider that >> apps for the web run "on demand" only. So when the page is read, the >> application runs through once, produces the answer page, sends it and >> stops. >> > > This is why I replaced 'gb.web.form' by 'gb.web.gui'. > > With 'gb.web.gui', you can write tasks that continue to run even between > requests, as each web session is replaced by a unique process. > > Regards, > That's clever! I think it's time for me to test it again :) Regards Rolf From rwe-sse at osnanet.de Thu Dec 3 13:07:40 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 3 Dec 2020 13:07:40 +0100 Subject: [Gambas-user] Gambas Web-Form-Apps In-Reply-To: <3466d74e-45f0-7795-c711-552f2313980e@gmail.com> References: <711a25c4-c1e2-a0a8-897a-13e9809dd2ac@osnanet.de> <3466d74e-45f0-7795-c711-552f2313980e@gmail.com> Message-ID: Am 03.12.20 um 12:17 schrieb Beno?t Minisini: > Le 03/12/2020 ? 12:12, Rolf-Werner Eilert a ?crit?: >> Hi Claus >> >> The reason for your surprise might be that you do not consider that >> apps for the web run "on demand" only. So when the page is read, the >> application runs through once, produces the answer page, sends it and >> stops. >> > > This is why I replaced 'gb.web.form' by 'gb.web.gui'. > > With 'gb.web.gui', you can write tasks that continue to run even between > requests, as each web session is replaced by a unique process. > > Regards, > Strange - my Gambas 3.15.2 has no gb.web.gui component. Where is it? I started a new project, choosing Web Form application. Was that wrong? It has gb.web and gb.web.form chosen as default. Regards Rolf From hans at gambas-buch.de Thu Dec 3 13:21:00 2020 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 3 Dec 2020 13:21:00 +0100 Subject: [Gambas-user] Gambas Web-Form-Apps In-Reply-To: References: <711a25c4-c1e2-a0a8-897a-13e9809dd2ac@osnanet.de> <3466d74e-45f0-7795-c711-552f2313980e@gmail.com> Message-ID: <27a3f93f-2c36-2f90-a45c-a8f28bc1297f@gambas-buch.de> Hello Rolf, I am also critical of that. A change to the component gb.web.gui is absolutely necessary if you select 'Web form application' as project type. With kind regards Hans From bsteers4 at gmail.com Thu Dec 3 16:32:00 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 3 Dec 2020 15:32:00 +0000 Subject: [Gambas-user] Fedora33 postgresql Message-ID: Cant get postgresql to configure on fedora33 I installed gambas 3.15.2 from fedora repo and it failed to load. Just kept crashing when trying to launch. So going for compile. Ive managed to get all dependencies but something is missing for postgresql. ? Any clues? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Dec 3 16:41:17 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 3 Dec 2020 15:41:17 +0000 Subject: [Gambas-user] Fedora33 postgresql In-Reply-To: References: Message-ID: My apologies people. I had installed the right thing but was only using configure to test. Once i ran reconf again I got it working ? On Thu, 3 Dec 2020, 15:32 Bruce Steers, wrote: > Cant get postgresql to configure on fedora33 > > I installed gambas 3.15.2 from fedora repo and it failed to load. Just > kept crashing when trying to launch. > > So going for compile. > Ive managed to get all dependencies but something is missing for > postgresql. > ? > Any clues? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu Dec 3 17:06:01 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 3 Dec 2020 17:06:01 +0100 Subject: [Gambas-user] Gambas Web-Form-Apps In-Reply-To: <27a3f93f-2c36-2f90-a45c-a8f28bc1297f@gambas-buch.de> References: <711a25c4-c1e2-a0a8-897a-13e9809dd2ac@osnanet.de> <3466d74e-45f0-7795-c711-552f2313980e@gmail.com> <27a3f93f-2c36-2f90-a45c-a8f28bc1297f@gambas-buch.de> Message-ID: Am 03.12.20 um 13:21 schrieb Hans Lehmann: > Hello Rolf, > > I am also critical of that. A change to the component gb.web.gui is > absolutely necessary if you select 'Web form application' as project type. > > With kind regards > > Hans > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hello Hans, The thing is, I couldn't even find it in the list. So where is it? Gr??e Rolf From tmorehen at ajm-software.com Thu Dec 3 19:09:06 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Thu, 3 Dec 2020 13:09:06 -0500 Subject: [Gambas-user] Gambas Web-Form-Apps In-Reply-To: <9605dd03-4dc9-9eee-917a-9d1daf4825ec@gmail.com> References: <9605dd03-4dc9-9eee-917a-9d1daf4825ec@gmail.com> Message-ID: You may need to explicitly install it via your package manager. On 2020-12-03 6:16 a.m., Beno?t Minisini wrote: > Le 03/12/2020 ? 11:56, Claus Dietrich a ?crit : >> Hi >> >> Although I gained some knowledge about Gambas over the years, I >> failed to write a Web-App with Gambas. My aim: Writing a Web-Form-App >> which provides a GUI on a Web-Browser just like those GUIs you get, >> when you connect with a web-browser to a router or NAS for >> configuration. My Web-applications would be purely technical, which >> means, that I want to manage (control) some equipment through a >> serial interface and this shall be possible from any PC/ mobile phone >> in my house. >> >> So I started a Web-Form-App and added gb.net for the serial interface >> (the IDE didn't provide any warning). To my disappointment I found, >> that SerialPort-objects can be generated with a New-constructor, but >> they didn't work as usual. Right after generating the >> SerialPort-object I was able to send something over the RS232 >> interface, but any later attempt raised an "Null object" error. >> >> What is wrong? Did I make any mistake? Are Gambas Web-Apps limited to >> database applications? Are Web-Form-Apps limited to controls >> designated as "Web"-controls? Are there any workarounds? Would it be >> possible to include gb.net into a Web-Form-App in the future if not >> possible today? >> >> I have zero experience with web apps and would be grateful for any >> reply. >> >> Best regards >> >> Claus >> >> P.S: I was using Gambas V3.15.2 with the embedded server. >> >> > > Where is that project that does not work? > > Do you use 'gb.web.gui' ? > > You must use a real http server. The embedded http server is for > debugging, it try to serialize requests, so some things may not work > with it. > > Regards, > > From hans at gambas-buch.de Thu Dec 3 19:25:24 2020 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 3 Dec 2020 19:25:24 +0100 Subject: [Gambas-user] Gambas Web-Form-Apps In-Reply-To: References: <9605dd03-4dc9-9eee-917a-9d1daf4825ec@gmail.com> Message-ID: Hello. In the documentation under 'Web Development' you can find the two components gb.web.form and gb.web.gui. The first one is considered obsolete and the second one is greyed out. That means in my understanding: Hands off, this component is still under development; probably not even in beta status. But the documentation shows both, without any hint about the status of gb.web.gui. On the other hand you can find in the description of the component gb.web.gui that it replaces the component gb.web.form because it is faster and easier to use. Therefore my questions: What now - what to do? Should one use the component gb.web.gui already now for new Web programs? With kind regards Hans From bsteers4 at gmail.com Thu Dec 3 20:51:18 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 3 Dec 2020 19:51:18 +0000 Subject: [Gambas-user] gitlab-ci / archlinux poppler-splash error, and Fedora inclusion Message-ID: Greetings. gitlab runner is failing on archlinuxs with.. *Unable to met pkg-config requirement: poppler-splash* i tried adding poppler-qt5 and poppler to the list but still failing. Ps. I added fedora-latest to my ci https://gitlab.com/bsteers4/gambas/-/blob/bruces-patched/.gitlab-ci.yml Any reason i shouldn't (or a reason you haven't Ben) ? I Updated Fedora wiki page with dependencies for Fedora33 as i've just installed it on a drive, I updated the OS and installed the Fedora repositories 3.15.2 gambas only to find it didn't load but crashed on trying to launch. So... I've copied the fedora v28 dependencies and modified/updated to work and included the changes on the wiki and my gitlab-ci.yml file Compilation was successful and all components compiled. Gitlab runner passes. Ben . could you check this list for anything old/depreciated please? Many thanks. BruceS dnf install -y libtool libtool-ltdl-devel dumb-devel gmime-devel gmime30-devel libffi-devel mariadb-devel postgresql-devel unixODBC-devel sqlite2-devel libsqlite3x-devel SDL-devel SDL_*-devel libxslt-devel libv4l-devel glew-devel poppler-devel qt-devel SDL2-devel SDL2_*-devel cairo-devel gtk2-devel imlib2-devel librsvg2-devel qt-webkit-devel openal-soft-devel libjpeg-turbo-devel gtkglext-devel gtk3-devel poppler-glib-devel libxml2-devel libXtst-devel gsl-devel pcre-devel mesa-libGL*-devel dbus-devel libcurl-devel alure-devel gstreamer1-devel gstreamer1-plugins-base-devel libgnome-keyring-devel bzip2-devel mariadb-*-devel postgresql-libs libglvnd-devel efl-devel compiz-devel gtk+-devel gtk+extra-devel gtk2-engines-devel qt-devel-private qt5-*-devel postgresql-server-devel webkit2gtk3-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Dec 3 21:36:58 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 3 Dec 2020 21:36:58 +0100 Subject: [Gambas-user] Gambas Web-Form-Apps In-Reply-To: References: <9605dd03-4dc9-9eee-917a-9d1daf4825ec@gmail.com> Message-ID: <2b0761bf-ba86-323f-172a-163e2e47ddc5@gmail.com> Le 03/12/2020 ? 19:25, Hans Lehmann a ?crit?: > Hello. > > In the documentation under 'Web Development' you can find the two > components gb.web.form and gb.web.gui. The first one is considered > obsolete and the second one is greyed out. That means in my > understanding: Hands off, this component is still under development; > probably not even in beta status. But the documentation shows both, > without any hint about the status of gb.web.gui. On the other hand you > can find in the description of the component gb.web.gui that it replaces > the component gb.web.form because it is faster and easier to use. > > Therefore my questions: What now - what to do? Should one use the > component gb.web.gui already now for new Web programs? > > With kind regards > > Hans > It means that: 1) There is no development anymore in 'gb.web.form'. 2) 'gb.web.gui' will replace it. 3) 'gb.web.gui' has not yet all the features of 'gb.web.form'. As soon as I have time to go back to work on 'gb.web.gui', it will quit its "beta" status. But I was busy with other things that took more time than I thought. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu Dec 3 21:42:33 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 3 Dec 2020 21:42:33 +0100 Subject: [Gambas-user] gitlab-ci / archlinux poppler-splash error, and Fedora inclusion In-Reply-To: References: Message-ID: Le 03/12/2020 ? 20:51, Bruce Steers a ?crit?: > |Greetings. > | > |gitlab runner is failing on archlinuxs with.. > | > || > *|Unable to met pkg-config requirement: poppler-splash|* > || > |i tried adding poppler-qt5 and poppler to the list but still failing.| > It worked before. ArchLinux is a rolling release, so things usually break unexpectedly. Regards, -- Beno?t Minisini From lordheavym at gmail.com Fri Dec 4 11:43:06 2020 From: lordheavym at gmail.com (Laurent Carlier) Date: Fri, 04 Dec 2020 11:43:06 +0100 Subject: [Gambas-user] gitlab-ci / archlinux poppler-splash error, and Fedora inclusion In-Reply-To: References: Message-ID: <2961308.yGcb3cvPug@lordh-pc> Le jeudi 3 d?cembre 2020, 21:42:33 CET Beno?t Minisini a ?crit : > Le 03/12/2020 ? 20:51, Bruce Steers a ?crit : > > |Greetings. > > | > > |gitlab runner is failing on archlinuxs with.. > > > > *|Unable to met pkg-config requirement: poppler-splash|* > > > > |i tried adding poppler-qt5 and poppler to the list but still failing.| > > It worked before. ArchLinux is a rolling release, so things usually > break unexpectedly. > > Regards, https://github.com/jwilk/pdf2djvu/issues/144 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part. URL: From g4mba5 at gmail.com Fri Dec 4 12:25:37 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 4 Dec 2020 12:25:37 +0100 Subject: [Gambas-user] gitlab-ci / archlinux poppler-splash error, and Fedora inclusion In-Reply-To: <2961308.yGcb3cvPug@lordh-pc> References: <2961308.yGcb3cvPug@lordh-pc> Message-ID: <38f81287-2036-a185-32d9-3c3e258d879a@gmail.com> Le 04/12/2020 ? 11:43, Laurent Carlier a ?crit?: > Le jeudi 3 d?cembre 2020, 21:42:33 CET Beno?t Minisini a ?crit : >> Le 03/12/2020 ? 20:51, Bruce Steers a ?crit : >>> |Greetings. >>> | >>> |gitlab runner is failing on archlinuxs with.. >>> >>> *|Unable to met pkg-config requirement: poppler-splash|* >>> >>> |i tried adding poppler-qt5 and poppler to the list but still failing.| >> >> It worked before. ArchLinux is a rolling release, so things usually >> break unexpectedly. >> >> Regards, > > https://github.com/jwilk/pdf2djvu/issues/144 > It's a problem, as apparently there is no way in poppler to draw a PDF page without using their private Splash interface. I will try with the poppler-cpp frontend. Maybe this is now the required way? -- Beno?t Minisini From tmorehen at ajm-software.com Fri Dec 4 13:39:38 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Fri, 4 Dec 2020 07:39:38 -0500 Subject: [Gambas-user] gitlab-ci / archlinux poppler-splash error, and Fedora inclusion In-Reply-To: <38f81287-2036-a185-32d9-3c3e258d879a@gmail.com> References: <2961308.yGcb3cvPug@lordh-pc> <38f81287-2036-a185-32d9-3c3e258d879a@gmail.com> Message-ID: <4897186a-3b14-2cb7-964c-9c570530b6e1@ajm-software.com> Poppler has various page render function that render to cairo surfaces or ps files: *poppler_page_render ()* void??????????????? poppler_page_render (PopplerPage *page, ???????????????????????????????????????????????????????? cairo_t *cairo); Render the page to the given cairo context. This function is for rendering a page that will be displayed. If you want to render a page that will be printed use poppler_page_render_for_printing() instead page :??? the page to render from cairo :??? cairo context to render to *poppler_page_render_for_printing ()* void??????????????? poppler_page_render_for_printing (PopplerPage *page, ???????????????????????????????????????????????????????? cairo_t *cairo); Render the page to the given cairo context for printing. page :??? the page to render from cairo :??? cairo context to render to *poppler_page_render_for_printing_with_options ()** * void??????????????? poppler_page_render_for_printing_with_options (PopplerPage *page, ???????????????????????????????????????????????????????? cairo_t *cairo, PopplerPrintFlags options); Render the page to the given cairo context for printing with the specified options page :??? the page to render from cairo :??? cairo context to render to options :??? print options *poppler_page_render_to_ps ()** * void??????????????? poppler_page_render_to_ps (PopplerPage *page, PopplerPSFile *ps_file); Render the page on a postscript file page :??? a PopplerPage ps_file :??? the PopplerPSFile to render to poppler_page_render_selection () void??????????????? poppler_page_render_selection (PopplerPage *page, ???????????????????????????????????????????????????????? cairo_t *cairo, PopplerRectangle *selection, PopplerRectangle *old_selection, PopplerSelectionStyle style, PopplerColor *glyph_color, PopplerColor *background_color); Render the selection specified by selection for page to the given cairo context. The selection will be rendered, using glyph_color for the glyphs and background_color for the selection background. If non-NULL, old_selection specifies the selection that is already rendered to cairo, in which case this function will (some day) only render the changed part of the selection. page :??? the PopplerPage for which to render selection cairo :??? cairo context to render to selection :??? start and end point of selection as a rectangle old_selection :??? previous selection style :??? a PopplerSelectionStyle glyph_color :??? color to use for drawing glyphs background_color :??? color to use for the selection background On 2020-12-04 6:25 a.m., Beno?t Minisini wrote: > Le 04/12/2020 ? 11:43, Laurent Carlier a ?crit?: >> Le jeudi 3 d?cembre 2020, 21:42:33 CET Beno?t Minisini a ?crit : >>> Le 03/12/2020 ? 20:51, Bruce Steers a ?crit : >>>> |Greetings. >>>> | >>>> |gitlab runner is failing on archlinuxs with.. >>>> >>>> *|Unable to met pkg-config requirement: poppler-splash|* >>>> >>>> |i tried adding poppler-qt5 and poppler to the list but still >>>> failing.| >>> >>> It worked before. ArchLinux is a rolling release, so things usually >>> break unexpectedly. >>> >>> Regards, >> >> https://github.com/jwilk/pdf2djvu/issues/144 >> > > It's a problem, as apparently there is no way in poppler to draw a PDF > page without using their private Splash interface. I will try with the > poppler-cpp frontend. Maybe this is now the required way? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Dec 4 13:50:50 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 4 Dec 2020 13:50:50 +0100 Subject: [Gambas-user] gitlab-ci / archlinux poppler-splash error, and Fedora inclusion In-Reply-To: <4897186a-3b14-2cb7-964c-9c570530b6e1@ajm-software.com> References: <2961308.yGcb3cvPug@lordh-pc> <38f81287-2036-a185-32d9-3c3e258d879a@gmail.com> <4897186a-3b14-2cb7-964c-9c570530b6e1@ajm-software.com> Message-ID: Le 04/12/2020 ? 13:39, Tony Morehen a ?crit?: > Poppler has various page render function that render to cairo surfaces > or ps files: > It's useless for me, as 'gb.poppler' must not depend on any graphical library. Regards, -- Beno?t Minisini From tmorehen at ajm-software.com Fri Dec 4 14:17:58 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Fri, 4 Dec 2020 08:17:58 -0500 Subject: [Gambas-user] gitlab-ci / archlinux poppler-splash error, and Fedora inclusion In-Reply-To: References: <2961308.yGcb3cvPug@lordh-pc> <38f81287-2036-a185-32d9-3c3e258d879a@gmail.com> <4897186a-3b14-2cb7-964c-9c570530b6e1@ajm-software.com> Message-ID: <51ef90fe-2f20-cc7c-581c-1b187726023a@ajm-software.com> I understand.? Poppler-glib's page renderer does return a raw image.? Hopefully, there are no gotchas.? I seem to remember I couldn't find any index entries.? However, gb.poppler's simplified interface makes that irrelevant. On 2020-12-04 7:50 a.m., Beno?t Minisini wrote: > Le 04/12/2020 ? 13:39, Tony Morehen a ?crit?: >> Poppler has various page render function that render to cairo >> surfaces or ps files: >> > > It's useless for me, as 'gb.poppler' must not depend on any graphical > library. > > Regards, > From bsteers4 at gmail.com Fri Dec 4 16:29:22 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 4 Dec 2020 15:29:22 +0000 Subject: [Gambas-user] gitlab-ci / archlinux poppler-splash error, and Fedora inclusion In-Reply-To: <38f81287-2036-a185-32d9-3c3e258d879a@gmail.com> References: <2961308.yGcb3cvPug@lordh-pc> <38f81287-2036-a185-32d9-3c3e258d879a@gmail.com> Message-ID: Yes, something new. (someone should tell these people "If it ain't broke, don't fix it" ;) ) I've not updated my Manjaro system and was able to compile latest commit without error last night. Just seems to be the gitlab runner having issues. I'm guessing if i update poppler to 20.12 i could have problems too. Cheers Ben, I'm sure you'll find a way :) On Fri, 4 Dec 2020 at 11:26, Beno?t Minisini wrote: > Le 04/12/2020 ? 11:43, Laurent Carlier a ?crit : > > Le jeudi 3 d?cembre 2020, 21:42:33 CET Beno?t Minisini a ?crit : > >> Le 03/12/2020 ? 20:51, Bruce Steers a ?crit : > >>> |Greetings. > >>> | > >>> |gitlab runner is failing on archlinuxs with.. > >>> > >>> *|Unable to met pkg-config requirement: poppler-splash|* > >>> > >>> |i tried adding poppler-qt5 and poppler to the list but still failing.| > >> > >> It worked before. ArchLinux is a rolling release, so things usually > >> break unexpectedly. > >> > >> Regards, > > > > https://github.com/jwilk/pdf2djvu/issues/144 > > > > It's a problem, as apparently there is no way in poppler to draw a PDF > page without using their private Splash interface. I will try with the > poppler-cpp frontend. Maybe this is now the required way? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Dec 4 19:58:43 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 4 Dec 2020 19:58:43 +0100 Subject: [Gambas-user] gitlab-ci / archlinux poppler-splash error, and Fedora inclusion In-Reply-To: <51ef90fe-2f20-cc7c-581c-1b187726023a@ajm-software.com> References: <2961308.yGcb3cvPug@lordh-pc> <38f81287-2036-a185-32d9-3c3e258d879a@gmail.com> <4897186a-3b14-2cb7-964c-9c570530b6e1@ajm-software.com> <51ef90fe-2f20-cc7c-581c-1b187726023a@ajm-software.com> Message-ID: Le 04/12/2020 ? 14:17, Tony Morehen a ?crit?: > I understand.? Poppler-glib's page renderer does return a raw image. > Hopefully, there are no gotchas.? I seem to remember I couldn't find any > index entries.? However, gb.poppler's simplified interface makes that > irrelevant. > So... Either you use 'poppler-splash', and you can render the page, but it won't work in the new versions of poppler. Either you use 'poppler-glib', and you have to render using Cairo, so Cairo becomes a requested depency, even if you just want to draw the page images with the QT library. (Same remark with 'poppler-qt5' and GTK+). Or you can use 'poppler-cpp', but as that plugin is not finished, you won't have any information on the actions associated with table of contents items, making the table of contents useless. As you can see, it's hard to make things worse! Is there a goal to make poppler usable one day? -- Beno?t Minisini From tmorehen at ajm-software.com Fri Dec 4 20:18:51 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Fri, 4 Dec 2020 14:18:51 -0500 Subject: [Gambas-user] gitlab-ci / archlinux poppler-splash error, and Fedora inclusion In-Reply-To: References: <2961308.yGcb3cvPug@lordh-pc> <38f81287-2036-a185-32d9-3c3e258d879a@gmail.com> <4897186a-3b14-2cb7-964c-9c570530b6e1@ajm-software.com> <51ef90fe-2f20-cc7c-581c-1b187726023a@ajm-software.com> Message-ID: poppler-cpp may have table of contents items, however, I couldn't find them... opaque documentation and no example code.? That's what I miss from the microsoft world (excellent docs and code all over the internet).? And don't get me started about the coding practices of gnome and Lennart Poettering. Their style is in sharp contrast to your own and to Linus Torvald's. On 2020-12-04 1:58 p.m., Beno?t Minisini wrote: > Le 04/12/2020 ? 14:17, Tony Morehen a ?crit?: >> I understand.? Poppler-glib's page renderer does return a raw image. >> Hopefully, there are no gotchas.? I seem to remember I couldn't find >> any index entries. However, gb.poppler's simplified interface makes >> that irrelevant. >> > > So... > > Either you use 'poppler-splash', and you can render the page, but it > won't work in the new versions of poppler. > > Either you use 'poppler-glib', and you have to render using Cairo, so > Cairo becomes a requested depency, even if you just want to draw the > page images with the QT library. (Same remark with 'poppler-qt5' and > GTK+). > > Or you can use 'poppler-cpp', but as that plugin is not finished, you > won't have any information on the actions associated with table of > contents items, making the table of contents useless. > > As you can see, it's hard to make things worse! Is there a goal to > make poppler usable one day? > From adamnt42 at gmail.com Fri Dec 4 22:10:39 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 5 Dec 2020 07:40:39 +1030 Subject: [Gambas-user] Colour button - colour not displaying after selecting. In-Reply-To: <3aeb159e-53f7-2fe1-88ca-b291e12faab5@iinet.net.au> References: <1d0d6a2b-cf16-31f2-462c-b4473070df78@gmail.com> <3aeb159e-53f7-2fe1-88ca-b291e12faab5@iinet.net.au> Message-ID: On 1/12/20 9:31 am, Ian Roper wrote: > [Libraries] > QT5=libQt5Core.so.5.12.8 Here the current version of Qt5 is libQt5Core.so.5.15.2 Looks like Mint 20 missed out a whole lotta QT5 updates Don't know if that's the reason but as I said It works for both QT4 (libQtCore.so.4.8.7) and Qt5. I note though that we both have the same libQtCore.so.4.8.7 and it doesn't work with that gui in both places. So I don't know if you can get a later QT5 version somehow but that's about all I can suggest. regards bruce From g4mba5 at gmail.com Fri Dec 4 23:37:12 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 4 Dec 2020 23:37:12 +0100 Subject: [Gambas-user] gitlab-ci / archlinux poppler-splash error, and Fedora inclusion In-Reply-To: References: <2961308.yGcb3cvPug@lordh-pc> <38f81287-2036-a185-32d9-3c3e258d879a@gmail.com> <4897186a-3b14-2cb7-964c-9c570530b6e1@ajm-software.com> <51ef90fe-2f20-cc7c-581c-1b187726023a@ajm-software.com> Message-ID: Le 04/12/2020 ? 20:18, Tony Morehen a ?crit?: > poppler-cpp may have table of contents items, however, I couldn't find > them... opaque documentation and no example code.? That's what I miss > from the microsoft world (excellent docs and code all over the > internet).? And don't get me started about the coding practices of gnome > and Lennart Poettering. > > Their style is in sharp contrast to your own and to Linus Torvald's. > I solved the problem by using both poppler-cpp for the rendering, and poppler-glib for the rest. It is not perfect because I have to open the pdf document twice, to create the page object at each rendering. But at least it works. As for microsoft, I remember having in the past examples in their DirectX documentation that didn't work at all. :-) But it was in times when playing a video successfully was near a miracle. Regards, -- Beno?t Minisini From vuott at tiscali.it Sat Dec 5 02:44:34 2020 From: vuott at tiscali.it (vuott at tiscali.it) Date: Sat, 05 Dec 2020 02:44:34 +0100 Subject: [Gambas-user] WARNINGS with Commits master 096129d7 Message-ID: Hello, with updating Commits master 096129d7 I obtain these warnings: checking for gb.poppler component with pkg-config... no configure: WARNING: Unable to met pkg-config requirement: poppler-cpp configure: WARNING: gb.poppler is disabled ...... ...... || || Unable to met pkg-config requirement: poppler-cpp || gb.poppler is disabled || || || THESE COMPONENTS ARE DISABLED: || - ....... || - gb.poppler || - ....... Regards Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99? al mese. http://tisca.li/smart30 -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Dec 5 03:55:41 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 5 Dec 2020 13:25:41 +1030 Subject: [Gambas-user] WARNINGS with Commits master 096129d7 In-Reply-To: References: Message-ID: On 5/12/20 12:14 pm, vuott at tiscali.it wrote: > Hello, > > with updating Commits master 096129d7 I obtain these > warnings: > > checking for gb.poppler component with pkg-config... > no > configure: WARNING: Unable to met pkg-config requirement: > poppler-cpp > configure: WARNING: gb.poppler is > disabled > ...... > ...... > > || > || Unable to met pkg-config requirement: > poppler-cpp > || gb.poppler is disabled > || > > || > || THESE COMPONENTS ARE > DISABLED: > || - ....... > || - gb.poppler > || - ....... > > Regards > > > > Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99? al mese. http://tisca.li/smart30 > You are probably missing one or more of the header files. Here they are: lib64assuan-devel lib64gmime-devel lib64gmime3.0-devel lib64gmime3.0_0 lib64gpgme-devel lib64qgpgme regards From adamnt42 at gmail.com Sat Dec 5 03:59:22 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 5 Dec 2020 13:29:22 +1030 Subject: [Gambas-user] string[].Sort(bASC) only sorts ascendig Message-ID: With latest commits I can only sort string arrays in ascending order no matter what the value of bASC is. (This is on the pure Gambas3 install, i.e. no local customisations). SOS bruce From jussi.lahtinen at gmail.com Sat Dec 5 04:13:22 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 5 Dec 2020 05:13:22 +0200 Subject: [Gambas-user] string[].Sort(bASC) only sorts ascendig In-Reply-To: References: Message-ID: It's not boolean. See gb.Ascent and gb.Descent. Jussi On Sat, Dec 5, 2020 at 5:00 AM Bruce wrote: > With latest commits I can only sort string arrays in ascending order no > matter what the value of bASC is. > (This is on the pure Gambas3 install, i.e. no local customisations). > > SOS > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Dec 5 04:21:35 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 5 Dec 2020 03:21:35 +0000 Subject: [Gambas-user] WARNINGS with Commits master 096129d7 In-Reply-To: References: Message-ID: There's been an update to poppler that broke things, Ben has fixed it. you need to install poppler-cpp-dev then download the latest commit. BruceS On Sat, 5 Dec 2020 at 01:45, wrote: > Hello, > > with updating Commits master 096129d7 I obtain these warnings: > > checking for gb.poppler component with pkg-config... no > configure: WARNING: Unable to met pkg-config requirement: poppler-cpp > configure: WARNING: gb.poppler is disabled > ...... > ...... > > || > || Unable to met pkg-config requirement: poppler-cpp > || gb.poppler is disabled > || > > > > || > || THESE COMPONENTS ARE DISABLED: > || - ....... > || - gb.poppler > || - ....... > > > > Regards > > > > Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in > 4G a soli 8,99? al mese. http://tisca.li/smart30 > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Dec 5 06:41:57 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 5 Dec 2020 05:41:57 +0000 Subject: [Gambas-user] WARNINGS with Commits master 096129d7 In-Reply-To: References: Message-ID: > you need to install poppler-cpp-dev > then download the latest commit. > This seems like I'm just blowing my own trumpet or a shameless plug but I think the facts do have merit ;) The install/compile script i wrote handled the update perfectly :) https://gitlab.com/bsteers4/gambas3-compile-and-install I use it all the time to update/compile/install. Just by pressing return (then typing my pw) .... It did a 'git pull' and found a new commit, detected the new dependency added and auto installed it for me , then did all but ./reconf-all (as i've set it that way) :) If you have not seen it try it out :) http://bws.org.uk/images/gci.png -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Dec 5 06:59:21 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 5 Dec 2020 16:29:21 +1030 Subject: [Gambas-user] WARNINGS with Commits master 096129d7 In-Reply-To: References: Message-ID: <38542144-5aef-0d3b-b080-c22b938cef71@gmail.com> On 5/12/20 4:11 pm, Bruce Steers wrote: >> you need to install poppler-cpp-dev >> then download the latest commit. >> > > This seems like I'm just blowing my own trumpet or a shameless plug but I > think the facts do have merit ;) > > The install/compile script i wrote handled the update perfectly :) > > https://gitlab.com/bsteers4/gambas3-compile-and-install > I use it all the time to update/compile/install. > Just by pressing return (then typing my pw) .... > It did a 'git pull' and found a new commit, detected the new dependency > added and auto installed it for me , then did all but ./reconf-all (as i've > set it that way) :) > If you have not seen it try it out :) > http://bws.org.uk/images/gci.png > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > No, it didn't here. From bsteers4 at gmail.com Sat Dec 5 07:05:47 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 5 Dec 2020 06:05:47 +0000 Subject: [Gambas-user] WARNINGS with Commits master 096129d7 In-Reply-To: <38542144-5aef-0d3b-b080-c22b938cef71@gmail.com> References: <38542144-5aef-0d3b-b080-c22b938cef71@gmail.com> Message-ID: On Sat, 5 Dec 2020 at 06:00, Bruce wrote: > On 5/12/20 4:11 pm, Bruce Steers wrote: > >> you need to install poppler-cpp-dev > >> then download the latest commit. > >> > > > > This seems like I'm just blowing my own trumpet or a shameless plug but I > > think the facts do have merit ;) > > > > The install/compile script i wrote handled the update perfectly :) > > > > https://gitlab.com/bsteers4/gambas3-compile-and-install > > I use it all the time to update/compile/install. > > Just by pressing return (then typing my pw) .... > > It did a 'git pull' and found a new commit, detected the new dependency > > added and auto installed it for me , then did all but ./reconf-all (as > i've > > set it that way) :) > > If you have not seen it try it out :) > > http://bws.org.uk/images/gci.png > > > > No, it didn't here. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Don't you have sudo banned on your computers? it uses sudo. I'm sure you know how to fix that. -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Dec 5 09:09:21 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 5 Dec 2020 18:39:21 +1030 Subject: [Gambas-user] string[].Sort(bASC) only sorts ascendig In-Reply-To: References: Message-ID: On 5/12/20 1:43 pm, Jussi Lahtinen wrote: > It's not boolean. See gb.Ascent and gb.Descent. > > > Jussi > > On Sat, Dec 5, 2020 at 5:00 AM Bruce wrote: > >> With latest commits I can only sort string arrays in ascending order no >> matter what the value of bASC is. >> (This is on the pure Gambas3 install, i.e. no local customisations). >> >> SOS >> bruce >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Bugger! That code has been working for years. Gridview.Columns.Ascending is Boolean and was just assigning that to the sort (as a Boolean. Now Iguess I'll have to use a complex 1 level If test. ;-) b From kicking177 at gmail.com Sat Dec 5 12:26:05 2020 From: kicking177 at gmail.com (KKing) Date: Sat, 5 Dec 2020 11:26:05 +0000 Subject: [Gambas-user] Private settings file question Message-ID: <510fa39d-ab9c-bd8e-cd2d-0962fd1d6a16@gmail.com> So I want to have a private application configuration file in a set location of my choosing (i.e. not in ~/.config/Gambas) A simplified test of what I attempted is below but does not appear to work. There is no conf file to start with (I want to have a UI to request the settings to save) When I run the below, there are no errors, but there is no conf file is created either? > Dim confFile As Settings > Dim strConfFile as String > Dim strImageFilesPath as String > Dim varTest01 as Variant > strConfFile = "/home/user01/TestSettings.conf" > confFile = New Settings(mCore.gstrConfFile) > strImageFilesPath = confFile["UserPreferences/ImageFilesPath", Null] > If IsNull(strImageFilesPath) Then > ??? strImageFilesPath = "/media/external01/Images" > ??? varTest01 = confFile["UserPreferences/ImageFilesPath", > strImageFilesPath] > Endif > confFile.Save From adamnt42 at gmail.com Sat Dec 5 14:26:25 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 5 Dec 2020 23:56:25 +1030 Subject: [Gambas-user] Private settings file question In-Reply-To: <510fa39d-ab9c-bd8e-cd2d-0962fd1d6a16@gmail.com> References: <510fa39d-ab9c-bd8e-cd2d-0962fd1d6a16@gmail.com> Message-ID: <5c30ab2c-d0b7-637e-fe70-0d5e10921e13@gmail.com> On 5/12/20 9:56 pm, KKing wrote: > So I want to have a private application configuration file in a set > location of my choosing (i.e. not in ~/.config/Gambas) > A simplified test of what I attempted is below but does not appear to work. > There is no conf file to start with (I want to have a UI to request the > settings to save) > When I run the below, there are no errors, but there is no conf file is > created either? > >> Dim confFile As Settings >> Dim strConfFile as String >> Dim strImageFilesPath as String >> Dim varTest01 as Variant >> strConfFile = "/home/user01/TestSettings.conf" >> confFile = New Settings(mCore.gstrConfFile) >> strImageFilesPath = confFile["UserPreferences/ImageFilesPath", Null] >> If IsNull(strImageFilesPath) Then >> ??? strImageFilesPath = "/media/external01/Images" >> ??? varTest01 = confFile["UserPreferences/ImageFilesPath", >> strImageFilesPath] >> Endif >> confFile.Save > confFile = New Settings(mCore.gstrConfFile) at line 6 - Di you mean confFile = New Settings(gstrConfFile) b From kicking177 at gmail.com Sat Dec 5 14:55:53 2020 From: kicking177 at gmail.com (KKing) Date: Sat, 5 Dec 2020 13:55:53 +0000 Subject: [Gambas-user] Private settings file question Message-ID: sorry mistyped on trying to provide simplified example ??? mCore.gstrConfFile should be ?? strConfFile > confFile = New Settings(mCore.gstrConfFile) > at line 6 - Di you mean > confFile = New Settings(gstrConfFile) -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Dec 5 15:25:29 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 5 Dec 2020 15:25:29 +0100 Subject: [Gambas-user] Component gb.web.gui In-Reply-To: References: Message-ID: <2e44c542-8b2d-1736-e51c-2725f88f46c9@gmail.com> Le 28/11/2020 ? 18:22, Hans Lehmann a ?crit?: > Hello, > > i am experimenting with the component gb.web.gui for a chapter for the > Gambas book. The web form consists of 3 areas: (1) Header (2) Main (3) > Footer. The main area contains on the left (2.1) the navigation with > several buttons and on the right (2.2) the content. All areas are of > type Web-Container. > > Three tasks present me with considerable problems: > > * The actual navigation currently consists of only 5 web buttons. How do > I realize that when I click on a selected button, a specific web page is > loaded into the content area and displayed? It depends on what exactly is your content area. You can use a WebTabPanel for that, setting its ShowTabs property to FALSE. Each time you click on a button in the left bar, you change the Index property of the TabPanel. > > * How can I achieve that only the content of the content area is > scrolled (if its height becomes too large), so that the navigation (and > footer also !) remains static in its place (and does not scroll with it) > and is thus partially no longer visible? You must embed its contents into a WebScrollView. > > * Where do I insert a CSS file in the project directory for a uniform > design and how do I integrate this CSS file into the project? You must define a 'style.css' file inside the "Public" folder of your project. It is automatically inserted after the style sheet file defined by 'gb.web.gui'. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Dec 5 16:19:41 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 5 Dec 2020 16:19:41 +0100 Subject: [Gambas-user] About dates and calendars in Gambas Message-ID: <216f6caf-f552-513a-5c2b-774c5f4a26b8@gmail.com> Hi, I wrote a little documentation page about dates and calendars in Gambas, that add a bit more explanation about how dates are managed in Gambas. It's here: https://gambaswiki.org/wiki/doc/calendar Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sat Dec 5 17:05:32 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 5 Dec 2020 16:05:32 +0000 Subject: [Gambas-user] Private settings file question In-Reply-To: <510fa39d-ab9c-bd8e-cd2d-0962fd1d6a16@gmail.com> References: <510fa39d-ab9c-bd8e-cd2d-0962fd1d6a16@gmail.com> Message-ID: You example does not "Write" any settings, it only tries to read them. Try... varTest01 = confFile["UserPreferences/ImageFilesPath", strImageFilesPath] confFile["UserPreferences/ImageFilesPath"] = varTest01 confFile.Save BruceS On Sat, 5 Dec 2020 at 11:27, KKing wrote: > So I want to have a private application configuration file in a set > location of my choosing (i.e. not in ~/.config/Gambas) > A simplified test of what I attempted is below but does not appear to work. > There is no conf file to start with (I want to have a UI to request the > settings to save) > When I run the below, there are no errors, but there is no conf file is > created either? > > > Dim confFile As Settings > > Dim strConfFile as String > > Dim strImageFilesPath as String > > Dim varTest01 as Variant > > strConfFile = "/home/user01/TestSettings.conf" > > confFile = New Settings(mCore.gstrConfFile) > > strImageFilesPath = confFile["UserPreferences/ImageFilesPath", Null] > > If IsNull(strImageFilesPath) Then > > strImageFilesPath = "/media/external01/Images" > > varTest01 = confFile["UserPreferences/ImageFilesPath", > > strImageFilesPath] > > Endif > > confFile.Save > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Dec 5 19:28:39 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 5 Dec 2020 20:28:39 +0200 Subject: [Gambas-user] string[].Sort(bASC) only sorts ascendig In-Reply-To: References: Message-ID: I usually do something like this, if I "have" to use the boolean anyway: string[].Sort(Iif(bASC, gb.Ascent, gb.Descent)) Jussi On Sat, Dec 5, 2020 at 10:10 AM Bruce wrote: > On 5/12/20 1:43 pm, Jussi Lahtinen wrote: > > It's not boolean. See gb.Ascent and gb.Descent. > > > > > > Jussi > > > > On Sat, Dec 5, 2020 at 5:00 AM Bruce wrote: > > > >> With latest commits I can only sort string arrays in ascending order no > >> matter what the value of bASC is. > >> (This is on the pure Gambas3 install, i.e. no local customisations). > >> > >> SOS > >> bruce > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >> > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > Bugger! That code has been working for years. > > Gridview.Columns.Ascending is Boolean and was just assigning that to the > sort (as a Boolean. Now Iguess I'll have to use a complex 1 level If > test. ;-) > > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Sat Dec 5 21:21:45 2020 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sat, 05 Dec 2020 21:21:45 +0100 Subject: [Gambas-user] WARNINGS with Commits master 096129d7 In-Reply-To: References: Message-ID: Am Samstag, den 05.12.2020, 05:41 +0000 schrieb Bruce Steers: > > you need to install poppler-cpp-dev > > then download the latest commit. > > This seems like I'm just blowing my own trumpet or a shameless plug > but I think the facts do have merit ;) > > The install/compile script i wrote handled the update perfectly :) > > https://gitlab.com/bsteers4/gambas3-compile-and-installI use it all > the time to update/compile/install. > Just by pressing return (then typing my pw) ....It did a 'git > pull' and found a new commit, detected the new dependency added and > auto installed it for me , then did all but ./reconf-all (as i've set > it that way) :) > If you have not seen it try it out :) > http://bws.org.uk/images/gci.png > Salut Bruce, gave it a chance, and ran it on a poor Mint installation (just the basics), download by curl failed don't remember why, and git because wasn't installed. -- Amicalement Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Sat Dec 5 22:21:09 2020 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sat, 05 Dec 2020 22:21:09 +0100 Subject: [Gambas-user] WARNINGS with Commits master 096129d7 In-Reply-To: References: Message-ID: Am Samstag, den 05.12.2020, 05:41 +0000 schrieb Bruce Steers: > > you need to install poppler-cpp-dev > > then download the latest commit. > > This seems like I'm just blowing my own trumpet or a shameless plug > but I think the facts do have merit ;) > > The install/compile script i wrote handled the update perfectly :) > > https://gitlab.com/bsteers4/gambas3-compile-and-installI use it all > the time to update/compile/install. > Just by pressing return (then typing my pw) ....It did a 'git > pull' and found a new commit, detected the new dependency added and > auto installed it for me , then did all but ./reconf-all (as i've set > it that way) :) > If you have not seen it try it out :) > http://bws.org.uk/images/gci.png > Salut Bruce, gave it a chance, and ran it on a poor Mint installation (just the basics), download by curl failed don't remember why, and git because wasn't installed. got it: Or just press return for git stable. : cs Enter name for downloaded folder or press return for default 'gambas-stable' or 'gambas-main' in current dir./home/xxx/Schreibtisch/gambas3-compile-and-install-V3.2/gambas(You may also give an alternative path, eg. /home/xxx/Downloads/gambas- main)Name: ~/src/gambas/3/gambas30/Downloading ' https://gitlab.com/gambas/gambas/-/archive/stable/gambas-stable.zip' to '/home/xxx/src/gambas/3/gambas-stable.zip' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--: -- 0curl: (6) Could not resolve host: $DLFILE Error! Downloading with curl failed. -- AmicalementCharlie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bsteers4 at gmail.com Sat Dec 5 22:43:59 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 5 Dec 2020 21:43:59 +0000 Subject: [Gambas-user] WARNINGS with Commits master 096129d7 In-Reply-To: References: Message-ID: haha, thank you , I investigated , found the bug , and fixed it , just uploaded the fix. Then came here to reply to find you also found the bug lol :) Not sure how that pesky little thing got there :( Line 237 was curl '$DLFILE' -o "$DLDIR/$ANAME" I changed single quotes for doubles and it's okay now. Thanks again :) On Sat, 5 Dec 2020 at 21:22, Karl Reinl wrote: > Am Samstag, den 05.12.2020, 05:41 +0000 schrieb Bruce Steers: > > > you need to install poppler-cpp-dev > then download the latest commit. > > > This seems like I'm just blowing my own trumpet or a shameless plug but I > think the facts do have merit ;) > > The install/compile script i wrote handled the update perfectly :) > > https://gitlab.com/bsteers4/gambas3-compile-and-install > I use it all the time to update/compile/install. > Just by pressing return (then typing my pw) .... > It did a 'git pull' and found a new commit, detected the new dependency > added and auto installed it for me , then did all but ./reconf-all (as > i've set it that way) :) > If you have not seen it try it out :) > http://bws.org.uk/images/gci.png > > > Salut Bruce, > > > gave it a chance, and ran it on a poor Mint installation (just the > basics), download by curl failed don't remember why, and git because > wasn't installed. > > got it: > > Or just press return for git stable. : cs > > Enter name for downloaded folder or press return for > > default 'gambas-stable' or 'gambas-main' in current dir. > /home/xxx/Schreibtisch/gambas3-compile-and-install-V3.2/gambas > (You may also give an alternative path, eg. > /home/xxx/Downloads/gambas-main) > Name: ~/src/gambas/3/gambas30/ > Downloading ' > https://gitlab.com/gambas/gambas/-/archive/stable/gambas-stable.zip' to > '/home/xxx/src/gambas/3/gambas-stable.zip' > % Total % Received % Xferd Average > Speed Time Time Time Current > > Dload Upload Total Spent Left Speed > 0 0 0 0 0 0 0 0 --:--:-- --:--:-- > --:--:-- 0curl: (6) Could not resolve host: $DLFILE > > Error! Downloading with curl failed. > > -- > > > Amicalement > > Charlie > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sun Dec 6 09:26:10 2020 From: kicking177 at gmail.com (KKing) Date: Sun, 6 Dec 2020 08:26:10 +0000 Subject: [Gambas-user] Private settings file question Message-ID: thank you, that works even if I don't find it intuitive to me something like ? ? confFile["UserPreferences/ImageFilesPath"] = strImageFilesPath would make more sense than ??? varTest01 = confFile["UserPreferences/ImageFilesPath", strImageFilesPath] ? ? confFile["UserPreferences/ImageFilesPath"] = varTest01 but obviously not. > You example does not "Write" any settings, it only tries to read them. > > Try... > varTest01 = confFile["UserPreferences/ImageFilesPath", strImageFilesPath] > confFile["UserPreferences/ImageFilesPath"] = varTest01 > confFile.Save From bsteers4 at gmail.com Sun Dec 6 14:59:27 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 6 Dec 2020 13:59:27 +0000 Subject: [Gambas-user] Private settings file question In-Reply-To: References: Message-ID: Well if you just want to write the setting then yes. I was just adapting the code you wrote. The example you posted wrote nothing but you wanted the data written to file. *varTest01 = confFile["UserPreferences/ImageFilesPath", strImageFilesPath]* That attempts to find and read the setting, if not there is uses the default you supplied. That's what you would use at program start to get the setting. *confFile["UserPreferences/ImageFilesPath"] = varTest01* That writes the setting, you would use this at any setting change. *confFile.Save* No real need to use that unless you want the settings file on disk to be updated instantly during program run as all setting changes are saved to disk at program close. Clever stuff. On Sun, 6 Dec 2020 at 08:27, KKing wrote: > thank you, that works even if I don't find it intuitive > > to me something like > > confFile["UserPreferences/ImageFilesPath"] = strImageFilesPath > > would make more sense than > > varTest01 = confFile["UserPreferences/ImageFilesPath", > strImageFilesPath] > confFile["UserPreferences/ImageFilesPath"] = varTest01 > > but obviously not. > > > You example does not "Write" any settings, it only tries to read them. > > > > Try... > > varTest01 = confFile["UserPreferences/ImageFilesPath", strImageFilesPath] > > confFile["UserPreferences/ImageFilesPath"] = varTest01 > > confFile.Save > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Mon Dec 7 16:27:46 2020 From: mbelmonte at belmotek.net (Martin) Date: Mon, 7 Dec 2020 16:27:46 +0100 Subject: [Gambas-user] LibreDWG Bindings available, we need collaborators Message-ID: Hi everyone, The LibreDWG team are working hard, recently they give to us the gambas bindings as they call it. Here in GauchoCAD team we really need some help in order to implement this in gambas as a component. I consider that the implementation of this library in Gambas is very important but unfortunately I do not have the knowledge to do it, I continue using shell instructions.Again I ask for help here to take a look (I leave the link below) if someone could collaborate it would be great. Thank you. https://github.com/LibreDWG/gambas3-bindings Regards. MB -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Dec 7 17:22:46 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 7 Dec 2020 17:22:46 +0100 Subject: [Gambas-user] LibreDWG Bindings available, we need collaborators In-Reply-To: References: Message-ID: This need to included in the gambas tree. Le lun. 7 d?c. 2020 ? 16:49, Martin a ?crit : > Hi everyone, > > The LibreDWG team are working hard, recently they give to us the gambas > bindings as they call it. > > Here in GauchoCAD team we really need some help in order to implement this > in gambas as a component. > > I consider that the implementation of this library in Gambas is very > important but unfortunately I do not have the knowledge to do it, I > continue using shell instructions. Again I ask for help here to take a > look (I leave the link below) if someone could collaborate it would be > great. Thank you. > > https://github.com/LibreDWG/gambas3-bindings > > Regards. > > MB > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Mon Dec 7 20:23:41 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 7 Dec 2020 21:23:41 +0200 Subject: [Gambas-user] shell command with gb.web.gui Message-ID: <20201207191523.M19292@455.co.il> Hello gambas 3.15.2 fedora 32 64 bit I use gb.web.gui There's a problem when I finish downloading any file: Event: Finish I run a command through the shell For example I wait 10 seconds "shell sleep 10" (sample only) Indeed it works well as long as I am through the IDE But if I compile and put the file on an HTTPD server in cgi-bin For some reason when he finishes the standby command The entire session is deleted and restarts The thing is that if I execute the same command at the push of a button it works well Sorry for my English, so I'm attaching a demo Attached are Gambas files -------------- next part -------------- A non-text attachment was scrubbed... Name: web_gui.zip Type: application/zip Size: 16993 bytes Desc: not available URL: From g4mba5 at gmail.com Mon Dec 7 21:26:47 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 7 Dec 2020 21:26:47 +0100 Subject: [Gambas-user] shell command with gb.web.gui In-Reply-To: <20201207191523.M19292@455.co.il> References: <20201207191523.M19292@455.co.il> Message-ID: <16f37ebe-5535-c163-40f8-19a746317936@gmail.com> Le 07/12/2020 ? 20:23, Mayost Sharon a ?crit?: > Hello > > gambas 3.15.2 > fedora 32 64 bit > > I use gb.web.gui > > There's a problem when I finish downloading any file: > Event: Finish > I run a command through the shell > For example I wait 10 seconds "shell sleep 10" (sample only) > Indeed it works well as long as I am through the IDE > But if I compile and put the file on an HTTPD server in cgi-bin > For some reason when he finishes the standby command > The entire session is deleted and restarts > The thing is that if I execute the same command at the push of a button it works well > > Sorry for my English, so I'm attaching a demo > Attached are Gambas files > You must not use SLEEP, because the web server waits for you answer, and you may reach the session timeout (which is five minutes by default). You must run your process asynchronously, and use its "Kill" event to get its answer. You must understand that your project is normally suspended, and is woken up each time a request is sent by the browser. If you run your sub-process synchronously, you may reach the session timeout. If you run your sub-process asynchronously, your project will return (almost) immediately and be suspended until the next request, while the sub-process run in the background. When your projet wakes up again, if the sub-process has been terminated meanwhile, you should normally get the Kill event immediately, and then you can return the result in the request answer. If you want your user think that al is synchronously, you have to disable the GUI when the user starts the action, and enables it back when you get the result of the sub-process. I hope it's clearer now, it's a bit difficult to explain in english. In other words: don't be synchronous, be asynchronous using the event loop! Regards, -- Beno?t Minisini From mbelmonte at belmotek.net Mon Dec 7 21:59:54 2020 From: mbelmonte at belmotek.net (Martin) Date: Mon, 7 Dec 2020 21:59:54 +0100 Subject: [Gambas-user] LibreDWG Bindings available, we need collaborators In-Reply-To: References: Message-ID: <38a09ae1-211c-ac82-e362-b383680aab4e@belmotek.net> Ok, I put all the gambas-binding [1] files in overwriting a copy of the gb.dbus (see attach) component but nothing else. [1] https://github.com/LibreDWG/gambas3-bindings How I follow? If I put this in the Gambas sources directory, in practice does it mean that I will have to change Gambas from my system to the development one and install from these sources? to be able to do experiments with the libredwg library, right? If I do this, I'm afraid that I can't develop the GauchoCAD application correctly or maybe I can, but to run it on another machine, it will also have to have the gambas development (my tuned) version? Well I'm a little lost. Is it possible to make a component and compile it and install it on my system, without using gambas development? In that case I leave the attached file with a beginning of said component using gb.dbus as a base Regards. MB On 7/12/20 17:22, Fabien Bodard wrote: > This need to included in the gambas tree. > > Le lun. 7 d?c. 2020 ? 16:49, Martin > a ?crit?: > > Hi everyone, > > The LibreDWG team are working hard, recently they give to us the > gambas bindings as they call it. > > Here in GauchoCAD team we really need some help in order to > implement this in gambas as a component. > > I consider that the implementation of this library in Gambas is > very important but unfortunately I do not have the knowledge to do > it, I continue using shell instructions.Again I ask for help here > to take a look (I leave the link below) if someone could > collaborate it would be great. Thank you. > > https://github.com/LibreDWG/gambas3-bindings > > > Regards. > > MB > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.dwg.tar.gz Type: application/gzip Size: 65086 bytes Desc: not available URL: From t.lee.davidson at gmail.com Tue Dec 8 00:21:32 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 7 Dec 2020 18:21:32 -0500 Subject: [Gambas-user] How to free an object with an active ServerSocket? Message-ID: <5f198887-29b6-ff77-36a9-2b1058c3c893@gmail.com> I have a project using a class that implements a ServerSocket. In Form_Close(), set the object variable to Null so the object's _free method will get called. But, with a ServerSocket actively Listening in that object, the _free method does not get called. Is this by design? Am I doing something wrong? What is the proper manner in which to free an object with an active server? It is simple to reproduce with a simple empty form: ' Gambas class file ' FMain.class Private MyTester As Tester Public Sub Form_Open() MyTester = New Tester As "MyTester" End Public Sub Form_Close() MyTester = Null End ' Gambas class file ' Tester.class Private MyServerSocket As ServerSocket Public Sub _new() MyServerSocket = New ServerSocket As "MyServerSocket" MyServerSocket.Type = Net.Internet MyServerSocket.Port = 9090 ' MyServerSocket.Listen ' Uncomment to prevent _free from being called. End Public Sub _free() Print "FREE" MyServerSocket.Close End -- Lee From g4mba5 at gmail.com Tue Dec 8 01:07:20 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 8 Dec 2020 01:07:20 +0100 Subject: [Gambas-user] How to free an object with an active ServerSocket? In-Reply-To: <5f198887-29b6-ff77-36a9-2b1058c3c893@gmail.com> References: <5f198887-29b6-ff77-36a9-2b1058c3c893@gmail.com> Message-ID: <2b33a9b8-6d6e-3072-441c-dbf6b325efb4@gmail.com> Le 08/12/2020 ? 00:21, T Lee Davidson a ?crit?: > I have a project using a class that implements a ServerSocket. > In Form_Close(), set the object variable to Null so the object's _free > method will get called. > But, with a ServerSocket actively Listening in that object, the _free > method does not get called. > > Is this by design? Am I doing something wrong? What is the proper manner > in which to free an object with an active server? > It's the contrary. As Listen() references the SocketServer object, you must call the Close() method so that it can be freed later. You should never have to implement the _free() method. Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Tue Dec 8 03:10:34 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 7 Dec 2020 21:10:34 -0500 Subject: [Gambas-user] How to free an object with an active ServerSocket? In-Reply-To: <2b33a9b8-6d6e-3072-441c-dbf6b325efb4@gmail.com> References: <5f198887-29b6-ff77-36a9-2b1058c3c893@gmail.com> <2b33a9b8-6d6e-3072-441c-dbf6b325efb4@gmail.com> Message-ID: <1d588eb8-b843-8aa4-d361-0abf2981cdd2@gmail.com> On 12/7/20 7:07 PM, Beno?t Minisini wrote: > Le 08/12/2020 ? 00:21, T Lee Davidson a ?crit?: >> I have a project using a class that implements a ServerSocket. >> In Form_Close(), set the object variable to Null so the object's _free method will get called. >> But, with a ServerSocket actively Listening in that object, the _free method does not get called. >> >> Is this by design? Am I doing something wrong? What is the proper manner in which to free an object with an active server? >> > > It's the contrary. As Listen() references the SocketServer object, you must call the Close() method so that it can be freed > later. You should never have to implement the _free() method. And that is what I attempt to do in the _free() method: Public Sub _free() Print "FREE" MyServerSocket.Close End If I understand correctly, _free() is not getting called because Gambas is waiting for the active SocketServer to be Close'd. So then, are you saying that I should implement a Close() method in the Tester class instead of relying on _free()? Public Sub Close() MyServerSocket.Close End That doesn't make object sense to me because the internal workings of the Tester object should be privately encapsulated. (And, there is no Open() method.) But, if that is what will work, then that's what I'll do. -- Lee From sharon at 455.co.il Tue Dec 8 06:32:36 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 8 Dec 2020 07:32:36 +0200 Subject: [Gambas-user] shell command with gb.web.gui In-Reply-To: <16f37ebe-5535-c163-40f8-19a746317936@gmail.com> References: <20201207191523.M19292@455.co.il> <16f37ebe-5535-c163-40f8-19a746317936@gmail.com> Message-ID: <20201208053209.M26396@455.co.il> ---------- Original Message ----------- From: Beno?t Minisini To: user at lists.gambas-basic.org Sent: Mon, 7 Dec 2020 21:26:47 +0100 Subject: Re: [Gambas-user] shell command with gb.web.gui > Le 07/12/2020 ? 20:23, Mayost Sharon a ?crit?: > > Hello > > > > gambas 3.15.2 > > fedora 32 64 bit > > > > I use gb.web.gui > > > > There's a problem when I finish downloading any file: > > Event: Finish > > I run a command through the shell > > For example I wait 10 seconds "shell sleep 10" (sample only) > > Indeed it works well as long as I am through the IDE > > But if I compile and put the file on an HTTPD server in cgi-bin > > For some reason when he finishes the standby command > > The entire session is deleted and restarts > > The thing is that if I execute the same command at the push of a button it works well > > > > Sorry for my English, so I'm attaching a demo > > Attached are Gambas files > > > > You must not use SLEEP, because the web server waits for you answer, and > you may reach the session timeout (which is five minutes by default). > > You must run your process asynchronously, and use its "Kill" event to > get its answer. > > You must understand that your project is normally suspended, and is > woken up each time a request is sent by the browser. > > If you run your sub-process synchronously, you may reach the session > timeout. > > If you run your sub-process asynchronously, your project will return > (almost) immediately and be suspended until the next request, while the > sub-process run in the background. > > When your projet wakes up again, if the sub-process has been terminated > meanwhile, you should normally get the Kill event immediately, and then > you can return the result in the request answer. > > If you want your user think that al is synchronously, you have to > disable the GUI when the user starts the action, and enables it back > when you get the result of the sub-process. > > I hope it's clearer now, it's a bit difficult to explain in english. > > In other words: don't be synchronous, be asynchronous using the event loop! > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Hello First: the question is why when I run the same SHELL using the WebButton control event, it works well. And when I run the same command through the WebFileButton control event, it does not work well. Anyway, I also tried your advice to run the SHELL in the background like this: Shell "/ bin / sleep 10" As "Process" Public Sub Process_Kill () Message ("Kill") End The thing is that when he finishes the process he goes into a Kill event But I get an error: Null Object In Webform1 It should be noted that "sleep" is just an example In practice I want to upload a file to the server and perform any conversion on it and it can sometimes take a few seconds. Thanks From bsteers4 at gmail.com Tue Dec 8 15:31:18 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 8 Dec 2020 14:31:18 +0000 Subject: [Gambas-user] send window to back (not stacking = below) Message-ID: Hi all.. Anyone know how to send a window to the bottom or top of the stack? I'm using the Window object and *win.Raise() *and *win.Lower() *do nothing. setting *win.Stacking = Window.Top* or *Window.Bottom *sends to top or bottom but keeps it there and if i set stacking back to normal the window returns to it's position. ? I'm stumped. tia I've added XTerm "window manipulations t" to TerminalView. https://gitlab.com/bsteers4/gambas/-/tree/VT100-WinManipulation Ie. using echo -en "\033[4;200;600t" to Resize the term window. echo -en "\033[10;2t" to toggle full screen. (see list below) It only makes sense to use these functions if your window is a Terminal only app (no other controls just the terminal, like a normal terminal application) So i added the bool Property WinManipulations to TerminalView. By default it is false and the commands will not work. but set the property to true and they will work on the top level window. Have got 1 - 10 working but 5 and 6 are not quite right, they set window.Stacking = Window.Above. Here's the info from the merge request... [GB.FORM.TERMINAL] - NEW: various XTerm window manipulation escape sequences added to VT100 - NEW: Added Boolean Property WinManipulation to enable manipulations. Useful if your terminalview is standalone in a form/window. Set property TerminalView1.WinManipulations to True and it enables the following XTerm escape sequences on the top window... Eg. Type 'echo -en "\033[10;2t"' to toggle fullscreen.\ Handles the following codes... 1, minimize false 2, minimize true 3, move window (x,y) 4, Resize (h,w) in pixels 5, stack front (this sets or unsets Stacking=Window.Above) 6, stack back (this sets or unsets Stacking=Window.Below) 7, Refresh 8, Resize (cols,lines) text characters 9;0 maximize false 9;1 maximize true (also works as true/false toggle) 10;0 full screen off 10;1 full screen on 10;2 full screen toggle\ 5 and 6 should ideally just send window to front or back and not set stacking but i do not know how. Any advice appreciated :) Tia Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Dec 8 15:37:48 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 8 Dec 2020 14:37:48 +0000 Subject: [Gambas-user] send window to back (not stacking = below) In-Reply-To: References: Message-ID: Note oops. 8, Resize (cols.lines) i've put in the info the wrong way round there as (cols,lines) by accident. should be 8, Resize (lines, cols) Bruce On Tue, 8 Dec 2020 at 14:31, Bruce Steers wrote: > Hi all.. > > Anyone know how to send a window to the bottom or top of the stack? > I'm using the Window object and *win.Raise() *and *win.Lower() *do > nothing. > setting *win.Stacking = Window.Top* or *Window.Bottom *sends to top or > bottom but keeps it there and if i set stacking back to normal the window > returns to it's position. ? > > I'm stumped. > tia > > I've added XTerm "window manipulations t" to TerminalView. > https://gitlab.com/bsteers4/gambas/-/tree/VT100-WinManipulation > Ie. using > echo -en "\033[4;200;600t" to Resize the term window. > echo -en "\033[10;2t" to toggle full screen. > (see list below) > > It only makes sense to use these functions if your window is a Terminal > only app (no other controls just the terminal, like a normal terminal > application) So i added the bool Property WinManipulations to TerminalView. > By default it is false and the commands will not work. but set the > property to true and they will work on the top level window. > > Have got 1 - 10 working but 5 and 6 are not quite right, they set > window.Stacking = Window.Above. > Here's the info from the merge request... > > [GB.FORM.TERMINAL] > > - NEW: various XTerm window manipulation escape sequences added to > VT100 > - NEW: Added Boolean Property WinManipulation to enable manipulations. > > Useful if your terminalview is standalone in a form/window. > Set property TerminalView1.WinManipulations to True and it > enables the following XTerm escape sequences on the top window... > Eg. Type 'echo -en "\033[10;2t"' to toggle fullscreen.\ > > Handles the following codes... > 1, minimize false > 2, minimize true > 3, move window (x,y) > 4, Resize (h,w) in pixels > 5, stack front (this sets or unsets Stacking=Window.Above) > 6, stack back (this sets or unsets Stacking=Window.Below) > 7, Refresh > 8, Resize (cols,lines) text characters > 9;0 maximize false > 9;1 maximize true (also works as true/false toggle) > 10;0 full screen off > 10;1 full screen on > 10;2 full screen toggle\ > > 5 and 6 should ideally just send window to front or back and not set > stacking but i do not know how. Any advice appreciated :) > Tia > Bruce > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Dec 8 16:09:52 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 8 Dec 2020 16:09:52 +0100 Subject: [Gambas-user] How to free an object with an active ServerSocket? In-Reply-To: <1d588eb8-b843-8aa4-d361-0abf2981cdd2@gmail.com> References: <5f198887-29b6-ff77-36a9-2b1058c3c893@gmail.com> <2b33a9b8-6d6e-3072-441c-dbf6b325efb4@gmail.com> <1d588eb8-b843-8aa4-d361-0abf2981cdd2@gmail.com> Message-ID: Il giorno mar 8 dic 2020 alle ore 03:11 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 12/7/20 7:07 PM, Beno?t Minisini wrote: > > Le 08/12/2020 ? 00:21, T Lee Davidson a ?crit : > >> I have a project using a class that implements a ServerSocket. > > > > It's the contrary. As Listen() references the SocketServer object, you > must call the Close() method so that it can be freed > > later. You should never have to implement the _free() method. > > So then, are you saying that I should implement a Close() method in the > Tester class instead of relying on _free()? > Public Sub Close() > MyServerSocket.Close > End > > That doesn't make object sense to me because the internal workings of the > Tester object should be privately encapsulated. (And, > there is no Open() method.) But, if that is what will work, then that's > what I'll do. > Hi Lee, why do you think a Close method (but you could also call it Liber) breaks the encapsulation of the class, when the same ServerSocket class also uses one? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Dec 8 16:10:56 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 8 Dec 2020 15:10:56 +0000 Subject: [Gambas-user] send window to back (not stacking = below) In-Reply-To: References: Message-ID: > > > I've added XTerm "window manipulations t" to TerminalView. > https://gitlab.com/bsteers4/gambas/-/tree/VT100-WinManipulation > Forget the above link. It had been added in 4 commits (updates/bugfixes) made seeing changes unclear. I've re-done it as and re-submitted merge request (not a draft this time) as one commit so all the changes can be simply viewed on one page https://gitlab.com/bsteers4/gambas/-/tree/VT100-WinManipulation-1cmt I figure it only needs one more update being the correct code to send the window to top or bottom without changing the stacking mode. So removed the WIP: Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Dec 8 16:21:49 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 8 Dec 2020 16:21:49 +0100 Subject: [Gambas-user] LibreDWG Bindings available, we need collaborators In-Reply-To: <38a09ae1-211c-ac82-e362-b383680aab4e@belmotek.net> References: <38a09ae1-211c-ac82-e362-b383680aab4e@belmotek.net> Message-ID: Hi Martin, Am 07.12.20 um 21:59 schrieb Martin: > Ok, I put all the gambas-binding [1] files in overwriting a copy of the > gb.dbus (see attach) component but nothing else. You attached a file called "gb.dwg.tar.gz". Gmail bounced this mail from our mailinglist to any Gmail account. Unfortunately nobody who has Google Mail can see it. We got a lot of bounces as a lot of our users use Gmail. Please rename it to "gb.dwg.txt" and try again. I think that should be enough to get it through. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Tue Dec 8 19:13:53 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 8 Dec 2020 20:13:53 +0200 Subject: [Gambas-user] Bug with IsDate Message-ID: Currently in dev version IsDate does not understand the localization: ? IsDate(Str(Now)) False $ locale LANG=en_US.UTF-8 LANGUAGE=en_US LC_CTYPE="en_US.UTF-8" LC_NUMERIC=fi_FI.UTF-8 LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY=fi_FI.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=fi_FI.UTF-8 LC_NAME=fi_FI.UTF-8 LC_ADDRESS=fi_FI.UTF-8 LC_TELEPHONE=fi_FI.UTF-8 LC_MEASUREMENT=fi_FI.UTF-8 LC_IDENTIFICATION=fi_FI.UTF-8 LC_ALL= Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Dec 8 19:19:51 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 8 Dec 2020 13:19:51 -0500 Subject: [Gambas-user] How to free an object with an active ServerSocket? In-Reply-To: References: <5f198887-29b6-ff77-36a9-2b1058c3c893@gmail.com> <2b33a9b8-6d6e-3072-441c-dbf6b325efb4@gmail.com> <1d588eb8-b843-8aa4-d361-0abf2981cdd2@gmail.com> Message-ID: <3505a084-2b05-cdef-6cd8-0ea76e543ce7@gmail.com> On 12/8/20 10:09 AM, Gianluigi wrote: > Hi Lee, > why do you think a Close method (but you could also call it Liber) breaks the encapsulation of the class, when the same > ServerSocket class also uses one? Because the ServerSocket object is instantiated, and activated with Listen(), within my Tester class when a Tester object is created. So, the status of the ServerSocket is hidden from the Main form which uses it since the Main form does not need to know nor does it care. All of those details are encapsulated. It just seems to me that I should also be able to Close() the ServerSocket when the Tester object is destroyed. And, I do not execute a Tester.Open(), I just create it with NEW. So, having to do a Tester.Close() just seems counter-intuitive. A _beforefree special method would be nice. But, I'll just implement a Close, or Stop, or maybe even a BeforeFree method. -- Lee From bagonergi at gmail.com Tue Dec 8 20:02:05 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 8 Dec 2020 20:02:05 +0100 Subject: [Gambas-user] How to free an object with an active ServerSocket? In-Reply-To: <3505a084-2b05-cdef-6cd8-0ea76e543ce7@gmail.com> References: <5f198887-29b6-ff77-36a9-2b1058c3c893@gmail.com> <2b33a9b8-6d6e-3072-441c-dbf6b325efb4@gmail.com> <1d588eb8-b843-8aa4-d361-0abf2981cdd2@gmail.com> <3505a084-2b05-cdef-6cd8-0ea76e543ce7@gmail.com> Message-ID: Il giorno mar 8 dic 2020 alle ore 19:20 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 12/8/20 10:09 AM, Gianluigi wrote: > > Hi Lee, > > why do you think a Close method (but you could also call it Liber) > breaks the encapsulation of the class, when the same > > ServerSocket class also uses one? > > Because the ServerSocket object is instantiated, and activated with > Listen(), within my Tester class when a Tester object is > created. So, the status of the ServerSocket is hidden from the Main form > which uses it since the Main form does not need to know > nor does it care. All of those details are encapsulated. > > It just seems to me that I should also be able to Close() the ServerSocket > when the Tester object is destroyed. And, I do not > execute a Tester.Open(), I just create it with NEW. So, having to do a > Tester.Close() just seems counter-intuitive. > > A _beforefree special method would be nice. But, I'll just implement a > Close, or Stop, or maybe even a BeforeFree method. > However you, from FMain, always have to tell the class to destroy itself (MyTester = Null), why not use a your method like Public Sub _destroy()? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Dec 8 20:24:15 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 8 Dec 2020 19:24:15 +0000 Subject: [Gambas-user] embedding url on wiki Message-ID: Hi all. I've made a simple php script that shows the dependencies/commands needed to compile gambas on your distro. It reads the online giitlab-ci.yml file from gambas/gambas. http://bws.org.uk/gambasdeps.php Just click your distro and copy the text , shimples. Is there any way to embed the code into the wiki ? i would adapt it to suit of course. the above link is just the initial write. I've attached the file anyway for anyone to use/adapt BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambasdeps.php Type: application/x-php Size: 2787 bytes Desc: not available URL: From mbelmonte at belmotek.net Tue Dec 8 21:18:41 2020 From: mbelmonte at belmotek.net (Martin) Date: Tue, 8 Dec 2020 21:18:41 +0100 Subject: [Gambas-user] Fwd: LibreDWG Bindings available, we need collaborators In-Reply-To: <38a09ae1-211c-ac82-e362-b383680aab4e@belmotek.net> References: <38a09ae1-211c-ac82-e362-b383680aab4e@belmotek.net> Message-ID: <920ddba8-7978-954c-3276-e66a84efc13d@belmotek.net> Ok, I re send this email for solve the attacment problem for gmail users. Note: Rename please gb.dwg.txt to gb.dwg.tar.gz Regards. MB -------- Forwarded Message -------- Subject: Re: [Gambas-user] LibreDWG Bindings available, we need collaborators Date: Mon, 7 Dec 2020 21:59:54 +0100 From: Martin To: user at lists.gambas-basic.org Ok, I put all the gambas-binding [1] files in overwriting a copy of the gb.dbus (see attach) component but nothing else. [1] https://github.com/LibreDWG/gambas3-bindings How I follow? If I put this in the Gambas sources directory, in practice does it mean that I will have to change Gambas from my system to the development one and install from these sources? to be able to do experiments with the libredwg library, right? If I do this, I'm afraid that I can't develop the GauchoCAD application correctly or maybe I can, but to run it on another machine, it will also have to have the gambas development (my tuned) version? Well I'm a little lost. Is it possible to make a component and compile it and install it on my system, without using gambas development? In that case I leave the attached file with a beginning of said component using gb.dbus as a base Regards. MB On 7/12/20 17:22, Fabien Bodard wrote: > This need to included in the gambas tree. > > Le lun. 7 d?c. 2020 ? 16:49, Martin > a ?crit?: > > Hi everyone, > > The LibreDWG team are working hard, recently they give to us the > gambas bindings as they call it. > > Here in GauchoCAD team we really need some help in order to > implement this in gambas as a component. > > I consider that the implementation of this library in Gambas is > very important but unfortunately I do not have the knowledge to do > it, I continue using shell instructions.Again I ask for help here > to take a look (I leave the link below) if someone could > collaborate it would be great. Thank you. > > https://github.com/LibreDWG/gambas3-bindings > > > Regards. > > MB > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.dwg.txt Type: application/gzip Size: 65086 bytes Desc: not available URL: From chrisml at deganius.de Tue Dec 8 22:27:30 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 8 Dec 2020 22:27:30 +0100 Subject: [Gambas-user] Fwd: LibreDWG Bindings available, we need collaborators In-Reply-To: <920ddba8-7978-954c-3276-e66a84efc13d@belmotek.net> References: <38a09ae1-211c-ac82-e362-b383680aab4e@belmotek.net> <920ddba8-7978-954c-3276-e66a84efc13d@belmotek.net> Message-ID: Am 08.12.20 um 21:18 schrieb Martin: > Ok, I re send this email for solve the attacment problem for gmail users. > > Note: Rename please gb.dwg.txt to gb.dwg.tar.gz Thank you! But Google learned. It bounced that also ... :( Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From mbelmonte at belmotek.net Wed Dec 9 09:03:17 2020 From: mbelmonte at belmotek.net (Martin) Date: Wed, 9 Dec 2020 09:03:17 +0100 Subject: [Gambas-user] Fwd: LibreDWG Bindings available, we need collaborators In-Reply-To: References: <38a09ae1-211c-ac82-e362-b383680aab4e@belmotek.net> <920ddba8-7978-954c-3276-e66a84efc13d@belmotek.net> Message-ID: <3b466213-7806-728c-b3ec-9af3502ba14c@belmotek.net> Well, what I did was just mix the content of gb.dbus [1] and that of the gambas-bindigs [2] project, nothing else, so you could repeat the process and thus we avoid google. ? [1] https://gitlab.com/gambas/gambas/-/tree/master/gb.dbus [2] https://github.com/LibreDWG/gambas3-bindings Regards Mart?n Belmonte. On 8/12/20 22:27, Christof Thalhofer wrote: > Am 08.12.20 um 21:18 schrieb Martin: > >> Ok, I re send this email for solve the attacment problem for gmail users. >> >> Note: Rename please gb.dwg.txt to gb.dwg.tar.gz > Thank you! But Google learned. It bounced that also ... :( > > Alles Gute > > Christof Thalhofer > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 9 16:04:43 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 9 Dec 2020 15:04:43 +0000 Subject: [Gambas-user] ncurses fail. says Screen incorrectly overridden Message-ID: If adding gb.ncurses component to any app when i try to run it says.. Screen height is incorrectly overridden in class Screen. Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 9 16:22:02 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 9 Dec 2020 15:22:02 +0000 Subject: [Gambas-user] send window to back (not stacking = below) In-Reply-To: References: Message-ID: Looks like i was using the correct code *hView.Window.Lower()* Seems Window.Lower() works okay on QT but does not work on GTK. Bruce. On Tue, 8 Dec 2020 at 15:10, Bruce Steers wrote: > >> I've added XTerm "window manipulations t" to TerminalView. >> https://gitlab.com/bsteers4/gambas/-/tree/VT100-WinManipulation >> > > Forget the above link. > It had been added in 4 commits (updates/bugfixes) made seeing changes > unclear. > I've re-done it as and re-submitted merge request (not a draft this time) > as one commit so all the changes can be simply viewed on one page > > https://gitlab.com/bsteers4/gambas/-/tree/VT100-WinManipulation-1cmt > > I figure it only needs one more update being the correct code to send the > window to top or bottom without changing the stacking mode. > So removed the WIP: > Bruce > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Dec 9 17:15:36 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 9 Dec 2020 11:15:36 -0500 Subject: [Gambas-user] How to free an object with an active ServerSocket? In-Reply-To: References: <5f198887-29b6-ff77-36a9-2b1058c3c893@gmail.com> <2b33a9b8-6d6e-3072-441c-dbf6b325efb4@gmail.com> <1d588eb8-b843-8aa4-d361-0abf2981cdd2@gmail.com> <3505a084-2b05-cdef-6cd8-0ea76e543ce7@gmail.com> Message-ID: <80222be1-6d24-45ca-e0af-bfd94c13e7dc@gmail.com> On 12/8/20 2:02 PM, Gianluigi wrote: > However you, from FMain, always have to tell the class to destroy itself (MyTester = Null), why not use a your method like > Public Sub _destroy()? > Something like that is what I will do, Gianluigi, since my FMain form is going to have to explicitly close the SocketServer through a method such as your suggestion, _destroy(). Then, MyTester = Null would not be necessary since the object would get destroyed when the application closes. -- Lee From taboege at gmail.com Wed Dec 9 17:39:23 2020 From: taboege at gmail.com (Tobias Boege) Date: Wed, 9 Dec 2020 17:39:23 +0100 Subject: [Gambas-user] ncurses fail. says Screen incorrectly overridden In-Reply-To: References: Message-ID: <20201209163834.GD1811581@highrise.localdomain> On Wed, 09 Dec 2020, Bruce Steers wrote: > If adding gb.ncurses component to any app when i try to run it says.. > > Screen height is incorrectly overridden in class Screen. > The Screen class in gb.ncurses is static, as there is only one terminal that a gb.ncurses program can use[*], and therefore all of its properties are static as well. The project that you link gb.ncurses to seems to have its own Screen class with a conflicting definition of the Height property. My guess: you're trying to mix a gb.gui-style component (which brings a non-static Screen class) and gb.ncurses (with a static Screen class). If yes, then do you really need the two user interfaces in a single project? Without namespaces in Gambas, conflicts like these are bound to occur. >From an ncurses point of view, "Screen" was the right name to choose for that class, but it has a very different meaning than "Screen" in the GUI components. The only thing you can do is not to mix the two classes of components. Regards, Tobias [*] Not true for ncurses, but for gb.ncurses because it is not fully developed to ncurses's capabilities. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Wed Dec 9 17:45:10 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 9 Dec 2020 17:45:10 +0100 Subject: [Gambas-user] ncurses fail. says Screen incorrectly overridden In-Reply-To: <20201209163834.GD1811581@highrise.localdomain> References: <20201209163834.GD1811581@highrise.localdomain> Message-ID: <2d339e7c-c917-bcbe-23cb-b3877ada38ee@gmail.com> Le 09/12/2020 ? 17:39, Tobias Boege a ?crit?: > On Wed, 09 Dec 2020, Bruce Steers wrote: >> If adding gb.ncurses component to any app when i try to run it says.. >> >> Screen height is incorrectly overridden in class Screen. >> > > The Screen class in gb.ncurses is static, as there is only one terminal > that a gb.ncurses program can use[*], and therefore all of its properties > are static as well. The project that you link gb.ncurses to seems to > have its own Screen class with a conflicting definition of the Height > property. > > My guess: you're trying to mix a gb.gui-style component (which brings > a non-static Screen class) and gb.ncurses (with a static Screen class). > If yes, then do you really need the two user interfaces in a single > project? > > Without namespaces in Gambas, conflicts like these are bound to occur. >>From an ncurses point of view, "Screen" was the right name to choose > for that class, but it has a very different meaning than "Screen" in > the GUI components. > > The only thing you can do is not to mix the two classes of components. > > Regards, > Tobias > > [*] Not true for ncurses, but for gb.ncurses because it is not fully > developed to ncurses's capabilities. > Maybe Screen could be dynamic and auto-creatable in gb.ncurses? It will keep the backward-compatibility, and makes its interface compatible with gb.gui interface. My two cents. -- Beno?t Minisini From bsteers4 at gmail.com Wed Dec 9 17:51:21 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 9 Dec 2020 16:51:21 +0000 Subject: [Gambas-user] ncurses fail. says Screen incorrectly overridden In-Reply-To: <20201209163834.GD1811581@highrise.localdomain> References: <20201209163834.GD1811581@highrise.localdomain> Message-ID: Component=gb.image Component=gb.gui Component=gb.form Component=gb.ncurses Them's the components. i just made a test app using gb.gui (attached) It's got no code, no other gui components added just a form and 2 buttons. Sounds like are you saying gb.ncurses cannot be used if your app has a GUI? But i'm assuming i've misunderstood. Bruce. On Wed, 9 Dec 2020 at 16:40, Tobias Boege wrote: > On Wed, 09 Dec 2020, Bruce Steers wrote: > > If adding gb.ncurses component to any app when i try to run it says.. > > > > Screen height is incorrectly overridden in class Screen. > > > > The Screen class in gb.ncurses is static, as there is only one terminal > that a gb.ncurses program can use[*], and therefore all of its properties > are static as well. The project that you link gb.ncurses to seems to > have its own Screen class with a conflicting definition of the Height > property. > > My guess: you're trying to mix a gb.gui-style component (which brings > a non-static Screen class) and gb.ncurses (with a static Screen class). > If yes, then do you really need the two user interfaces in a single > project? > > Without namespaces in Gambas, conflicts like these are bound to occur. > From an ncurses point of view, "Screen" was the right name to choose > for that class, but it has a very different meaning than "Screen" in > the GUI components. > > The only thing you can do is not to mix the two classes of components. > > Regards, > Tobias > > [*] Not true for ncurses, but for gb.ncurses because it is not fully > developed to ncurses's capabilities. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.zip Type: application/zip Size: 13957 bytes Desc: not available URL: From bsteers4 at gmail.com Wed Dec 9 18:12:28 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 9 Dec 2020 17:12:28 +0000 Subject: [Gambas-user] ncurses fail. says Screen incorrectly overridden In-Reply-To: References: <20201209163834.GD1811581@highrise.localdomain> Message-ID: > > Sounds like are you saying gb.ncurses cannot be used if your app has a GUI? > But i'm assuming i've misunderstood. > Bruce > Maybe i didn't misunderstand? I've just run some tests. I cannot seem to use gb.ncurses in ANYTHING that has any sort of gui component at all. I tried gb.gui gb.gtk gb.qt5 Add any type of gui and i get the ncurses error. i know ncurses is meant primarily for terminal use but i was trying to use it on my terminal app, but it's essentially a GUI so i guess i can't then. Cheers Bruce. -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Dec 9 18:19:16 2020 From: taboege at gmail.com (Tobias Boege) Date: Wed, 9 Dec 2020 18:19:16 +0100 Subject: [Gambas-user] ncurses fail. says Screen incorrectly overridden In-Reply-To: References: <20201209163834.GD1811581@highrise.localdomain> Message-ID: <20201209171916.GE1811581@highrise.localdomain> On Wed, 09 Dec 2020, Bruce Steers wrote: > Component=gb.image > Component=gb.gui > Component=gb.form > Component=gb.ncurses > > Them's the components. > i just made a test app using gb.gui (attached) > It's got no code, no other gui components added just a form and 2 buttons. > > Sounds like are you saying gb.ncurses cannot be used if your app has a GUI? > But i'm assuming i've misunderstood. No, that's exactly right. gb.ncurses gives your program the ability to have a terminal user interface. It uses some of the same class names that the graphical user interface components use, because it is also a type of user interface, but it is a textual interfaces in the terminal, so the interfaces are incompatible. You cannot have both types of user interface in the same project, you have to settle for one of them. On Wed, 09 Dec 2020, Beno?t Minisini wrote: > Maybe Screen could be dynamic and auto-creatable in gb.ncurses? It will keep > the backward-compatibility, and makes its interface compatible with gb.gui > interface. Unfortunately, the incompatibilities don't stop there. Window.Border is an Integer in gb.ncurses (there are three types of border) and a Boolean in gb.qt4, for example. Regards, Tobias From bsteers4 at gmail.com Wed Dec 9 19:10:11 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 9 Dec 2020 18:10:11 +0000 Subject: [Gambas-user] ncurses fail. says Screen incorrectly overridden In-Reply-To: <20201209171916.GE1811581@highrise.localdomain> References: <20201209163834.GD1811581@highrise.localdomain> <20201209171916.GE1811581@highrise.localdomain> Message-ID: > > > Sounds like are you saying gb.ncurses cannot be used if your app has a > GUI? > > But i'm assuming i've misunderstood. > > No, that's exactly right. > > gb.ncurses gives your program the ability to have a terminal user > interface. It uses some of the same class names that the graphical > user interface components use, because it is also a type of user > interface, but it is a textual interfaces in the terminal, so the > interfaces are incompatible. > > You cannot have both types of user interface in the same project, > you have to settle for one of them. > Aah , now i see , thank you Tobias for the clarification :) Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Thu Dec 10 15:33:01 2020 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 10 Dec 2020 14:33:01 +0000 Subject: [Gambas-user] Closing a Message! Message-ID: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> Hi Guys, This looks a little dangerous to me, is this an issue? Charlie Public Sub Form_Open() ? ''Run this and close the Message by clicking the "X", NOT Yes or No. ? If Message.Question("Delete hard drive?", "No", "Yes") = 2 Then Print "Deleting hard drive" End From g4mba5 at gmail.com Thu Dec 10 16:07:03 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 10 Dec 2020 16:07:03 +0100 Subject: [Gambas-user] Closing a Message! In-Reply-To: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> Message-ID: Le 10/12/2020 ? 15:33, Charlie Ogier a ?crit?: > Hi Guys, > > This looks a little dangerous to me, is this an issue? > > Charlie > > Public Sub Form_Open() > > ? ''Run this and close the Message by clicking the "X", NOT Yes or No. > ? If Message.Question("Delete hard drive?", "No", "Yes") = 2 Then Print > "Deleting hard drive" > > End > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- The last button is always supposed to be the cancel action, so it is returned by default if you close the message box. Maybe I should make the window close button inactive for message box, to avoid this ambiguity? Regards, -- Beno?t Minisini From tmorehen at ajm-software.com Thu Dec 10 16:26:18 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Thu, 10 Dec 2020 10:26:18 -0500 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> Message-ID: <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> Please don't.? Existing behaviour conforms to standard practice for Linux.? I do however suggest updating the documentation for message box to make this behavior explicit, ie, add a note to the effect: Closing the message box window using the window close button will perform the cancel action:? the message box will close and return the index of the last button. I know, that wording is awkward and needs work but you get the idea. On 2020-12-10 10:07 a.m., Beno?t Minisini wrote: > Le 10/12/2020 ? 15:33, Charlie Ogier a ?crit?: >> Hi Guys, >> >> This looks a little dangerous to me, is this an issue? >> >> Charlie >> >> Public Sub Form_Open() >> >> ?? ''Run this and close the Message by clicking the "X", NOT Yes or No. >> ?? If Message.Question("Delete hard drive?", "No", "Yes") = 2 Then >> Print "Deleting hard drive" >> >> End >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > The last button is always supposed to be the cancel action, so it is > returned by default if you close the message box. > > Maybe I should make the window close button inactive for message box, > to avoid this ambiguity? > > Regards, > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Dec 10 16:50:43 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 10 Dec 2020 15:50:43 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> Message-ID: Most of us here can update the wiki. I've added loads of info for things i've found. Never expected anyone else to do it for me. Come on team.. every little helps :) Less talk more walk ;) On Thu, 10 Dec 2020 at 15:27, Tony Morehen wrote: > Please don't. Existing behaviour conforms to standard practice for > Linux. I do however suggest updating the documentation for message box to > make this behavior explicit, ie, add a note to the effect: > > Closing the message box window using the window close button will perform > the cancel action: the message box will close and return the index of the > last button. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Thu Dec 10 17:11:59 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Thu, 10 Dec 2020 11:11:59 -0500 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> Message-ID: <07c29a13-2a65-6f20-e0b6-c5bbf19f24c8@ajm-software.com> Bruce, I thought about editing the wiki but decided that it would be better to wait until Benoit decided what approach to take. One thing to consider:? if you want people to increase their contributions to Gambas, perhaps it would be better to take a less condescending tone in your emails. On 2020-12-10 10:50 a.m., Bruce Steers wrote: > Most of us here can update the wiki. > > I've added loads of info for things i've found. > Never expected anyone else to do it for me. > > Come on team.. > every little helps :) > Less talk more walk ;) > > > On Thu, 10 Dec 2020 at 15:27, Tony Morehen > wrote: > > Please don't.? Existing behaviour conforms to standard practice > for Linux.? I do however suggest updating the documentation for > message box to make this behavior explicit, ie, add a note to the > effect: > > Closing the message box window using the window close button > will perform the cancel action:? the message box will close > and return the index of the last button. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Thu Dec 10 16:47:13 2020 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 10 Dec 2020 15:47:13 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> Message-ID: <0e1d5441-f72a-0868-5b5c-6d1df812c398@cogier.com> On 10/12/2020 15:07, Beno?t Minisini wrote: > Le 10/12/2020 ? 15:33, Charlie Ogier a ?crit?: >> Hi Guys, >> >> This looks a little dangerous to me, is this an issue? >> >> Charlie >> >> Public Sub Form_Open() >> >> ?? ''Run this and close the Message by clicking the "X", NOT Yes or No. >> ?? If Message.Question("Delete hard drive?", "No", "Yes") = 2 Then >> Print "Deleting hard drive" >> >> End >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > The last button is always supposed to be the cancel action, so it is > returned by default if you close the message box. > > Maybe I should make the window close button inactive for message box, > to avoid this ambiguity? > > Regards, Hi Beno?t, I was using the "No" first as it is in focus. Charlie From jussi.lahtinen at gmail.com Thu Dec 10 19:11:33 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 10 Dec 2020 20:11:33 +0200 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> Message-ID: > > Maybe I should make the window close button inactive for message box, to > avoid this ambiguity? > Maybe it could be an optional argument? Because questions are not always yes/no and thus returning one on closing isn't necessarily expected. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Dec 10 19:37:13 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 10 Dec 2020 18:37:13 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> Message-ID: I'm not sure what system it was i used but it always made the return value of the right hand button 0 (is that vb?) That made sense for "if not " conditioning on requesters. But i'd agree the close button is not particularly needed (of course there's Escape/close window keys to consider too) Or as I suggested (apologies for rudeness) just a little more clarity on the wiki. go for it. many thanks :) BruceS On Thu, 10 Dec 2020 at 15:08, Beno?t Minisini wrote: > Le 10/12/2020 ? 15:33, Charlie Ogier a ?crit : > > Hi Guys, > > > > This looks a little dangerous to me, is this an issue? > > > > Charlie > > > > Public Sub Form_Open() > > > > ''Run this and close the Message by clicking the "X", NOT Yes or No. > > If Message.Question("Delete hard drive?", "No", "Yes") = 2 Then Print > > "Deleting hard drive" > > > > End > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > The last button is always supposed to be the cancel action, so it is > returned by default if you close the message box. > > Maybe I should make the window close button inactive for message box, to > avoid this ambiguity? > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Dec 10 19:59:35 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 10 Dec 2020 19:59:35 +0100 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> Message-ID: Il giorno gio 10 dic 2020 alle ore 16:08 Beno?t Minisini ha scritto: > Le 10/12/2020 ? 15:33, Charlie Ogier a ?crit : > > Hi Guys, > > > > This looks a little dangerous to me, is this an issue? > > > > Charlie > > > > Public Sub Form_Open() > > > > ''Run this and close the Message by clicking the "X", NOT Yes or No. > > If Message.Question("Delete hard drive?", "No", "Yes") = 2 Then Print > > "Deleting hard drive" > > > > End > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > The last button is always supposed to be the cancel action, so it is > returned by default if you close the message box. > > Maybe I should make the window close button inactive for message box, to > avoid this ambiguity? > > Regards, > > -- > Beno?t Minisini > With regards to standard message boxes, I'd leave things as they are, including the close (X) button. In Gambas it is very easy to create our new message box... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Thu Dec 10 20:57:43 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Thu, 10 Dec 2020 14:57:43 -0500 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> Message-ID: <12d418e3-b971-ac14-bf7d-40bba12e403a@ajm-software.com> As suggested, I've added a note to the wiki. On 2020-12-10 10:50 a.m., Bruce Steers wrote: > Most of us here can update the wiki. > > I've added loads of info for things i've found. > Never expected anyone else to do it for me. > > Come on team.. > every little helps :) > Less talk more walk ;) > > > On Thu, 10 Dec 2020 at 15:27, Tony Morehen > wrote: > > Please don't.? Existing behaviour conforms to standard practice > for Linux.? I do however suggest updating the documentation for > message box to make this behavior explicit, ie, add a note to the > effect: > > Closing the message box window using the window close button > will perform the cancel action:? the message box will close > and return the index of the last button. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Dec 10 21:06:42 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 10 Dec 2020 21:06:42 +0100 Subject: [Gambas-user] Closing a Message! In-Reply-To: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> Message-ID: <3673fe7a-0153-1b32-6aa5-74d63db165c5@deganius.de> Am 10.12.20 um 15:33 schrieb Charlie Ogier: > This looks a little dangerous to me, is this an issue? Yes. > Public Sub Form_Open() > > ? ''Run this and close the Message by clicking the "X", NOT Yes or No. > ? If Message.Question("Delete hard drive?", "No", "Yes") = 2 Then Print > "Deleting hard drive" > > End In such cases i write: > If Message.Question("Delete hard drive?", "No", "Yes", "Cancel") = 2 Then > ... Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Thu Dec 10 21:43:11 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 10 Dec 2020 20:43:11 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: <12d418e3-b971-ac14-bf7d-40bba12e403a@ajm-software.com> References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> <12d418e3-b971-ac14-bf7d-40bba12e403a@ajm-software.com> Message-ID: Great stuff. Funny , i never knew you could use HTML in a message box. I've only ever used normal text and never had an issue with gtk interpreting html code. I can see in the source code it's actually Richtext. We learn something new every day eh? On Thu, 10 Dec 2020 at 19:58, Tony Morehen wrote: > As suggested, I've added a note to the wiki. > On 2020-12-10 10:50 a.m., Bruce Steers wrote: > > Most of us here can update the wiki. > > I've added loads of info for things i've found. > Never expected anyone else to do it for me. > > Come on team.. > every little helps :) > Less talk more walk ;) > > > On Thu, 10 Dec 2020 at 15:27, Tony Morehen > wrote: > >> Please don't. Existing behaviour conforms to standard practice for >> Linux. I do however suggest updating the documentation for message box to >> make this behavior explicit, ie, add a note to the effect: >> >> Closing the message box window using the window close button will perform >> the cancel action: the message box will close and return the index of the >> last button. >> >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Dec 11 00:37:11 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Dec 2020 00:37:11 +0100 Subject: [Gambas-user] Closing a Message! In-Reply-To: <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> Message-ID: Le 10/12/2020 ? 16:26, Tony Morehen a ?crit?: > Please don't.? Existing behaviour conforms to standard practice for > Linux.? I do however suggest updating the documentation for message box > to make this behavior explicit, ie, add a note to the effect: Yet it makes sense to forbid closing the message window if what the user wants is ambiguous. I don't want him to delete his hard drive by error just because the behaviour conforms to standard practice. :-) Let's see! -- Beno?t Minisini From bsteers4 at gmail.com Fri Dec 11 03:34:44 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 11 Dec 2020 02:34:44 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> Message-ID: what do you think of this Ben? https://gitlab.com/bsteers4/gambas/-/tree/message-cancel-zero It adds a Property/Option CancelIsZero to Message class and forces right hand buttons (and closing window) to always be zero if set to True. It does not particularly address the issue but does make sense for cancel to always return zero in some cases. (I couldn't see how to disable the windows close button but if there is a way maybe an option to do that would be cool?) Usage: Message.CancelIsZero = True then you will get... Message,.Question("Text", "Button 1", "Button 2", "Button 0") Closing window or pressing escape will also be zero. On Thu, 10 Dec 2020 at 23:39, Beno?t Minisini wrote: > Le 10/12/2020 ? 16:26, Tony Morehen a ?crit : > > Please don't. Existing behaviour conforms to standard practice for > > Linux. I do however suggest updating the documentation for message box > > to make this behavior explicit, ie, add a note to the effect: > > Yet it makes sense to forbid closing the message window if what the user > wants is ambiguous. I don't want him to delete his hard drive by error > just because the behaviour conforms to standard practice. :-) > > Let's see! > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Dec 11 04:24:14 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 11 Dec 2020 03:24:14 +0000 Subject: [Gambas-user] gitlab runner, the older ubuntus are failing. Message-ID: gitlab runner is having Ubuntu issues.. ubuntu eoan seems to have bad urls for repository or something as it cannot connect and download/install much. It fails saying libtoolize and autoreconf not found. Trusty and Xenial are both failing trying to compile gtk3 sm/gnome-client.c ubuntu-latest and all the others OS's are fine. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.rodriguez at cenpalab.cu Fri Dec 11 07:00:51 2020 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Fri, 11 Dec 2020 06:00:51 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> Message-ID: December 10, 2020 9:35 PM, "Bruce Steers" )> wrote: what do you think of this Ben? https://gitlab.com/bsteers4/gambas/-/tree/message-cancel-zero (https://gitlab.com/bsteers4/gambas/-/tree/message-cancel-zero) It adds a Property/Option CancelIsZero to Message class and forces right hand buttons (and closing window) to always be zero if set to True. It does not particularly address the issue but does make sense for cancel to always return zero in some cases. (I couldn't see how to disable the windows close button but if there is a way maybe an option to do that would be cool?) There have been several mentions in this thread of "right hand buttons", but some toolkits actually invert the order of the buttons, don't they? As in left is Cancel and right is Ok, instead of the more typical ordering? Also, FWIW and IMHO, I always prefer to have the option to disable the window close button programmatically. Regards, Joe1962 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Dec 11 07:24:16 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 11 Dec 2020 06:24:16 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> Message-ID: Pretty sure Gambas does not rearrange the order, Buttons are left to right as entered on QT and gtk. I just tried this... *Message.Custom("test message", ["But 1", "But 2", "But 3", "But 4", "But 5", "But 6"])* And all 6 buttons were in the correct order on all GUI toolkits i tried , gtk,gtk3 qnd QT5 Alas i do not know how to disable/hide a windows close button or i would have submitted that change. On Fri, 11 Dec 2020 at 06:11, wrote: > December 10, 2020 9:35 PM, "Bruce Steers" > > wrote: > > what do you think of this Ben? > https://gitlab.com/bsteers4/gambas/-/tree/message-cancel-zero > It adds a Property/Option CancelIsZero to Message class and forces right > hand buttons (and closing window) to always be zero if set to True. > It does not particularly address the issue but does make sense for cancel > to always return zero in some cases. > (I couldn't see how to disable the windows close button but if there is a > way maybe an option to do that would be cool?) > > > > > There have been several mentions in this thread of "right hand buttons", > but some toolkits actually invert the order of the buttons, don't they? As > in left is Cancel and right is Ok, instead of the more typical ordering? > > Also, FWIW and IMHO, I always prefer to have the option to disable the > window close button programmatically. > > Regards, > Joe1962 > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.rodriguez at cenpalab.cu Fri Dec 11 07:59:07 2020 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Fri, 11 Dec 2020 06:59:07 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <00dbdc6a-34c9-e2cc-e982-303fe1466018@ajm-software.com> Message-ID: December 11, 2020 1:25 AM, "Bruce Steers" )> wrote: Pretty sure Gambas does not rearrange the order, Buttons are left to right as entered on QT and gtk. I just tried this... Message.Custom("test message", ["But 1", "But 2", "But 3", "But 4", "But 5", "But 6"]) And all 6 buttons were in the correct order on all GUI toolkits i tried , gtk,gtk3 qnd QT5 Sorry, I meant the default dialogs, like Ok, Cancel stuff. I suppose following the desktop environment guidelines is the "proper" way to go , but the Cancel, Ok ordering on the Plasma I am using right now is confusing. I vaguely remember gnome used to do that a long time ago, haven't used it for a quite while. Anyway, I haven't really been programming in Gambas for a long time now, though I have been recently setting things up to try and update some of my apps (from way back in my VectorLinux days) to newer Gambas 3 (just so little free time right now...). Regards, Joe1962 -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Dec 11 16:54:48 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Dec 2020 16:54:48 +0100 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> Message-ID: <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> Le 10/12/2020 ? 19:59, Gianluigi a ?crit?: > > With regards to standard message boxes, I'd leave things as they are, > including the close (X) button. > In Gambas it is very easy to create our new message box... > > Regards > Gianluigi > Yes. Guys, do not be hysterical about messages boxes! Message boxes aim to be simple, and I want them to keep being simple. So if you need anything more complex, implement your own. I will just do what I told before, prevent the dialog box from closing without explicitly clicking on a button. I know that this is not necessarily welcome, but as the program normally wants an non-ambiguous answer, it can be justified. I will put the focus on the default button too. So, pardon me Bruce, but I don't think I will merge your proposal. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Fri Dec 11 17:12:58 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Dec 2020 17:12:58 +0100 Subject: [Gambas-user] gitlab runner, the older ubuntus are failing. In-Reply-To: References: Message-ID: <7c741298-4dec-1a0f-5edb-0d08fe3a5cc5@gmail.com> Le 11/12/2020 ? 04:24, Bruce Steers a ?crit?: > gitlab runner is having Ubuntu issues.. > > ubuntu eoan seems to have bad urls for repository or something as it > cannot connect and download/install much. > It fails saying libtoolize and autoreconf not found. > > Trusty and Xenial are both failing trying to compile gtk3 sm/gnome-client.c > > ubuntu-latest and all the others OS's are fine. > > || > BruceS > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Yes, I must look at it... -- Beno?t Minisini From g4mba5 at gmail.com Fri Dec 11 17:15:03 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Dec 2020 17:15:03 +0100 Subject: [Gambas-user] embedding url on wiki In-Reply-To: References: Message-ID: Le 08/12/2020 ? 20:24, Bruce Steers a ?crit?: > Hi all. > I've made a simple php script that shows the dependencies/commands > needed to compile gambas on your distro. > > It reads the online giitlab-ci.yml file from gambas/gambas. > http://bws.org.uk/gambasdeps.php > > Just click your distro and copy the text , shimples. > > > Is there any way to embed the code into the wiki ? > i would adapt it to suit of course. > the above link is just the initial write. > I've attached the file anyway for anyone to use/adapt > > BruceS > > Funny, as I exactly did the same thing at the same time inside the wiki! But in Gambas, as the wiki is written in Gambas. There is no php on its server. See: https://gambaswiki.org/wiki/install. I haven't committed the code yet. Regards, -- Beno?t Minisini From bagonergi at gmail.com Fri Dec 11 17:49:28 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 11 Dec 2020 17:49:28 +0100 Subject: [Gambas-user] Closing a Message! In-Reply-To: <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> Message-ID: Il giorno ven 11 dic 2020 alle ore 16:55 Beno?t Minisini ha scritto: > > Yes. Guys, do not be hysterical about messages boxes! > > Message boxes aim to be simple, and I want them to keep being simple. So > if you need anything more complex, implement your own. > > I will just do what I told before, prevent the dialog box from closing > without explicitly clicking on a button. > > I know that this is not necessarily welcome, but as the program normally > wants an non-ambiguous answer, it can be justified. I will put the focus > on the default button too. > > So, pardon me Bruce, but I don't think I will merge your proposal. > > Regards, > > -- > Beno?t Minisini > To me, especially in the early days that I used the computer, it often happened that I did not understand what I was asked, in those cases I acted on the X which for me means "I refrain from making a decision at this moment". Instead of excluding the X, why don't you give the possibility to put the focus where you want? So programmers who want a dry and immediate answer can leave the NO as the last button. I don't know if it's hysteria but I love the X's in the windows :-) Regards Gianluigi P.S. Speaking of focus, now that on buttons it works with GTK in Ubuntu it has stopped working with QT (fusion theme) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Dec 11 18:02:13 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 11 Dec 2020 17:02:13 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> Message-ID: > Yes. Guys, do not be hysterical about messages boxes! > > Message boxes aim to be simple, and I want them to keep being simple. So > if you need anything more complex, implement your own. > > I will just do what I told before, prevent the dialog box from closing > without explicitly clicking on a button. > > I know that this is not necessarily welcome, but as the program normally > wants an non-ambiguous answer, it can be justified. I will put the focus > on the default button too. > > So, pardon me Bruce, but I don't think I will merge your proposal. > > Regards, > Tis all good my friend. And you're right of course, it simple to just make our own custom message boxes if we need to. Be well BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Dec 11 18:15:52 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 11 Dec 2020 13:15:52 -0400 Subject: [Gambas-user] which is the most close to file_get_contents ? Message-ID: in php we have too many generic helpers, functions etc.. so maybe php programers are very lazy.. but php have those easy touse things like https://www.php.net/manual/en/function.file-get-contents.php it does not care if are a file or url.. just use it and get json output.. is there something similar in gambas? for both desktop or web? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Dec 11 18:22:39 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 11 Dec 2020 17:22:39 +0000 Subject: [Gambas-user] embedding url on wiki In-Reply-To: References: Message-ID: Brilliant , exactly what i was thinking about , seemed silly to have to keep updating the wiki when the information needed is there in the ci file. (great minds think alike eh? ;) ) That'll certainly help some people i think. May i be cheeky and suggest an edit? If you removed the prefix '$ ' from each line it will make it easier to simply copy and paste into a terminal. (and comes should be come) :) Awesome stuff though Ben , I think anything we can do to help ease the upgrading to the latest Gambas is a must/priority. It would sure solve all my backward compatibility issues. Rather than trying to get gambas backward compatible making forward compatibility for the users to easily upgrade is a better way. BruceS On Fri, 11 Dec 2020 at 16:16, Beno?t Minisini wrote: > Le 08/12/2020 ? 20:24, Bruce Steers a ?crit : > > Hi all. > > I've made a simple php script that shows the dependencies/commands > > needed to compile gambas on your distro. > > > > It reads the online giitlab-ci.yml file from gambas/gambas. > > http://bws.org.uk/gambasdeps.php > > > > Just click your distro and copy the text , shimples. > > > > > > Is there any way to embed the code into the wiki ? > > i would adapt it to suit of course. > > the above link is just the initial write. > > I've attached the file anyway for anyone to use/adapt > > > > BruceS > > > > > > Funny, as I exactly did the same thing at the same time inside the wiki! > > But in Gambas, as the wiki is written in Gambas. There is no php on its > server. > > See: https://gambaswiki.org/wiki/install. > > I haven't committed the code yet. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Dec 11 19:34:27 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 11 Dec 2020 18:34:27 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> Message-ID: > I will just do what I told before, prevent the dialog box from closing >> without explicitly clicking on a button. >> >> I know that this is not necessarily welcome, but as the program normally >> wants an non-ambiguous answer, it can be justified. I will put the focus >> on the default button too. > > Could it be a settable parameter like my *Message.CancelIsZero = True* flag? Something like *Message.NoWindowClose = True* to enable it? then desired or undesired we have the choice :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Fri Dec 11 22:37:59 2020 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Fri, 11 Dec 2020 22:37:59 +0100 Subject: [Gambas-user] Gambas Custom Controls - Property as Constant List In-Reply-To: <0e7f7d84-2821-4eed-0f39-b85c2000c1fc@t-online.de> References: <0e7f7d84-2821-4eed-0f39-b85c2000c1fc@t-online.de> Message-ID: <041cd141-c34a-c7ae-fbfe-1042fd2acbf4@freenet.de> Hi I recently wrote a number of custom user controls (visible in the IDE) and bumbed into the problem, that I couldn't make the IDE to offer a list of declared constants (here "StyleStrokes" and "StyleScale") under a custom control property (here "Style"). As I didn't clearly understand the chapter "/Constant lists/" in the wiki, my temporary solution consists of a range definition (Style{Range:1;2}=1). Name of my Custom Control Class: Knob Export .... Public Const StyleStrokes As Integer = 1 Public Const StyleScale As Integer = 2 ... Public Const _Properties As String = "*,....,Style{Range:1;2}=1" Any attempt failed to get a combo with said constants and I particularly didn't know how to read the sentence in the wiki saying "..... you can specify a class instead ....". What you mean by "can" and does it have to be a separate class? Any detail for the required syntax and instructions beyond the wiki would be much appreciated. Best regards Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Dec 11 23:08:04 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 11 Dec 2020 23:08:04 +0100 Subject: [Gambas-user] Gambas Custom Controls - Property as Constant List In-Reply-To: <041cd141-c34a-c7ae-fbfe-1042fd2acbf4@freenet.de> References: <0e7f7d84-2821-4eed-0f39-b85c2000c1fc@t-online.de> <041cd141-c34a-c7ae-fbfe-1042fd2acbf4@freenet.de> Message-ID: Il giorno ven 11 dic 2020 alle ore 22:39 Claus Dietrich < claus.dietrich at freenet.de> ha scritto: > Hi > > I recently wrote a number of custom user controls (visible in the IDE) and > bumbed into the problem, that I couldn't make the IDE to offer a list of > declared constants (here "StyleStrokes" and "StyleScale") under a custom > control property (here "Style"). > > As I didn't clearly understand the chapter "*Constant lists*" in the > wiki, my temporary solution consists of a range definition > (Style{Range:1;2}=1). > > Name of my Custom Control Class: Knob > Export > .... > Public Const StyleStrokes As Integer = 1 > Public Const StyleScale As Integer = 2 > ... > Public Const _Properties As String = "*,....,Style{Range:1;2}=1" > > Any attempt failed to get a combo with said constants and I particularly > didn't know how to read the sentence in the wiki saying "..... you can > specify a class instead ....". What you mean by "can" and does it have to > be a separate class? Any detail for the required syntax and instructions > beyond the wiki would be much appreciated. > Best regards > > Claus > Hello, You can check out this thread: https://lists.gambas-basic.org/pipermail/user/2020-September/070075.html Regards & Good Night Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Dec 12 02:48:28 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 12 Dec 2020 02:48:28 +0100 Subject: [Gambas-user] Closing a Message! In-Reply-To: <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> Message-ID: <96c51f30-918f-33f4-37ba-e790778da47f@deganius.de> Am 11.12.20 um 16:54 schrieb Beno?t Minisini: > Yes. Guys, do not be hysterical about messages boxes! > > Message boxes aim to be simple, and I want them to keep being simple. So > if you need anything more complex, implement your own. > > I will just do what I told before, prevent the dialog box from closing > without explicitly clicking on a button. Instead of clicking on a button i very often hit ESC as this also triggers 'Cancel' which in my programs is the last button in message boxes when there is the need to cancel. I would prefer not to have to use the mouse for that. We even have computers with Gambas programs where the mouse is never used. Also I am with Gianluigi who loves the "X". And btw: This bug regarding message boxes is reported to be fixed, but I didn't test it and now it seems that it is not: http://gambaswiki.org/bugtracker/edit?object=BUG.1807&from=L21haW4- Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Sat Dec 12 03:59:04 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 12 Dec 2020 02:59:04 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: <96c51f30-918f-33f4-37ba-e790778da47f@deganius.de> References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> <96c51f30-918f-33f4-37ba-e790778da47f@deganius.de> Message-ID: How's about something simple like this in FMessage.class? *Public Sub txtMessage_DblClick() Clipboard.Copy(txtMessage.* *Text) txtMessage.Text = ("Text Coppied.") Wait 1 txtMessage.Text = Clipboard.Paste()End* On Sat, 12 Dec 2020 at 01:49, Christof Thalhofer wrote: > Am 11.12.20 um 16:54 schrieb Beno?t Minisini: > > > Yes. Guys, do not be hysterical about messages boxes! > > > > Message boxes aim to be simple, and I want them to keep being simple. So > > if you need anything more complex, implement your own. > > > > I will just do what I told before, prevent the dialog box from closing > > without explicitly clicking on a button. > > Instead of clicking on a button i very often hit ESC as this also > triggers 'Cancel' which in my programs is the last button in message > boxes when there is the need to cancel. > > I would prefer not to have to use the mouse for that. We even have > computers with Gambas programs where the mouse is never used. > > Also I am with Gianluigi who loves the "X". > > And btw: This bug regarding message boxes is reported to be fixed, but I > didn't test it and now it seems that it is not: > > http://gambaswiki.org/bugtracker/edit?object=BUG.1807&from=L21haW4- > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Dec 12 04:42:06 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 12 Dec 2020 03:42:06 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> Message-ID: I'm not sure you need to do anything now Ben. Tony added some nice info to the wiki so It's much clearer now that the Right button is always cancel and returns the same as closing the window, :) On Fri, 11 Dec 2020 at 15:55, Beno?t Minisini wrote: > Le 10/12/2020 ? 19:59, Gianluigi a ?crit : > > > > With regards to standard message boxes, I'd leave things as they are, > > including the close (X) button. > > In Gambas it is very easy to create our new message box... > > > > Regards > > Gianluigi > > > > Yes. Guys, do not be hysterical about messages boxes! > > Message boxes aim to be simple, and I want them to keep being simple. So > if you need anything more complex, implement your own. > > I will just do what I told before, prevent the dialog box from closing > without explicitly clicking on a button. > > I know that this is not necessarily welcome, but as the program normally > wants an non-ambiguous answer, it can be justified. I will put the focus > on the default button too. > > So, pardon me Bruce, but I don't think I will merge your proposal. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Dec 12 14:44:27 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 12 Dec 2020 13:44:27 +0000 Subject: [Gambas-user] embedding url on wiki In-Reply-To: References: Message-ID: May i be cheeky and suggest an edit? > If you removed the prefix '$ ' from each line it will make it easier to > simply copy and paste into a terminal. > Darn it, I apologise Ben, I have just today found that the $ is "conventional" , $ used to denote running as normal user and # denotes run as root. This i did not know till about an hour ago :-\ I much prefer to be able to copy-n-paste the text but I know you like to be conventional so I retract the request and leave it up to you. I have modified the Fedora page to include the new function for fedora-latest. http://gambaswiki.org/wiki/install/fedora#t14 I had to rearrange things a bit though (like the install dependency list was before the download source instruction so the ./reconf-all and ./configure commands were out of place) but i just moved the download source info to before the install packages function. What would make filling in the independent pages with the info easier would be if there was a way to retrieve the dependency list with one function and get the ./configure line with another. But i don't want to trouble you so I can work around it if you're happy with how it is. All the best BruceS. Funny, as I exactly did the same thing at the same time inside the wiki! >> >> But in Gambas, as the wiki is written in Gambas. There is no php on its >> server. >> >> See: https://gambaswiki.org/wiki/install. >> >> I haven't committed the code yet. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Sat Dec 12 15:12:20 2020 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Sat, 12 Dec 2020 15:12:20 +0100 Subject: [Gambas-user] Gambas Custom Controls - Property as Constant List In-Reply-To: References: <0e7f7d84-2821-4eed-0f39-b85c2000c1fc@t-online.de> <041cd141-c34a-c7ae-fbfe-1042fd2acbf4@freenet.de> Message-ID: <82860359-8e7e-8793-4241-9bef0bf94868@freenet.de> Hi Gianluigi Many thanks, but there seems to be a misunderstanding. My subject is about the general basics of self-made IDE custom controls and how a list of constants can be used to determine one of its properties in the IDE property-list. Meanwhile I managed to get things work with a trial-and-error approach but it is not what I am looking for:? 'Gambas class file "Knob" Export .... Public Const StyleStrokes As Integer = 1 Public Const StyleScale As Integer = 2 ... Public Const _Properties As String = "*,....,*Style{Knob.*}=StyleStrokes" * With this the property "Style" offers both constants (StyleStrokes and StyleScale) in a combo for selection. I have no idea how Gambas figures out the right list items with this method and doesn't grab other constants defined in the class. This somehow contradicts with the wiki (https://gambaswiki.org/wiki/dev/gambas) and I still don't know how to specify _individual constants_. Have a good weekend. Claus Am 11.12.20 um 23:08 schrieb Gianluigi: > > > Il giorno ven 11 dic 2020 alle ore 22:39 Claus Dietrich > > ha scritto: > > Hi > > I recently wrote a number of custom user controls (visible in the > IDE) and bumbed into the problem, that I couldn't make the IDE to > offer a list of declared constants (here "StyleStrokes" and > "StyleScale") under a custom control property (here "Style"). > > As I didn't clearly understand the chapter "/Constant lists/" in > the wiki, my temporary solution consists of a range definition > (Style{Range:1;2}=1). > > Name of my Custom Control Class: Knob > > Export > .... > Public Const StyleStrokes As Integer = 1 > Public Const StyleScale As Integer = 2 > ... > Public Const _Properties As String = "*,....,Style{Range:1;2}=1" > > Any attempt failed to get a combo with said constants and I > particularly didn't know how to read the sentence in the wiki > saying "..... you can specify a class instead ....". What you mean > by "can" and does it have to be a separate class? Any detail for > the required syntax and instructions beyond the wiki would be much > appreciated. > > Best regards > > Claus > > > Hello, > > You can check out this thread: > https://lists.gambas-basic.org/pipermail/user/2020-September/070075.html > > Regards & Good Night > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Dec 12 15:19:50 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 12 Dec 2020 15:19:50 +0100 Subject: [Gambas-user] Gambas Custom Controls - Property as Constant List In-Reply-To: <82860359-8e7e-8793-4241-9bef0bf94868@freenet.de> References: <0e7f7d84-2821-4eed-0f39-b85c2000c1fc@t-online.de> <041cd141-c34a-c7ae-fbfe-1042fd2acbf4@freenet.de> <82860359-8e7e-8793-4241-9bef0bf94868@freenet.de> Message-ID: Le 12/12/2020 ? 15:12, Claus Dietrich a ?crit?: > Hi Gianluigi > > Many thanks, but there seems to be a misunderstanding. My subject is > about the general basics of self-made IDE custom controls and how a list > of constants can be used to determine one of its properties in the IDE > property-list. > > Meanwhile I managed to get things work with a trial-and-error approach > but it is not what I am looking for: > > 'Gambas class file "Knob" > Export > .... > Public Const StyleStrokes As Integer = 1 > Public Const StyleScale As Integer = 2 > ... > Public Const _Properties As String = "*,....,*Style{Knob.*}=StyleStrokes" * > > With this the property "Style" offers both constants (StyleStrokes and > StyleScale) in a combo for selection. I have no idea how Gambas figures > out the right list items with this method and doesn't grab other > constants defined in the class. This somehow contradicts with the wiki > (https://gambaswiki.org/wiki/dev/gambas) and I still don't know how to > specify _individual constants_. '{Knob.*}' gets all the -public- constants of the classes. Every private symbol disappears at runtime (except in debugging information for the debugger), only public symbols remain in the executable. To get constants explictly, use '{Knob.Constant1;Constant2;...}' You can look at the Gambas source code of the GUI controls to get some examples. Regards, -- Beno?t Minisini From bagonergi at gmail.com Sat Dec 12 15:39:32 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 12 Dec 2020 15:39:32 +0100 Subject: [Gambas-user] Gambas Custom Controls - Property as Constant List In-Reply-To: <82860359-8e7e-8793-4241-9bef0bf94868@freenet.de> References: <0e7f7d84-2821-4eed-0f39-b85c2000c1fc@t-online.de> <041cd141-c34a-c7ae-fbfe-1042fd2acbf4@freenet.de> <82860359-8e7e-8793-4241-9bef0bf94868@freenet.de> Message-ID: Il giorno sab 12 dic 2020 alle ore 15:13 Claus Dietrich < claus.dietrich at freenet.de> ha scritto: > Hi Gianluigi > > Many thanks, but there seems to be a misunderstanding. > > ... > > Claus > I don't understand, but have you looked at the ComboRowsSeparator-3 code? Didn't he answer your first question? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Sat Dec 12 16:02:38 2020 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Sat, 12 Dec 2020 16:02:38 +0100 Subject: [Gambas-user] Gambas Custom Controls - Property as Constant List In-Reply-To: References: <0e7f7d84-2821-4eed-0f39-b85c2000c1fc@t-online.de> <041cd141-c34a-c7ae-fbfe-1042fd2acbf4@freenet.de> <82860359-8e7e-8793-4241-9bef0bf94868@freenet.de> Message-ID: That's it - works perfect and many thanks for the valuable background on private and public constants! Regards, Claus Am 12.12.20 um 15:19 schrieb Beno?t Minisini: > Le 12/12/2020 ? 15:12, Claus Dietrich a ?crit?: >> Hi Gianluigi >> >> Many thanks, but there seems to be a misunderstanding. My subject is >> about the general basics of self-made IDE custom controls and how a >> list of constants can be used to determine one of its properties in >> the IDE property-list. >> >> Meanwhile I managed to get things work with a trial-and-error >> approach but it is not what I am looking for: >> >> 'Gambas class file "Knob" >> Export >> .... >> Public Const StyleStrokes As Integer = 1 >> Public Const StyleScale As Integer = 2 >> ... >> Public Const _Properties As String = >> "*,....,*Style{Knob.*}=StyleStrokes" * >> >> With this the property "Style" offers both constants (StyleStrokes >> and StyleScale) in a combo for selection. I have no idea how Gambas >> figures out the right list items with this method and doesn't grab >> other constants defined in the class. This somehow contradicts with >> the wiki (https://gambaswiki.org/wiki/dev/gambas) and I still don't >> know how to specify _individual constants_. > > '{Knob.*}' gets all the -public- constants of the classes. Every > private symbol disappears at runtime (except in debugging information > for the debugger), only public symbols remain in the executable. > > To get constants explictly, use '{Knob.Constant1;Constant2;...}' > > You can look at the Gambas source code of the GUI controls to get some > examples. > > Regards, > From tmorehen at ajm-software.com Sat Dec 12 16:16:19 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 12 Dec 2020 10:16:19 -0500 Subject: [Gambas-user] Program not starting In-Reply-To: <4ad96c6b-8285-858d-8749-159d95c67361@ajmconsulting.ca> References: <4ad96c6b-8285-858d-8749-159d95c67361@ajmconsulting.ca> Message-ID: <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> Just a warning, hopefully a helpful one. Since commit d4a0982a, one of my programs refused to start. The startup form would begin, run some initialization code, then exit with error code 1.? There were no error messages, nothing to indicate what the problem was.? Stepping through the program was not helpful.? All it showed was that the exit occurred between one sub-routine and the next. Several days of debugging my program and recompiling Gambas to identify the exact change followed.? I finally started to recreate the startup form.? The new form ran!? Looking at the differences between the two forms revealed my error and it certainly was _*my*_? error.? The visible property of the original form was set to false! How that happened I have no idea.? Most likely I was trying to change the visibility of a control on the form, but selected the form by mistake. Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Dec 12 16:27:57 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 12 Dec 2020 16:27:57 +0100 Subject: [Gambas-user] Program not starting In-Reply-To: <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> References: <4ad96c6b-8285-858d-8749-159d95c67361@ajmconsulting.ca> <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> Message-ID: Il giorno sab 12 dic 2020 alle ore 16:17 Tony Morehen < tmorehen at ajm-software.com> ha scritto: > Just a warning, hopefully a helpful one. > ... > > Most likely I was trying to change the visibility of a control on the > form, but selected the form by mistake. > > Cheers > This thing has already happened to me many times, I am a chronic distracted, I never said it out of shame ;-D Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Sat Dec 12 16:39:45 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 12 Dec 2020 10:39:45 -0500 Subject: [Gambas-user] Program not starting In-Reply-To: References: <4ad96c6b-8285-858d-8749-159d95c67361@ajmconsulting.ca> <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> Message-ID: <6b29ccde-9a82-7e49-374c-8cb5b517062c@ajm-software.com> I find it's often a work flow issue.? A control is normally invisible on startup. To debug it, you select it, change its visible property to true.? Fix it. Run the program to test.? Then change to visible property back to false, not noticing that the selection has changed from the control to the form. I was just hoping to save someone some frustration as this was a tough one to debug, as there were no messages, error or otherwise, just a careless mistake causing my program to exit unexpectedly. On 2020-12-12 10:27 a.m., Gianluigi wrote: > > > Il giorno sab 12 dic 2020 alle ore 16:17 Tony Morehen > > ha scritto: > > Just a warning, hopefully a helpful one. > ... > > Most likely I was trying to change the visibility of a control on > the form, but selected the form by mistake. > > Cheers > > > This thing has already happened to me many times, I am a chronic > distracted, I never said it out of shame ;-D > > Regards > Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Sat Dec 12 16:39:51 2020 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Sat, 12 Dec 2020 16:39:51 +0100 Subject: [Gambas-user] Gambas Custom Controls - Property as Constant List In-Reply-To: References: <0e7f7d84-2821-4eed-0f39-b85c2000c1fc@t-online.de> <041cd141-c34a-c7ae-fbfe-1042fd2acbf4@freenet.de> <82860359-8e7e-8793-4241-9bef0bf94868@freenet.de> Message-ID: <96a82cc3-4a23-71b7-57fd-45e9f0285ddb@freenet.de> You may have seen, that Beno?t provided the answer I needed. However, the combo class with row separators was surprising and looks useful. So I put it into my collection. Thanks Claus Am 12.12.20 um 15:39 schrieb Gianluigi: > > > Il giorno sab 12 dic 2020 alle ore 15:13 Claus Dietrich > > ha scritto: > > Hi Gianluigi > > Many thanks, but there seems to be a misunderstanding.? > > ... > > Claus > > > I don't understand, but have you looked at the ComboRowsSeparator-3 > code? Didn't he answer your first question? > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Dec 12 16:58:42 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 12 Dec 2020 16:58:42 +0100 Subject: [Gambas-user] Program not starting In-Reply-To: <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> References: <4ad96c6b-8285-858d-8749-159d95c67361@ajmconsulting.ca> <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> Message-ID: <2310357e-74dd-4263-81be-e7d521f5a823@gmail.com> Le 12/12/2020 ? 16:16, Tony Morehen a ?crit?: > Just a warning, hopefully a helpful one. > > Since commit d4a0982a, one of my programs refused to start. The startup > form would begin, run some initialization code, then exit with error > code 1.? There were no error messages, nothing to indicate what the > problem was.? Stepping through the program was not helpful.? All it > showed was that the exit occurred between one sub-routine and the next. > > Several days of debugging my program and recompiling Gambas to identify > the exact change followed.? I finally started to recreate the startup > form.? The new form ran!? Looking at the differences between the two > forms revealed my error and it certainly was _*my*_? error.? The visible > property of the original form was set to false! > > How that happened I have no idea.? Most likely I was trying to change > the visibility of a control on the form, but selected the form by mistake. > > Cheers > Do you read the commit logs? -- Beno?t Minisini From g4mba5 at gmail.com Sat Dec 12 17:41:18 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 12 Dec 2020 17:41:18 +0100 Subject: [Gambas-user] Bug with IsDate In-Reply-To: References: Message-ID: <6f435243-3f50-f70a-fa5d-5f098c56cf8b@gmail.com> Le 08/12/2020 ? 19:13, Jussi Lahtinen a ?crit?: > Currently in dev version IsDate does not understand the localization: > ? IsDate(Str(Now)) > False > > $ locale > LANG=en_US.UTF-8 > LANGUAGE=en_US > LC_CTYPE="en_US.UTF-8" > LC_NUMERIC=fi_FI.UTF-8 > LC_TIME="en_US.UTF-8" > LC_COLLATE="en_US.UTF-8" > LC_MONETARY=fi_FI.UTF-8 > LC_MESSAGES="en_US.UTF-8" > LC_PAPER=fi_FI.UTF-8 > LC_NAME=fi_FI.UTF-8 > LC_ADDRESS=fi_FI.UTF-8 > LC_TELEPHONE=fi_FI.UTF-8 > LC_MEASUREMENT=fi_FI.UTF-8 > LC_IDENTIFICATION=fi_FI.UTF-8 > LC_ALL= > > > Jussi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It should be fixed in commit https://gitlab.com/gambas/gambas/-/commit/93659c3f7eab356b922d5be161990bf888fb3fd8. Now Str() on dates returns something that Val() and IsDate() can understand. A function that could be named "Date.FromString()" should be made for understanding any local date in any format. Val() and IsDate() cannot be made clever enough for that, too complex! Regards, -- Beno?t Minisini From tmorehen at ajm-software.com Sat Dec 12 17:44:05 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 12 Dec 2020 11:44:05 -0500 Subject: [Gambas-user] Program not starting In-Reply-To: <2310357e-74dd-4263-81be-e7d521f5a823@gmail.com> References: <4ad96c6b-8285-858d-8749-159d95c67361@ajmconsulting.ca> <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> <2310357e-74dd-4263-81be-e7d521f5a823@gmail.com> Message-ID: Yes I read the commit logs and I studied the exact changes each commit made.? Unfortunately, I didn't notice the problem until several commits later.? It took a while to identify the particular commit. I never thought to check my startup form.? It's visible property should have been set to true.? Unfortunately, I got sidetracked. That form contains several custom controls, versions of DirView and FileChooser, some of which are hidden.? Since those controls are form-based and the program exited after initializing those controls, I thought my problem was there. My startup form is quite complicated and I've had forms get corrupted in the past.? So, I decided to recreate the form, one part at a time.? The form had three major components, the menu, toolbar and body.? I copied the body and code over to the new form and edited the code to account for the missing objects.? The new form opened successfully.? Copied the toolbar over and re-edited the code for the new objects.? Again a successful open.? Now to copy the menu over.? I decided to do that with a text editor.? I opened the two form files to copy over the menu-related lines and then noticed that the original form has its visible property set to false.? A light goes on! Sometimes we overlook the obvious.? I assumed I screwed up in my customization of DirView and FileChooser controls that your commit was only now revealing.? Instead it was another, simpler error on my part, a very careless error. On 2020-12-12 10:58 a.m., Beno?t Minisini wrote: > Le 12/12/2020 ? 16:16, Tony Morehen a ?crit?: >> Just a warning, hopefully a helpful one. >> >> Since commit d4a0982a, one of my programs refused to start. The >> startup form would begin, run some initialization code, then exit >> with error code 1.? There were no error messages, nothing to indicate >> what the problem was.? Stepping through the program was not helpful.? >> All it showed was that the exit occurred between one sub-routine and >> the next. >> >> Several days of debugging my program and recompiling Gambas to >> identify the exact change followed.? I finally started to recreate >> the startup form.? The new form ran!? Looking at the differences >> between the two forms revealed my error and it certainly was _*my*_? >> error.? The visible property of the original form was set to false! >> >> How that happened I have no idea.? Most likely I was trying to change >> the visibility of a control on the form, but selected the form by >> mistake. >> >> Cheers >> > > Do you read the commit logs? > From g4mba5 at gmail.com Sat Dec 12 17:48:33 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 12 Dec 2020 17:48:33 +0100 Subject: [Gambas-user] Program not starting In-Reply-To: References: <4ad96c6b-8285-858d-8749-159d95c67361@ajmconsulting.ca> <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> <2310357e-74dd-4263-81be-e7d521f5a823@gmail.com> Message-ID: <488002b1-123f-1bb2-2bb7-5d7345c76061@gmail.com> Le 12/12/2020 ? 17:44, Tony Morehen a ?crit?: > Yes I read the commit logs and I studied the exact changes each commit > made.? Unfortunately, I didn't notice the problem until several commits > later.? It took a while to identify the particular commit. > > I never thought to check my startup form.? It's visible property should > have been set to true.? Unfortunately, I got sidetracked. That form > contains several custom controls, versions of DirView and FileChooser, > some of which are hidden.? Since those controls are form-based and the > program exited after initializing those controls, I thought my problem > was there. > > My startup form is quite complicated and I've had forms get corrupted in > the past.? So, I decided to recreate the form, one part at a time.? The > form had three major components, the menu, toolbar and body.? I copied > the body and code over to the new form and edited the code to account > for the missing objects.? The new form opened successfully.? Copied the > toolbar over and re-edited the code for the new objects.? Again a > successful open.? Now to copy the menu over.? I decided to do that with > a text editor.? I opened the two form files to copy over the > menu-related lines and then noticed that the original form has its > visible property set to false.? A light goes on! > > Sometimes we overlook the obvious.? I assumed I screwed up in my > customization of DirView and FileChooser controls that your commit was > only now revealing.? Instead it was another, simpler error on my part, a > very careless error. > Maybe if the form visible property is set to FALSE, I should show that with some special icon in the form editor, or in the form icon itself? No idea what exactly, this is just an idea. Regards, -- Beno?t Minisini From tmorehen at ajm-software.com Sat Dec 12 19:51:13 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 12 Dec 2020 13:51:13 -0500 Subject: [Gambas-user] Program not starting In-Reply-To: <488002b1-123f-1bb2-2bb7-5d7345c76061@gmail.com> References: <4ad96c6b-8285-858d-8749-159d95c67361@ajmconsulting.ca> <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> <2310357e-74dd-4263-81be-e7d521f5a823@gmail.com> <488002b1-123f-1bb2-2bb7-5d7345c76061@gmail.com> Message-ID: <3f394d4b-41ac-7038-b6dc-942be412e128@ajm-software.com> First, the current behaviour is what I expected. If I want a program to start hidden, I use a main.module, form.load approach. Perhaps all this needs is a debug message:? "Warning: The Visible property of the startup form of this project is set to False. This could result in undefined behavior." On 2020-12-12 11:48 a.m., Beno?t Minisini wrote: > Le 12/12/2020 ? 17:44, Tony Morehen a ?crit?: >> Yes I read the commit logs and I studied the exact changes each >> commit made.? Unfortunately, I didn't notice the problem until >> several commits later.? It took a while to identify the particular >> commit. >> >> I never thought to check my startup form.? It's visible property >> should have been set to true.? Unfortunately, I got sidetracked. That >> form contains several custom controls, versions of DirView and >> FileChooser, some of which are hidden.? Since those controls are >> form-based and the program exited after initializing those controls, >> I thought my problem was there. >> >> My startup form is quite complicated and I've had forms get corrupted >> in the past.? So, I decided to recreate the form, one part at a >> time.? The form had three major components, the menu, toolbar and >> body.? I copied the body and code over to the new form and edited the >> code to account for the missing objects. The new form opened >> successfully.? Copied the toolbar over and re-edited the code for the >> new objects.? Again a successful open.? Now to copy the menu over.? I >> decided to do that with a text editor.? I opened the two form files >> to copy over the menu-related lines and then noticed that the >> original form has its visible property set to false.? A light goes on! >> >> Sometimes we overlook the obvious.? I assumed I screwed up in my >> customization of DirView and FileChooser controls that your commit >> was only now revealing.? Instead it was another, simpler error on my >> part, a very careless error. >> > > Maybe if the form visible property is set to FALSE, I should show that > with some special icon in the form editor, or in the form icon itself? > No idea what exactly, this is just an idea. > > Regards, > From g4mba5 at gmail.com Sat Dec 12 20:13:17 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 12 Dec 2020 20:13:17 +0100 Subject: [Gambas-user] which is the most close to file_get_contents ? In-Reply-To: References: Message-ID: <2f1b9bf8-c0fc-70b6-6796-775b2cda7337@gmail.com> Le 11/12/2020 ? 18:15, PICCORO McKAY Lenz a ?crit?: > in php we have too many generic helpers, functions etc.. so maybe php > programers are very lazy.. but php have those easy touse?things like > https://www.php.net/manual/en/function.file-get-contents.php > > it does not care if are a file or url.. just use it and get json output.. > > is there something similar in gambas? for both desktop or web? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > You have File.Load() to load a file into a string. Otherwise you can download a file through 'http' or 'https' with HttpClient.Download(). Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sat Dec 12 20:17:09 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 12 Dec 2020 19:17:09 +0000 Subject: [Gambas-user] Program not starting In-Reply-To: <3f394d4b-41ac-7038-b6dc-942be412e128@ajm-software.com> References: <4ad96c6b-8285-858d-8749-159d95c67361@ajmconsulting.ca> <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> <2310357e-74dd-4263-81be-e7d521f5a823@gmail.com> <488002b1-123f-1bb2-2bb7-5d7345c76061@gmail.com> <3f394d4b-41ac-7038-b6dc-942be412e128@ajm-software.com> Message-ID: On Sat, 12 Dec 2020 at 18:52, Tony Morehen wrote: > First, the current behaviour is what I expected. If I want a program to > start hidden, I use a main.module, form.load approach. > > Perhaps all this needs is a debug message: "Warning: The Visible > property of the startup form of this project is set to False. This could > result in undefined behavior." > But then you'd have warning messages even if you wanted it hidden. Maybe this post will be all that's needed? I assume (as you said you discovered the problem when rebuilding the form) that this is not the sort of error you will make when building a form from new now? it's a problem with a way it used to work compared to how it is now. So it will only effect a few with existing apps with the same "mistake". They may search the mailing list for a solution for "Program wont start" ? :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Dec 12 20:23:29 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 12 Dec 2020 19:23:29 +0000 Subject: [Gambas-user] which is the most close to file_get_contents ? In-Reply-To: <2f1b9bf8-c0fc-70b6-6796-775b2cda7337@gmail.com> References: <2f1b9bf8-c0fc-70b6-6796-775b2cda7337@gmail.com> Message-ID: On Sat, 12 Dec 2020 at 19:14, Beno?t Minisini wrote: > Le 11/12/2020 ? 18:15, PICCORO McKAY Lenz a ?crit : > > in php we have too many generic helpers, functions etc.. so maybe php > > programers are very lazy.. but php have those easy touse things like > > https://www.php.net/manual/en/function.file-get-contents.php > > > > it does not care if are a file or url.. just use it and get json output.. > > > Bare in mind though that all php functions happen server-side you could not use it to load a file from your hard drive, just a file path without a http:// url prefix in your web app, but that technically is still a URL. so it does care really :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Dec 12 20:31:40 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 12 Dec 2020 20:31:40 +0100 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> <96c51f30-918f-33f4-37ba-e790778da47f@deganius.de> Message-ID: Am 12.12.20 um 03:59 schrieb Bruce Steers: > How's about something simple like this in FMessage.class? > > *Public Sub txtMessage_DblClick() > > ? Clipboard.Copy(txtMessage.**Text) > ? txtMessage.Text = ("Text Coppied.") > ? Wait 1 > ? txtMessage.Text = Clipboard.Paste() > > End* Actually it's quite funny. But nevertheless I would find it confusing and not intuitive. There are a number of well-known commands to copy to the clipboard like Ctrl-C, Ctrl-Insert. Double-click is not one of them. If someone copied something important and it was replaced by double clicking a message it would be annoying. By no means should it be default behavior in Gambas. I found the old behaviour the best and easiest: Highlight the text with the mouse and press Crtl-C. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From tmorehen at ajm-software.com Sat Dec 12 20:56:59 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 12 Dec 2020 14:56:59 -0500 Subject: [Gambas-user] Program not starting In-Reply-To: References: <4ad96c6b-8285-858d-8749-159d95c67361@ajmconsulting.ca> <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> <2310357e-74dd-4263-81be-e7d521f5a823@gmail.com> <488002b1-123f-1bb2-2bb7-5d7345c76061@gmail.com> <3f394d4b-41ac-7038-b6dc-942be412e128@ajm-software.com> Message-ID: <65123897-acbd-b8a3-bfd9-b1eda59c3dd0@ajm-software.com> Plz see below. On 2020-12-12 2:17 p.m., Bruce Steers wrote: > > > On Sat, 12 Dec 2020 at 18:52, Tony Morehen > wrote: > > First, the current behaviour is what I expected. If I want a > program to > start hidden, I use a main.module, form.load approach. > > Perhaps all this needs is a debug message:? "Warning: The Visible > property of the startup form of this project is set to False. This > could > result in undefined behavior." > > > But then you'd have warning messages even if you wanted it hidden. > Maybe this post will be all that's needed? This is why I posted in the first place.? The warning should only apply to startup forms. A hidden startup form can crash without an error message, hence the need for a warning. To get a hidden startup, in a startup module Main.module: Sub Main() ??? fMain.Load() End This works in all circumstances and has known behavior: fMain's _new(), Form_Load() routines run, Form_Show() does not. etc.? We don't know what happens with hidden startup form.? Mine crashed. Will other, perhaps simpler, forms? > > I assume (as you said you discovered the problem when rebuilding the > form) that this > is not the sort of error you will make when building a form from new now? > it's a problem with a way it used to work compared to how it is now. > So it will only effect a few with existing apps with the same "mistake". You could set the startup form's Visible? property false by accident anytime.? I'm pretty sure that's what happened to my project.? I changed the forms property when I thought I was editing a control on the form. > > They may search the mailing list for a solution for "Program wont start" ? > > :) > BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Dec 12 20:57:26 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 12 Dec 2020 20:57:26 +0100 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> <96c51f30-918f-33f4-37ba-e790778da47f@deganius.de> Message-ID: Le 12/12/2020 ? 20:31, Christof Thalhofer a ?crit?: > > I found the old behaviour the best and easiest: Highlight the text with > the mouse and press Crtl-C. > The problem is that I don't have a control that both displays rich text and allows it to be selectable. :-/ -- Beno?t Minisini From g4mba5 at gmail.com Sat Dec 12 21:00:05 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 12 Dec 2020 21:00:05 +0100 Subject: [Gambas-user] Program not starting In-Reply-To: <65123897-acbd-b8a3-bfd9-b1eda59c3dd0@ajm-software.com> References: <4ad96c6b-8285-858d-8749-159d95c67361@ajmconsulting.ca> <999efd24-c323-9a76-8e12-79cf93da24ca@ajm-software.com> <2310357e-74dd-4263-81be-e7d521f5a823@gmail.com> <488002b1-123f-1bb2-2bb7-5d7345c76061@gmail.com> <3f394d4b-41ac-7038-b6dc-942be412e128@ajm-software.com> <65123897-acbd-b8a3-bfd9-b1eda59c3dd0@ajm-software.com> Message-ID: Le 12/12/2020 ? 20:56, Tony Morehen a ?crit?: > > This is why I posted in the first place.? The warning should only apply > to startup forms. A hidden startup form can crash without an error > message, hence the need for a warning. To get a hidden startup, in a > startup module Main.module: > > Sub Main() > > ??? fMain.Load() > > End > > This works in all circumstances and has known behavior: fMain's _new(), > Form_Load() routines run, Form_Show() does not. etc.? We don't know what > happens with hidden startup form.? Mine crashed. Will other, perhaps > simpler, forms? > Can you send me your project with the hidden startup form, so that I can understand what happens exactly? If the startup form is hidden, it is not automatically shown, but the form is instanciated. Regards, -- Beno?t Minisini From tmorehen at ajm-software.com Sat Dec 12 21:03:38 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 12 Dec 2020 15:03:38 -0500 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> <96c51f30-918f-33f4-37ba-e790778da47f@deganius.de> Message-ID: I liked the old behavior myself.? I didn't even recognize the new copy button as a button.? I wondered what it was, perhaps an unwanted leftover from a "Don't show this message again" checkbox? On 2020-12-12 2:31 p.m., Christof Thalhofer wrote: > Am 12.12.20 um 03:59 schrieb Bruce Steers: > >> How's about something simple like this in FMessage.class? >> >> *Public Sub txtMessage_DblClick() >> >> ? Clipboard.Copy(txtMessage.**Text) >> ? txtMessage.Text = ("Text Coppied.") >> ? Wait 1 >> ? txtMessage.Text = Clipboard.Paste() >> >> End* > Actually it's quite funny. But nevertheless I would find it confusing > and not intuitive. There are a number of well-known commands to copy to > the clipboard like Ctrl-C, Ctrl-Insert. > > Double-click is not one of them. If someone copied something important > and it was replaced by double clicking a message it would be annoying. > By no means should it be default behavior in Gambas. > > I found the old behaviour the best and easiest: Highlight the text with > the mouse and press Crtl-C. > > Alles Gute > > Christof Thalhofer > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Dec 12 21:38:33 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 12 Dec 2020 21:38:33 +0100 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> <96c51f30-918f-33f4-37ba-e790778da47f@deganius.de> Message-ID: <5827328a-5e47-2a1a-0eac-a4ab2df58129@deganius.de> Am 12.12.20 um 21:03 schrieb Tony Morehen: > I liked the old behavior myself.? I didn't even recognize the new copy > button as a button.? I wondered what it was, perhaps an unwanted > leftover from a "Don't show this message again" checkbox? Hups? Can you point me to the right direction? I've never seen any button. Here with 3.15.21. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: error-message-copy-button-where.png Type: image/png Size: 33244 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sat Dec 12 21:43:50 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 12 Dec 2020 21:43:50 +0100 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> <96c51f30-918f-33f4-37ba-e790778da47f@deganius.de> Message-ID: <168d5cea-574a-ea70-1932-b36e6f11b1f3@deganius.de> Am 12.12.20 um 20:57 schrieb Beno?t Minisini: > Le 12/12/2020 ? 20:31, Christof Thalhofer a ?crit?: >> >> I found the old behaviour the best and easiest: Highlight the text with >> the mouse and press Crtl-C. > > The problem is that I don't have a control that both displays rich text > and allows it to be selectable. :-/ Why do error messages have to be displayed with rich text? Error "by design"? ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Sat Dec 12 23:01:01 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 12 Dec 2020 22:01:01 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> <96c51f30-918f-33f4-37ba-e790778da47f@deganius.de> Message-ID: On Sat, 12 Dec 2020 at 19:32, Christof Thalhofer wrote: > Am 12.12.20 um 03:59 schrieb Bruce Steers: > > > How's about something simple like this in FMessage.class? > > > > *Public Sub txtMessage_DblClick() > > > > Clipboard.Copy(txtMessage.**Text) > > txtMessage.Text = ("Text Coppied.") > > Wait 1 > > txtMessage.Text = Clipboard.Paste() > > > > End* > > Actually it's quite funny. But nevertheless I would find it confusing > and not intuitive. There are a number of well-known commands to copy to > the clipboard like Ctrl-C, Ctrl-Insert. > > Double-click is not one of them. If someone copied something important > and it was replaced by double clicking a message it would be annoying. > By no means should it be default behavior in Gambas. > > I found the old behaviour the best and easiest: Highlight the text with > the mouse and press Crtl-C. > Seems the TextLabel control does not do highlighting though :( So an alternative behaviour could unavoidable. You'd have to assume restoring the old behaviour was not such a simple task or Ben would have done that. I saw the commit you pointed to and saw he added a copy button but it seems to be gone now. you may have to adjust slightly, bend a little, change your instruction to your subjects from "drag-n-select the text, right click and select copy" to "double click the text" ;) I just noticed there is already a popup menu "copy text" item and function set up in the message source. But nothing has mnuPopup set as its menu. It works but the shortcut key Ctrl+C does not. Could that be enabled Ben? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Dec 13 00:23:46 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 12 Dec 2020 23:23:46 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> <96c51f30-918f-33f4-37ba-e790778da47f@deganius.de> Message-ID: > > I just noticed there is already a popup menu "copy text" item and function > set up in the message source. > But nothing has mnuPopup set as its menu. > > It works but the shortcut key Ctrl+C does not. > > Could that be enabled Ben? > Ben, i just found using the Ctrl-C shortcut for the mnuPopup in FMessage.form does work on QT but does not GTK. This i think would address this problem if it worked on GTK. The text may not be selectable but at least it will still copy to clipboard on Ctrl+C press. Also seeing the "default" button focused and pressing tab or left/right arrow keys to focus another button displays the dotted border as you press on QT so you can see what button is selected. but on GTK the buttons show no different and you cannot tell what button has focus. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Dec 13 13:43:32 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 13 Dec 2020 12:43:32 +0000 Subject: [Gambas-user] Closing a Message! In-Reply-To: References: <445c5b59-7cf4-96e6-49b0-3f4185296cd8@cogier.com> <65d87156-d95e-b7a6-84d7-e4167913d550@gmail.com> <96c51f30-918f-33f4-37ba-e790778da47f@deganius.de> Message-ID: https://gitlab.com/bsteers4/gambas/-/commit/c63f065b6d413427e170d298fe666a745b64af49 This Maybe? Not too much complicated.. This Message() has a new property.. Message.NoRichText As Boolean Set it to true and Message uses TextArea instead of TextLabel. Gain Highlight/Ctrl-C ability but lose HTML parsing. But have choice. Have also re-enabled your Copy Text menu that pops up if it's a non text selectable TextLabel. So many alternative options... Any other gambas programmers out there got any good/productive/acceptable solutions? ;) :p BruceS On Sat, 12 Dec 2020 at 19:59, Beno?t Minisini wrote: > Le 12/12/2020 ? 20:31, Christof Thalhofer a ?crit : > > > > I found the old behaviour the best and easiest: Highlight the text with > > the mouse and press Crtl-C. > > > > The problem is that I don't have a control that both displays rich text > and allows it to be selectable. :-/ > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Sun Dec 13 23:07:46 2020 From: mbelmonte at belmotek.net (Martin) Date: Sun, 13 Dec 2020 23:07:46 +0100 Subject: [Gambas-user] gb.dwg started Message-ID: Hi, I started to make the gb.dwg component I am following the instructions from Tobias Boege "Writing a native component for gambas" [0]. The objective is to use the project made for Reini Urban [1] and of course the LibreDWG library. [0] https://wasd.urz.uni-magdeburg.de/tboege/gambas/native_comp.pdf [1] https://github.com/LibreDWG/gambas3-bindings So I follow the first steps. 0) Install all the dependecies recomended by the web site for Arch distro (I use Manjaro) -> sudo pacman -Syu --needed --noconfirmalure ... here tthe option "--noconfirmalure" doesent work on my terminal then I decide not use it 1) Download the source code - ok 2 ) Made the gb.dw.conf file, then run ./make-compoente gb.dwg but doesent work properly, the message was: which: no cpp in (/home/USER/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl) ./make-component: error: cpp was not found I attached the conf file gb.dwg.conf Any sugestion? Regards. Mart?n Belmonte. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- /* Copyrights */ #define __COPYRIGHT (c) 2020 #define __AUTHOR Author #define __EMAIL /* Name of the component */ #define __COMPONENT gb.dwg /* Name of the component with points replaced by underscore */ #define __COMPONENT_UNDERSCORE gb_dwg /* Short name of the component */ #define __NAME dwg /* Short name of the component in uppercase */ #define __UNAME DWG /* Description of the component */ #define __DESCRIPTION LibreDWG library /* If the component detection uses pkg-config */ #define __USE_PKGCONFIG 1 #if __USE_PKGCONFIG /* Name of the package for pkg-config */ #define __PKGCONFIG_NAME dwg /* Minimum version needed */ #define __PKGCONFIG_VERSION 1.0.0 #else /* __USE_PKGCONFIG */ /* If your component uses C */ #define __USE_C 1 /* If your component uses C++ */ //#define __USE_CPLUSPLUS 1 /* If your component uses multi-threading */ //#define __USE_THREAD 1 /* If your component uses X-Window */ //#define __USE_XWINDOW 1 /* Includes to search for */ #define __SEARCH_INCLUDE c_dwg.h c_ents.h /* Includes directories search path */ #define __SEARCH_INCLUDE_PATH /usr/local/lib /usr/local /usr/lib /usr /* Includes sub-directories search */ //#define __SEARCH_INCLUDE_DIR test/include include c_dwg*/include test/*/include /* Libraries to search for */ //#define __SEARCH_LIBRARY libtest.$SHLIBEXT libjpeg.$SHLIBEXT libpng.$SHLIBEXT /* Libraries directories search path */ #define __SEARCH_LIBRARY_PATH /usr/local /* Libraries sub-directories search path */ #define __SEARCH_LIBRARY_DIR lib /* Libraries to link with */ #define __LIBRARY -libredwg /* Includes to link with */ #define __INCLUDE -libredwg #endif /* __USE_PKGCONFIG */ /* Source file list */ #define __SOURCES main.c main.h /* Main C/C++ source basename in uppercase */ #define __MAIN_UNAME MAIN From g4mba5 at gmail.com Sun Dec 13 23:56:48 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 13 Dec 2020 23:56:48 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: References: Message-ID: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> Le 13/12/2020 ? 23:07, Martin a ?crit?: > > which: no cpp in > (/home/USER/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl) > ./make-component: error: cpp was not found You need a C compiler (gcc). -- Beno?t Minisini From taboege at gmail.com Mon Dec 14 00:02:11 2020 From: taboege at gmail.com (Tobias Boege) Date: Mon, 14 Dec 2020 00:02:11 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: References: Message-ID: <20201213230211.GH1811581@highrise.localdomain> On Sun, 13 Dec 2020, Martin wrote: > Hi, > > I started to make the gb.dwg component I am following the instructions from > Tobias Boege "Writing a native component for gambas" [0]. > Oh, I hate documents that don't have their creation date printed on them. >From the svn revision 6903 mentioned in the text, I estimate this was written in 2015. I haven't tracked how the process changed since then. I still have the source code for that document and could rehost it (I am no longer in control over my old student website) and correct any mistakes. > The objective is to use the project made for Reini Urban [1] and of course > the LibreDWG library. > > [0] https://wasd.urz.uni-magdeburg.de/tboege/gambas/native_comp.pdf > > [1] https://github.com/LibreDWG/gambas3-bindings > Wow, I didn't know Reini Urban was interested in Gambas! > So I follow the first steps. > > 0) Install all the dependecies recomended by the web site for Arch distro (I > use Manjaro) -> sudo pacman -Syu --needed --noconfirmalure ... here tthe > option "--noconfirmalure" doesent work on my terminal then I decide not use > it This is almost surely a typo. "--noconfirmalure" should be two words: "--noconfirm", which is an actual option of pacman (although I would personally not use it when I install something interactively anyway), and "alure", which is a dependency of gb.openal. > 1) Download the source code - ok > > 2 ) Made the gb.dw.conf file, then run ./make-compoente gb.dwg but doesent > work properly, the message was: > > which: no cpp in (/home/USER/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl) > ./make-component: error: cpp was not found > This indicates that you do not have a C compiler installed or one whose preprocessor is not called "cpp". Install for example "gcc" on Arch Linux and you should get your cpp. Otherwise, make-component is just a convenience script. You do not have to use it to make a functional new component. The cargo cult way which I used more often than make-component is to copy a small native component and adapt its source code. You can, in a clean Gambas repository, $ cp -r gb.gmp gb.dwg and then adapt the following files gb.dwg/configure.ac - this is basically what you enter into gb.dwg.conf plus data on how the build process can figure out if the backing native library (something with "dwg"?) is installed or not gb.dwg/Makefile.am - rename GMP_DIR to DWG_DIR gb.dwg/src/gb.gmp.component - rename to gb.dwg.component and fill in correct information gb.dwg/src/Makefile.am - change all GMP to DWG and register your source files gb.dwg/src/*.{c,h} - this is your implementation, the files mentioned in the Makefile.am and register the new component to the top-level build process via configure.ac - add gb.dwg to the long list of subdirectories Makefile.am - add your @dwg_dir@ to the long list of subdirectories Then ./reconf-all && ./configure to see if it gets picked up. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mbelmonte at belmotek.net Mon Dec 14 09:53:55 2020 From: mbelmonte at belmotek.net (Martin) Date: Mon, 14 Dec 2020 09:53:55 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> References: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> Message-ID: <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> Effectively gcc was not installed. Well now I have installed it and the basic structure of the component was created successfully. I will continue to advance, and in the next blockade I ask again. Thanks. Mart?n Belmonte On 13/12/20 23:56, Beno?t Minisini wrote: > Le 13/12/2020 ? 23:07, Martin a ?crit?: >> >> which: no cpp in >> (/home/USER/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl) >> ./make-component: error: cpp was not found > > You need a C compiler (gcc). > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Tue Dec 15 11:10:25 2020 From: mbelmonte at belmotek.net (Martin) Date: Tue, 15 Dec 2020 11:10:25 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> References: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> Message-ID: ok, the component structure is already created, and I have copied and overwritten the files with the libredwg/gambas-bindings3 project [1] I am looking, as an example, at the gb.dbus component and in this there is a file called c_dbus.h in dwg I suppose its equivalent is c_dwg.h but both differ since they have considerable differences. In gb.dbus there is also a gambas project (a directory) called gb.dbus and this is what is missing in the dwg component, correct? Well, now the system does not have shrimp of any version installed, since I am going to install the development version with the component that I am trying to create. But to create the "gambas" part of the component I have to use gambas that doesn't exist in the system yet, so it looks like a uroboro. So, wich is the correct system setup in order to develop a component? What is the minimum I could do with c_dwg.h [2] ? and... how to do that? [1] https://github.com/LibreDWG/gambas3-bindings [2] https://github.com/LibreDWG/gambas3-bindings/blob/master/src/c_dwg.h Regards Mart?n Belmonte. On 14/12/20 9:53, Martin wrote: > > Effectively gcc was not installed. Well now I have installed it and > the basic structure of the component was created successfully. > > I will continue to advance, and in the next blockade I ask again. > > Thanks. > > Mart?n Belmonte > > On 13/12/20 23:56, Beno?t Minisini wrote: >> Le 13/12/2020 ? 23:07, Martin a ?crit?: >>> >>> which: no cpp in >>> (/home/USER/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl) >>> ./make-component: error: cpp was not found >> >> You need a C compiler (gcc). >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Dec 15 13:18:27 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 15 Dec 2020 13:18:27 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: References: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> Message-ID: <1396f201-b772-21cb-a246-65c9d70cc13c@gmail.com> Le 15/12/2020 ? 11:10, Martin a ?crit?: > ok, the component structure is already created, and I have copied and > overwritten the files with the libredwg/gambas-bindings3 project [1] > I am looking, as an example, at the gb.dbus component and in this there > is a file called c_dbus.h in dwg I suppose its equivalent is c_dwg.h but > both differ since they have considerable differences. > In gb.dbus there is also a gambas project (a directory) called gb.dbus > and this is what is missing in the dwg component, correct? > Well, now the system does not have shrimp of any version installed, > since I am going to install the development version with the component > that I am trying to create. But to create the "gambas" part of the > component I have to use gambas that doesn't exist in the system yet, so > it looks like a uroboro. > > So, wich is the correct system setup in order to develop a component? > > What is the minimum I could do with c_dwg.h [2] ? and... how to do that? > > [1] https://github.com/LibreDWG/gambas3-bindings > > [2] https://github.com/LibreDWG/gambas3-bindings/blob/master/src/c_dwg.h > > Regards > > Mart?n Belmonte. > Having a gambas part in a component is only automatically managed -inside- the Gambas source tree, as this management is done by the autoconf configuration. If you develop the component outside of Gambas source tree, you have to mimic that autoconf configuration. As I told before, it's just having a Gambas project having the same name as the component, and installing the executable ("gb.dwg.gambas") in the same directory as the binary library file ("/usr/lib/gambas3/gb.dwg.so"). Tobias told you to mimic the 'gb.gmp' component, because it's simpler. I told you about 'gb.dbus' just for the mixing of library and Gambas project. Otherwise 'gb.dbus' is too complex to understand by itself for a start. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Tue Dec 15 13:31:44 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 15 Dec 2020 13:31:44 +0100 Subject: [Gambas-user] Article about Gambas Message-ID: <7975a983-7eac-e974-c9d2-321ebc612d4c@osnanet.de> In the last (not current) German computer magazine "ct" they had an article about Gambas. It is not very long, just a two-column summary of its highlights, but alas... Everything very positive, and they even mention JIT, the archiver and the scripter version. There is a bit criticism about the documentation: the article closes with the words "However, the poor Gambas documentation in the form of a wiki urgently needs to be extended and updated". Regards Rolf From rwe-sse at osnanet.de Tue Dec 15 13:22:30 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 15 Dec 2020 13:22:30 +0100 Subject: [Gambas-user] Special Gambas update repo Message-ID: I have a new Ubuntu machine and I remember there was some special repo used instead of the Ubuntu sources. Or am I wrong here? Clicking around on the website and the Download/Install pages didn't bring up any information - at least I couldn't find any. Thanks for any hint. Regards Rolf From hans at gambas-buch.de Tue Dec 15 13:36:50 2020 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 15 Dec 2020 13:36:50 +0100 Subject: [Gambas-user] Web-Service/Web-Interface Message-ID: <4f0f01e8-ef29-e001-5900-3f5bdbd32a96@gambas-buch.de> Hallo. For the solution of the following task I need a solution idea: I have a board with a temperature sensor, which can be connected to a computer via a RS232/USB adapter. The program to read the current tempatuir is after the basic configuration of the RS232 interface in the taskbar, so that only a TrayIcon is visible -> https://gambas-buch.de/dwen/doku.php?id=k13:k13.6:start . I want to display the current temperature in a web page, where I can also configure the RS232 interface via a form. How do I realize in a simple way the bi-directional exchange of data between the temperature measuring program and the web interface? With kind regards Hans From gambas at cd-bahia.com Tue Dec 15 14:18:05 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Tue, 15 Dec 2020 14:18:05 +0100 Subject: [Gambas-user] Problem with tableview Message-ID: <989a5375-fc9b-f9c2-3de6-a7bce9fcebad@cd-bahia.com> Hi, I have a problem setting the row in tableview. I have a control tableview called ADR_TV. Even if I say ADR_TV.Row=5 it does nothing (have more than 5 rows) I also tried with ADR_TV.ScrollY=5. And ADR_TV.Rows[5].Selected=True sets line 0 additionally to be selected Of course I normally use a variable to set this, but the above shows my problem, Thankful for any help, Dag Gambas 3. 15.2 From olivier.cruilles at yahoo.fr Tue Dec 15 15:28:54 2020 From: olivier.cruilles at yahoo.fr (Olivier Cruilles) Date: Tue, 15 Dec 2020 09:28:54 -0500 Subject: [Gambas-user] Special Gambas update repo In-Reply-To: References: Message-ID: <40bf63ac-c882-4c76-a071-705e64aa0b77@Canary> Here is the info for daily or stable PPA for Ubuntu https://gambaswiki.org/wiki/install/ubuntu ? Olivier Cruilles > On Tuesday, Dec 15, 2020 at 07:33, Rolf-Werner Eilert wrote: > I have a new Ubuntu machine and I remember there was some special repo > used instead of the Ubuntu sources. Or am I wrong here? > > Clicking around on the website and the Download/Install pages didn't > bring up any information - at least I couldn't find any. > > Thanks for any hint. > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Dec 15 16:20:39 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 15 Dec 2020 16:20:39 +0100 Subject: [Gambas-user] Article about Gambas In-Reply-To: <7975a983-7eac-e974-c9d2-321ebc612d4c@osnanet.de> References: <7975a983-7eac-e974-c9d2-321ebc612d4c@osnanet.de> Message-ID: <926d5ebe-e29c-a42d-fe7a-a7d541d51d1c@deganius.de> Hallo Rolf, Am 15.12.20 um 13:31 schrieb Rolf-Werner Eilert: > In the last (not current) German computer magazine "ct" they had an > article about Gambas. It is not very long, just a two-column summary of > its highlights, but alas... Kannst du ihn mir privat senden? In der c't ist er hinter der Paywall ... und ich habe Heise Plus extra nicht abonniert. > Everything very positive, and they even mention JIT, the archiver and > the scripter version. > > There is a bit criticism about the documentation: the article closes > with the words "However, the poor Gambas documentation in the form of a > wiki urgently needs to be extended and updated". For me a clear sign that they have only scratched the surface. They could also have asked in the German Gambas forum for support but they didn't. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From rwe-sse at osnanet.de Tue Dec 15 16:21:36 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 15 Dec 2020 16:21:36 +0100 Subject: [Gambas-user] Special Gambas update repo In-Reply-To: <40bf63ac-c882-4c76-a071-705e64aa0b77@Canary> References: <40bf63ac-c882-4c76-a071-705e64aa0b77@Canary> Message-ID: <0d5284b5-33cf-739c-debd-64a71566ea4d@osnanet.de> Thank you Olivier! But: How would I get there? Where in the wiki is the way to find it? I mean, when I am new (and do not know anyone here) and just want to try, shouldn't there be an easier way finding this? :) Regards Rolf Am 15.12.20 um 15:28 schrieb Olivier Cruilles via User: > Here is the info for daily or stable PPA for Ubuntu > > https://gambaswiki.org/wiki/install/ubuntu > > > ? > Olivier Cruilles > > On Tuesday, Dec 15, 2020 at 07:33, Rolf-Werner Eilert > > wrote: > I have a new Ubuntu machine and I remember there was some special repo > used instead of the Ubuntu sources. Or am I wrong here? > > Clicking around on the website and the Download/Install pages didn't > bring up any information - at least I couldn't find any. > > Thanks for any hint. > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From jussi.lahtinen at gmail.com Tue Dec 15 16:52:01 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 15 Dec 2020 17:52:01 +0200 Subject: [Gambas-user] Bug with IsDate In-Reply-To: <6f435243-3f50-f70a-fa5d-5f098c56cf8b@gmail.com> References: <6f435243-3f50-f70a-fa5d-5f098c56cf8b@gmail.com> Message-ID: Here isdate(str(now)) still returns false. And str(now) returns "12/15/2020 05:50:05 PM". Jussi On Sat, Dec 12, 2020 at 6:42 PM Beno?t Minisini wrote: > Le 08/12/2020 ? 19:13, Jussi Lahtinen a ?crit : > > Currently in dev version IsDate does not understand the localization: > > ? IsDate(Str(Now)) > > False > > > > $ locale > > LANG=en_US.UTF-8 > > LANGUAGE=en_US > > LC_CTYPE="en_US.UTF-8" > > LC_NUMERIC=fi_FI.UTF-8 > > LC_TIME="en_US.UTF-8" > > LC_COLLATE="en_US.UTF-8" > > LC_MONETARY=fi_FI.UTF-8 > > LC_MESSAGES="en_US.UTF-8" > > LC_PAPER=fi_FI.UTF-8 > > LC_NAME=fi_FI.UTF-8 > > LC_ADDRESS=fi_FI.UTF-8 > > LC_TELEPHONE=fi_FI.UTF-8 > > LC_MEASUREMENT=fi_FI.UTF-8 > > LC_IDENTIFICATION=fi_FI.UTF-8 > > LC_ALL= > > > > > > Jussi > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > It should be fixed in commit > > https://gitlab.com/gambas/gambas/-/commit/93659c3f7eab356b922d5be161990bf888fb3fd8 > . > > Now Str() on dates returns something that Val() and IsDate() can > understand. > > A function that could be named "Date.FromString()" should be made for > understanding any local date in any format. Val() and IsDate() cannot be > made clever enough for that, too complex! > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Dec 15 17:01:13 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 15 Dec 2020 17:01:13 +0100 Subject: [Gambas-user] Bug with IsDate In-Reply-To: References: <6f435243-3f50-f70a-fa5d-5f098c56cf8b@gmail.com> Message-ID: Le 15/12/2020 ? 16:52, Jussi Lahtinen a ?crit?: > Here isdate(str(now)) still returns false. And str(now) returns > "12/15/2020 05:50:05 PM". > > Jussi > You're right, I forgot that. Sorry! -- Beno?t Minisini From gambas.fr at gmail.com Tue Dec 15 17:06:48 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 15 Dec 2020 17:06:48 +0100 Subject: [Gambas-user] Special Gambas update repo In-Reply-To: <0d5284b5-33cf-739c-debd-64a71566ea4d@osnanet.de> References: <40bf63ac-c882-4c76-a071-705e64aa0b77@Canary> <0d5284b5-33cf-739c-debd-64a71566ea4d@osnanet.de> Message-ID: Le mar. 15 d?c. 2020 ? 16:24, Rolf-Werner Eilert a ?crit : > > Thank you Olivier! > > But: How would I get there? Where in the wiki is the way to find it? I > mean, when I am new (and do not know anyone here) and just want to try, > shouldn't there be an easier way finding this? :) I'm really agree ...It's a pain to find it... lost in the middle of the installation page. From roberto.premoli at tiscali.it Tue Dec 15 16:37:11 2020 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Tue, 15 Dec 2020 16:37:11 +0100 Subject: [Gambas-user] Article about Gambas In-Reply-To: <926d5ebe-e29c-a42d-fe7a-a7d541d51d1c@deganius.de> References: <7975a983-7eac-e974-c9d2-321ebc612d4c@osnanet.de> <926d5ebe-e29c-a42d-fe7a-a7d541d51d1c@deganius.de> Message-ID: Il 15.12.2020 16:20 Christof Thalhofer ha scritto: > Hallo Rolf, > > Am 15.12.20 um 13:31 schrieb Rolf-Werner Eilert: > >> In the last (not current) German computer magazine "ct" they had an >> article about Gambas. It is not very long, just a two-column summary >> of >> its highlights, but alas... > > Kannst du ihn mir privat senden? In der c't ist er hinter der Paywall > ... und ich habe Heise Plus extra nicht abonniert. > >> Everything very positive, and they even mention JIT, the archiver >> and >> the scripter version. There is a bit criticism about the >> documentation: >> the article closes with the words "However, the poor Gambas >> documentation in the form of a wiki urgently needs to be extended >> and >> updated". > > For me a clear sign that they have only scratched the surface. They > could also have asked in the German Gambas forum for support but they > didn't. > > Alles Gute > > Christof Thalhofer > > -- Dies ist keine Signatur Authors of articles for magazines are poorly payed: it is not a surprise if they don't goo deeper into an argoument I wrote several articles for italian magaziene, then the start to decrese the money for articles. My alternative was to decrease the quality or resign: i resigned. now i am back to write for anothe magazine that pay me better. dont complay authors, complain magazienes. Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99? al mese. http://tisca.li/smart30 From rwe-sse at osnanet.de Tue Dec 15 17:25:30 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 15 Dec 2020 17:25:30 +0100 Subject: [Gambas-user] Special Gambas update repo In-Reply-To: References: <40bf63ac-c882-4c76-a071-705e64aa0b77@Canary> <0d5284b5-33cf-739c-debd-64a71566ea4d@osnanet.de> Message-ID: <4abfd3cf-19a8-743c-4733-907c31bfde7d@osnanet.de> Am 15.12.20 um 17:06 schrieb Fabien Bodard: > Le mar. 15 d?c. 2020 ? 16:24, Rolf-Werner Eilert a ?crit : >> >> Thank you Olivier! >> >> But: How would I get there? Where in the wiki is the way to find it? I >> mean, when I am new (and do not know anyone here) and just want to try, >> shouldn't there be an easier way finding this? :) > > > I'm really agree ...It's a pain to find it... lost in the middle of > the installation page. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Maybe we should make a landing page under "Downloads" with some brief and friendly "If you want this, If you want that" and linking to specialized pages Regards Rolf From chrisml at deganius.de Tue Dec 15 17:59:05 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 15 Dec 2020 17:59:05 +0100 Subject: [Gambas-user] Article about Gambas In-Reply-To: References: <7975a983-7eac-e974-c9d2-321ebc612d4c@osnanet.de> <926d5ebe-e29c-a42d-fe7a-a7d541d51d1c@deganius.de> Message-ID: <07a161e3-117c-9e12-7fba-81b67b30e8ac@deganius.de> Hi Roberto, Am 15.12.20 um 16:37 schrieb roberto.premoli at tiscali.it: > Authors of articles for magazines are poorly payed: it is not a > surprise if they don't goo deeper into an argoument > I wrote several articles for italian magaziene, then the start to > decrese the money for articles. My alternative was to decrease the > quality or resign: i resigned. > now i am back to write for anothe magazine that pay me better. > dont complay authors, complain magazienes. Yes i think you are right. But the German c't magazine is one of the oldest and known as one of the best (together with 'IX' from the same publishing house). I think we have to blame the internet for the decay of the publishers. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From charlie at cogier.com Tue Dec 15 17:39:29 2020 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 15 Dec 2020 16:39:29 +0000 Subject: [Gambas-user] Special Gambas update repo In-Reply-To: References: Message-ID: <60ac8a47-21bf-7738-781f-b90d66030de0@cogier.com> On 15/12/2020 12:22, Rolf-Werner Eilert wrote: > I have a new Ubuntu machine and I remember there was some special repo > used instead of the Ubuntu sources. Or am I wrong here? > > Clicking around on the website and the Download/Install pages didn't > bring up any information - at least I couldn't find any. > > Thanks for any hint. > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Hi Rolf, Run one of these commands in Terminal. Gambas3 Stable *sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3* Gambas3 Daily Build *sudo add-apt-repository -y ppa:gambas-team/gambas-daily && sudo apt-get update && sudo apt-get -y install gambas3* Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Dec 15 18:30:28 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 15 Dec 2020 17:30:28 +0000 Subject: [Gambas-user] Special Gambas update repo In-Reply-To: <4abfd3cf-19a8-743c-4733-907c31bfde7d@osnanet.de> References: <40bf63ac-c882-4c76-a071-705e64aa0b77@Canary> <0d5284b5-33cf-739c-debd-64a71566ea4d@osnanet.de> <4abfd3cf-19a8-743c-4733-907c31bfde7d@osnanet.de> Message-ID: There already is a landing page, it's called install not download. where in the wiki? First page in big letters "Compilation & Installation" Clicking that goes to the compilation / installation info page. If not finding what instructions you want there is the "Other instructions for specific distributions and older versions " That links to all the specialized instructions for different versions. Then click Ubuntu the very first thing shown is the ppa install method. I tried to make it easier to spot by removing it from "the middle" of the index to the last item. I also added a note by the Ubuntu package list that points to the ppa install info for you. BruceS On Tue, 15 Dec 2020 at 16:26, Rolf-Werner Eilert wrote: > Am 15.12.20 um 17:06 schrieb Fabien Bodard: > > Le mar. 15 d?c. 2020 ? 16:24, Rolf-Werner Eilert a > ?crit : > >> > >> Thank you Olivier! > >> > >> But: How would I get there? Where in the wiki is the way to find it? I > >> mean, when I am new (and do not know anyone here) and just want to try, > >> shouldn't there be an easier way finding this? :) > > > > > > I'm really agree ...It's a pain to find it... lost in the middle of > > the installation page. > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > Maybe we should make a landing page under "Downloads" with some brief > and friendly "If you want this, If you want that" and linking to > specialized pages > > Regards > Rolf > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.premoli at tiscali.it Tue Dec 15 18:31:52 2020 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Tue, 15 Dec 2020 18:31:52 +0100 Subject: [Gambas-user] Article about Gambas In-Reply-To: <07a161e3-117c-9e12-7fba-81b67b30e8ac@deganius.de> References: <7975a983-7eac-e974-c9d2-321ebc612d4c@osnanet.de> <926d5ebe-e29c-a42d-fe7a-a7d541d51d1c@deganius.de> <07a161e3-117c-9e12-7fba-81b67b30e8ac@deganius.de> Message-ID: Il 15.12.2020 17:59 Christof Thalhofer ha scritto: > Hi Roberto, > > Am 15.12.20 um 16:37 schrieb roberto.premoli at tiscali.it [1]: > >> Authors of articles for magazines are poorly payed: it is not a >> surprise if they don't goo deeper into an argoument I wrote several >> articles for italian magaziene, then the start to decrese the money >> for >> articles. My alternative was to decrease the quality or resign: i >> resigned. now i am back to write for anothe magazine that pay me >> better. dont complay authors, complain magazienes. > > Yes i think you are right. But the German c't magazine is one of the > oldest and known as one of the best (together with 'IX' from the same > publishing house). > > I think we have to blame the internet for the decay of the > publishers. I agree. Internet born on "now, easy, free of charge". But NOTHING came for free, someone MUST pay for. some of my articles ask 20-30 days of study, test atc, absolutly not compatible with those few coins they pay, and publishers-on-paper cannot face Internet, so many of them bankrupt and who survided, was forced to adapt and adapt means reduce internal employee for "text review", payment to authors and as consdguence, quality of articles. Sometime i read articles: clearly they are only english articles badly translate in ITalian by someone that it is easy to understand is not skilled in argoument he is translating. Sometimes i called publisher complain about errors and the reply was "i know, but i can do nothing about". this is internet, baby :-) Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99? al mese. http://tisca.li/smart30 From bsteers4 at gmail.com Tue Dec 15 18:45:17 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 15 Dec 2020 17:45:17 +0000 Subject: [Gambas-user] Article about Gambas In-Reply-To: References: <7975a983-7eac-e974-c9d2-321ebc612d4c@osnanet.de> <926d5ebe-e29c-a42d-fe7a-a7d541d51d1c@deganius.de> Message-ID: > There is a bit criticism about the > >> documentation: > >> the article closes with the words "However, the poor Gambas > >> documentation in the form of a wiki urgently needs to be extended > >> and > >> updated". > > > > For me a clear sign that they have only scratched the surface. They > > could also have asked in the German Gambas forum for support but they > > didn't. > > > > Alles Gute > > > > Christof Thalhofer > > > > -- Dies ist keine Signatur > > Authors of articles for magazines are poorly payed: it is not a > surprise if they don't goo deeper into an argoument > I wrote several articles for italian magaziene, then the start to > decrese the money for articles. My alternative was to decrease the > quality or resign: i resigned. > now i am back to write for anothe magazine that pay me better. > dont complay authors, complain magazienes. > So they don't get paid enough so don't write much of a report but say our info is poor. Do they know those who write to the gambas wiki don't get paid anything at all? Cool how much better than them we are ;) lol BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Dec 15 18:56:04 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 15 Dec 2020 18:56:04 +0100 Subject: [Gambas-user] Article about Gambas In-Reply-To: References: <7975a983-7eac-e974-c9d2-321ebc612d4c@osnanet.de> <926d5ebe-e29c-a42d-fe7a-a7d541d51d1c@deganius.de> Message-ID: <8d261bea-fd3e-767f-768d-52301d1ff7f2@deganius.de> Am 15.12.20 um 18:45 schrieb Bruce Steers: > So they don't get paid enough so don't write much of a report but say > our info is poor. > Do they know those who write to the gambas wiki don't get paid anything > at all? > > Cool how much better than them we are ;) lol This seems to be too optimistic. The Gambas wiki also contains a lot of bs. There is unfortunately no instance that checks and releases articles. We are slowly getting better and better, but programming has something to do with math and is much easier to check . No comparison with newspapers. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Tue Dec 15 19:18:51 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 15 Dec 2020 18:18:51 +0000 Subject: [Gambas-user] Article about Gambas In-Reply-To: <8d261bea-fd3e-767f-768d-52301d1ff7f2@deganius.de> References: <7975a983-7eac-e974-c9d2-321ebc612d4c@osnanet.de> <926d5ebe-e29c-a42d-fe7a-a7d541d51d1c@deganius.de> <8d261bea-fd3e-767f-768d-52301d1ff7f2@deganius.de> Message-ID: Well it beats the dark side of pessimism innit. (I remember some film as a kid saying "beware the dark side or it will consume you" and it kind of stuck ;)) I agree, gambas wiki is full of useless info. the other day i edited the Control.Public info as it said something like "return or set if control is public" :-\ , pretty obvious from the name, the info said nothing more than was already clear to see. So i elaborated it a bit. I also find the wiki much more of a "how to use gambas components" database rather than a "how to use Gambas" , not much info on the IDE at all. So for newcomers it's a live and learn adventure of trial and error. Personally i loved that adventure , it was fun :) I was merely comparing the differences between , don't expect the magazine writers to do much as they don't get paid enough and the effort that's gone into the Gambas wiki for free. A point of note i think. On Tue, 15 Dec 2020 at 17:57, Christof Thalhofer wrote: > Am 15.12.20 um 18:45 schrieb Bruce Steers: > > > So they don't get paid enough so don't write much of a report but say > > our info is poor. > > Do they know those who write to the gambas wiki don't get paid anything > > at all? > > > > Cool how much better than them we are ;) lol > > This seems to be too optimistic. > > The Gambas wiki also contains a lot of bs. There is unfortunately no > instance that checks and releases articles. > > We are slowly getting better and better, but programming has something > to do with math and is much easier to check . No comparison with > newspapers. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Dec 15 20:24:41 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 15 Dec 2020 14:24:41 -0500 Subject: [Gambas-user] Problem with tableview In-Reply-To: <989a5375-fc9b-f9c2-3de6-a7bce9fcebad@cd-bahia.com> References: <989a5375-fc9b-f9c2-3de6-a7bce9fcebad@cd-bahia.com> Message-ID: On 12/15/20 8:18 AM, Dag Jarle Nerland Johansen - Gambas wrote: > Hi, > I have a problem setting the row in tableview. > I have a control tableview called ADR_TV. > Even if I say ADR_TV.Row=5 it does nothing (have more than 5 rows) > I also tried with ADR_TV.ScrollY=5. > And ADR_TV.Rows[5].Selected=True sets line 0 additionally to be selected > Of course I normally use a variable to set this, but the above shows my problem, > Thankful for any help, > Dag > Gambas 3. 15.2 > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Are you trying to set the row index or select a row? Setting the row index does nothing that is visible. I am unsure what the ScrollY property is for since it does not appear to do anything visible. And, even the Scroll method does not scroll the view to the specified cell, even after a Refresh. GridView1.Rows[x].Selected=True works as expected for me selecting only the specified row and no other. -- Lee From t.lee.davidson at gmail.com Tue Dec 15 20:34:14 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 15 Dec 2020 14:34:14 -0500 Subject: [Gambas-user] Web-Service/Web-Interface In-Reply-To: <4f0f01e8-ef29-e001-5900-3f5bdbd32a96@gambas-buch.de> References: <4f0f01e8-ef29-e001-5900-3f5bdbd32a96@gambas-buch.de> Message-ID: On 12/15/20 7:36 AM, Hans Lehmann wrote: > Hallo. > > For the solution of the following task I need a solution idea: > > I have a board with a temperature sensor, which can be connected to a computer via a RS232/USB adapter. The program to read the > current tempatuir is after the basic configuration of the RS232 interface in the taskbar, so that only a TrayIcon is visible -> > https://gambas-buch.de/dwen/doku.php?id=k13:k13.6:start . > > I want to display the current temperature in a web page, where I can also configure the RS232 interface via a form. > > How do I realize in a simple way the bi-directional exchange of data between the temperature measuring program and the web > interface? > > With kind regards > > Hans > Depending on what you intend to use for your web server/interface, you might set up a Socket in that app that would receive commands from the web interface to, for example, get the current temperature and send RS232 configuration parameters. -- Lee From gambas at cd-bahia.com Tue Dec 15 21:05:29 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Tue, 15 Dec 2020 21:05:29 +0100 Subject: [Gambas-user] Problem with tableview In-Reply-To: References: <989a5375-fc9b-f9c2-3de6-a7bce9fcebad@cd-bahia.com> Message-ID: wow, my mistake, worked without a single source line change! Thanks again, Dag Am 15.12.20 um 20:24 schrieb T Lee Davidson: > On 12/15/20 8:18 AM, Dag Jarle Nerland Johansen - Gambas wrote: >> Hi, >> I have a problem setting the row in tableview. >> I have a control tableview called ADR_TV. >> Even if I say ADR_TV.Row=5 it does nothing (have more than 5 rows) >> I also tried with ADR_TV.ScrollY=5. >> And ADR_TV.Rows[5].Selected=True sets line 0 additionally to be selected >> Of course I normally use a variable to set this, but the above shows >> my problem, >> Thankful for any help, >> Dag >> Gambas 3. 15.2 >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Are you trying to set the row index or select a row? > > Setting the row index does nothing that is visible. > I am unsure what the ScrollY property is for since it does not appear > to do anything visible. And, even the Scroll method does not scroll > the view to the specified cell, even after a Refresh. > GridView1.Rows[x].Selected=True works as expected for me selecting > only the specified row and no other. > > From bagonergi at gmail.com Tue Dec 15 22:18:35 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 15 Dec 2020 22:18:35 +0100 Subject: [Gambas-user] Problem with tableview In-Reply-To: References: <989a5375-fc9b-f9c2-3de6-a7bce9fcebad@cd-bahia.com> Message-ID: Il giorno mar 15 dic 2020 alle ore 20:25 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 12/15/20 8:18 AM, Dag Jarle Nerland Johansen - Gambas wrote: > > Hi, > > I have a problem setting the row in tableview. > > I have a control tableview called ADR_TV. > > Even if I say ADR_TV.Row=5 it does nothing (have more than 5 rows) > > I also tried with ADR_TV.ScrollY=5. > > And ADR_TV.Rows[5].Selected=True sets line 0 additionally to be selected > > Of course I normally use a variable to set this, but the above shows my > problem, > > Thankful for any help, > > Dag > > Gambas 3. 15.2 > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Are you trying to set the row index or select a row? > > Setting the row index does nothing that is visible. > I am unsure what the ScrollY property is for since it does not appear to > do anything visible. And, even the Scroll method does > not scroll the view to the specified cell, even after a Refresh. > GridView1.Rows[x].Selected=True works as expected for me selecting only > the specified row and no other. > -- > Lee > But how is the Mode property set, to Single or? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Dec 15 22:36:15 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 15 Dec 2020 22:36:15 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? Message-ID: Hi Christof, normally after a few seconds that I sent an email I receive the communication "... was successfully received by the User mailing list" But it is now more than 15 minutes that I have sent a reply without communication. Greetings Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Dec 15 23:11:01 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 15 Dec 2020 23:11:01 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: References: Message-ID: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> Am 15.12.20 um 22:36 schrieb Gianluigi: > Hi Christof, > > normally after a few seconds that I sent an email I receive the > communication "... was successfully received by the User mailing list" > > But it is now more than 15 minutes that I have sent a reply without > communication. Take another provider. Gmail now bounces all mails and denies that the users exist (I replaced the accountnames with 'xyzxyz'): > : host gmail-smtp-in.l.google.com[108.177.127.27] > said: 550-5.1.1 The email account that you tried to reach does not exist. > Please try 550-5.1.1 double-checking the recipient's email address for > typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 > https://support.google.com/mail/?p=NoSuchUser hq14si41015ejc.99 - gsmtp (in > reply to RCPT TO command) > > : host gmail-smtp-in.l.google.com[108.177.127.27] said: > 550-5.1.1 The email account that you tried to reach does not exist. Please > try 550-5.1.1 double-checking the recipient's email address for typos or > 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 > https://support.google.com/mail/?p=NoSuchUser hq14si41015ejc.99 - gsmtp (in > reply to RCPT TO command) > > : host gmail-smtp-in.l.google.com[108.177.127.27] said: > 550-5.1.1 The email account that you tried to reach does not exist. Please > try 550-5.1.1 double-checking the recipient's email address for typos or > 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 > https://support.google.com/mail/?p=NoSuchUser hq14si41015ejc.99 - gsmtp (in > reply to RCPT TO command) > > .... This for all Gmail users as I can see. Gmail has a major problem now. Maybe tomorrow you'll read it in thge newspapers. I've never seen a mail provider beeing as bad as this one. I bet this mail will be bounced also. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Wed Dec 16 00:08:47 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 16 Dec 2020 01:08:47 +0200 Subject: [Gambas-user] Bug with IsDate In-Reply-To: References: <6f435243-3f50-f70a-fa5d-5f098c56cf8b@gmail.com> Message-ID: It works now. Thanks! Jussi On Tue, Dec 15, 2020 at 6:02 PM Beno?t Minisini wrote: > Le 15/12/2020 ? 16:52, Jussi Lahtinen a ?crit : > > Here isdate(str(now)) still returns false. And str(now) returns > > "12/15/2020 05:50:05 PM". > > > > Jussi > > > > You're right, I forgot that. Sorry! > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Dec 16 02:50:16 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 16 Dec 2020 02:50:16 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> Message-ID: Le 15/12/2020 ? 23:11, Christof Thalhofer a ?crit?: >> >> .... > > This for all Gmail users as I can see. Gmail has a major problem now. > Maybe tomorrow you'll read it in thge newspapers. I've never seen a mail > provider beeing as bad as this one. > > I bet this mail will be bounced also. > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I confirm that I cannot send anymore any mail to any gmail user. I tried directly from gmail.com, and didn't get an error. But I don't know if my recipient got the mail, as I can't join them easily. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Wed Dec 16 03:15:26 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 16 Dec 2020 04:15:26 +0200 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> Message-ID: > > I confirm that I cannot send anymore any mail to any gmail user. > > I tried directly from gmail.com, and didn't get an error. But I don't > know if my recipient got the mail, as I can't join them easily. > At least this came through. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Dec 16 04:21:18 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 15 Dec 2020 22:21:18 -0500 Subject: [Gambas-user] Problem with tableview In-Reply-To: References: <989a5375-fc9b-f9c2-3de6-a7bce9fcebad@cd-bahia.com> Message-ID: On 12/15/20 4:18 PM, Gianluigi wrote: > Setting the row index does nothing that is visible. > I am unsure what the ScrollY property is for since it does not appear to do anything visible. And, even the Scroll method does > not scroll the view to the specified cell, even after a Refresh. > GridView1.Rows[x].Selected=True works as expected for me selecting only the specified row and no other. > -- > Lee > > > But how is the Mode property set, to Single or? > > Regards > Gianluigi I thought that I had tested it set to Single and Multiple. I just went back and tested again to be sure. I still get the expected result that only one row is selected. However, interestingly, I discovered that the Scroll method works with Mode set to Single but does not work with Mode set to Multiple. -- Lee From chrisml at deganius.de Wed Dec 16 08:36:36 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 16 Dec 2020 08:36:36 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> Message-ID: Am 16.12.20 um 03:15 schrieb Jussi Lahtinen: > I confirm that I cannot send anymore any mail to any gmail user. > > I tried directly from gmail.com , and didn't get > an error. But I don't > know if my recipient got the mail, as I can't join them easily. > > > At least this came through. The last bounces were this morning at 0:08. Let's see. They had problems with the Google account management. Also YouTube and other services were hit. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From mbelmonte at belmotek.net Wed Dec 16 10:31:29 2020 From: mbelmonte at belmotek.net (Martin) Date: Wed, 16 Dec 2020 10:31:29 +0100 Subject: [Gambas-user] Dependencies for Manjaro Message-ID: Hi, I follow the dependencies indicated for install gambas in Arch linux for a Manjaro system but pacman don't recognize the parameter --noconfirmalure maybe is wrong? The copy paste from the web page [1] don't work properly because some missing spaces between packages names. ||libsmlibxcursor / |pcrepkg-config / qt5-svgqt5-webkit / |||sdl2_netsdl2_ttf / |||xdg-utilszlib| [1] http://gambas.sourceforge.net/en/main.html# Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Dec 16 10:32:04 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 16 Dec 2020 10:32:04 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> Message-ID: Il giorno mer 16 dic 2020 alle ore 08:37 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 16.12.20 um 03:15 schrieb Jussi Lahtinen: > > > I confirm that I cannot send anymore any mail to any gmail user. > > > > I tried directly from gmail.com , and didn't get > > an error. But I don't > > know if my recipient got the mail, as I can't join them easily. > > > > > > At least this came through. > > The last bounces were this morning at 0:08. Let's see. > They had problems with the Google account management. Also YouTube and > other services were hit. > > Alles Gute > > Christof Thalhofer > Directly from Benoit, I have not received anything. Now I get the User Mainling List again. Christof, thank you for everything. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Wed Dec 16 10:44:20 2020 From: kicking177 at gmail.com (KKing) Date: Wed, 16 Dec 2020 09:44:20 +0000 Subject: [Gambas-user] gb.dwg started Message-ID: <4136c3b5-8a0a-7293-fc41-3cbda7a0a824@gmail.com> > Tobias told you to mimic the 'gb.gmp' component, because it's simpler. I > told you about 'gb.dbus' just for the mixing of library and Gambas > project. Otherwise 'gb.dbus' is too complex to understand by itself for > a start. So is gb.gmp the absolute simplest component to learn from? Any merit in having a tutorial that uses a very simple c program to show how to build a gambas component for? K. From bagonergi at gmail.com Wed Dec 16 10:44:05 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 16 Dec 2020 10:44:05 +0100 Subject: [Gambas-user] Dependencies for Manjaro In-Reply-To: References: Message-ID: Il giorno mer 16 dic 2020 alle ore 10:32 Martin ha scritto: > Hi, > > I follow the dependencies indicated for install gambas in Arch linux for a > Manjaro system but pacman don't recognize the parameter --noconfirmalure > maybe is wrong? > > The copy paste from the web page [1] don't work properly because some > missing spaces between packages names. > > libsmlibxcursor / pcrepkg-config / qt5-svgqt5-webkit / sdl2_netsdl2_ttf / xdg-utilszlib > > [1] http://gambas.sourceforge.net/en/main.html# > Regards > I believe you need to download gitlab-ci.yml, copy the right libraries into a text editor and fix the command by removing all spaces above one. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Dec 16 10:59:27 2020 From: mbelmonte at belmotek.net (Martin) Date: Wed, 16 Dec 2020 10:59:27 +0100 Subject: [Gambas-user] Dependencies for Manjaro In-Reply-To: References: Message-ID: Yes, you are rigth in .gitlab-ci.yml is ok. Anyway I just advice this for the person than maintain the web page, i solve manually in my installation. Regards. On 16/12/20 10:44, Gianluigi wrote: > > > Il giorno mer 16 dic 2020 alle ore 10:32 Martin > > ha scritto: > > Hi, > > I follow the dependencies indicated for install gambas in Arch > linux for a Manjaro system but pacman don't recognize the > parameter --noconfirmalure maybe is wrong? > > The copy paste from the web page [1] don't work properly because > some missing spaces between packages names. > > ||libsmlibxcursor / |pcrepkg-config / qt5-svgqt5-webkit / |||sdl2_netsdl2_ttf / |||xdg-utilszlib| > > [1] http://gambas.sourceforge.net/en/main.html# > > > Regards > > > I believe you need to download gitlab-ci.yml, copy the right libraries > into a text editor and fix the command by removing all spaces above one. > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 16 12:35:17 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 16 Dec 2020 11:35:17 +0000 Subject: [Gambas-user] Dependencies for Manjaro In-Reply-To: References: Message-ID: Looks like the new function to auto-list the deps has a glitch with linefeeds. No doubt Ben will soon fix this. (it's a gambas function on the website not just a page we can edit.) Thanks for the warning. Bruce. On Wed, 16 Dec 2020 at 10:00, Martin wrote: > Yes, you are rigth in .gitlab-ci.yml is ok. > > Anyway I just advice this for the person than maintain the web page, i > solve manually in my installation. > > Regards. > On 16/12/20 10:44, Gianluigi wrote: > > > > Il giorno mer 16 dic 2020 alle ore 10:32 Martin > ha scritto: > >> Hi, >> >> I follow the dependencies indicated for install gambas in Arch linux for >> a Manjaro system but pacman don't recognize the parameter --noconfirmalure >> maybe is wrong? >> >> The copy paste from the web page [1] don't work properly because some >> missing spaces between packages names. >> >> libsmlibxcursor / pcrepkg-config / qt5-svgqt5-webkit / sdl2_netsdl2_ttf / xdg-utilszlib >> >> [1] http://gambas.sourceforge.net/en/main.html# >> Regards >> > > I believe you need to download gitlab-ci.yml, copy the right libraries > into a text editor and fix the command by removing all spaces above one. > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 16 13:49:20 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 16 Dec 2020 12:49:20 +0000 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> Message-ID: I'm gmail Ben, feel free to send me test emails. On Wed, 16 Dec 2020 at 01:51, Beno?t Minisini wrote: > Le 15/12/2020 ? 23:11, Christof Thalhofer a ?crit : > >> > >> .... > > > > This for all Gmail users as I can see. Gmail has a major problem now. > > Maybe tomorrow you'll read it in thge newspapers. I've never seen a mail > > provider beeing as bad as this one. > > > > I bet this mail will be bounced also. > > > > Alles Gute > > > > Christof Thalhofer > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > I confirm that I cannot send anymore any mail to any gmail user. > > I tried directly from gmail.com, and didn't get an error. But I don't > know if my recipient got the mail, as I can't join them easily. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Dec 16 14:28:05 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 16 Dec 2020 14:28:05 +0100 Subject: [Gambas-user] Dependencies for Manjaro In-Reply-To: References: Message-ID: Il giorno mer 16 dic 2020 alle ore 11:00 Martin ha scritto: > Yes, you are rigth in .gitlab-ci.yml is ok. > > Anyway I just advice this for the person than maintain the web page, i > solve manually in my installation. > Regards > > ah now I understand, you were referring to this new wiki page: http://gambaswiki.org/wiki/install#t8 I tried to fix it but I don't understand how it works. ? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Dec 16 14:35:51 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 16 Dec 2020 14:35:51 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: <4136c3b5-8a0a-7293-fc41-3cbda7a0a824@gmail.com> References: <4136c3b5-8a0a-7293-fc41-3cbda7a0a824@gmail.com> Message-ID: <21007d6c-bb7e-b71d-c585-fd210186570c@gmail.com> Le 16/12/2020 ? 10:44, KKing a ?crit : > > So is gb.gmp the absolute simplest component to learn from? > No, there is no "simple" component, as each library has its own specificities. But 'gb.gmp' is less complex than 'gb.dbus'. > Any merit in having a tutorial that uses a very simple c program to > show how to build a gambas component for? > > K. > Indeed. Just a matter of time to write it! -- Beno?t Minisini From g4mba5 at gmail.com Wed Dec 16 14:41:01 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 16 Dec 2020 14:41:01 +0100 Subject: [Gambas-user] Dependencies for Manjaro In-Reply-To: References: Message-ID: <81ffcc49-895e-0d2a-a951-a0c8cb0d3b8f@gmail.com> Le 16/12/2020 ? 12:35, Bruce Steers a ?crit?: > Looks like the new function to auto-list the deps has a glitch with > linefeeds. > No doubt Ben will soon fix this. (it's a gambas function on the website > not just a page we can edit.) > > Thanks for the warning. > Bruce. > Oops. It should be fixed now. -- Beno?t Minisini From bsteers4 at gmail.com Wed Dec 16 15:30:09 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 16 Dec 2020 14:30:09 +0000 Subject: [Gambas-user] Dependencies for Manjaro In-Reply-To: <81ffcc49-895e-0d2a-a951-a0c8cb0d3b8f@gmail.com> References: <81ffcc49-895e-0d2a-a951-a0c8cb0d3b8f@gmail.com> Message-ID: Yep, looks fine now, thank you Ben :) Btw I'd love to monkey about with that code a bit. I'd like to add a way of excluding certain packages and adding a --disable-component to ./configure when calling the function. I could then use that for things like the Raspbian page. As Raspbian is just the Debian setup minus qtwebengine5-dev and using ./configure with --disable-qt5webview Much respect. BruceS On Wed, 16 Dec 2020 at 13:42, Beno?t Minisini wrote: > Le 16/12/2020 ? 12:35, Bruce Steers a ?crit : > > Looks like the new function to auto-list the deps has a glitch with > > linefeeds. > > No doubt Ben will soon fix this. (it's a gambas function on the website > > not just a page we can edit.) > > > > Thanks for the warning. > > Bruce. > > > > Oops. It should be fixed now. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Dec 16 15:50:19 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 16 Dec 2020 15:50:19 +0100 Subject: [Gambas-user] About merge requests Message-ID: <52170782-5202-d8be-18bd-76522189720e@gmail.com> Hi, If you make a merge request, please ensure that the merge request description includes a commit log that carefully follows the convention described in the 'README.commit' file. This file is located at the top of the Gambas source tree. Otherwise I have to rewrite it myself, and it takes some time. Thanks! -- Beno?t Minisini From james at lixce.com Wed Dec 16 16:04:47 2020 From: james at lixce.com (james at lixce.com) Date: Wed, 16 Dec 2020 07:04:47 -0800 Subject: [Gambas-user] Arch Manjaro install wiki page In-Reply-To: Message-ID: <3cfceace-b155-44f6-9b7f-28a56b4803ef@email.android.com> An HTML attachment was scrubbed... URL: From pflora at libero.it Wed Dec 16 17:45:25 2020 From: pflora at libero.it (pflora at libero.it) Date: Wed, 16 Dec 2020 19:45:25 +0300 Subject: [Gambas-user] =?utf-8?q?Stack_smashing_detected?= Message-ID: <1608137125.170028376@f6.my.com> I freshly installed gambas 3 from ppa:gambas-team on lubuntu 18.04 lts 32 bit. Application crashes with message: Stack smashing detected terminated. Before in the same computer It was running with Mint. Now I installed lubuntu. I don't know which release of gambas as It never starts. In the header of the programm I can read 3.15.90 How can I solve this ? Thank you -- Inviato da Libero Mail per Android -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Dec 16 18:03:13 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 16 Dec 2020 18:03:13 +0100 Subject: [Gambas-user] VariadicFunction to understand extra arguments Message-ID: I have added to the Farm an example (VariadicFunction) which I hope will be useful in understanding the extra arguments. Obviously as long as I have understood this well. ? I communicate this because in the wiki ( http://gambaswiki.org/wiki/lang/methoddecl) the explanation of the extra arguments seems very confusing. ? I ask an English-speaking colleague if he can intervene. Thank you Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 16 18:34:25 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 16 Dec 2020 17:34:25 +0000 Subject: [Gambas-user] VariadicFunction to understand extra arguments In-Reply-To: References: Message-ID: You will find it confusing of you think the "..." keyword is a "variadic function" by standard definitions. It is not, it is just a keyword to pass arguments through one function to another. The "..." object/keyword cannot be accessed like a variadic one can. It will not work the same way a typical "variadic function" does. I thought the wiki info quite explanatory. BruceS On Wed, 16 Dec 2020, 17:04 Gianluigi, wrote: > I have added to the Farm an example (VariadicFunction) which I hope will > be useful in understanding the extra arguments. > Obviously as long as I have understood this well. ? > I communicate this because in the wiki ( > http://gambaswiki.org/wiki/lang/methoddecl) the explanation of the extra > arguments seems very confusing. ? > I ask an English-speaking colleague if he can intervene. > > Thank you > > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 16 18:50:28 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 16 Dec 2020 17:50:28 +0000 Subject: [Gambas-user] VariadicFunction to understand extra arguments In-Reply-To: References: Message-ID: Wait , strike me down centurion lol. I have been mistaken here i think. Very mistaken and i apologize. I had not realized the Param class, this changes everything. (on the wiki the part about Param was displayed in the previous section about the "Optional" keyword so i had missed it) Nice example thank you. I'll try to make the wiki more descriptive... BruceS On Wed, 16 Dec 2020 at 17:34, Bruce Steers wrote: > You will find it confusing of you think the "..." keyword is a "variadic > function" by standard definitions. > > It is not, it is just a keyword to pass arguments through one function to > another. The "..." object/keyword cannot be accessed like a variadic one > can. > > It will not work the same way a typical "variadic function" does. > > I thought the wiki info quite explanatory. > > BruceS > > On Wed, 16 Dec 2020, 17:04 Gianluigi, wrote: > >> I have added to the Farm an example (VariadicFunction) which I hope will >> be useful in understanding the extra arguments. >> Obviously as long as I have understood this well. ? >> I communicate this because in the wiki ( >> http://gambaswiki.org/wiki/lang/methoddecl) the explanation of the extra >> arguments seems very confusing. ? >> I ask an English-speaking colleague if he can intervene. >> >> Thank you >> >> Gianluigi >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Dec 16 19:07:14 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 16 Dec 2020 20:07:14 +0200 Subject: [Gambas-user] VariadicFunction to understand extra arguments In-Reply-To: References: Message-ID: It's quite simple. If the function/method uses "..." in the argument declaration, then you can see the arguments by iterating: For Each hVariant In Param Or as an array: Param.All[iIndex] Jussi On Wed, Dec 16, 2020 at 7:04 PM Gianluigi wrote: > I have added to the Farm an example (VariadicFunction) which I hope will > be useful in understanding the extra arguments. > Obviously as long as I have understood this well. ? > I communicate this because in the wiki ( > http://gambaswiki.org/wiki/lang/methoddecl) the explanation of the extra > arguments seems very confusing. ? > I ask an English-speaking colleague if he can intervene. > > Thank you > > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Dec 16 19:28:55 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 16 Dec 2020 19:28:55 +0100 Subject: [Gambas-user] VariadicFunction to understand extra arguments In-Reply-To: References: Message-ID: Il giorno mer 16 dic 2020 alle ore 19:08 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > It's quite simple. If the function/method uses "..." in the argument > declaration, then you can see the arguments by iterating: > For Each hVariant In Param > Or as an array: > Param.All[iIndex] > Yes Jussi, in my example of course there is that but also something more, just download it and take a look. I forgot the goat :-) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed Dec 16 19:38:54 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 16 Dec 2020 19:38:54 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> Message-ID: <5dfc903b-ca4a-1a25-c209-4739e2272423@deganius.de> Am 16.12.20 um 10:32 schrieb Gianluigi: > Directly from Benoit, I have not received anything. > Now I get the User Mainling List again. Yes, you probably did not get my answer. If you're in doubt you can always have a look at the list's archive: https://lists.gambas-basic.org/pipermail/user/ > Christof, thank you for everything. You're welcome. :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Wed Dec 16 19:47:41 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 16 Dec 2020 18:47:41 +0000 Subject: [Gambas-user] VariadicFunction to understand extra arguments In-Reply-To: References: Message-ID: I expanded the wiki simple example a bit to include using '...' to pass arguments and also using as varadic. Cheers for the nudge. On Wed, 16 Dec 2020 at 17:04, Gianluigi wrote: > I have added to the Farm an example (VariadicFunction) which I hope will > be useful in understanding the extra arguments. > Obviously as long as I have understood this well. ? > I communicate this because in the wiki ( > http://gambaswiki.org/wiki/lang/methoddecl) the explanation of the extra > arguments seems very confusing. ? > I ask an English-speaking colleague if he can intervene. > > Thank you > > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Dec 16 19:55:05 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 16 Dec 2020 19:55:05 +0100 Subject: [Gambas-user] Stack smashing detected In-Reply-To: <1608137125.170028376@f6.my.com> References: <1608137125.170028376@f6.my.com> Message-ID: Le 16/12/2020 ? 17:45, pinglix via User a ?crit?: > > I freshly installed gambas 3 from ppa:gambas-team on lubuntu 18.04 lts > 32 bit. > > Application crashes with message: > > Stack smashing detected terminated. > This has been fixed in the development version four days ago. -- Beno?t Minisini From bagonergi at gmail.com Wed Dec 16 20:01:13 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 16 Dec 2020 20:01:13 +0100 Subject: [Gambas-user] VariadicFunction to understand extra arguments In-Reply-To: References: Message-ID: Il giorno mer 16 dic 2020 alle ore 19:48 Bruce Steers ha scritto: > I expanded the wiki simple example a bit to include using '...' to pass > arguments and also using as varadic. > > Cheers for the nudge. > > Thanks to you and greetings ? Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 16 20:21:04 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 16 Dec 2020 19:21:04 +0000 Subject: [Gambas-user] VariadicFunction to understand extra arguments In-Reply-To: References: Message-ID: > I ask an English-speaking colleague if he can intervene. > > Thank you > Your English is pretty good :) All i would say is the line... #Error: The expected data by the function are in a different number does not read right. would be simpler to write. Print "#Error: Wrong number of arguments." or even better.. Print ("#Error: " & IIf(Param.Count < value, "Not enough", "Too many") & " arguments!") Just that and you have flotting instead of floating. otherwise perfect :) Thanks again. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Dec 16 23:45:03 2020 From: mbelmonte at belmotek.net (Martin) Date: Wed, 16 Dec 2020 23:45:03 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: <1396f201-b772-21cb-a246-65c9d70cc13c@gmail.com> References: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> <1396f201-b772-21cb-a246-65c9d70cc13c@gmail.com> Message-ID: Hello, I configured a virtual machine with manjaro 20, installed all the dependencies for Arch, downloaded the gambas source code, created the component with a template and executed the pertinent commands so that the structure was created, then overwritten the files from the gambas-bindings project and edit the files configure.ac and makefile.am the interface c_dwg.c copy it from the repo. Finally make && sudo make install Gambas now works on the system but the gb.dwg component is not listed I accept help :-) The code is here: https://github.com/belmotek/gb.dwg Thanks a lot Mart?n Belmonte. On 15/12/20 13:18, Beno?t Minisini wrote: > Le 15/12/2020 ? 11:10, Martin a ?crit?: >> ok, the component structure is already created, and I have copied and >> overwritten the files with the libredwg/gambas-bindings3 project [1] >> I am looking, as an example, at the gb.dbus component and in this >> there is a file called c_dbus.h in dwg I suppose its equivalent is >> c_dwg.h but both differ since they have considerable differences. >> In gb.dbus there is also a gambas project (a directory) called >> gb.dbus and this is what is missing in the dwg component, correct? >> Well, now the system does not have shrimp of any version installed, >> since I am going to install the development version with the >> component that I am trying to create. But to create the "gambas" part >> of the component I have to use gambas that doesn't exist in the >> system yet, so it looks like a uroboro. >> >> So, wich is the correct system setup in order to develop a component? >> >> What is the minimum I could do with c_dwg.h [2] ? and... how to do that? >> >> [1] https://github.com/LibreDWG/gambas3-bindings >> >> [2] https://github.com/LibreDWG/gambas3-bindings/blob/master/src/c_dwg.h >> >> Regards >> >> Mart?n Belmonte. >> > > Having a gambas part in a component is only automatically managed > -inside- the Gambas source tree, as this management is done by the > autoconf configuration. > > If you develop the component outside of Gambas source tree, you have > to mimic that autoconf configuration. As I told before, it's just > having a Gambas project having the same name as the component, and > installing the executable ("gb.dwg.gambas") in the same directory as > the binary library file ("/usr/lib/gambas3/gb.dwg.so"). > > Tobias told you to mimic the 'gb.gmp' component, because it's simpler. > I told you about 'gb.dbus' just for the mixing of library and Gambas > project. Otherwise 'gb.dbus' is too complex to understand by itself > for a start. > > Regards, > > From bagonergi at gmail.com Thu Dec 17 00:00:16 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 17 Dec 2020 00:00:16 +0100 Subject: [Gambas-user] VariadicFunction to understand extra arguments In-Reply-To: References: Message-ID: Il giorno mer 16 dic 2020 alle ore 20:22 Bruce Steers ha scritto: > > Your English is pretty good :) > All i would say is the line... > #Error: The expected data by the function are in a different number > does not read right. > would be simpler to write. > Print "#Error: Wrong number of arguments." > or even better.. > Print ("#Error: " & IIf(Param.Count < value, "Not enough", "Too many") > & " arguments!") > > Just that and you have flotting instead of floating. > > otherwise perfect :) > Thanks again. > BruceS > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi Bruce, Thanks for the suggestions, I implemented them and added you as an author. :-P Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Dec 17 01:45:41 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 17 Dec 2020 01:45:41 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: References: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> <1396f201-b772-21cb-a246-65c9d70cc13c@gmail.com> Message-ID: <2491c9a3-410e-cd68-a47c-7fd8f4d8a436@gmail.com> Le 16/12/2020 ? 23:45, Martin a ?crit?: > Hello, > I configured a virtual machine with manjaro 20, installed all the > dependencies for Arch, downloaded the gambas source code, created the > component with a template and executed the pertinent commands so that > the structure was created, then overwritten the files from the > gambas-bindings project and edit the files configure.ac and makefile.am > the interface c_dwg.c copy it from the repo. > Finally make && sudo make install > Gambas now works on the system but the gb.dwg component is not listed > I accept help :-) > > The code is here: > > https://github.com/belmotek/gb.dwg > > Thanks a lot > > Mart?n Belmonte. > Are the 'gb.dwg.so' and 'gb.dwg.component' file installed where they should be? I.e. with the other components. -- Beno?t Minisini From mbelmonte at belmotek.net Thu Dec 17 09:28:48 2020 From: mbelmonte at belmotek.net (Martin) Date: Thu, 17 Dec 2020 09:28:48 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: <2491c9a3-410e-cd68-a47c-7fd8f4d8a436@gmail.com> References: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> <1396f201-b772-21cb-a246-65c9d70cc13c@gmail.com> <2491c9a3-410e-cd68-a47c-7fd8f4d8a436@gmail.com> Message-ID: <2dcdc07b-c34c-ed2a-558f-adbe18fb5e10@belmotek.net> The 'gb.dwg.so' and 'gb.dwg.component' files are not in .libs or anywhere else even .libs is completely empty. Regards On 17/12/20 1:45, Beno?t Minisini wrote: > Le 16/12/2020 ? 23:45, Martin a ?crit?: >> Hello, >> I configured a virtual machine with manjaro 20, installed all the >> dependencies for Arch, downloaded the gambas source code, created the >> component with a template and executed the pertinent commands so that >> the structure was created, then overwritten the files from the >> gambas-bindings project and edit the files configure.ac and >> makefile.am the interface c_dwg.c copy it from the repo. >> Finally make && sudo make install >> Gambas now works on the system but the gb.dwg component is not listed >> I accept help :-) >> >> The code is here: >> >> https://github.com/belmotek/gb.dwg >> >> Thanks a lot >> >> Mart?n Belmonte. >> > > Are the 'gb.dwg.so' and 'gb.dwg.component' file installed where they > should be? I.e. with the other components. > From ea7dfh at ea7dfh.com Thu Dec 17 11:10:18 2020 From: ea7dfh at ea7dfh.com (Jesus Guardon) Date: Thu, 17 Dec 2020 11:10:18 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> Message-ID: <1775d997-d708-7b83-0d21-f00d1879cd3d@ea7dfh.com> El 16/12/20 a las 08:36, Christof Thalhofer escribi?: > > The last bounces were this morning at 0:08. Let's see. > They had problems with the Google account management. Also YouTube and > other services were hit. Still they have some issues... https://www.wsj.com/articles/googles-gmail-faces-service-disruptions-again-11608074417 Regards Jesus From ea7dfh at ea7dfh.com Thu Dec 17 11:21:12 2020 From: ea7dfh at ea7dfh.com (Jesus Guardon) Date: Thu, 17 Dec 2020 11:21:12 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> Message-ID: <72d47ff3-29c8-c2ec-6560-e38aa94f097f@ea7dfh.com> El 16/12/20 a las 08:36, Christof Thalhofer escribi?: > The last bounces were this morning at 0:08. Let's see. And also here some users complaining: https://www.reddit.com/r/GMail/comments/kecgd3/is_anyone_else_not_receiving_certain_emails_from/ But I have to say that I'm not using gmail for my subscription to this list and I'm experiencing long delays until my message shows up in the list. My two cents Thank you also for your hard work maintaining the list, Christof. Regards Jesus From sharon at 455.co.il Thu Dec 17 12:26:03 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 17 Dec 2020 13:26:03 +0200 Subject: [Gambas-user] Send file to client using gb.web.gui Message-ID: <20201217112446.M7416@455.co.il> Hello How to send a file to a client using gb.web.gui I saw that there are: Response.SendFile ("my_file.pdf", "application / pdf") It freezes the page and does not send the file. I tried running the command using gb.web And it displays all the characters of the PDF file on the client page I want the client to download the file to computer. Thank you From chrisml at deganius.de Thu Dec 17 13:10:36 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 17 Dec 2020 13:10:36 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: <72d47ff3-29c8-c2ec-6560-e38aa94f097f@ea7dfh.com> References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> <72d47ff3-29c8-c2ec-6560-e38aa94f097f@ea7dfh.com> Message-ID: <6976537c-fa70-6259-2392-5cbb4cf43dc0@deganius.de> Am 17.12.20 um 11:21 schrieb Jesus Guardon: > But I have to say that I'm not using gmail for my subscription to this > list and I'm experiencing long delays until my message shows up in the > list. My two cents The ML should send it within one minute as soon as it gets it. You can look at the 'Received:' tags in the headers of the mail to detect where it hung. They have to be read from bottom to top, for example this are the tags in the mail you sent to the ML and the ML sent to my mailserver (11:21:12 until 11:22:03): > Delivered-To: chrisml at deganius.de > Received: from degmail.deganius.de > by degserv.wacker.deganius.de with POP3 (fetchmail-6.4.0.beta4) > for (single-drop); Thu, 17 Dec 2020 11:22:03 +0100 (CET) > Received: from bmailout2.hostsharing.net (bmailout2.hostsharing.net [83.223.78.240]) > (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) > (No client certificate requested) > by degmail.deganius.de (Postfix) with ESMTPS id CE50E3A0AB > for ; Thu, 17 Dec 2020 11:22:01 +0100 (CET) > Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) > (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) > (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) > by bmailout2.hostsharing.net (Postfix) with ESMTPS id 9C2FC2800B3C9; > Thu, 17 Dec 2020 11:22:01 +0100 (CET) > Received: from h08.hostsharing.net (localhost [127.0.0.1]) > (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) > key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) > (No client certificate requested) > by h08.hostsharing.net (Postfix) with ESMTPSA id 8E18B205282F; > Thu, 17 Dec 2020 11:22:01 +0100 (CET) > X-Original-To: user at lists.gambas-basic.org > Delivered-To: gbs00-lists+user at h08.hostsharing.net > Received: from mailin1.hostsharing.net (mailin1.hostsharing.net > [83.223.95.203]) > (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) > (Client CN "*.hostsharing.net", > Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) > by h08.hostsharing.net (Postfix) with ESMTPS id 3869B2AE41 > for ; Thu, 17 Dec 2020 11:21:18 +0100 (CET) > Received: from smtp-relay-02-7.dondominio.net (smtp-relay-02-7.dondominio.net > [31.214.176.40]) > (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) > (No client certificate requested) > by mailin1.hostsharing.net (Postfix) with ESMTPS id 1CE6D16D060 > for ; Thu, 17 Dec 2020 11:21:17 +0100 (CET) > Received: from localhost (smtp-relay-local.scip.local [127.0.0.1]) > by smtp-relay.dondominio.com (Postfix) with SMTP id 56FDA4335F > for ; Thu, 17 Dec 2020 11:21:14 +0100 (CET) > Received: from mail-node.dondominio.com > by smtp-relay.dondominio.com (Postfix) with ESMTP id D225943341 > for ; Thu, 17 Dec 2020 11:21:12 +0100 (CET) > DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ea7dfh.com; s=dddk; > t=1608200472; bh=jcVd7MGnmrAHYQPx9Y/fDY+NzNtavhNLZPyNYjudnmk=; > h=Subject:To:From:Message-ID:Date:Content-Type; > b=QBXkt9lH/o8hTy8kuzB3SHHu3jjX2qv8is6FfCUojwXumAgjIpw8r0u+Br+dvNJUR > Df34OEaO4evbwgMForkviganKm5wgXwjosKFCZpqyYbyIjfT0yz1IJiOE1xL0AIE1p > TI6JT0P1bEp4LFQk9hxl7euXV2ol1TinQ+cMLcuM= > Received: from Jesuss-iMac.local (static-139-255-225-77.ipcom.comunitel.net > [77.225.255.139]) > (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) > key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) > (No client certificate requested) > (Authenticated sender: ea7dfh at ea7dfh.com) > by mail-node.dondominio.com (Postfix) with ESMTPSA id AD016405FB > for ; Thu, 17 Dec 2020 11:21:12 +0100 (CET) ... > Thank you also for your hard work maintaining the list, Christof. You're welcome. :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From ea7dfh at ea7dfh.com Thu Dec 17 13:54:11 2020 From: ea7dfh at ea7dfh.com (Jesus Guardon) Date: Thu, 17 Dec 2020 13:54:11 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: <6976537c-fa70-6259-2392-5cbb4cf43dc0@deganius.de> References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> <72d47ff3-29c8-c2ec-6560-e38aa94f097f@ea7dfh.com> <6976537c-fa70-6259-2392-5cbb4cf43dc0@deganius.de> Message-ID: <7de3e472-c761-a35a-6742-1fdcb85265f5@ea7dfh.com> El 17/12/20 a las 13:10, Christof Thalhofer escribi?: > You can look at the 'Received:' tags in the headers of the mail to > detect where it hung. They have to be read from bottom to top, for > example this are the tags in the mail you sent to the ML and the ML sent > to my mailserver (11:21:12 until 11:22:03): Yes, that one was fast. But the first one I sent not, seems like the greylist check delayed it for some time (about 10 minutes). Here it is, stripped out non relevant parts: ==============================snip======================================= From - Thu Dec 17 11:20:08 2020 Received: from mail-ha-01.scip.local ([172.21.33.147]) by mail-node-imap-mpo20-00.scip.local with LMTP id 7OWZE9Yw21/yEQAAQ/gJ6g (envelope-from ) for ; Thu, 17 Dec 2020 11:20:06 +0100 Received: from bmailout3.hostsharing.net (bmailout3.hostsharing.net [176.9.242.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-node.dondominio.com (Postfix) with ESMTPS id 08F1240903 for <**@ea7**h.com>; Thu, 17 Dec 2020 11:20:05 +0100 (CET) X-Greylist: delayed 534 seconds by postgrey-1.36 at mail1; Thu, 17 Dec 2020 11:19:16 CET X-Greylist: delayed 534 seconds by postgrey-1.36 at mail2; Thu, 17 Dec 2020 11:19:16 CET X-Greylist: delayed 534 seconds by postgrey-1.36 at mail3; Thu, 17 Dec 2020 11:19:16 CET Received: from smtp-relay-02-2.dondominio.net (smtp-relay-02-2.dondominio.net [31.214.176.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailin2.hostsharing.net (Postfix) with ESMTPS id 24FAD18ECB1 for ; Thu, 17 Dec 2020 11:19:16 +0100 (CET) Received: from localhost (smtp-relay-local.scip.local [127.0.0.1]) by smtp-relay.dondominio.com (Postfix) with SMTP id 6326E4325F for ; Thu, 17 Dec 2020 11:10:20 +0100 (CET) Received: from mail-node.dondominio.com by smtp-relay.dondominio.com (Postfix) with ESMTP id 062E0432BB for ; Thu, 17 Dec 2020 11:10:19 +0100 (CET) ====================================================================== Perhaps, greylist delays addresses that didn't post in a while and subsequent messages are not delayed. Thanks again for your time Regards, Jesus From chrisml at deganius.de Thu Dec 17 16:04:42 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 17 Dec 2020 16:04:42 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: <7de3e472-c761-a35a-6742-1fdcb85265f5@ea7dfh.com> References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> <72d47ff3-29c8-c2ec-6560-e38aa94f097f@ea7dfh.com> <6976537c-fa70-6259-2392-5cbb4cf43dc0@deganius.de> <7de3e472-c761-a35a-6742-1fdcb85265f5@ea7dfh.com> Message-ID: Am 17.12.20 um 13:54 schrieb Jesus Guardon: > Yes, that one was fast. But the first one I sent not, seems like the > greylist check delayed it for some time (about 10 minutes). Here it is, > stripped out non relevant parts: Ah ok. Yes the first mail you send has to go through the greylist check once and then never again. As soon as your address is registered, the mail will be delivered immediately. I always forget about it ... ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Thu Dec 17 17:41:39 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 17 Dec 2020 16:41:39 +0000 Subject: [Gambas-user] About merge requests In-Reply-To: <52170782-5202-d8be-18bd-76522189720e@gmail.com> References: <52170782-5202-d8be-18bd-76522189720e@gmail.com> Message-ID: I have to ask Ben are mine okay? I believe i am doing it correctly now after studying the instructions and seeing your commit messages. Thought it best to check just in case i've still not got it right. BruceS On Wed, 16 Dec 2020 at 14:51, Beno?t Minisini wrote: > Hi, > > If you make a merge request, please ensure that the merge request > description includes a commit log that carefully follows the convention > described in the 'README.commit' file. > > This file is located at the top of the Gambas source tree. > > Otherwise I have to rewrite it myself, and it takes some time. > > Thanks! > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Fri Dec 18 00:40:43 2020 From: mbelmonte at belmotek.net (Martin) Date: Fri, 18 Dec 2020 00:40:43 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: <2dcdc07b-c34c-ed2a-558f-adbe18fb5e10@belmotek.net> References: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> <1396f201-b772-21cb-a246-65c9d70cc13c@gmail.com> <2491c9a3-410e-cd68-a47c-7fd8f4d8a436@gmail.com> <2dcdc07b-c34c-ed2a-558f-adbe18fb5e10@belmotek.net> Message-ID: <09dc2039-9aa7-17bd-1154-b013516b2e26@belmotek.net> I did everything again from a new template and delete the directory created before (gb.dwg) when I do ./reconf at the end of the process it tells me that the component is disabled because it cannot find c_dwg.h, but it does. Did I forget to indicate it somewhere? Martin On 17/12/20 9:28, Martin wrote: > The 'gb.dwg.so' and 'gb.dwg.component' files are not in .libs or > anywhere else even .libs is completely empty. > > Regards > > On 17/12/20 1:45, Beno?t Minisini wrote: >> Le 16/12/2020 ? 23:45, Martin a ?crit?: >>> Hello, >>> I configured a virtual machine with manjaro 20, installed all the >>> dependencies for Arch, downloaded the gambas source code, created >>> the component with a template and executed the pertinent commands so >>> that the structure was created, then overwritten the files from the >>> gambas-bindings project and edit the files configure.ac and >>> makefile.am the interface c_dwg.c copy it from the repo. >>> Finally make && sudo make install >>> Gambas now works on the system but the gb.dwg component is not listed >>> I accept help :-) >>> >>> The code is here: >>> >>> https://github.com/belmotek/gb.dwg >>> >>> Thanks a lot >>> >>> Mart?n Belmonte. >>> >> >> Are the 'gb.dwg.so' and 'gb.dwg.component' file installed where they >> should be? I.e. with the other components. >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Fri Dec 18 01:19:47 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 Dec 2020 01:19:47 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: <09dc2039-9aa7-17bd-1154-b013516b2e26@belmotek.net> References: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> <1396f201-b772-21cb-a246-65c9d70cc13c@gmail.com> <2491c9a3-410e-cd68-a47c-7fd8f4d8a436@gmail.com> <2dcdc07b-c34c-ed2a-558f-adbe18fb5e10@belmotek.net> <09dc2039-9aa7-17bd-1154-b013516b2e26@belmotek.net> Message-ID: <4919fe6a-22fc-f11a-e2f2-3a69daa923a7@gmail.com> Le 18/12/2020 ? 00:40, Martin a ?crit?: > I did everything again from a new template and delete the directory > created before (gb.dwg) when I do ./reconf at the end of the process it > tells me that the component is disabled because it cannot find c_dwg.h, > but it does. Did I forget to indicate it somewhere? > > Martin > I strongly suggest that, if libredgw relies on 'pkg-config', that you rewrite your 'configure.ac' file following the one of the 'gb.poppler' component. You are at the moment using the autoconf macros made for searching directories from specific files, but I made macros for using 'pkg-config' too. They are simpler to use. Then, as for the location of 'gb.dwg.so' and 'gb.dwg.component', I was talking about the location of their installation (normally '/usr/lib/gambas3'). This is where the IDE searches for components. Regards, -- Beno?t Minisini From mbelmonte at belmotek.net Fri Dec 18 10:09:32 2020 From: mbelmonte at belmotek.net (Martin) Date: Fri, 18 Dec 2020 10:09:32 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: <4919fe6a-22fc-f11a-e2f2-3a69daa923a7@gmail.com> References: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> <1396f201-b772-21cb-a246-65c9d70cc13c@gmail.com> <2491c9a3-410e-cd68-a47c-7fd8f4d8a436@gmail.com> <2dcdc07b-c34c-ed2a-558f-adbe18fb5e10@belmotek.net> <09dc2039-9aa7-17bd-1154-b013516b2e26@belmotek.net> <4919fe6a-22fc-f11a-e2f2-3a69daa923a7@gmail.com> Message-ID: <5a023abc-d986-aaaf-474c-e2867004d112@belmotek.net> ok, I try to use some similar poppler, it doesn't work. then I try coping the configure.ac from Reini bindings, it doesn't neither, even I change many options also run 'relink.sh' nothing seems to work. I show the outputs of a few tries. || Unable to met pkg-config requirement: libredwg >= 0.10.0 || gb.dwg is disabled || Unable to met pkg-config requirement: libredwg >= 0.0.11 || gb.dwg is disabled || Unable to met pkg-config requirement: libredwg >= 0.0.11 || gb.dwg is disabled Regards On 18/12/20 1:19, Beno?t Minisini wrote: > Le 18/12/2020 ? 00:40, Martin a ?crit?: >> I did everything again from a new template and delete the directory >> created before (gb.dwg) when I do ./reconf at the end of the process >> it tells me that the component is disabled because it cannot find >> c_dwg.h, but it does. Did I forget to indicate it somewhere? >> >> Martin >> > > I strongly suggest that, if libredgw relies on 'pkg-config', that you > rewrite your 'configure.ac' file following the one of the 'gb.poppler' > component. > > You are at the moment using the autoconf macros made for searching > directories from specific files, but I made macros for using > 'pkg-config' too. They are simpler to use. > > Then, as for the location of 'gb.dwg.so' and 'gb.dwg.component', I was > talking about the location of their installation (normally > '/usr/lib/gambas3'). This is where the IDE searches for components. > > Regards, > > From kicking177 at gmail.com Fri Dec 18 16:53:57 2020 From: kicking177 at gmail.com (KKing) Date: Fri, 18 Dec 2020 15:53:57 +0000 Subject: [Gambas-user] Shortcut key issue Message-ID: <7f1b75e9-491e-50cc-3384-4ba2f10c5cbe@gmail.com> So I want a user to be able to jump to certain textboxes using shortcut keys. I can get it to work the first time but subsequent requests appear to be ignored? I've prepared a simple test which has the following > Public Sub Form_KeyPress() > ? If Key.Alt Then > ??? If Key.Code = 65 Then > ????? TextBox1.SetFocus > ??? Endif > ??? If Key.Code = 66 Then > ????? TextBox2.SetFocus > ??? Endif > ? Endif > End When I Alt+A it jumps to TextBox1 as desired, but if I then Alt+B it doesn't move to TextBox2. If I kill the program and start again and do Alt+B it moves to TextBox2 as desired but if I then Alt+A it does nothing. This is on Deb10 with LXDE using G 3.12.2 From g4mba5 at gmail.com Fri Dec 18 16:59:40 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 Dec 2020 16:59:40 +0100 Subject: [Gambas-user] Shortcut key issue In-Reply-To: <7f1b75e9-491e-50cc-3384-4ba2f10c5cbe@gmail.com> References: <7f1b75e9-491e-50cc-3384-4ba2f10c5cbe@gmail.com> Message-ID: <014851dd-bf29-eb0d-ba81-2224699eb99d@gmail.com> Le 18/12/2020 ? 16:53, KKing a ?crit?: > So I want a user to be able to jump to certain textboxes using shortcut > keys. I can get it to work the first time but subsequent requests appear > to be ignored? > > I've prepared a simple test which has the following > >> Public Sub Form_KeyPress() >> ? If Key.Alt Then >> ??? If Key.Code = 65 Then >> ????? TextBox1.SetFocus >> ??? Endif >> ??? If Key.Code = 66 Then >> ????? TextBox2.SetFocus >> ??? Endif >> ? Endif >> End > > When I Alt+A it jumps to TextBox1 as desired, but if I then Alt+B it > doesn't move to TextBox2. > If I kill the program and start again and do Alt+B it moves to TextBox2 > as desired but if I then Alt+A it does nothing. > > This is on Deb10 with LXDE using G 3.12.2 > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Please post a project. -- Beno?t Minisini From bagonergi at gmail.com Fri Dec 18 22:16:50 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 18 Dec 2020 22:16:50 +0100 Subject: [Gambas-user] Use a class as a function Message-ID: Hi, could this example help to understand _call() method and also the "..." keyword? [code]---------------------------------------- ' Gambas module file Public Sub Main() Dim Operations As New CMath Print Operations(Operations.Addition, 1.2, 2.0, 3.55, 4.0, 5.12) Print Operations(Operations.Subtraction, 12345.02, 45.5, 67.31, 890.12, 543.0, 987.09, 345.13, 123.56, 4567.0) Print Operations(Operations.Multiplication, 32, 64, 12, 21) Print Operations(Operations.Division, 1234, 56, 78, 93, 4) End --------------------------------------------- ' Gambas class file Public Enum Addition = 1, Subtraction, Multiplication, Division Public Sub _call(Operator As Integer, ...) As Variant Dim v As Variant = Param.All Dim i, iType As Integer Dim vResult As Variant = 0 If Param.Count = 0 Then Return iType = TypeOf(v[0]) If iType = 4 Then CLong(vResult) Else If iType = 7 Then CFloat(vResult) Else Debug "#Warning: Numbers must be entered" Return Endif For i = 0 To Param.Max If TypeOf(v[i]) <> iType Then Debug "#Warning: Impossible to operate on different types of data" Return Endif Next Select Case Operator Case 1 ' Addition For i = 0 To Param.Max vResult += v[i] Next Return vResult Case 2 ' Subtraction vResult = v[0] For i = 1 To Param.Max vResult -= v[i] Next Return vResult Case 3 ' Multiplication vResult = v[0] For i = 1 To Param.Max vResult *= v[i] Next Return vResult Case 4 ' Division vResult = v[0] For i = 1 To Param.Max Try vResult /= v[i] If Error Then Debug "#Error :"; Error.Text Return Endif Next Return vResult End Select End [/code]---------------------------------------- Thank you and regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Dec 18 22:35:37 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 18 Dec 2020 22:35:37 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: <7de3e472-c761-a35a-6742-1fdcb85265f5@ea7dfh.com> References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> <72d47ff3-29c8-c2ec-6560-e38aa94f097f@ea7dfh.com> <6976537c-fa70-6259-2392-5cbb4cf43dc0@deganius.de> <7de3e472-c761-a35a-6742-1fdcb85265f5@ea7dfh.com> Message-ID: Hi Christof, the last email appeared regularly (a few seconds) in the archive but gmail took 5 minutes to communicate it and that's fine for me. Instead this afternoon around 16 Italian time there was a blackout of about 2 hours or more. This is for your knowledge only. Greetings Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From dosida at gmail.com Fri Dec 18 22:49:14 2020 From: dosida at gmail.com (Dimitris Anogiatis) Date: Fri, 18 Dec 2020 14:49:14 -0700 Subject: [Gambas-user] Shortcut key issue In-Reply-To: <014851dd-bf29-eb0d-ba81-2224699eb99d@gmail.com> References: <7f1b75e9-491e-50cc-3384-4ba2f10c5cbe@gmail.com> <014851dd-bf29-eb0d-ba81-2224699eb99d@gmail.com> Message-ID: It make sense because you're shifting focus from the form object to the textbox objects. In order to jump from textbox B from textbox A you have to have the same code in the textbox A's keypress event. Try this: After you press Alt-A click on somewhere in the form (in the actual form not another control) and press Alt-B. Does it jump to Textbox B now? On Fri, Dec 18, 2020 at 9:00 AM Beno?t Minisini wrote: > Le 18/12/2020 ? 16:53, KKing a ?crit : > > So I want a user to be able to jump to certain textboxes using shortcut > > keys. I can get it to work the first time but subsequent requests appear > > to be ignored? > > > > I've prepared a simple test which has the following > > > >> Public Sub Form_KeyPress() > >> If Key.Alt Then > >> If Key.Code = 65 Then > >> TextBox1.SetFocus > >> Endif > >> If Key.Code = 66 Then > >> TextBox2.SetFocus > >> Endif > >> Endif > >> End > > > > When I Alt+A it jumps to TextBox1 as desired, but if I then Alt+B it > > doesn't move to TextBox2. > > If I kill the program and start again and do Alt+B it moves to TextBox2 > > as desired but if I then Alt+A it does nothing. > > > > This is on Deb10 with LXDE using G 3.12.2 > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Please post a project. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Dec 19 01:34:41 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 19 Dec 2020 00:34:41 +0000 Subject: [Gambas-user] Ubuntu Hirsute Hippo 21.04 Message-ID: Ubuntu 21.04 is now available if you didn't know. I downloaded it here... https://cdimage.ubuntu.com/ubuntu/daily-live/current/ Latest daily builds, official release date is April 22, 2021. My flavour is MATE desktop and I'm using it now. Install was a pain as i had no EFI drive , but i figured that out. Repo Gambas was 3.15.1 Dependency issues for compile compared to ubuntu-latest (focal) ... libgmime2.6-dev non existent , libgmime3.0-dev works fine postgresql-server-dev-12, no must be postgresql-server-dev-13 or postgresql-server-dev-all ? so this from my branches gitlab.ci file ... apt-get install -y build-essential g++ automake autoconf libtool libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-13 libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-private-dev libpoppler-glib-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-3.0-dev llvm-dev llvm libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libssl-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev qtwebengine5-dev libwebkit2gtk-4.0-dev git And then All components compiled and installed okay. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Dec 19 01:41:59 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 19 Dec 2020 00:41:59 +0000 Subject: [Gambas-user] Ubuntu Hirsute Hippo 21.04 In-Reply-To: References: Message-ID: Benoit. I do not know if this info is useful to you so here it is anyway... compilation output (./configure had -q option so no 'checking' output) (attached in file) My System Info from Gambas IDE... [System] Gambas=3.15.90 fcf607cba (bruces-patched) OperatingSystem=Linux Kernel=5.8.0-25-generic Architecture=x86_64 Distribution=Ubuntu Hirsute Hippo (development branch) Desktop=MATE Theme=ambiant-mate Language=en_GB.UTF-8 Memory=7948M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.13 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.19 GStreamer=libgstreamer-1.0.so.0.1802.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.19 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.102.0.0 QT5=libQt5Core.so.5.15.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=en_GB GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=167914 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= LANG=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1620,unix/:/tmp/.ICE-unix/1620 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1800 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 On Sat, 19 Dec 2020 at 00:34, Bruce Steers wrote: > Ubuntu 21.04 is now available if you didn't know. > > I downloaded it here... > https://cdimage.ubuntu.com/ubuntu/daily-live/current/ > > Latest daily builds, official release date is April 22, 2021. > My flavour is MATE desktop and I'm using it now. > Install was a pain as i had no EFI drive , but i figured that out. > > Repo Gambas was 3.15.1 > > Dependency issues for compile compared to ubuntu-latest (focal) ... > libgmime2.6-dev non existent , libgmime3.0-dev works fine > postgresql-server-dev-12, no must be postgresql-server-dev-13 > or postgresql-server-dev-all ? > > so this from my branches gitlab.ci file ... > > apt-get install -y build-essential g++ automake autoconf libtool > libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev > postgresql-server-dev-13 libsqlite0-dev libsqlite3-dev libglib2.0-dev > libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev > libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-private-dev > libpoppler-glib-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev > libxtst-dev libffi-dev libglew-dev libimlib2-dev libv4l-dev > libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev > libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev > libgmime-3.0-dev llvm-dev llvm libalure-dev libgmp-dev libgtk-3-dev > libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils > libdumb1-dev libssl-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev > libqt5x11extras5-dev qtbase5-dev qtwebengine5-dev libwebkit2gtk-4.0-dev git > > And then All components compiled and installed okay. > > BruceS > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-compile-install.log.zip Type: application/zip Size: 40944 bytes Desc: not available URL: From chrisml at deganius.de Sat Dec 19 08:08:56 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 19 Dec 2020 08:08:56 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> <72d47ff3-29c8-c2ec-6560-e38aa94f097f@ea7dfh.com> <6976537c-fa70-6259-2392-5cbb4cf43dc0@deganius.de> <7de3e472-c761-a35a-6742-1fdcb85265f5@ea7dfh.com> Message-ID: <7cef425e-1bfd-f393-b3ed-05ba714b1136@deganius.de> Am 18.12.20 um 22:35 schrieb Gianluigi: > the last email appeared regularly (a few seconds) in the archive but > gmail took 5 minutes to communicate it and that's fine for me. > Instead this afternoon around 16 Italian time there was a blackout of > about 2 hours or more. > > This is for your knowledge only. Thank you! Very good that the archive is so fast! I'm actually a little unsure how quickly the mail shows up there and almost had a bad sense to have given you the advice. It seems that not only Gmail but a lot of large companies and governments currently have issues. Maybe it is part of a larger attack: https://bobsullivan.net/cybercrime/google-down-government-hacked-fireeye-raided-amazon-outage-its-been-a-rough-patch/ "I?m sitting here in the dark in my toddler?s room because the light is controlled by @Google Home. Rethinking? a lot right now." Put your data into the cloud and have fun! :-/ Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Sat Dec 19 08:57:44 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 19 Dec 2020 08:57:44 +0100 Subject: [Gambas-user] Possible malfunction of the User Mailing List? In-Reply-To: <7cef425e-1bfd-f393-b3ed-05ba714b1136@deganius.de> References: <6b323389-4e72-07cb-c376-15e131e4840d@deganius.de> <72d47ff3-29c8-c2ec-6560-e38aa94f097f@ea7dfh.com> <6976537c-fa70-6259-2392-5cbb4cf43dc0@deganius.de> <7de3e472-c761-a35a-6742-1fdcb85265f5@ea7dfh.com> <7cef425e-1bfd-f393-b3ed-05ba714b1136@deganius.de> Message-ID: Il giorno sab 19 dic 2020 alle ore 08:09 Christof Thalhofer < chrisml at deganius.de> ha scritto: > > > https://bobsullivan.net/cybercrime/google-down-government-hacked-fireeye-raided-amazon-outage-its-been-a-rough-patch/ > > "I?m sitting here in the dark in my toddler?s room because the light is > controlled by @Google Home. Rethinking? a lot right now." > > Put your data into the cloud and have fun! :-/ > > Alles Gute > > Christof Thalhofer > ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Dec 19 09:01:22 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 19 Dec 2020 09:01:22 +0100 Subject: [Gambas-user] Use a class as a function In-Reply-To: References: Message-ID: Il giorno ven 18 dic 2020 alle ore 22:16 Gianluigi ha scritto: > Hi, > > could this example help to understand _call() method and also the "..." > keyword? > > ... > > Thank you and regards > Maybe by typing "Return vResult" only once after "End Select" ? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sat Dec 19 10:47:44 2020 From: kicking177 at gmail.com (KKing) Date: Sat, 19 Dec 2020 09:47:44 +0000 Subject: [Gambas-user] Shortcut key issue Message-ID: <389a2906-e4c0-019d-0888-91182936fa20@gmail.com> > Try this: > > After you press Alt-A click on somewhere in the form (in the actual form > not another control) and press Alt-B. > Does it jump to Textbox B now? Nope.? But using the Form_KeyRelease() event instead of Form_KeyPress() works as I wanted. From bsteers4 at gmail.com Sat Dec 19 14:12:08 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 19 Dec 2020 13:12:08 +0000 Subject: [Gambas-user] TermnalView CSI t talking back Message-ID: Hi all I'm trying to further update the TerminalView_VT100 filter The reason is i have added the 1-10 sequences that do stuff but not the 11-19 that report stuff. I have found using the command "resize" to resize the window issues a CSI 18 command. 18 asks for the terminalview size in characters. documentation says this.. *Ps* = 1 8 ? Report the size of the text area in characters. Result is CSI 8 ; *height* ; *width* t So the filter does this.. Case 18 Dim iDims As Integer[] = [hView.Height / hView.LineHeight, hView.Width / hView.CharWidth] hView.Input("\033[8;" & Str(iDims[0]) & ";" & Str(iDims[1]) & "t") But I'm dong something wrong. Using hView.Input() was the only way i could not have resize command timeout but actually respond but it responds with "unknown sequence" I've tried with a terminating \n If I could figure out how the resize command is expecting the CSI return with 18 i could add all the others. I've added the changes to a terminal app here if anyone wants to test it. just run it and type "resize -s 20 100" https://gitlab.com/bsteers4/germinal https://gitlab.com/bsteers4/germinal/-/blob/master/.src/TerminalView/TerminalFilter_VT100.class Line 700 is the filter reply code. Any advice appreciated BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sat Dec 19 15:01:11 2020 From: kicking177 at gmail.com (KKing) Date: Sat, 19 Dec 2020 14:01:11 +0000 Subject: [Gambas-user] detect the "MenuKey" keypress Message-ID: can I detect the MenuKey (between right Alt and Ctrl keys) being pressed in std graphics form? I'd like to raise popup menu on it being depressed xev shows it detected as keycode 135 on my unit but I don't know if LXDE passes it through to Gambas? From hans at gambas-buch.de Sat Dec 19 15:45:17 2020 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 19 Dec 2020 15:45:17 +0100 Subject: [Gambas-user] Webserver Lighttpd - FastCGI and Gambas Message-ID: Hello. I use the Lighttpd web server (version 1.4.55) for my web projects. Following the recommendation in https://sourceforge.net/p/gambas/mailman/message/35668835/, I have configured the CGI module "mod_cgi". ... # This tells that all executable files are cgi scripts, # and just them cgi.execute-x-only = "enable" cgi.assign = ( "" => "" ) Also, the module "mod_fastcgi" was configured and enabled: fastcgi.server = ( ".php" => (( ???????????????? "binpath" => "/usr/bin/phpcgi", ???????????????? "socket" => "/tmp/php.sock" ???????????????? ))) Now the question: With this configuration, do the web scripts (*.gbw) or web applications (*.gambas) of Gambas also run in FastCGI mode? If this is NOT the case, I would like to know how to configure the Lighttpd web server for FastCGI mode as well. With kind regards Hans From bagonergi at gmail.com Sat Dec 19 15:53:40 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 19 Dec 2020 15:53:40 +0100 Subject: [Gambas-user] detect the "MenuKey" keypress In-Reply-To: References: Message-ID: Il giorno sab 19 dic 2020 alle ore 15:02 KKing ha scritto: > can I detect the MenuKey (between right Alt and Ctrl keys) being pressed > in std graphics form? > I'd like to raise popup menu on it being depressed > xev shows it detected as keycode 135 on my unit but I don't know if LXDE > passes it through to Gambas? > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I don't know if I understand the question, are you looking for this? Public Sub Form_KeyPress() If Key.Code = Key["m"] And If Key.Control Then Me.PopupMenu = "Menu1" Menu1.Popup(Me.X + (Me.W \ 2), Me.Y + (Me.H \ 2)) Endif End Regards Gianluigi P.S. A little kindness would be appreciated -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Sat Dec 19 16:20:15 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 19 Dec 2020 10:20:15 -0500 Subject: [Gambas-user] detect the "MenuKey" keypress In-Reply-To: References: Message-ID: There are two ways: Assign a menu name to the form/comtrol's PopupMenu property or, more generally, write a function to handle the form/control Menu event. On 2020-12-19 9:01 a.m., KKing wrote: > can I detect the MenuKey (between right Alt and Ctrl keys) being > pressed in std graphics form? > I'd like to raise popup menu on it being depressed > xev shows it detected as keycode 135 on my unit but I don't know if > LXDE passes it through to Gambas? > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Sat Dec 19 16:26:47 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 19 Dec 2020 16:26:47 +0100 Subject: [Gambas-user] Webserver Lighttpd - FastCGI and Gambas In-Reply-To: References: Message-ID: <51eac884-b6d6-d293-e77c-403ef531e1b1@gmail.com> Le 19/12/2020 ? 15:45, Hans Lehmann a ?crit?: > Hello. > > I use the Lighttpd web server (version 1.4.55) for my web projects. > Following the recommendation in > https://sourceforge.net/p/gambas/mailman/message/35668835/, I have > configured the CGI module "mod_cgi". > > ... > # This tells that all executable files are cgi scripts, > # and just them > cgi.execute-x-only = "enable" > cgi.assign = ( "" => "" ) > > Also, the module "mod_fastcgi" was configured and enabled: > > fastcgi.server = ( ".php" => (( > ???????????????? "binpath" => "/usr/bin/phpcgi", > ???????????????? "socket" => "/tmp/php.sock" > ???????????????? ))) > > Now the question: With this configuration, do the web scripts (*.gbw) or > web applications (*.gambas) of Gambas also run in FastCGI mode? > If this is NOT the case, I would like to know how to configure the > Lighttpd web server for FastCGI mode as well. > > With kind regards > > Hans > No, only CGI is supported with the 'gb.web' component. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sat Dec 19 16:54:49 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 19 Dec 2020 15:54:49 +0000 Subject: [Gambas-user] detect the "MenuKey" keypress In-Reply-To: References: Message-ID: If Key.Code = Key["Menu"] Then that should detect the menu key On Sat, 19 Dec 2020 at 14:02, KKing wrote: > can I detect the MenuKey (between right Alt and Ctrl keys) being pressed > in std graphics form? > I'd like to raise popup menu on it being depressed > xev shows it detected as keycode 135 on my unit but I don't know if LXDE > passes it through to Gambas? > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Sat Dec 19 18:08:34 2020 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 19 Dec 2020 18:08:34 +0100 Subject: [Gambas-user] Webserver Lighttpd - FastCGI and Gambas In-Reply-To: <51eac884-b6d6-d293-e77c-403ef531e1b1@gmail.com> References: <51eac884-b6d6-d293-e77c-403ef531e1b1@gmail.com> Message-ID: <5d5ccd00-f379-caac-4e0d-59d1b175b26e@gambas-buch.de> Am 19.12.20 um 16:26 schrieb Beno?t Minisini: > No, only CGI is supported with the 'gb.web' component. Hello. Thank you for the quick reply. Does the statement also apply to the gb.web.gui component? With kind regards Hans From bsteers4 at gmail.com Sat Dec 19 19:15:18 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 19 Dec 2020 18:15:18 +0000 Subject: [Gambas-user] TermnalView CSI t talking back In-Reply-To: References: Message-ID: Never mind , I've figured it out. Needed to use \e not \033 resize command is handling it fine now so i guess i've cracked it. Will add more reporting values. have almost done 11-19 now in the aforementioned app. BruceS On Sat, 19 Dec 2020 at 13:12, Bruce Steers wrote: > Hi all > I'm trying to further update the TerminalView_VT100 filter > > The reason is i have added the 1-10 sequences that do stuff but not the > 11-19 that report stuff. > I have found using the command "resize" to resize the window issues a CSI > 18 command. > 18 asks for the terminalview size in characters. > > documentation says this.. > > *Ps* = 1 8 ? Report the size of the text area in characters. > Result is CSI 8 ; *height* ; *width* t > > So the filter does this.. > Case 18 Dim iDims As Integer[] = [hView.Height / hView.LineHeight, hView.Width / hView.CharWidth] hView.Input("\033[8;" & Str(iDims[0]) & ";" & Str(iDims[1]) & "t") > > But I'm dong something wrong. > Using hView.Input() was the only way i could not have resize command timeout but actually respond but it responds with "unknown sequence" > > I've tried with a terminating \n > > If I could figure out how the resize command is expecting the CSI return with 18 i could add all the others. > > I've added the changes to a terminal app here if anyone wants to test it. just run it and type "resize -s 20 100" > https://gitlab.com/bsteers4/germinal > https://gitlab.com/bsteers4/germinal/-/blob/master/.src/TerminalView/TerminalFilter_VT100.class > Line 700 is the filter reply code. > > Any advice appreciated > > BruceS > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Dec 19 19:18:58 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 19 Dec 2020 19:18:58 +0100 Subject: [Gambas-user] Webserver Lighttpd - FastCGI and Gambas In-Reply-To: <5d5ccd00-f379-caac-4e0d-59d1b175b26e@gambas-buch.de> References: <51eac884-b6d6-d293-e77c-403ef531e1b1@gmail.com> <5d5ccd00-f379-caac-4e0d-59d1b175b26e@gambas-buch.de> Message-ID: Le 19/12/2020 ? 18:08, Hans Lehmann a ?crit?: > Am 19.12.20 um 16:26 schrieb Beno?t Minisini: >> No, only CGI is supported with the 'gb.web' component. > > Hello. > > Thank you for the quick reply. > Does the statement also apply to the gb.web.gui component? > > With kind regards > > Hans > Yes. One can say that 'gb.web.gui' implements its own way of doing "FastCGI" by replacing sessions by processes. Regards, -- Beno?t Minisini From kicking177 at gmail.com Sun Dec 20 10:48:55 2020 From: kicking177 at gmail.com (KKing) Date: Sun, 20 Dec 2020 09:48:55 +0000 Subject: [Gambas-user] detect the "MenuKey" Message-ID: <21290849-659a-d014-ad1e-be8c3b220fd7@gmail.com> so in my stripped back example one form with two textboxes ... and a menu this > ? If Key.Code = Key["m"] And If Key.Control Then > ??? Me.PopupMenu = "Menu1" > ??? Menu1.Popup(Me.X + (Me.W \ 2), Me.Y + (Me.H \ 2)) > ? Endif Did not work, but this > ? If Key.Code = Key["Menu"] Then > ??? Me.PopupMenu = "Menu1" > ??? Menu1.Popup(Me.X + (Me.W \ 2), Me.Y + (Me.H \ 2)) > ? Endif this does work nicely, so thank you all for the snippets to test and use. For some reason on a much more cluttered main form even the Public Sub Form_KeyPress() and Public Sub Form_KeyRelease() just don't seem to be being triggered at all. Need to try and debug / break it down to find out why. From bagonergi at gmail.com Sun Dec 20 10:59:20 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 20 Dec 2020 10:59:20 +0100 Subject: [Gambas-user] detect the "MenuKey" In-Reply-To: <21290849-659a-d014-ad1e-be8c3b220fd7@gmail.com> References: <21290849-659a-d014-ad1e-be8c3b220fd7@gmail.com> Message-ID: Il giorno dom 20 dic 2020 alle ore 10:49 KKing ha scritto: > so in my stripped back example one form with two textboxes ... and a > menu this > > If Key.Code = Key["m"] And If Key.Control Then > > Me.PopupMenu = "Menu1" > > Menu1.Popup(Me.X + (Me.W \ 2), Me.Y + (Me.H \ 2)) > > Endif > Did not work, but this > > If Key.Code = Key["Menu"] Then > > Me.PopupMenu = "Menu1" > > Menu1.Popup(Me.X + (Me.W \ 2), Me.Y + (Me.H \ 2)) > > Endif > this does work nicely, so thank you all for the snippets to test and use. > > For some reason on a much more cluttered main form even the Public Sub > Form_KeyPress() and Public Sub Form_KeyRelease() just don't seem to be > being triggered at all. Need to try and debug / break it down to find > out why. > it's a gtk bug just fixed in last master, use gb.gui.qt and everything will work, even my code. Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sun Dec 20 11:49:15 2020 From: kicking177 at gmail.com (KKing) Date: Sun, 20 Dec 2020 10:49:15 +0000 Subject: [Gambas-user] detect the "MenuKey" keypress Message-ID: <42f9eaf9-846c-81a0-0730-c558c23cacbc@gmail.com> > it's a gtk bug just fixed in last master, use gb.gui.qt and everything > will > work, even my code. So my current project has gb.gui do I simply add gb.gui.qt? and or do I have to remove gb.gui ? Is there more to switch an existing project to use qt instead? Unfortunately I have to stick to 3.12.2 as it's for a client who will only run the version of apps in Debian 10 repository. From bagonergi at gmail.com Sun Dec 20 11:58:00 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 20 Dec 2020 11:58:00 +0100 Subject: [Gambas-user] detect the "MenuKey" keypress In-Reply-To: <42f9eaf9-846c-81a0-0730-c558c23cacbc@gmail.com> References: <42f9eaf9-846c-81a0-0730-c558c23cacbc@gmail.com> Message-ID: Il giorno dom 20 dic 2020 alle ore 11:50 KKing ha scritto: > > it's a gtk bug just fixed in last master, use gb.gui.qt and everything > > will > > work, even my code. > So my current project has gb.gui do I simply add gb.gui.qt and or do I > have to remove gb.gui ? > Is there more to switch an existing project to use qt instead? > > Unfortunately I have to stick to 3.12.2 as it's for a client who will > only run the version of apps in Debian 10 repository. > > just remove the check mark in gb.gui and put it on gb.gui.qt. Then check that everything works as before... -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Sun Dec 20 11:58:43 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 20 Dec 2020 12:58:43 +0200 Subject: [Gambas-user] Add icon to WebForm Message-ID: <20201220105251.M45530@455.co.il> Hello Fedora 32 gambas 3.15.2 gb.web.gui How to change the icon of the WebForm I saw that there is only one property: Title Thanks From g4mba5 at gmail.com Sun Dec 20 14:13:00 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 20 Dec 2020 14:13:00 +0100 Subject: [Gambas-user] Add icon to WebForm In-Reply-To: <20201220105251.M45530@455.co.il> References: <20201220105251.M45530@455.co.il> Message-ID: <3559355f-2113-4c1f-71d5-db809da6029d@gmail.com> Le 20/12/2020 ? 11:58, Mayost Sharon a ?crit?: > Hello > > Fedora 32 > gambas 3.15.2 > > gb.web.gui > > How to change the icon of the WebForm I saw that there is only one property: Title > > > Thanks > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > At the moment, if you want to change the icon displayed in the web browser page, you have to define your own "favicon.png" image in the "Public" directory of your project. -- Beno?t Minisini From sharon at 455.co.il Sun Dec 20 14:45:08 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 20 Dec 2020 15:45:08 +0200 Subject: [Gambas-user] Add icon to WebForm In-Reply-To: <3559355f-2113-4c1f-71d5-db809da6029d@gmail.com> References: <20201220105251.M45530@455.co.il> <3559355f-2113-4c1f-71d5-db809da6029d@gmail.com> Message-ID: <20201220134340.M68161@455.co.il> ---------- Original Message ----------- From: Beno?t Minisini To: user at lists.gambas-basic.org Sent: Sun, 20 Dec 2020 14:13:00 +0100 Subject: Re: [Gambas-user] Add icon to WebForm > Le 20/12/2020 ? 11:58, Mayost Sharon a ?crit?: > > Hello > > > > Fedora 32 > > gambas 3.15.2 > > > > gb.web.gui > > > > How to change the icon of the WebForm I saw that there is only one property: Title > > > > > > Thanks > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > At the moment, if you want to change the icon displayed in the web > browser page, you have to define your own "favicon.png" image in the > "Public" directory of your project. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Thank you From bagonergi at gmail.com Sun Dec 20 16:23:51 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 20 Dec 2020 16:23:51 +0100 Subject: [Gambas-user] Crontab and Gambas executable Message-ID: I don't understand what happens here: 1 - I created an executable (launch.gambas) and saved it in my home 2 - I updated crontab with: 10 16 * * * /home/gian/lancio.gambas But at 16:10 the program doesn't start, what am I doing wrong? Thanks & Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Dec 20 16:25:55 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 20 Dec 2020 16:25:55 +0100 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: References: Message-ID: Il giorno dom 20 dic 2020 alle ore 16:23 Gianluigi ha scritto: > I don't understand what happens here: > > 1 - I created an executable (launch.gambas) and saved it in my home > 2 - I updated crontab with: 10 16 * * * /home/gian/lancio.gambas > > But at 16:10 the program doesn't start, what am I doing wrong? > > Thanks & Regards > Gianluigi > Edit: 1 - I created an executable (lancio.gambas) and saved it in my home 2 - I updated crontab with: 10 16 * * * /home/gian/lancio.gambas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Dec 20 16:41:26 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 20 Dec 2020 16:41:26 +0100 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: References: Message-ID: Il giorno dom 20 dic 2020 alle ore 16:25 Gianluigi ha scritto: > > > Il giorno dom 20 dic 2020 alle ore 16:23 Gianluigi > ha scritto: > >> I don't understand what happens here: >> >> 1 - I created an executable (launch.gambas) and saved it in my home >> 2 - I updated crontab with: 10 16 * * * /home/gian/lancio.gambas >> >> But at 16:10 the program doesn't start, what am I doing wrong? >> >> Thanks & Regards >> Gianluigi >> > > Edit: > 1 - I created an executable (lancio.gambas) and saved it in my home > 2 - I updated crontab with: 10 16 * * * /home/gian/lancio.gambas > I forgot: to be sure I also gave the command: sudo service cron reload Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Dec 20 17:20:45 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 20 Dec 2020 16:20:45 +0000 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: References: Message-ID: did you try with gbr3 prefix? 10 16 * * * gbr3 /home/gian/lancio.gambas Maybe crontab cannot handle filetype? All i can suggest sorry On Sun, 20 Dec 2020 at 15:42, Gianluigi wrote: > > > Il giorno dom 20 dic 2020 alle ore 16:25 Gianluigi > ha scritto: > >> >> >> Il giorno dom 20 dic 2020 alle ore 16:23 Gianluigi >> ha scritto: >> >>> I don't understand what happens here: >>> >>> 1 - I created an executable (launch.gambas) and saved it in my home >>> 2 - I updated crontab with: 10 16 * * * /home/gian/lancio.gambas >>> >>> But at 16:10 the program doesn't start, what am I doing wrong? >>> >>> Thanks & Regards >>> Gianluigi >>> >> >> Edit: >> 1 - I created an executable (lancio.gambas) and saved it in my home >> 2 - I updated crontab with: 10 16 * * * /home/gian/lancio.gambas >> > > I forgot: > to be sure I also gave the command: > sudo service cron reload > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pflora at libero.it Sun Dec 20 17:32:55 2020 From: pflora at libero.it (pflora at libero.it) Date: Sun, 20 Dec 2020 19:32:55 +0300 Subject: [Gambas-user] =?utf-8?q?Crontab_and_Gambas_executable?= In-Reply-To: References: Message-ID: <1608481975.261856630@f26.my.com> If this can help I created a gambas executable and run without any prefix, just absolute path and name. It starts normally. Try with absolute path. Better create executable in the same machine and not copy from other linux systems. Paolo -- Inviato da Libero Mail per Android domenica, 20 dicembre 2020, 05:21PM +01:00 da Bruce Steers bsteers4 at gmail.com : >did you try with gbr3 prefix? > >10 16 * * * gbr3 /home/gian/lancio.gambas > >Maybe crontab cannot handle filetype? >All i can suggest sorry > >On Sun, 20 Dec 2020 at 15:42, Gianluigi < bagonergi at gmail.com> wrote: >> >> >>Il giorno dom 20 dic 2020 alle ore 16:25 Gianluigi < bagonergi at gmail.com> ha scritto: >>> >>> >>>Il giorno dom 20 dic 2020 alle ore 16:23 Gianluigi < bagonergi at gmail.com> ha scritto: >>>>I don't understand what happens here: >>>> >>>>1 - I created an executable (launch.gambas) and saved it in my home >>>>2 - I updated crontab with: 10 16 * * * /home/gian/lancio.gambas >>>> >>>>But at 16:10 the program doesn't start, what am I doing wrong? >>>> >>>>Thanks & Regards >>>>Gianluigi >>> >>>Edit: >>>1 - I created an executable (lancio.gambas) and saved it in my home >>>2 - I updated crontab with: 10 16 * * * /home/gian/lancio.gambas >> >>I forgot: >>to be sure I also gave the command: >>sudo service cron reload >> >>Regards >>Gianluigi >> >>----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sun Dec 20 18:51:42 2020 From: kicking177 at gmail.com (KKing) Date: Sun, 20 Dec 2020 17:51:42 +0000 Subject: [Gambas-user] Crontab and Gambas executable Message-ID: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> try setting the crontab to invoke a bash script which you can put some bash style logging or output from and also trap output of trying to invoke gambas. remember crontab and bash will need full path to executables From bagonergi at gmail.com Sun Dec 20 19:56:34 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 20 Dec 2020 19:56:34 +0100 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> References: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> Message-ID: Hi, I tried all ways, it doesn't work. Thanks anyway Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From pflora at libero.it Sun Dec 20 20:18:52 2020 From: pflora at libero.it (pflora at libero.it) Date: Sun, 20 Dec 2020 22:18:52 +0300 Subject: [Gambas-user] =?utf-8?q?Crontab_and_Gambas_executable?= In-Reply-To: References: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> Message-ID: <1608491932.415490064@f35.my.com> crontab -l shows the job ? First create a script and test it in a terminal. Then call the script in crontab with sh 10 16 * * * sh /home/gian/start.sh You can track much easier the problem. ps aux | grep cron shows the daemon running ? Paolo -- Inviato da Libero Mail per Android domenica, 20 dicembre 2020, 07:57PM +01:00 da Gianluigi bagonergi at gmail.com : >Hi, > >I tried all ways, it doesn't work. > >Thanks anyway > >Gianluigi > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Dec 21 05:28:19 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 21 Dec 2020 04:28:19 +0000 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: References: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> Message-ID: did you try adding cronjob with crontab -e ? or use crontab -l to see if you cronjob is listed active after using your crontab add method. BruceS On Sun, 20 Dec 2020 at 18:57, Gianluigi wrote: > Hi, > > I tried all ways, it doesn't work. > > Thanks anyway > > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Dec 21 11:09:32 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 21 Dec 2020 11:09:32 +0100 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: References: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> Message-ID: Hi guys, @pinglix, first of all I apologize for the delay in replying. I have done everything you advised me. ? @BruceS yes, I did that. ? On the surface everything seems correct. Unfortunately for me, even a simple test like: crontab -e 50 18 * * * gedit 51 18 * * * killall -w gedit it didn't work and then Gambas is not to blame. I'm afraid it's something more serious, in trying to get my new computer working (a little too modern for Linux) I've made too many corrections and I'm afraid I'll have to review all my settings. I was hoping that the 5.4.0-58-generic kernel would be enough, but I was wrong. I will let you know if and when I will be able to normalize everything. Thanks again Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Mon Dec 21 11:55:57 2020 From: mbelmonte at belmotek.net (Martin) Date: Mon, 21 Dec 2020 11:55:57 +0100 Subject: [Gambas-user] Framalibre Message-ID: Hi, Some weeks ago I write an article about Gambas in framalibre.org but it was deleted because it was written in English instead of French [1] then they propose a link for made again (in good french) the article. I thought it might be interesting that Gambas are listed there, so I leave the information here in case someone from French-Speaking is interested in putting an article or something about Gambas in framalibre.org [1] The record you created for Gambas has been deleted : all records have to be written in French and we ask not to copy paste from an other web site (here you used Wikipedia) but to write your own texts. [2] https://participer.framasoft.org/fr/framalibre/index.html Regards. Mart?n Belmonte. From the_watchmann at yahoo.com Mon Dec 21 13:03:29 2020 From: the_watchmann at yahoo.com (David Silverwood) Date: Mon, 21 Dec 2020 12:03:29 +0000 (UTC) Subject: [Gambas-user] Resizing controls inside a window References: <2045425164.1624574.1608552209638.ref@mail.yahoo.com> Message-ID: <2045425164.1624574.1608552209638@mail.yahoo.com> Hi I am trying to resize a label (horizontally) and databrowser (horizontally & vertically) in a gambas window. I'm having a torrid time at getting it right though as the form resizes but the controls remain the same size. Been trying to search in google/duck duck go but no luck. Any pointers in the right direction, please. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Dec 21 13:51:06 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 21 Dec 2020 13:51:06 +0100 Subject: [Gambas-user] Resizing controls inside a window In-Reply-To: <2045425164.1624574.1608552209638@mail.yahoo.com> References: <2045425164.1624574.1608552209638.ref@mail.yahoo.com> <2045425164.1624574.1608552209638@mail.yahoo.com> Message-ID: Il giorno lun 21 dic 2020 alle ore 13:04 David Silverwood via User < user at lists.gambas-basic.org> ha scritto: > Hi > > I am trying to resize a label (horizontally) and databrowser (horizontally > & vertically) in a gambas window. I'm having a torrid time at getting it > right though as the form resizes but the controls remain the same size. > Been trying to search in google/duck duck go but no luck. Any pointers in > the right direction, please. > Hi David, you have to try to understand how containers work in Gambas. For example try setting the Arrangement property of the form to Fill and see what happens. Or try setting it to Vertical and setting the databrowser or the label or both to Expand = True. Use other containers and do various tests... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Dec 21 16:23:13 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 21 Dec 2020 10:23:13 -0500 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: References: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> Message-ID: On 12/21/20 5:09 AM, Gianluigi wrote: > Unfortunately for me, even a simple test like: > crontab -e > 50 18 * * * gedit > 51 18 * * * killall -w gedit > it didn't work and then Gambas is not to blame. I don't recall if you said that you verified that Cron is actually running. Depending on if you have System V or Systemd, you would need to do one of the following to check it: service crond status (or service cron status), systemctl status crond.service (or systemctl status cron.service), or systemctl status cron -- Lee From t.lee.davidson at gmail.com Mon Dec 21 17:10:30 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 21 Dec 2020 11:10:30 -0500 Subject: [Gambas-user] Resizing controls inside a window In-Reply-To: <2045425164.1624574.1608552209638@mail.yahoo.com> References: <2045425164.1624574.1608552209638.ref@mail.yahoo.com> <2045425164.1624574.1608552209638@mail.yahoo.com> Message-ID: <5a1d3969-e5ec-ca9e-5a1f-5a398f64d350@gmail.com> On 12/21/20 7:03 AM, David Silverwood via User wrote: > Hi > > I am trying to resize a label (horizontally) and databrowser (horizontally & vertically) in a gambas window. I'm having a torrid > time at getting it right though as the form resizes but the controls remain the same size. Been trying to search in google/duck > duck go but no luck. Any pointers in the right direction, please. > > David You need to enable the Expand property on the controls and set the parent control to arrange its contents. From the Wiki: Control.Expand (gb.qt4) Property Expand As Boolean Returns or sets if a control will expand if included in a container that arranges its contents. -- Lee From bagonergi at gmail.com Mon Dec 21 18:11:20 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 21 Dec 2020 18:11:20 +0100 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: References: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> Message-ID: Il giorno lun 21 dic 2020 alle ore 16:24 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > I don't recall if you said that you verified that Cron is actually > running. Depending on if you have System V or Systemd, you > would need to do one of the following to check it: > service crond status (or service cron status), > systemctl status crond.service (or systemctl status cron.service), or > systemctl status cron > Yes I think it is active since 'systemctl status cron' replies to me this: cron.service - Regular background program processing daemon Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2020-12-21 09:38:55 CET; 8h ago ... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ea7dfh at ea7dfh.com Mon Dec 21 18:32:37 2020 From: ea7dfh at ea7dfh.com (Jesus Guardon) Date: Mon, 21 Dec 2020 18:32:37 +0100 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: References: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> Message-ID: El 21/12/20 a las 18:11, Gianluigi escribi?: > Yes I think it is active since 'systemctl status cron' replies to me this: > cron.service - Regular background program processing daemon > Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor > preset: enabled) > Active: active (running) since Mon 2020-12-21 09:38:55 CET; 8h ago > ... Hi, Gianluigi Don't know if it matters, but which file are you editing? /etc/crontab? It seems to me it's much better to add a new file in any of these folders, depending on your needs: /etc/cron.d /etc/cron.daily /etc/cron/hourly , etc Also, be sure you left no spaces or blank lines at the beginning of your cron file, being or not comments as #my cron file If none of the above works for you, try to add the system path above your cron command: PATH=/usr/bin:/usr/local/bin: and so on. Hope it helps, regards! Jesus From bagonergi at gmail.com Mon Dec 21 19:52:13 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 21 Dec 2020 19:52:13 +0100 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: References: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> Message-ID: Il giorno lun 21 dic 2020 alle ore 18:33 Jesus Guardon ha scritto: Hello Jesus, happy to hear from you > > Don't know if it matters, but which file are you editing? /etc/crontab? > > yes, with the 'crontab -e' command It seems to me it's much better to add a new file in any of these > folders, depending on your needs: > > /etc/cron.d > /etc/cron.daily > /etc/cron/hourly , etc > i don't understand, i am a newbie from linux ;-D > > Also, be sure you left no spaces or blank lines at the beginning of your > cron file, being or not comments as #my cron file > > If none of the above works for you, try to add the system path above > your cron command: > > PATH=/usr/bin:/usr/local/bin: and so on. > I have done many tests, here is the last + my PATH : crontab -l # Edit this file to introduce tasks to be run by cron. # # Each task to run has to be defined through a single line # indicating with different fields when the task will be run # and what command to run for the task # # To define the time you can provide concrete values for # minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any'). # # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # # For more information see the manual pages of crontab(5) and cron(8) # # crontab Environmental settings #SHELL=/bin/bash #PATH=/sbin:/bin:/usr/sbin:/usr/bin #MAILTO=root # # Crontab Command settings # # m h dom m dow command 28 19 * * * gedit 29 20 * * * killall -w gedit echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin Thank you and regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Dec 21 21:01:29 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 21 Dec 2020 12:01:29 -0800 (PST) Subject: [Gambas-user] Tool to search Gambas Wiki, for key words Message-ID: <1340799687.503.1608580889284.JavaMail.zimbra@westwoodsvcs.com> Hi I have made a little tool to allow me to search the gambas website/wiki for information quickly. Bellow is an image of a quick search result. I have posted it to the farm, I am also including an attachment with the project for those able to download it. Its very simple/crude, it takes a few seconds to start as it fetches all the ref entries for a few key pages of the wiki when it starts. It's a first pass if anyone has any ideas to improve it please let me know... Maybe something like this could be included into the Wiki it's self. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot at 2020-12-21 11-47-14.png Type: image/png Size: 88122 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasHelpSearch-1.2.2.tar.gz Type: application/x-compressed-tar Size: 14718 bytes Desc: not available URL: From bagonergi at gmail.com Mon Dec 21 23:08:56 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 21 Dec 2020 23:08:56 +0100 Subject: [Gambas-user] Tool to search Gambas Wiki, for key words In-Reply-To: <1340799687.503.1608580889284.JavaMail.zimbra@westwoodsvcs.com> References: <1340799687.503.1608580889284.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Il giorno lun 21 dic 2020 alle ore 21:28 Brian G ha scritto: > Hi I have made a little tool to allow me to search the gambas website/wiki > for information quickly. Bellow is an image of a quick search result. I > have posted it to the farm, I am also including an attachment with the > project for those able to download it. > ... > Interesting work, congratulations, good exercise. Do you know that you can have the complete search directly in the wiki itself, by logging in? Just sign up for the bugtraker ( http://gambaswiki.org/bugtracker ). So, if you have a thorough knowledge of a topic and master the English language, as well as bug reporting and arguments research, you can also participate in writing the wiki itself and or translate it in enather language. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Dec 22 00:00:06 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 21 Dec 2020 18:00:06 -0500 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: References: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> Message-ID: On 12/21/20 1:52 PM, Gianluigi wrote: > Don't know if it matters, but which file are you editing? /etc/crontab? > > yes, with the 'crontab -e' command If you are using `crontab -e`, then you are not editing /etc/crontab. You are editing the crontab for the user that executes that command. You can check what is in your per-user crontab with `crontab -l`. User crontabs should be found in /var/spool/crontab or /var/spool/cron/tab. User crontabs do not have a 'user' field, /etc/crontab does. To check if the command is actually being run, you can check the /var/log/messages file or append something like '>/tmp/debug.out 2>&1' to the end of your crontab line. -- Lee From g4mba5 at gmail.com Tue Dec 22 00:11:52 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 22 Dec 2020 00:11:52 +0100 Subject: [Gambas-user] About Gambas and Wayland Message-ID: <58871655-b57a-3d6f-db93-26f98f295ca2@gmail.com> Hi, I have just merged the support for Wayland in the two GUI components gb.qt5 and gb.gtk3. A few important things to note: 1) gb.gtk and gb.qt4 won't support wayland. 2) Wayland support in the toolkits, GTK+3 and QT5, is not really finished, so you will have a lot of little annoying problems. It's usually the window manager's fault - we must say "compositor" now with Wayland. If you have a problem with Gnome window manager, you may not have it with KDE window manager. And conversely. 3) Some GTK+3 menu popups are not displayed at the right position at the moment, but I may be able to fix that. 4) Desktop.Platform will tell you which platform you are using. It returns "x11" or "wayland". 5) You cannot choose the platform at the moment. The underlying toolkit decides. Well, we must hope that support from GTK+3, QT5 and the different window managers will be better in the future. Enjoy it anyway! -- Beno?t Minisini From brian at westwoodsvcs.com Mon Dec 21 23:48:44 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 21 Dec 2020 14:48:44 -0800 (PST) Subject: [Gambas-user] Tool to search Gambas Wiki, for key words In-Reply-To: References: <1340799687.503.1608580889284.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <723150932.596.1608590924113.JavaMail.zimbra@westwoodsvcs.com> Yes I know that, but every time I log in as soon as i type a search string or change page the wiki immediately logs me out and never displays a response. It became very frustrating. Hence the Easy to use program that requires no login etc. Thank You Brian G From: "Gianluigi" To: "Gambas mailing list" Sent: Monday, December 21, 2020 2:08:56 PM Subject: Re: [Gambas-user] Tool to search Gambas Wiki, for key words Il giorno lun 21 dic 2020 alle ore 21:28 Brian G < [ mailto:brian at westwoodsvcs.com | brian at westwoodsvcs.com ] > ha scritto: Hi I have made a little tool to allow me to search the gambas website/wiki for information quickly. Bellow is an image of a quick search result. I have posted it to the farm, I am also including an attachment with the project for those able to download it. ... Interesting work, congratulations, good exercise. Do you know that you can have the complete search directly in the wiki itself, by logging in? Just sign up for the bugtraker ( [ http://gambaswiki.org/bugtracker | http://gambaswiki.org/bugtracker ] ). So, if you have a thorough knowledge of a topic and master the English language, as well as bug reporting and arguments research, you can also participate in writing the wiki itself and or translate it in enather language. Regards Gianluigi ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Tue Dec 22 01:17:50 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Mon, 21 Dec 2020 19:17:50 -0500 Subject: [Gambas-user] Tool to search Gambas Wiki, for key words In-Reply-To: <723150932.596.1608590924113.JavaMail.zimbra@westwoodsvcs.com> References: <1340799687.503.1608580889284.JavaMail.zimbra@westwoodsvcs.com> <723150932.596.1608590924113.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <8856d3f5-39db-2b28-73b9-5764456d246b@ajm-software.com> Why does the wiki require a login to search? It seems unnecessary.? We do need a login to edit. On 2020-12-21 5:48 p.m., Brian G wrote: > Yes I know that, but every time I log in as soon as i type a search > string or change page the wiki immediately logs me out and never > displays a response. It became very frustrating. > > Hence the Easy to use program that requires no login etc. > > Thank You > Brian G > > ------------------------------------------------------------------------ > *From: *"Gianluigi" > *To: *"Gambas mailing list" > *Sent: *Monday, December 21, 2020 2:08:56 PM > *Subject: *Re: [Gambas-user] Tool to search Gambas Wiki, for key words > > > > Il giorno lun 21 dic 2020 alle ore 21:28 Brian G > > ha scritto: > > Hi I have made a little tool to allow me to search the gambas > website/wiki for information quickly. Bellow is an image of a > quick search result. I have posted it to the farm, I am also > including an attachment with the project for those able to > download it. > ... > > > Interesting work, congratulations, good exercise. > > Do you know that you can have the complete search directly in the wiki > itself, by logging in? > Just sign up for the bugtraker ( http://gambaswiki.org/bugtracker > ). > So, if you have a thorough knowledge of a topic and master the English > language, as well as bug reporting and arguments research, you can > also participate in writing the wiki itself and or translate it in > enather language. > > Regards > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Dec 22 01:25:31 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 22 Dec 2020 01:25:31 +0100 Subject: [Gambas-user] Tool to search Gambas Wiki, for key words In-Reply-To: <8856d3f5-39db-2b28-73b9-5764456d246b@ajm-software.com> References: <1340799687.503.1608580889284.JavaMail.zimbra@westwoodsvcs.com> <723150932.596.1608590924113.JavaMail.zimbra@westwoodsvcs.com> <8856d3f5-39db-2b28-73b9-5764456d246b@ajm-software.com> Message-ID: <55fbfceb-fcb2-ae14-9839-5bbe78298297@gmail.com> Le 22/12/2020 ? 01:17, Tony Morehen a ?crit?: > Why does the wiki require a login to search? It seems unnecessary.? We > do need a login to edit. > Because it uses CPU, and I don't pay the hosting. So I don't want abuse, and searching is reserved to real people having an account. Otherwise you can use Google (or equivalent crawlers) to search the wiki site only. Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Tue Dec 22 01:40:42 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 21 Dec 2020 16:40:42 -0800 (PST) Subject: [Gambas-user] Tool to search Gambas Wiki, for key words In-Reply-To: <55fbfceb-fcb2-ae14-9839-5bbe78298297@gmail.com> References: <1340799687.503.1608580889284.JavaMail.zimbra@westwoodsvcs.com> <723150932.596.1608590924113.JavaMail.zimbra@westwoodsvcs.com> <8856d3f5-39db-2b28-73b9-5764456d246b@ajm-software.com> <55fbfceb-fcb2-ae14-9839-5bbe78298297@gmail.com> Message-ID: <385077195.785.1608597642114.JavaMail.zimbra@westwoodsvcs.com> I never figured out how to use the crawler to search the wiki, for just something like string or str* etc, The little app does that for me. perhaps that could be added to the IDE so that everyone can get quick search results, and being offloaded to the individuals computer. It would be very helpful, in a lot of cases and save doing frustrating searches with random results.... Perhaps it could be added to the gui help screen? Brian G ----- Original Message ----- From: "Beno?t Minisini" To: "Gambas mailing list" Sent: Monday, December 21, 2020 4:25:31 PM Subject: Re: [Gambas-user] Tool to search Gambas Wiki, for key words Le 22/12/2020 ? 01:17, Tony Morehen a ?crit?: > Why does the wiki require a login to search? It seems unnecessary.? We > do need a login to edit. > Because it uses CPU, and I don't pay the hosting. So I don't want abuse, and searching is reserved to real people having an account. Otherwise you can use Google (or equivalent crawlers) to search the wiki site only. Regards, -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Tue Dec 22 02:15:34 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 21 Dec 2020 17:15:34 -0800 (PST) Subject: [Gambas-user] Issues with text being less that 3 byte in list view Message-ID: <962028077.898.1608599734530.JavaMail.zimbra@westwoodsvcs.com> In a list view if the text is three byte or less then the single click event is raised randomly, sometimes not working, but at other times works fine. Double click always works. Has anyone else had this experience? using gtk3 version Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Dec 22 02:49:31 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 22 Dec 2020 02:49:31 +0100 Subject: [Gambas-user] Issues with text being less that 3 byte in list view In-Reply-To: <962028077.898.1608599734530.JavaMail.zimbra@westwoodsvcs.com> References: <962028077.898.1608599734530.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 22/12/2020 ? 02:15, Brian G a ?crit?: > In a list view if the text is three byte or less then the single click > event is raised randomly, sometimes not working, but at other times > works fine. Double click always works. > > Has anyone else had this experience? > > using gtk3 version > > Thank You > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Can you provide a sample project with that bug? -- Beno?t Minisini From mbelmonte at belmotek.net Tue Dec 22 11:38:24 2020 From: mbelmonte at belmotek.net (Martin) Date: Tue, 22 Dec 2020 11:38:24 +0100 Subject: [Gambas-user] About Gambas and Wayland In-Reply-To: <58871655-b57a-3d6f-db93-26f98f295ca2@gmail.com> References: <58871655-b57a-3d6f-db93-26f98f295ca2@gmail.com> Message-ID: <2122b0d4-cb93-79c6-8d8a-45737ddbb033@belmotek.net> Tanks Beno?t, I will see it in my testing machine. Regards On 22/12/20 0:11, Beno?t Minisini wrote: > Hi, > > I have just merged the support for Wayland in the two GUI components > gb.qt5 and gb.gtk3. > > A few important things to note: > > 1) gb.gtk and gb.qt4 won't support wayland. > > 2) Wayland support in the toolkits, GTK+3 and QT5, is not really > finished, so you will have a lot of little annoying problems. It's > usually the window manager's fault - we must say "compositor" now with > Wayland. If you have a problem with Gnome window manager, you may not > have it with KDE window manager. And conversely. > > 3) Some GTK+3 menu popups are not displayed at the right position at > the moment, but I may be able to fix that. > > 4) Desktop.Platform will tell you which platform you are using. It > returns "x11" or "wayland". > > 5) You cannot choose the platform at the moment. The underlying > toolkit decides. > > Well, we must hope that support from GTK+3, QT5 and the different > window managers will be better in the future. > > Enjoy it anyway! > From mbelmonte at belmotek.net Tue Dec 22 12:24:23 2020 From: mbelmonte at belmotek.net (Martin) Date: Tue, 22 Dec 2020 12:24:23 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: <5a023abc-d986-aaaf-474c-e2867004d112@belmotek.net> References: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> <1396f201-b772-21cb-a246-65c9d70cc13c@gmail.com> <2491c9a3-410e-cd68-a47c-7fd8f4d8a436@gmail.com> <2dcdc07b-c34c-ed2a-558f-adbe18fb5e10@belmotek.net> <09dc2039-9aa7-17bd-1154-b013516b2e26@belmotek.net> <4919fe6a-22fc-f11a-e2f2-3a69daa923a7@gmail.com> <5a023abc-d986-aaaf-474c-e2867004d112@belmotek.net> Message-ID: <94eff769-a2a3-3b2a-8dd9-1147367b5125@belmotek.net> Hi, I am blocked. I can't get the compilation of the component to work. Surely I am doing several things wrong or maybe there is a fault somewhere that I cannot see. This component is very important to advance with GauchoCAD and go from reading the content of a dwg to being able to write to it. We need the help of someone with component knowledge to figure out why compiling is not possible. Thanks. Mart?n Belmonte. On 18/12/20 10:09, Martin wrote: > ok, I try to use some similar poppler, it doesn't work. then I try > coping the configure.ac from Reini bindings, it doesn't neither, even > I change many options also run 'relink.sh' nothing seems to work. I > show the outputs of a few tries. > > || Unable to met pkg-config requirement: libredwg >= 0.10.0 > || gb.dwg is disabled > > || Unable to met pkg-config requirement: libredwg >= 0.0.11 > || gb.dwg is disabled > > || Unable to met pkg-config requirement: libredwg >= 0.0.11 > || gb.dwg is disabled > > Regards > > On 18/12/20 1:19, Beno?t Minisini wrote: >> Le 18/12/2020 ? 00:40, Martin a ?crit?: >>> I did everything again from a new template and delete the directory >>> created before (gb.dwg) when I do ./reconf at the end of the process >>> it tells me that the component is disabled because it cannot find >>> c_dwg.h, but it does. Did I forget to indicate it somewhere? >>> >>> Martin >>> >> >> I strongly suggest that, if libredgw relies on 'pkg-config', that you >> rewrite your 'configure.ac' file following the one of the >> 'gb.poppler' component. >> >> You are at the moment using the autoconf macros made for searching >> directories from specific files, but I made macros for using >> 'pkg-config' too. They are simpler to use. >> >> Then, as for the location of 'gb.dwg.so' and 'gb.dwg.component', I >> was talking about the location of their installation (normally >> '/usr/lib/gambas3'). This is where the IDE searches for components. >> >> Regards, >> >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Tue Dec 22 12:43:54 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 22 Dec 2020 12:43:54 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: <94eff769-a2a3-3b2a-8dd9-1147367b5125@belmotek.net> References: <41576cd0-3874-0ebf-7ac8-a2479b023124@gmail.com> <1528e8d3-b7c8-6eb7-86c0-4ff6a8393d9e@belmotek.net> <1396f201-b772-21cb-a246-65c9d70cc13c@gmail.com> <2491c9a3-410e-cd68-a47c-7fd8f4d8a436@gmail.com> <2dcdc07b-c34c-ed2a-558f-adbe18fb5e10@belmotek.net> <09dc2039-9aa7-17bd-1154-b013516b2e26@belmotek.net> <4919fe6a-22fc-f11a-e2f2-3a69daa923a7@gmail.com> <5a023abc-d986-aaaf-474c-e2867004d112@belmotek.net> <94eff769-a2a3-3b2a-8dd9-1147367b5125@belmotek.net> Message-ID: <25600fa0-3622-a668-86e2-73fa20db30d4@gmail.com> Le 22/12/2020 ? 12:24, Martin a ?crit?: > Hi, > > I am blocked. I can't get the compilation of the component to work. > Surely I am doing several things wrong or maybe there is a fault > somewhere that I cannot see. > This component is very important to advance with GauchoCAD and go from > reading the content of a dwg to being able to write to it. > > We need the help of someone with component knowledge to figure out why > compiling is not possible. > > Thanks. > > Mart?n Belmonte. > > Where is the code? -- Beno?t Minisini From hans at gambas-buch.de Tue Dec 22 14:01:22 2020 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 22 Dec 2020 14:01:22 +0100 Subject: [Gambas-user] WebControl.Render (gb.web.gui) ? Message-ID: <2d13d40a-4c76-e1df-5443-b8397a3b2b6c@gambas-buch.de> Hello. / //Event WebControl.Render (gb.web.form) Event Render ( ) This event is raised just after the rendering of the control, so that you can add your own HTML contents./ I did not understand the above sentence in the documentation. How do I insert my own HTML source code? A small example would be helpful. With kind regards Hans From g4mba5 at gmail.com Tue Dec 22 14:12:26 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 22 Dec 2020 14:12:26 +0100 Subject: [Gambas-user] WebControl.Render (gb.web.gui) ? In-Reply-To: <2d13d40a-4c76-e1df-5443-b8397a3b2b6c@gambas-buch.de> References: <2d13d40a-4c76-e1df-5443-b8397a3b2b6c@gambas-buch.de> Message-ID: <21b369ee-efde-1bca-21a4-4e32909339f1@gmail.com> Le 22/12/2020 ? 14:01, Hans Lehmann a ?crit?: > Hello. > / > //Event WebControl.Render (gb.web.form) > Event Render ( ) > This event is raised just after the rendering of the control, so that > you can add your own HTML contents./ > > I did not understand the above sentence in the documentation. > > How do I insert my own HTML source code? A small example would be helpful. > > With kind regards > > Hans > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- With the Print instruction. -- Beno?t Minisini From charlie at cogier.com Tue Dec 22 13:56:18 2020 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 22 Dec 2020 12:56:18 +0000 Subject: [Gambas-user] Resizing controls inside a window In-Reply-To: <2045425164.1624574.1608552209638@mail.yahoo.com> References: <2045425164.1624574.1608552209638.ref@mail.yahoo.com> <2045425164.1624574.1608552209638@mail.yahoo.com> Message-ID: <1811756d-38c2-a9cf-7876-1129cdcad9be@cogier.com> On 21/12/2020 12:03, David Silverwood via User wrote: > Hi > > I am trying to resize a label (horizontally) and databrowser > (horizontally & vertically) in a gambas window. I'm having a torrid > time at getting it right though as the form resizes but the controls > remain the same size. Been trying to search in google/duck duck go but > no luck. Any pointers in the right direction, please. > > David > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Hi David, Have a look at the attached. It shows a simple expand example and also points to a program that may help. Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestNew-0.0.2.tar.gz Type: application/gzip Size: 11933 bytes Desc: not available URL: From bsteers4 at gmail.com Tue Dec 22 15:18:37 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 22 Dec 2020 14:18:37 +0000 Subject: [Gambas-user] Tool to search Gambas Wiki, for key words In-Reply-To: <55fbfceb-fcb2-ae14-9839-5bbe78298297@gmail.com> References: <1340799687.503.1608580889284.JavaMail.zimbra@westwoodsvcs.com> <723150932.596.1608590924113.JavaMail.zimbra@westwoodsvcs.com> <8856d3f5-39db-2b28-73b9-5764456d246b@ajm-software.com> <55fbfceb-fcb2-ae14-9839-5bbe78298297@gmail.com> Message-ID: It would be nice to be able to search our downloaded offline wiki google (and other crawlers) are a bit rubbish with gambas , i mostly get results about tapas bars selling prawn dishes lol ;) What app would you have to edit to enable this? i see in the source dir there's gb.wiki and gambas.wiki Have not looked into it but you may already have the code BrianG It's just figuring out where to put it. Searching the local files should also be much quicker than dealing with the web. And wouldn't abuse the servers. Good idea though Brian :) BruceS On Tue, 22 Dec 2020 at 00:26, Beno?t Minisini wrote: > Le 22/12/2020 ? 01:17, Tony Morehen a ?crit : > > Why does the wiki require a login to search? It seems unnecessary. We > > do need a login to edit. > > > > Because it uses CPU, and I don't pay the hosting. So I don't want abuse, > and searching is reserved to real people having an account. > > Otherwise you can use Google (or equivalent crawlers) to search the wiki > site only. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Tue Dec 22 15:42:39 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Tue, 22 Dec 2020 15:42:39 +0100 Subject: [Gambas-user] error mesage Message-ID: Hi, every time I run a certain program in the IDE I get this message. / //(vl:26743): Gtk-CRITICAL **: 13:33:43.984: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkNotebook/ What is wrong here. Thanks in advance, Dag -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Dec 22 16:13:43 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 22 Dec 2020 16:13:43 +0100 Subject: [Gambas-user] Tool to search Gambas Wiki, for key words In-Reply-To: References: <1340799687.503.1608580889284.JavaMail.zimbra@westwoodsvcs.com> <723150932.596.1608590924113.JavaMail.zimbra@westwoodsvcs.com> <8856d3f5-39db-2b28-73b9-5764456d246b@ajm-software.com> <55fbfceb-fcb2-ae14-9839-5bbe78298297@gmail.com> Message-ID: <841dd8c6-2d12-3bc0-6ca9-fc2386c21979@gmail.com> Le 22/12/2020 ? 15:18, Bruce Steers a ?crit?: > It would be nice to be able to search our downloaded offline wiki > > google (and other crawlers) are a bit rubbish with gambas , i mostly get > results about tapas bars selling prawn dishes lol ;) You have to add "+site:gambaswiki.org" to your request, so that Google returns only the results on 'gambaswiki.org'. You have to configure the language you prefer too. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Tue Dec 22 16:20:42 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 22 Dec 2020 16:20:42 +0100 Subject: [Gambas-user] error mesage In-Reply-To: References: Message-ID: <39feca0f-7cc0-9851-ea29-326fd84ba258@gmail.com> Le 22/12/2020 ? 15:42, Dag Jarle Nerland Johansen - Gambas a ?crit?: > Hi, > every time I run a certain program in the IDE I get this message. > / > //(vl:26743): Gtk-CRITICAL **: 13:33:43.984: gtk_box_gadget_distribute: > assertion 'size >= 0' failed in GtkNotebook/ > > What is wrong here. > Thanks in advance, > Dag > > This is GTK+ as usual. They implement a new widget drawing system during GTK+3. As soon as this system cannot resize a sub-element, it emits a warning. Then I don't know what it does exactly, this is not documented. I hope it does the right thing, i.e. hide this sub-element, but who knows? The problem is that these resizing problems entirely depend on the widget theme, so you cannot know by advance if you will get these warnings or not. I succeeded in avoiding a lot of these warning with a big bunch of tricks and workarounds. At the moment, with the Breeze GTK+ theme, I mostly have only warnings with scrollbars for reasons I don't understand. But I guess with other themes, on some controls, you will have other warnings... But don't worry, I guess all that will be worse with GTK+4. Is there some sort of contest for the worse GUI toolkit in the world? -- Beno?t Minisini From bsteers4 at gmail.com Tue Dec 22 18:12:08 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 22 Dec 2020 17:12:08 +0000 Subject: [Gambas-user] error mesage In-Reply-To: <39feca0f-7cc0-9851-ea29-326fd84ba258@gmail.com> References: <39feca0f-7cc0-9851-ea29-326fd84ba258@gmail.com> Message-ID: haha , yeah GTK4 will will do things entirely differently just to be annoying :D I'm re-assured to know almost everything i run in a terminal from zenity to pluma all give out a bunch of gtk warnings depending on my widget theme. so gambas is in no way alone, On Tue, 22 Dec 2020 at 15:21, Beno?t Minisini wrote: > Le 22/12/2020 ? 15:42, Dag Jarle Nerland Johansen - Gambas a ?crit : > > Hi, > > every time I run a certain program in the IDE I get this message. > > / > > //(vl:26743): Gtk-CRITICAL **: 13:33:43.984: gtk_box_gadget_distribute: > > assertion 'size >= 0' failed in GtkNotebook/ > > > > What is wrong here. > > Thanks in advance, > > Dag > > > > > > This is GTK+ as usual. > > They implement a new widget drawing system during GTK+3. > > As soon as this system cannot resize a sub-element, it emits a warning. > Then I don't know what it does exactly, this is not documented. I hope > it does the right thing, i.e. hide this sub-element, but who knows? > > The problem is that these resizing problems entirely depend on the > widget theme, so you cannot know by advance if you will get these > warnings or not. > > I succeeded in avoiding a lot of these warning with a big bunch of > tricks and workarounds. At the moment, with the Breeze GTK+ theme, I > mostly have only warnings with scrollbars for reasons I don't > understand. But I guess with other themes, on some controls, you will > have other warnings... > > But don't worry, I guess all that will be worse with GTK+4. > > Is there some sort of contest for the worse GUI toolkit in the world? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Dec 22 23:33:22 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 22 Dec 2020 22:33:22 +0000 Subject: [Gambas-user] No application-x-gambas icon in new ubuntu/debian Message-ID: Hi. I've recently compiled latest gambas on debian 11 and ubuntu 21. Install was mostly okay apart from the gambas exe's do not show the application-x-gambas3 icon. On both debian and ubuntu. The mime type is okay as icon double click works just no orange icon. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed Dec 23 05:00:37 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Wed, 23 Dec 2020 07:00:37 +0300 Subject: [Gambas-user] =?utf-8?q?Issues_with_text_being_less_that_3_byte_?= =?utf-8?q?in_list_view?= In-Reply-To: References: <962028077.898.1608599734530.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1608696037.348056837@f17.my.com> Ok -- Thanks Brian Monday, 21 December 2020, 05:50PM -08:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 22/12/2020 ? 02:15, Brian G a ?crit?: > In a list view if the text is three byte or less then the single click > event is raised randomly, sometimes not working, but at other times > works fine. Double click always works. > > Has anyone else had this experience? > > using gtk3 version > > Thank You > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > >Can you provide a sample project with that bug? > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ea7dfh at ea7dfh.com Wed Dec 23 12:30:45 2020 From: ea7dfh at ea7dfh.com (Jesus Guardon) Date: Wed, 23 Dec 2020 12:30:45 +0100 Subject: [Gambas-user] Tool to search Gambas Wiki, for key words In-Reply-To: References: <1340799687.503.1608580889284.JavaMail.zimbra@westwoodsvcs.com> <723150932.596.1608590924113.JavaMail.zimbra@westwoodsvcs.com> <8856d3f5-39db-2b28-73b9-5764456d246b@ajm-software.com> <55fbfceb-fcb2-ae14-9839-5bbe78298297@gmail.com> Message-ID: El 22/12/20 a las 15:18, Bruce Steers escribi?: > google (and other crawlers) are a bit rubbish with gambas , i mostly get > results about tapas bars selling prawn dishes lol ;) Well, that's true if you are not filtering the results. You can add "site:gambaswiki.org" to your search terms or use a custom search created with a tool provided by them. This is the page you may use to program your custom searches: https://programmablesearchengine.google.com/cse/create/new And this one is a gambaswiki.org custom search made by this tool. Yeah, simple enough and rudimentary, but it works. https://cse.google.com/cse?cx=47ba325fafb4a5256 You could then add this link to your bookmarks and you're done! Regards Jesus From kicking177 at gmail.com Wed Dec 23 13:42:41 2020 From: kicking177 at gmail.com (KKing) Date: Wed, 23 Dec 2020 12:42:41 +0000 Subject: [Gambas-user] Date fun again - IsDate and CDate localisation? Message-ID: <9e75d59d-fa32-0639-eaba-962e01199778@gmail.com> So I'm in UK so expect dates in format dd/mm/yyyy using G 3.12.2 on trying to validate a source feed file ...? I have the following. > Dim strTest As String > Dim dteTest As Date > strTest = "14/01/2000 00:00:00" > If IsDate(strTest) Then > ?? dteTest = CDate(strTest) > Else > ?? dteTest = CDate(strTest) > Endif When I have strTest = "14/01/2020 00:00:00" it passes the "IsDate" test but then fails on the CDate line with "type mismatch: wanted Date, got string instead. If I have strTest = "01/14/2020 00:00:00" it passes both ... why? Is there some sort of localisation within Gambas I have to set? K. From jean-yvon.renaut at wanadoo.fr Wed Dec 23 17:55:17 2020 From: jean-yvon.renaut at wanadoo.fr (Jean-Yvon) Date: Wed, 23 Dec 2020 17:55:17 +0100 Subject: [Gambas-user] IDE and VERSION Message-ID: <7064253f-48dd-f90a-3b07-9da1b7dd29ff@wanadoo.fr> Hello, In the IDE, menu "project" -> "properties". There is a box to hold: "Get from a 'VERSION' file" When the IDE is closed the box does not hold. Merry Christmas to all JY -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 23 18:33:40 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 23 Dec 2020 17:33:40 +0000 Subject: [Gambas-user] IDE and VERSION In-Reply-To: <7064253f-48dd-f90a-3b07-9da1b7dd29ff@wanadoo.fr> References: <7064253f-48dd-f90a-3b07-9da1b7dd29ff@wanadoo.fr> Message-ID: Do you have a VERSION file in top dir? in the gambas source dir in the main dir there is a file called VERSION that contains the text 3.15.90 BruceS On Wed, 23 Dec 2020 at 16:56, Jean-Yvon wrote: > Hello, > In the IDE, menu "project" -> "properties". > There is a box to hold: "Get from a 'VERSION' file" > When the IDE is closed the box does not hold. > > Merry Christmas to all > JY > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 23 18:45:56 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 23 Dec 2020 17:45:56 +0000 Subject: [Gambas-user] IDE and VERSION In-Reply-To: References: <7064253f-48dd-f90a-3b07-9da1b7dd29ff@wanadoo.fr> Message-ID: Hmm no sorry i just tried it with a VERSION file. The setting gets saved in the .project file but the IDE does not seem to see it on project load. One for the bugtracker i think.. BruceS On Wed, 23 Dec 2020 at 17:33, Bruce Steers wrote: > Do you have a VERSION file in top dir? > > in the gambas source dir in the main dir there is a file called VERSION > that contains the text > 3.15.90 > > BruceS > > On Wed, 23 Dec 2020 at 16:56, Jean-Yvon > wrote: > >> Hello, >> In the IDE, menu "project" -> "properties". >> There is a box to hold: "Get from a 'VERSION' file" >> When the IDE is closed the box does not hold. >> >> Merry Christmas to all >> JY >> >> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Wed Dec 23 21:50:15 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 23 Dec 2020 22:50:15 +0200 Subject: [Gambas-user] dynamically timer gb.web.gui Message-ID: <20201223204911.M6577@455.co.il> Hello When I dynamically add a timer As the following code: Export Public hConsoleTimer As Timer Public Sub WebForm_Open() hConsoleTimer = New Timer As "MyTimer" hConsoleTimer.Delay = 1000 hConsoleTimer.Enabled = True End Public Sub MyTimer_Timer() WebLabel1.Text = CString(Now()) End It went into the event But on the page I do not see the changes of time If I manually add a timer and put it on the WebForm it works fine. Thanks From sharon at 455.co.il Wed Dec 23 22:08:55 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 23 Dec 2020 23:08:55 +0200 Subject: [Gambas-user] fill color WebProgressBar Message-ID: <20201223210527.M89504@455.co.il> hello How to change the fill color of the WebProgressBar Thanks From Karl.Reinl at Fen-Net.de Thu Dec 24 00:19:05 2020 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Thu, 24 Dec 2020 00:19:05 +0100 Subject: [Gambas-user] Time string to Date Message-ID: Salut, did I miss something? Before when I converted a Time string with Val the result was a gb.Date and the value a Time. Now I get with val(Format(Now,"hh:mm")) '. 22:12:37' the Date part is present as a Point. Any idea? From Karl.Reinl at fen-net.de Thu Dec 24 00:41:11 2020 From: Karl.Reinl at fen-net.de (Charlie Reinl) Date: Thu, 24 Dec 2020 00:41:11 +0100 Subject: [Gambas-user] Time string to Date Message-ID: Salut, did I miss something? Before when I converted a Time string with Val the result was a gb.Date and the value a Time. Now I get with val(Format(Now,"hh:mm")) '. 22:12:37' the Date part is present as a Point. Any idea? Sorry : val(Format(Now,"hh:mm")) should be val(Format(Now,"hh:nn")) -- Amicalement Charlie From Karl.Reinl at fen-net.de Thu Dec 24 16:23:51 2020 From: Karl.Reinl at fen-net.de (Charlie Reinl) Date: Thu, 24 Dec 2020 16:23:51 +0100 Subject: [Gambas-user] Time string to Date Message-ID: Salut, did I miss something? Before when I converted a Time string with Val the result was a gb.Date and the value a Time. Now I get with val(Format(Now,"hh:mm")) '. 22:12:37' the Date part is present as a Point. Any idea? Sorry : val(Format(Now,"hh:mm")) should be val(Format(Now,"hh:nn")) Ok, now I see clearer, and went back from daafba28dcd4174586677334236b458096a6aadc HEAD to ecb11f6552be93c234f0acc624f342f04971731b Now val(Format(Now,"hh:nn")) is '22:12:37' back again, no more leading Date-dot in Time -- Amicalement Charlie From sharon at 455.co.il Thu Dec 24 17:58:01 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 24 Dec 2020 18:58:01 +0200 Subject: [Gambas-user] SHELL or EXEC background with gb.web.gui Message-ID: <20201224165718.M15415@455.co.il> Hello (For example I did sleep but in practice I need to run a command to convert that it takes some time) I'm trying to run any command in the background without WAIT so: Export Public Sub WebTimer1_Timer() WebLabel1.Text = Now() End Public Sub WebButton1_Click() Dim hProcess As Process hProcess = Shell "sleep 5" As "myp" End Public Sub myp_Kill() WebLabel2.Text = "Kill" End I see that it continues to the next line but on the page I see that the time display is stopped until the end of the command. At the end of the command he does not update what is inside the Kill event WebLabel2.Text = "Kill" From g4mba5 at gmail.com Thu Dec 24 19:24:47 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 24 Dec 2020 19:24:47 +0100 Subject: [Gambas-user] Date fun again - IsDate and CDate localisation? In-Reply-To: <9e75d59d-fa32-0639-eaba-962e01199778@gmail.com> References: <9e75d59d-fa32-0639-eaba-962e01199778@gmail.com> Message-ID: <506e60a3-0720-5462-eaab-a1dd4d7af4d7@gmail.com> Le 23/12/2020 ? 13:42, KKing a ?crit?: > So I'm in UK so expect dates in format dd/mm/yyyy using G 3.12.2 on > trying to validate a source feed file ...? I have the following. > >> Dim strTest As String >> Dim dteTest As Date >> strTest = "14/01/2000 00:00:00" >> If IsDate(strTest) Then >> ?? dteTest = CDate(strTest) >> Else >> ?? dteTest = CDate(strTest) >> Endif > > When I have strTest = "14/01/2020 00:00:00" it passes the "IsDate" test > but then fails on the CDate line with "type mismatch: wanted Date, got > string instead. > > If I have strTest = "01/14/2020 00:00:00" it passes both ... why? > > Is there some sort of localisation within Gambas I have to set? > > K. > It's normal. IsDate() checks for local date, whereas CDate() does not. It only uses "C" date, i.e. American ones. Look at the documentation, it's written when a date function is for local dates or not. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Thu Dec 24 19:32:16 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 24 Dec 2020 18:32:16 +0000 Subject: [Gambas-user] SHELL or EXEC background with gb.web.gui In-Reply-To: <20201224165718.M15415@455.co.il> References: <20201224165718.M15415@455.co.il> Message-ID: Hi. I would do something like this.. (writing this code ad-lib so not tested it) Create a timer to monitor the running shell process for Process.Running and clean up when finished that way. Export Public hProcess As Process Public Sub WebTimer1_Timer() WebLabel1.Text = Now() End Public Sub WebButton1_Click() hProcess = Shell "sleep 5" ProcessTimer.Start End Public Sub ProcessTimer_Timer() If hProcess.State = Process.Running Then Return ProcessTimer.Stop If hProcess Then hProcess.Kill() WebLabel2.Text = "Kill" End BruceS On Thu, 24 Dec 2020 at 16:59, Mayost Sharon wrote: > Hello > > (For example I did sleep but in practice I need to run a command to > convert that it takes some time) > > I'm trying to run any command in the background without WAIT > > so: > > Export > > Public Sub WebTimer1_Timer() > > WebLabel1.Text = Now() > > End > > Public Sub WebButton1_Click() > > Dim hProcess As Process > > hProcess = Shell "sleep 5" As "myp" > > End > > Public Sub myp_Kill() > > WebLabel2.Text = "Kill" > > End > > > I see that it continues to the next line but on the page I see that the > time display is stopped until the end of the command. > > At the end of the command he does not update what is inside the Kill event > WebLabel2.Text = "Kill" > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Dec 24 19:47:06 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 24 Dec 2020 19:47:06 +0100 Subject: [Gambas-user] dynamically timer gb.web.gui In-Reply-To: <20201223204911.M6577@455.co.il> References: <20201223204911.M6577@455.co.il> Message-ID: Le 23/12/2020 ? 21:50, Mayost Sharon a ?crit?: > Hello > > When I dynamically add a timer > As the following code: > > Export > > Public hConsoleTimer As Timer > > Public Sub WebForm_Open() > > hConsoleTimer = New Timer As "MyTimer" > hConsoleTimer.Delay = 1000 > hConsoleTimer.Enabled = True > > End > > Public Sub MyTimer_Timer() > > WebLabel1.Text = CString(Now()) > > End > > It went into the event > But on the page I do not see the changes of time > > If I manually add a timer and put it on the WebForm it works fine. > > Thanks > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It's because the GUI creates a "WebTimer", not a "Timer". "Timer" ticks internally in the session server process, and can't force an update of the web browser client, whereas "WebTimer" ticks in the client web browser, and then can update the interface. The update of the web page can only be done in a response to a request. It cannot be forced from the server if a request has not been initiated from the web browser, i.e. from a GUI event (bouton click, WebTimer tick...). -- Beno?t Minisini From bsteers4 at gmail.com Thu Dec 24 19:53:02 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 24 Dec 2020 18:53:02 +0000 Subject: [Gambas-user] SHELL or EXEC background with gb.web.gui In-Reply-To: <20201224165718.M15415@455.co.il> References: <20201224165718.M15415@455.co.il> Message-ID: Also , looking at it and again without testing i'd say try not using the As "myp" and just using the default... *Public Sub Process_Kill()* *WebLabel2.Text = "Kill" End* On Thu, 24 Dec 2020 at 16:59, Mayost Sharon wrote: > Hello > > (For example I did sleep but in practice I need to run a command to > convert that it takes some time) > > I'm trying to run any command in the background without WAIT > > so: > > Export > > Public Sub WebTimer1_Timer() > > WebLabel1.Text = Now() > > End > > Public Sub WebButton1_Click() > > Dim hProcess As Process > > hProcess = Shell "sleep 5" As "myp" > > End > > Public Sub myp_Kill() > > WebLabel2.Text = "Kill" > > End > > > I see that it continues to the next line but on the page I see that the > time display is stopped until the end of the command. > > At the end of the command he does not update what is inside the Kill event > WebLabel2.Text = "Kill" > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Dec 24 20:29:13 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 24 Dec 2020 20:29:13 +0100 Subject: [Gambas-user] SHELL or EXEC background with gb.web.gui In-Reply-To: <20201224165718.M15415@455.co.il> References: <20201224165718.M15415@455.co.il> Message-ID: Le 24/12/2020 ? 17:58, Mayost Sharon a ?crit : > Hello > > (For example I did sleep but in practice I need to run a command to > convert that it takes some time) > > I'm trying to run any command in the background without WAIT > > so: > > Export > > Public Sub WebTimer1_Timer() > > WebLabel1.Text = Now() > > End > > Public Sub WebButton1_Click() > > Dim hProcess As Process > > hProcess = Shell "sleep 5" As "myp" > > End > > Public Sub myp_Kill() > > WebLabel2.Text = "Kill" > > End > > > I see that it continues to the next line but on the page I see that > the time display is stopped until the end of the command. Normally WebTimer1_Timer() should work as expected. Can you post your project? > > At the end of the command he does not update what is inside the Kill > event WebLabel2.Text = "Kill" Alas, as I explained in the other mail, rhe server cannot trigger anything on the client. It can only act in the response of a request coming from the client, which is normally a GUI interaction or a WebTimer tick. Maybe there is two possible tricks : 1) Opening a request forever, so that at any moment the server can act by responding to it. The problem is that request timeout can occur at any moment. But maybe it is enough to restart the request in that case. 2) Using "WebSocket", a browser feature. But I have never used it, and never looked at the documentation. So maybe this is not possible. Regards, -- Beno?t Minisini From sharon at 455.co.il Thu Dec 24 20:57:07 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 24 Dec 2020 21:57:07 +0200 Subject: [Gambas-user] SHELL or EXEC background with gb.web.gui In-Reply-To: References: <20201224165718.M15415@455.co.il> Message-ID: <20201224195534.M72314@455.co.il> I see in the documentation of gambas: In Gambas 3, there is no default event name anymore. In other words, you must add AS "Process" to get the same behaviour as Gambas 2. ---------- Original Message ----------- From: Bruce Steers To: Gambas Mailing List Sent: Thu, 24 Dec 2020 18:53:02 +0000 Subject: Re: [Gambas-user] SHELL or EXEC background with gb.web.gui > Also , looking at it and again without testing i'd say try not using the As > "myp" and just using the default... > > *Public Sub Process_Kill()* > > *WebLabel2.Text = "Kill" End* > > On Thu, 24 Dec 2020 at 16:59, Mayost Sharon wrote: > > > Hello > > > > (For example I did sleep but in practice I need to run a command to > > convert that it takes some time) > > > > I'm trying to run any command in the background without WAIT > > > > so: > > > > Export > > > > Public Sub WebTimer1_Timer() > > > > WebLabel1.Text = Now() > > > > End > > > > Public Sub WebButton1_Click() > > > > Dim hProcess As Process > > > > hProcess = Shell "sleep 5" As "myp" > > > > End > > > > Public Sub myp_Kill() > > > > WebLabel2.Text = "Kill" > > > > End > > > > > > I see that it continues to the next line but on the page I see that the > > time display is stopped until the end of the command. > > > > At the end of the command he does not update what is inside the Kill event > > WebLabel2.Text = "Kill" > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ------- End of Original Message ------- From sharon at 455.co.il Thu Dec 24 21:04:18 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 24 Dec 2020 22:04:18 +0200 Subject: [Gambas-user] WebButton Visible gb.web.gui Message-ID: <20201224200121.M76290@455.co.il> Hello When I run an event within: Export Public Sub WebButton3_Click() Dim var1 As String WebButton1.Visible = False var1 = "1" If var1 = "1" Then WebButton1.Visible = True Endif End The button is hidden and will not be visible again I checked for other controls and it works well Thanks From sharon at 455.co.il Thu Dec 24 21:20:31 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 24 Dec 2020 22:20:31 +0200 Subject: [Gambas-user] dynamically timer gb.web.gui In-Reply-To: References: <20201223204911.M6577@455.co.il> Message-ID: <20201224202001.M74797@455.co.il> ---------- Original Message ----------- From: Beno?t Minisini To: user at lists.gambas-basic.org Sent: Thu, 24 Dec 2020 19:47:06 +0100 Subject: Re: [Gambas-user] dynamically timer gb.web.gui > Le 23/12/2020 ? 21:50, Mayost Sharon a ?crit?: > > Hello > > > > When I dynamically add a timer > > As the following code: > > > > Export > > > > Public hConsoleTimer As Timer > > > > Public Sub WebForm_Open() > > > > hConsoleTimer = New Timer As "MyTimer" > > hConsoleTimer.Delay = 1000 > > hConsoleTimer.Enabled = True > > > > End > > > > Public Sub MyTimer_Timer() > > > > WebLabel1.Text = CString(Now()) > > > > End > > > > It went into the event > > But on the page I do not see the changes of time > > > > If I manually add a timer and put it on the WebForm it works fine. > > > > Thanks > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > It's because the GUI creates a "WebTimer", not a "Timer". > > "Timer" ticks internally in the session server process, and can't force > an update of the web browser client, whereas "WebTimer" ticks in the > client web browser, and then can update the interface. > > The update of the web page can only be done in a response to a request. > It cannot be forced from the server if a request has not been initiated > from the web browser, i.e. from a GUI event (bouton click, WebTimer > tick...). > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Thank you From mike.crean at y7mail.com Fri Dec 25 04:09:29 2020 From: mike.crean at y7mail.com (Mike Crean) Date: Fri, 25 Dec 2020 03:09:29 +0000 (UTC) Subject: [Gambas-user] Christmas References: <772779048.4288383.1608865769243.ref@mail.yahoo.com> Message-ID: <772779048.4288383.1608865769243@mail.yahoo.com> Happy Christmas to every one from down under. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Fri Dec 25 10:55:55 2020 From: kicking177 at gmail.com (KKing) Date: Fri, 25 Dec 2020 09:55:55 +0000 Subject: [Gambas-user] Date fun again - IsDate and CDate localisation? Message-ID: <28965c77-c5b5-3252-f31d-11bdabe0fc57@gmail.com> > It's normal. IsDate() checks for local date, whereas CDate() does not. > It only uses "C" date, i.e. American ones. > > Look at the documentation, it's written when a date function is for > local dates or not. ta, to me this is either inconsistent and or missing something. IMOO I would like to see them both work on local date basis and possibly have an optional localisation parameter for if and when an override may be required. K. From bsteers4 at gmail.com Fri Dec 25 11:28:46 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 25 Dec 2020 10:28:46 +0000 Subject: [Gambas-user] IDE and VERSION In-Reply-To: <7064253f-48dd-f90a-3b07-9da1b7dd29ff@wanadoo.fr> References: <7064253f-48dd-f90a-3b07-9da1b7dd29ff@wanadoo.fr> Message-ID: So i figured this one out.. Reading this from http://gambaswiki.org/wiki/comp/gb/application/version?ht=version+file If the "Get from VERSION file" checkbox is checked, the program version is taken from the first text file named VERSION found in the parent directories of the project. So answer is VERSION file must be in projects parent folder not project folder. So will have to make a sub folder and put VERSION file and project folder in that. Seems odd though, Could the VERSION file be also looked for in project folder Ben? The IDE has no tooltip or any info to say VERSION file has to be in "parent" folder. I had to search the wiki for that info. I've submitted a merge request where i've simply re-arranged the 3 loop commands so current dir is also searched for VERSION file. BruceS On Wed, 23 Dec 2020 at 16:56, Jean-Yvon wrote: > Hello, > In the IDE, menu "project" -> "properties". > There is a box to hold: "Get from a 'VERSION' file" > When the IDE is closed the box does not hold. > > Merry Christmas to all > JY > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Dec 25 12:17:09 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 25 Dec 2020 11:17:09 +0000 Subject: [Gambas-user] Christmas In-Reply-To: <772779048.4288383.1608865769243@mail.yahoo.com> References: <772779048.4288383.1608865769243.ref@mail.yahoo.com> <772779048.4288383.1608865769243@mail.yahoo.com> Message-ID: Thank you :) Merry Christmas from the Isle of Wight :) On Fri, 25 Dec 2020 at 03:10, Mike Crean via User < user at lists.gambas-basic.org> wrote: > > Happy Christmas to every one from down under. > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Fri Dec 25 13:21:28 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 25 Dec 2020 13:21:28 +0100 Subject: [Gambas-user] Merry Christmas Message-ID: <27c9ef0c-7de5-2acf-c278-109ae2bc4769@osnanet.de> What a surprise! Started Gambas3 this morning, and I found little snowfall and bells ringing Ever so cute, thank you, put a smile on my face :) Merry Christmas to everyone here, Rolf From rwe-sse at osnanet.de Fri Dec 25 13:24:58 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 25 Dec 2020 13:24:58 +0100 Subject: [Gambas-user] On Ubuntu 20 no qt4 libraries? Message-ID: <733eeb97-10c1-7a23-514b-fbac6fceddac@osnanet.de> Merry Christmas to everyone! I installed a brand new Kubuntu 20.04 on my Laptop and fetched Gambas 3.15.2 from the Gambas-team repo. Before running it, I copied .config/gambas3 from the old HDD to keep my old settings. Everything running smoothy so far. Now, when I load my projects, Gambas says "gb.qt4 and gb.qt4.ext missing" and the projects do not run properly. The two libraries aren't there in the components list, that's true. But on my Ubuntu Mate 18.04 in the office, I have never experienced any problems with this, and I do not use the repos from Ubuntu for Gambas but the same version from Gambas-team. Shouldn't they be identical? So what can I do? Thank you for your help. Rolf From Karl.Reinl at Fen-Net.de Fri Dec 25 13:46:48 2020 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Fri, 25 Dec 2020 13:46:48 +0100 Subject: [Gambas-user] On Ubuntu 20 no qt4 libraries? In-Reply-To: <733eeb97-10c1-7a23-514b-fbac6fceddac@osnanet.de> References: <733eeb97-10c1-7a23-514b-fbac6fceddac@osnanet.de> Message-ID: Am Freitag, den 25.12.2020, 13:24 +0100 schrieb Rolf-Werner Eilert: > Merry Christmas to everyone! > > I installed a brand new Kubuntu 20.04 on my Laptop and fetched > Gambas > 3.15.2 from the Gambas-team repo. > > Before running it, I copied .config/gambas3 from the old HDD to keep > my > old settings. Everything running smoothy so far. > > Now, when I load my projectthere is ns, Gambas says "gb.qt4 and > gb.qt4.ext > missing" and the projects do not run properly. The two libraries > aren't > there in the components list, that's true. > > But on my Ubuntu Mate 18.04 in the office, I have never experienced > any > problems with this, and I do not use the repos from Ubuntu for > Gambas > but the same version from Gambas-team. Shouldn't they be identical? > > So what can I do? Thank you for your help. > > Rolf > > Salut Rolf, qt4 is no longer delivered with 20.04, you have to change to qt5 (in project/properties/components) or better to gui.qt -- From rwe-sse at osnanet.de Fri Dec 25 14:13:01 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 25 Dec 2020 14:13:01 +0100 Subject: [Gambas-user] On Ubuntu 20 no qt4 libraries? In-Reply-To: References: <733eeb97-10c1-7a23-514b-fbac6fceddac@osnanet.de> Message-ID: <1b00440e-86b6-7bfa-44ca-0dfe17b7f8a5@osnanet.de> Am 25.12.20 um 13:46 schrieb Charlie Reinl: > Am Freitag, den 25.12.2020, 13:24 +0100 schrieb Rolf-Werner Eilert: >> Merry Christmas to everyone! >> >> I installed a brand new Kubuntu 20.04 on my Laptop and fetched >> Gambas >> 3.15.2 from the Gambas-team repo. >> >> Before running it, I copied .config/gambas3 from the old HDD to keep >> my >> old settings. Everything running smoothy so far. >> >> Now, when I load my projectthere is ns, Gambas says "gb.qt4 and >> gb.qt4.ext >> missing" and the projects do not run properly. The two libraries >> aren't >> there in the components list, that's true. >> >> But on my Ubuntu Mate 18.04 in the office, I have never experienced >> any >> problems with this, and I do not use the repos from Ubuntu for >> Gambas >> but the same version from Gambas-team. Shouldn't they be identical? >> >> So what can I do? Thank you for your help. >> >> Rolf >> >> > Salut Rolf, > > qt4 is no longer delivered with 20.04, you have to change to qt5 (in > project/properties/components) or better to gui.qt > Ah ok, so it adapts to missing libraries. I changed to gb.gui, and it seems to run flawlessly. What would be the advantage of gb.gui.qt over it? From Karl.Reinl at Fen-Net.de Fri Dec 25 14:24:32 2020 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Fri, 25 Dec 2020 14:24:32 +0100 Subject: [Gambas-user] On Ubuntu 20 no qt4 libraries? In-Reply-To: <1b00440e-86b6-7bfa-44ca-0dfe17b7f8a5@osnanet.de> References: <733eeb97-10c1-7a23-514b-fbac6fceddac@osnanet.de> <1b00440e-86b6-7bfa-44ca-0dfe17b7f8a5@osnanet.de> Message-ID: Am Freitag, den 25.12.2020, 14:13 +0100 schrieb Rolf-Werner Eilert: > Am 25.12.20 um 13:46 schrieb Charlie Reinl: > > Am Freitag, den 25.12.2020, 13:24 +0100 schrieb Rolf-Werner Eilert: > > > Merry Christmas to everyone! > > > > > > I installed a brand new Kubuntu 20.04 on my Laptop and fetched > > > Gambas > > > 3.15.2 from the Gambas-team repo. > > > > > > Before running it, I copied .config/gambas3 from the old HDD to > > > keep > > > my > > > old settings. Everything running smoothy so far. > > > > > > Now, when I load my projectthere is ns, Gambas says "gb.qt4 and > > > gb.qt4.ext > > > missing" and the projects do not run properly. The two libraries > > > aren't > > > there in the components list, that's true. > > > > > > But on my Ubuntu Mate 18.04 in the office, I have never > > > experienced > > > any > > > problems with this, and I do not use the repos from Ubuntu for > > > Gambas > > > but the same version from Gambas-team. Shouldn't they be > > > identical? > > > > > > So what can I do? Thank you for your help. > > > > > > Rolf > > > > > > > > Salut Rolf, > > > > qt4 is no longer delivered with 20.04, you have to change to qt5 > > (in > > project/properties/components) or better to gui.qt > > > Ah ok, so it adapts to missing libraries. I changed to gb.gui, and > it > seems to run flawlessly. What would be the advantage of gb.gui.qt > over it? > it takes the one it finds qt4 or qt5. if both, I don't know -- Amicalement Charlie From bsteers4 at gmail.com Fri Dec 25 14:25:39 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 25 Dec 2020 13:25:39 +0000 Subject: [Gambas-user] On Ubuntu 20 no qt4 libraries? In-Reply-To: <1b00440e-86b6-7bfa-44ca-0dfe17b7f8a5@osnanet.de> References: <733eeb97-10c1-7a23-514b-fbac6fceddac@osnanet.de> <1b00440e-86b6-7bfa-44ca-0dfe17b7f8a5@osnanet.de> Message-ID: gb.gui.qt will auto switch (or select with env) between qt4 and qt5. gb.gui will switch between gtk2 gtk3 qt4 and qt5 If you do not require your program to be qt (as i would have assumed you would as you used the qt4 component explicitly) then use gb.gui Here's an explanation. http://gambaswiki.org/wiki/comp/gb.gui BruceS On Fri, 25 Dec 2020 at 13:14, Rolf-Werner Eilert wrote: > > Am 25.12.20 um 13:46 schrieb Charlie Reinl: > > Am Freitag, den 25.12.2020, 13:24 +0100 schrieb Rolf-Werner Eilert: > >> Merry Christmas to everyone! > >> > >> I installed a brand new Kubuntu 20.04 on my Laptop and fetched > >> Gambas > >> 3.15.2 from the Gambas-team repo. > >> > >> Before running it, I copied .config/gambas3 from the old HDD to keep > >> my > >> old settings. Everything running smoothy so far. > >> > >> Now, when I load my projectthere is ns, Gambas says "gb.qt4 and > >> gb.qt4.ext > >> missing" and the projects do not run properly. The two libraries > >> aren't > >> there in the components list, that's true. > >> > >> But on my Ubuntu Mate 18.04 in the office, I have never experienced > >> any > >> problems with this, and I do not use the repos from Ubuntu for > >> Gambas > >> but the same version from Gambas-team. Shouldn't they be identical? > >> > >> So what can I do? Thank you for your help. > >> > >> Rolf > >> > >> > > Salut Rolf, > > > > qt4 is no longer delivered with 20.04, you have to change to qt5 (in > > project/properties/components) or better to gui.qt > > > Ah ok, so it adapts to missing libraries. I changed to gb.gui, and it > seems to run flawlessly. What would be the advantage of gb.gui.qt over it? > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Fri Dec 25 18:07:13 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 25 Dec 2020 18:07:13 +0100 Subject: [Gambas-user] On Ubuntu 20 no qt4 libraries? In-Reply-To: References: <733eeb97-10c1-7a23-514b-fbac6fceddac@osnanet.de> <1b00440e-86b6-7bfa-44ca-0dfe17b7f8a5@osnanet.de> Message-ID: The thing is, I don't know for sure. I do remember there were some things in gb.qt4.ext I used to apply, so if they can still be operated from gb.gui it will be ok. Time will show, I just cannot test every function right now. Poppler is missing, at least I get a stroked-out gb.pdf component. What can I do here, do you have an idea? Can poppler be installed, or will I have to use some alternative library in my project? The wiki just tells me "deprecated"... Regards Rolf Am 25.12.20 um 14:25 schrieb Bruce Steers: > gb.gui.qt will auto switch (or select with env) between qt4 and qt5. > gb.gui will switch between gtk2 gtk3 qt4 and qt5 > > If you do not require your program to be qt (as i would have assumed > you would as you used the qt4 component explicitly) then use gb.gui > > Here's an explanation. > http://gambaswiki.org/wiki/comp/gb.gui > BruceS > > > > > On Fri, 25 Dec 2020 at 13:14, Rolf-Werner Eilert > wrote: > > > Am 25.12.20 um 13:46 schrieb Charlie Reinl: > > Am Freitag, den 25.12.2020, 13:24 +0100 schrieb Rolf-Werner Eilert: > >> Merry Christmas to everyone! > >> > >> I installed a brand new Kubuntu 20.04 on my Laptop and fetched > >> Gambas > >> 3.15.2 from the Gambas-team repo. > >> > >> Before running it, I copied .config/gambas3 from the old HDD to > keep > >> my > >> old settings. Everything running smoothy so far. > >> > >> Now, when I load my projectthere is ns, Gambas says "gb.qt4 and > >> gb.qt4.ext > >> missing" and the projects do not run properly. The two libraries > >> aren't > >> there in the components list, that's true. > >> > >> But on my Ubuntu Mate 18.04 in the office, I have never experienced > >> any > >> problems with this, and I do not use the repos from Ubuntu for > >> Gambas > >> but the same version from Gambas-team. Shouldn't they be identical? > >> > >> So what can I do? Thank you for your help. > >> > >> Rolf > >> > >> > > Salut Rolf, > > > > qt4 is no longer delivered with 20.04, you have to change to qt5 (in > > project/properties/components) or better to gui.qt > > > Ah ok, so it adapts to missing libraries. I changed to gb.gui, and it > seems to run flawlessly. What would be the advantage of gb.gui.qt > over it? > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Dec 25 19:05:34 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 25 Dec 2020 19:05:34 +0100 Subject: [Gambas-user] On Ubuntu 20 no qt4 libraries? In-Reply-To: References: <733eeb97-10c1-7a23-514b-fbac6fceddac@osnanet.de> <1b00440e-86b6-7bfa-44ca-0dfe17b7f8a5@osnanet.de> Message-ID: Il giorno ven 25 dic 2020 alle ore 18:08 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > The thing is, I don't know for sure. I do remember there were some things > in gb.qt4.ext I used to apply, so if they can still be operated from gb.gui > it will be ok. Time will show, I just cannot test every function right now. > > Poppler is missing, at least I get a stroked-out gb.pdf component. What > can I do here, do you have an idea? Can poppler be installed, or will I > have to use some alternative library in my project? The wiki just tells me > "deprecated"... > > Regards > Rolf > I went from Ubuntu 18.04 to 20.04 without problems because I have been using gb.gui.qt for years now, which chooses the correct version of qt and works both with qt4 and qt5. If you have qt4.ext that are not handled by gb.gui.qt then you need to check the gb.qt5 and gb.qt5.ext libraries. Use gb.poppler instead of gb.pdf. I recommend you to insert a qt launcher for the ide. Write this in /home//.local/share/applications/gambas3.gambas ------------------------------------------------- [Desktop Entry] Name=Gambas3 #Exec=gambas3 Exec=env GB_GUI=gb.qt5 gambas3 GenericName=Gambas 3 IDE Comment=Gambas3 Integrated Development Environment Icon=gambas3 Terminal=false Type=Application Categories=Development;IDE; StartupNotify=true -------------------------------------------------- and when you want to start the ide with the gtk3 write gambas3 in a terminal. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Dec 25 20:37:31 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 25 Dec 2020 19:37:31 +0000 Subject: [Gambas-user] On Ubuntu 20 no qt4 libraries? In-Reply-To: References: <733eeb97-10c1-7a23-514b-fbac6fceddac@osnanet.de> <1b00440e-86b6-7bfa-44ca-0dfe17b7f8a5@osnanet.de> Message-ID: Team gambas repo has listed gb.pdf and gb.popler , are you sure you have downloaded and installed the pdf/poppler components? I do not think they auto-install when just selecting the Gambas3 install. you have to select gb.pdf or gb.poppler to install. Or use apt *sudo apt-get install gambas3-gb-pdf gambas3-gb-poppler* QT and GTK are programmed in gambas the same. there are slight differences in behaviour. Only real difference will be if you wanted a web viewer. before latest Gambas there has only been the qt-webkit so if you wanted a web viewer it had to be a QT app. Otherwise it's best to use gb.gui as then program will run on anything depending on the desktop. or at least have the choice of gui using the env prefix. BruceS On Fri, 25 Dec 2020 at 17:08, Rolf-Werner Eilert wrote: > The thing is, I don't know for sure. I do remember there were some things > in gb.qt4.ext I used to apply, so if they can still be operated from gb.gui > it will be ok. Time will show, I just cannot test every function right now. > > Poppler is missing, at least I get a stroked-out gb.pdf component. What > can I do here, do you have an idea? Can poppler be installed, or will I > have to use some alternative library in my project? The wiki just tells me > "deprecated"... > > Regards > Rolf > > > Am 25.12.20 um 14:25 schrieb Bruce Steers: > > gb.gui.qt will auto switch (or select with env) between qt4 and qt5. > gb.gui will switch between gtk2 gtk3 qt4 and qt5 > > If you do not require your program to be qt (as i would have assumed you > would as you used the qt4 component explicitly) then use gb.gui > > Here's an explanation. > http://gambaswiki.org/wiki/comp/gb.gui > BruceS > > > > > On Fri, 25 Dec 2020 at 13:14, Rolf-Werner Eilert > wrote: > >> >> Am 25.12.20 um 13:46 schrieb Charlie Reinl: >> > Am Freitag, den 25.12.2020, 13:24 +0100 schrieb Rolf-Werner Eilert: >> >> Merry Christmas to everyone! >> >> >> >> I installed a brand new Kubuntu 20.04 on my Laptop and fetched >> >> Gambas >> >> 3.15.2 from the Gambas-team repo. >> >> >> >> Before running it, I copied .config/gambas3 from the old HDD to keep >> >> my >> >> old settings. Everything running smoothy so far. >> >> >> >> Now, when I load my projectthere is ns, Gambas says "gb.qt4 and >> >> gb.qt4.ext >> >> missing" and the projects do not run properly. The two libraries >> >> aren't >> >> there in the components list, that's true. >> >> >> >> But on my Ubuntu Mate 18.04 in the office, I have never experienced >> >> any >> >> problems with this, and I do not use the repos from Ubuntu for >> >> Gambas >> >> but the same version from Gambas-team. Shouldn't they be identical? >> >> >> >> So what can I do? Thank you for your help. >> >> >> >> Rolf >> >> >> >> >> > Salut Rolf, >> > >> > qt4 is no longer delivered with 20.04, you have to change to qt5 (in >> > project/properties/components) or better to gui.qt >> > >> Ah ok, so it adapts to missing libraries. I changed to gb.gui, and it >> seems to run flawlessly. What would be the advantage of gb.gui.qt over it? >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Sat Dec 26 09:47:57 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Sat, 26 Dec 2020 14:32:57 +0545 Subject: [Gambas-user] DB.Debug in gb.web.gui Message-ID: Hi Setting Db.Debug flag to True throws all queries to standard error output. However how can I view the output of web application database queries using gb.web.gui? Regards From g4mba5 at gmail.com Sat Dec 26 18:43:51 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 26 Dec 2020 18:43:51 +0100 Subject: [Gambas-user] IDE and VERSION In-Reply-To: References: <7064253f-48dd-f90a-3b07-9da1b7dd29ff@wanadoo.fr> Message-ID: Le 25/12/2020 ? 11:28, Bruce Steers a ?crit?: > So i figured this one out.. > Reading this from > http://gambaswiki.org/wiki/comp/gb/application/version?ht=version+file > > If the "Get from VERSION file" checkbox is checked, the program version > is taken from the first text file named |VERSION| found in the parent > directories of the project. > > So answer is VERSION file must be in projects parent folder not project > folder. > So will have to make a sub folder and put VERSION file and project > folder in that. > > Seems odd though,? Could the VERSION file be also looked for in project > folder Ben? What for? The VERSION file is just a facility when you have several different projects that need to have the same version number. Otherwise, just select the version directly in the project properties dialog. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Dec 26 18:45:03 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 26 Dec 2020 18:45:03 +0100 Subject: [Gambas-user] Christmas In-Reply-To: References: <772779048.4288383.1608865769243.ref@mail.yahoo.com> <772779048.4288383.1608865769243@mail.yahoo.com> Message-ID: Le 25/12/2020 ? 12:17, Bruce Steers a ?crit?: > Thank you :) > > Merry Christmas from the Isle of Wight :) > > > On Fri, 25 Dec 2020 at 03:10, Mike Crean via User > > wrote: > > > Happy Christmas to every one from down under. > > Thank you! Merry X-Mas to everyone. I'm late, but I was not in front of my computer. :-) -- Beno?t Minisini From g4mba5 at gmail.com Sat Dec 26 18:49:38 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 26 Dec 2020 18:49:38 +0100 Subject: [Gambas-user] DB.Debug in gb.web.gui In-Reply-To: References: Message-ID: <31f4d33a-cde6-e66f-6b3c-3f73e4f0dbad@gmail.com> Le 26/12/2020 ? 09:47, Safiur Rahman a ?crit?: > Hi > > Setting Db.Debug flag to True throws all queries to standard error > output. However how can I view the output of web application database > queries using gb.web.gui? > > Regards > I'm aware of the problem. :-) I know that some web server redirect the standard error output of CGI scripts in a log file. You may look in that direction. Otherwise you must wait until I find a good solution. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sat Dec 26 21:00:12 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 26 Dec 2020 20:00:12 +0000 Subject: [Gambas-user] IDE and VERSION In-Reply-To: References: <7064253f-48dd-f90a-3b07-9da1b7dd29ff@wanadoo.fr> Message-ID: Yes, sorry , after i submitted the merge i realised and explained to Jean (they were responding privately) That i don't think it will be accepted or really needed and pretty much said what you said, if only one project may as well just use the IDE. Sorry to waste time. BruceS On Sat, 26 Dec 2020 at 17:44, Beno?t Minisini wrote: > Le 25/12/2020 ? 11:28, Bruce Steers a ?crit : > > So i figured this one out.. > > Reading this from > > http://gambaswiki.org/wiki/comp/gb/application/version?ht=version+file > > > > If the "Get from VERSION file" checkbox is checked, the program version > > is taken from the first text file named |VERSION| found in the parent > > directories of the project. > > > > So answer is VERSION file must be in projects parent folder not project > > folder. > > So will have to make a sub folder and put VERSION file and project > > folder in that. > > > > Seems odd though, Could the VERSION file be also looked for in project > > folder Ben? > > What for? The VERSION file is just a facility when you have several > different projects that need to have the same version number. > > Otherwise, just select the version directly in the project properties > dialog. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Dec 26 21:05:18 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 26 Dec 2020 21:05:18 +0100 Subject: [Gambas-user] IDE and VERSION In-Reply-To: References: <7064253f-48dd-f90a-3b07-9da1b7dd29ff@wanadoo.fr> Message-ID: <09c1d926-c5ae-5eb9-fc1e-b8b30d8db011@gmail.com> Le 26/12/2020 ? 21:00, Bruce Steers a ?crit?: > Yes, sorry , after i submitted the merge i realised and explained to > Jean (they were responding privately) That i don't think it will be > accepted or really needed and pretty much said what you said, if only > one project may as well just use the IDE. > > Sorry to waste time. > BruceS > No problem. I didn't see your merge request, I came back online this afternoon only. -- Beno?t Minisini From bsteers4 at gmail.com Sun Dec 27 01:24:35 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 27 Dec 2020 00:24:35 +0000 Subject: [Gambas-user] IDE and VERSION In-Reply-To: <09c1d926-c5ae-5eb9-fc1e-b8b30d8db011@gmail.com> References: <7064253f-48dd-f90a-3b07-9da1b7dd29ff@wanadoo.fr> <09c1d926-c5ae-5eb9-fc1e-b8b30d8db011@gmail.com> Message-ID: It's cool, the merge wasn't much. I canceled it when i saw your reply as it did confirm what i already suspected. . This loop at line 2967 in App/src/Gambas3/.src/Project.Module * sDir = Project.Dir Do sDir = File.Dir(sDir) If sDir = "/" Then Return True If Exist(sDir &/ "VERSION") Then Break Loop* I simply rearranged the order to ... * sDir = Project.Dir Do If Exist(sDir &/ "VERSION") Then Break If sDir = "/" Then Return True sDir = File.Dir(sDir) Loop* That way it also checked Project Dir (and also top level dir /). But yeah , not really needed i guess. the only reason i ever wanted to use a VERSION file for single project was to ensure Version stays the same (sometimes if i load a project and compile in different/older versions of Gambas i loose the "Do Not Increment Version" setting and it starts clocking up again) I figured a VERSION file would keep it the same. It gave me something to do on an otherwise pretty boring Christmas day at least :) All the best BruceS On Sat, 26 Dec 2020 at 20:06, Beno?t Minisini wrote: > Le 26/12/2020 ? 21:00, Bruce Steers a ?crit : > > Yes, sorry , after i submitted the merge i realised and explained to > > Jean (they were responding privately) That i don't think it will be > > accepted or really needed and pretty much said what you said, if only > > one project may as well just use the IDE. > > > > Sorry to waste time. > > BruceS > > > > No problem. I didn't see your merge request, I came back online this > afternoon only. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Sun Dec 27 11:29:44 2020 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 27 Dec 2020 11:29:44 +0100 Subject: [Gambas-user] Session.CookiePath Message-ID: <6878dbf5-1d90-42f3-3e12-c11863df1793@gambas-buch.de> Hello, while working with the Session class I used the following source code: <% ?Print "
SESSION-COOKIE-PATH = "; Application.Root; ?Print "
SESSION-COOKIE-PATH = "; CGI["SCRIPT_NAME"]; ?Print "
SESSION-COOKIE-PATH = "; Session.CookiePath; %> I expected three identical results. But these are the results: SESSION-COOKIE-PATH = SESSION-COOKIE-PATH = /. SESSION-COOKIE-PATH = Where is the error? With kind regards Hans From g4mba5 at gmail.com Sun Dec 27 13:02:01 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 27 Dec 2020 13:02:01 +0100 Subject: [Gambas-user] Session.CookiePath In-Reply-To: <6878dbf5-1d90-42f3-3e12-c11863df1793@gambas-buch.de> References: <6878dbf5-1d90-42f3-3e12-c11863df1793@gambas-buch.de> Message-ID: <1db49405-6d41-d9f6-3718-5070c40e5146@gmail.com> Le 27/12/2020 ? 11:29, Hans Lehmann a ?crit?: > Hello, > > while working with the Session class I used the following source code: > > <% > ?Print "
SESSION-COOKIE-PATH = "; Application.Root; > ?Print "
SESSION-COOKIE-PATH = "; CGI["SCRIPT_NAME"]; > ?Print "
SESSION-COOKIE-PATH = "; Session.CookiePath; > %> > > I expected three identical results. > > But these are the results: > > SESSION-COOKIE-PATH = > SESSION-COOKIE-PATH = /. > SESSION-COOKIE-PATH = > > Where is the error? > > With kind regards > > Hans > Application.Root normalizes CGI["SCRIPT_NAME"], and returns "" when its value is "./" or "/". And when Session.CookiePath is void, the contents of CGI["SCRIPT_NAME"] is used, except that "/." is replaced by "/" in that case. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Sun Dec 27 16:27:00 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 27 Dec 2020 11:27:00 -0400 Subject: [Gambas-user] IDE and VERSION In-Reply-To: References: <7064253f-48dd-f90a-3b07-9da1b7dd29ff@wanadoo.fr> Message-ID: El s?b, 26 de dic. de 2020 a la(s) 13:44, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > Le 25/12/2020 ? 11:28, Bruce Steers a ?crit : > > > > So answer is VERSION file must be in projects parent folder not project > > folder. > > So will have to make a sub folder and put VERSION file and project > > folder in that. > interersting.. i asked several months ago this and my response was unclear but not arges so much later.. but now.. i plenny understan.. but that information is not so clear in wiki! maybe is better clarify and put some context cos we have languaje barried here! take note of.. guys! > > > > Seems odd though, Could the VERSION file be also looked for in project > > folder Ben? > > What for? The VERSION file is just a facility when you have several > different projects that need to have the same version number. > > Otherwise, just select the version directly in the project properties > dialog. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sun Dec 27 20:39:22 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 27 Dec 2020 11:39:22 -0800 (PST) Subject: [Gambas-user] Tool to search Gambas Wiki, for key words In-Reply-To: References: <1340799687.503.1608580889284.JavaMail.zimbra@westwoodsvcs.com> <723150932.596.1608590924113.JavaMail.zimbra@westwoodsvcs.com> <8856d3f5-39db-2b28-73b9-5764456d246b@ajm-software.com> <55fbfceb-fcb2-ae14-9839-5bbe78298297@gmail.com> Message-ID: <537011116.482.1609097962192.JavaMail.zimbra@westwoodsvcs.com> The app allows to search for *err* or const* or any regular expression Which looks only at the ref links in the wiki which filters out a lot of the useless list that google returns, which sure helps finding what your looking for quickly .. Even when you create your own search engine. Oh well! Thank You Brian G ----- Original Message ----- From: "Jesus Guardon" To: "Gambas mailing list" Sent: Wednesday, December 23, 2020 3:30:45 AM Subject: Re: [Gambas-user] Tool to search Gambas Wiki, for key words El 22/12/20 a las 15:18, Bruce Steers escribi?: > google (and other crawlers) are a bit rubbish with gambas , i mostly get > results about tapas bars selling prawn dishes lol ;) Well, that's true if you are not filtering the results. You can add "site:gambaswiki.org" to your search terms or use a custom search created with a tool provided by them. This is the page you may use to program your custom searches: https://programmablesearchengine.google.com/cse/create/new And this one is a gambaswiki.org custom search made by this tool. Yeah, simple enough and rudimentary, but it works. https://cse.google.com/cse?cx=47ba325fafb4a5256 You could then add this link to your bookmarks and you're done! Regards Jesus ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Sun Dec 27 21:00:17 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 27 Dec 2020 12:00:17 -0800 (PST) Subject: [Gambas-user] Debug messages .. errors Message-ID: <1113505833.560.1609099217365.JavaMail.zimbra@westwoodsvcs.com> Lately I Have been getting a debug error and my app just exits this error warning: debugger I/O error: Success Has anyone else started getting this error? Any ideas what it might be. It seem to happen mostly if I sit and examine data for a while when stepping thru an app It is not repeatable it is completely random. It's OK, if you're old and grey! Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Dec 27 22:02:31 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 27 Dec 2020 21:02:31 +0000 Subject: [Gambas-user] Property Something as String Use $Something Message-ID: Example.. *Property* Something *As* String *Use* $Something I like this method as it saves time and code but i do not like this method because it also makes the $Something variable Public. Should it not be Private? I'm thinking as the Property Name "Something" is Public the "$Something" part should automatically be Private. Or if it's wanted that way could we get a UsePrivate or something? like... *Property* Something *As* String *Use**Private* $Something Or... *Property* Something *As* String *Use* *Private* $Something Or... *Property* Something *As* String *Private* $Something Thank you kindly :) Happy Yule BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Dec 27 22:22:01 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 27 Dec 2020 21:22:01 +0000 Subject: [Gambas-user] Property Something as String Use $Something In-Reply-To: References: Message-ID: > I like this method as it saves time and code but i do not like this method because it also makes the $Something variable Public. > Should it not be Private? > Turns out it's not actually a Public Variable as it says "Unknown symbol '$Something in Someclass.class'" if i try to write to it from another class/module but I can see it listed in the IDE popup. I'm thinking i found a glitch. Much love -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Dec 27 22:39:58 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 27 Dec 2020 22:39:58 +0100 Subject: [Gambas-user] Property Something as String Use $Something In-Reply-To: References: Message-ID: Il giorno dom 27 dic 2020 alle ore 22:23 Bruce Steers ha scritto: > > I like this method as it saves time and code but i do not like this > method because it also makes the $Something variable Public. > >> Should it not be Private? >> > > Turns out it's not actually a Public Variable as it says > "Unknown symbol '$Something in Someclass.class'" if i try to write to it > from another class/module but I can see it listed in the IDE popup. > > I'm thinking i found a glitch. > Much love > I had reported this in August, see here: https://lists.gambas-basic.org/pipermail/user/2020-August/069923.html Fabien Bodard's answers follow... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Dec 27 23:02:06 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 27 Dec 2020 22:02:06 +0000 Subject: [Gambas-user] Property Something as String Use $Something In-Reply-To: References: Message-ID: Aah yes , it's certainly the IDE. My guess is the popup list looks for the word Private and hides those variables but as this method does not use Private it thinks they should be shown. Did you post it on the Bugtracker? Cheers BruceS On Sun, 27 Dec 2020 at 21:41, Gianluigi wrote: > > > Il giorno dom 27 dic 2020 alle ore 22:23 Bruce Steers > ha scritto: > >> > I like this method as it saves time and code but i do not like this >> method because it also makes the $Something variable Public. >> >>> Should it not be Private? >>> >> >> Turns out it's not actually a Public Variable as it says >> "Unknown symbol '$Something in Someclass.class'" if i try to write to it >> from another class/module but I can see it listed in the IDE popup. >> >> I'm thinking i found a glitch. >> Much love >> > > I had reported this in August, see here: > > https://lists.gambas-basic.org/pipermail/user/2020-August/069923.html > > Fabien Bodard's answers follow... > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Mon Dec 28 09:43:14 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 28 Dec 2020 10:43:14 +0200 Subject: [Gambas-user] SHELL or EXEC background with gb.web.gui In-Reply-To: References: <20201224165718.M15415@455.co.il> Message-ID: <20201228084150.M24525@455.co.il> ---------- Original Message ----------- From: Beno?t Minisini To: user at lists.gambas-basic.org Sent: Thu, 24 Dec 2020 20:29:13 +0100 Subject: Re: [Gambas-user] SHELL or EXEC background with gb.web.gui > Le 24/12/2020 ? 17:58, Mayost Sharon a ?crit : > > Hello > > > > (For example I did sleep but in practice I need to run a command to > > convert that it takes some time) > > > > I'm trying to run any command in the background without WAIT > > > > so: > > > > Export > > > > Public Sub WebTimer1_Timer() > > > > WebLabel1.Text = Now() > > > > End > > > > Public Sub WebButton1_Click() > > > > Dim hProcess As Process > > > > hProcess = Shell "sleep 5" As "myp" > > > > End > > > > Public Sub myp_Kill() > > > > WebLabel2.Text = "Kill" > > > > End > > > > > > I see that it continues to the next line but on the page I see that > > the time display is stopped until the end of the command. > > Normally WebTimer1_Timer() should work as expected. Can you post your > project? > > > > > At the end of the command he does not update what is inside the Kill > > event WebLabel2.Text = "Kill" > > Alas, as I explained in the other mail, rhe server cannot trigger > anything on the client. It can only act in the response of a request > coming from the client, which is normally a GUI interaction or a > WebTimer tick. > > Maybe there is two possible tricks : > > 1) Opening a request forever, so that at any moment the server can act > by responding to it. The problem is that request timeout can occur at > any moment. But maybe it is enough to restart the request in that case. > > 2) Using "WebSocket", a browser feature. But I have never used it, and > never looked at the documentation. So maybe this is not possible. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Hello I am attaching a project Sorry It seems to me because of my English you did not understand me correctly: The shell command should run the command on the server. (Like the exec command within PHP). So my question is if the command is supposed to take a long time on the server then I can not use it? That bad! That's why in the previous email she wrote to me: do not be synchronous, be asynchronous using the event loop! It does not work I also tried to add the character "&" at the end of the command and also did not work. Many thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: test_shell.zip Type: application/zip Size: 16719 bytes Desc: not available URL: From bagonergi at gmail.com Mon Dec 28 09:48:06 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 28 Dec 2020 09:48:06 +0100 Subject: [Gambas-user] Property Something as String Use $Something In-Reply-To: References: Message-ID: Il giorno dom 27 dic 2020 alle ore 23:03 Bruce Steers ha scritto: > ... > Did you post it on the Bugtracker? > > Cheers > BruceS > Now, yes... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Dec 28 10:21:45 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 28 Dec 2020 10:21:45 +0100 Subject: [Gambas-user] Crontab and Gambas executable In-Reply-To: References: <5d75920a-63de-496d-1c88-25dd51a1b8da@gmail.com> Message-ID: Il giorno mar 22 dic 2020 alle ore 00:01 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > If you are using `crontab -e`, then you are not editing /etc/crontab. You > are editing the crontab for the user that executes > that command. You can check what is in your per-user crontab with `crontab > -l`. User crontabs should be found in > /var/spool/crontab or /var/spool/cron/tab. User crontabs do not have a > 'user' field, /etc/crontab does. > > To check if the command is actually being run, you can check the > /var/log/messages file or append something like > '>/tmp/debug.out 2>&1' to the end of your crontab line. > Sorry for the delay in replying. Cron is not suitable for launching GUI, but you could do this if you wanted to: (run gedit every 5 minutes ;-)) * / 5 * * * * env DISPLAY =: 0 gedit I decided to give up also because cron is about to be abandoned in favor of Systemd, and also it was not my problem I do not administer any system, but if I have a similar problem and I cannot solve it, do not doubt that I will not come here to to ask :-) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Dec 28 12:46:57 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 28 Dec 2020 11:46:57 +0000 Subject: [Gambas-user] Property Something as String Use $Something In-Reply-To: References: Message-ID: Excellent :) Bugtracker is a much better/official way to report things that seem wrong. I think posts on this list can get missed or forgotten about but the bugtracker is a veritable "todo" list Ben works through when he has the time. My general practice is to first ask here to check if I've actually found a bug or i'm just being an idiot lol ;) If i have not been a fool and i have found a bug then I officially add it to the bugtracker Well wishes BruceS On Mon, 28 Dec 2020 at 08:49, Gianluigi wrote: > > Il giorno dom 27 dic 2020 alle ore 23:03 Bruce Steers > ha scritto: > >> ... >> Did you post it on the Bugtracker? >> >> Cheers >> BruceS >> > > Now, yes... > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Dec 28 14:31:53 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 28 Dec 2020 13:31:53 +0000 Subject: [Gambas-user] (no subject) Message-ID: I have been looking around but not found much about getting disk drive information. like lsblk i made a component called gb.shell.tools (very WIP at mo) https://gitlab.com/bsteers4/gambas/-/tree/gb.shell.tools/comp/src/gb.shell.tools/.src The premise... Utilise some linux shell commands for things not so available/easy in gambas. (afaik) So far i've added 2 commands that use lsblk to get disk info. The first a basic ListDisks() that returns a String[] of disk paths using *lsblk -lno "PATH"* The other is LiskBlocks() that returns a DeviceInfo[] array with info lsblk finds DeviceInfo.Path DeviceInfo.Name DeviceInfo.Type DeviceInfo.Size DeviceInfo.ByteSize DeviceInfo.UUID DeviceInfo.FSType DeviceInfo.Label DeviceInfo.Mountpoint My questions are... 1. Is there a more gambas way to do this rather than using lsblk so it's not even needed? 2. Is this a good idea that maybe you could suggest other shell commands you might want added to a component like this? 3. Is this a terrible idea and i should be looking into external library functions or a gambas thing that already exists to get disk info? If it is better to use an external lib then if someone can point me in the right direction on using something like liblsblk or some other way to get disk info i'm up for making a better class. Cheers anyone BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Dec 28 14:57:34 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 28 Dec 2020 13:57:34 +0000 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: My apologies i did not add a subject :( On Mon, 28 Dec 2020 at 13:31, Bruce Steers wrote: > I have been looking around but not found much about getting disk drive > information. > > like lsblk > > i made a component called gb.shell.tools (very WIP at mo) > > https://gitlab.com/bsteers4/gambas/-/tree/gb.shell.tools/comp/src/gb.shell.tools/.src > > The premise... > Utilise some linux shell commands for things not so available/easy in > gambas. (afaik) > > So far i've added 2 commands that use lsblk to get disk info. > The first a basic ListDisks() that returns a String[] of disk paths using *lsblk > -lno "PATH"* > > The other is LiskBlocks() that returns a DeviceInfo[] array with info > lsblk finds > DeviceInfo.Path > DeviceInfo.Name > DeviceInfo.Type > DeviceInfo.Size > DeviceInfo.ByteSize > DeviceInfo.UUID > DeviceInfo.FSType > DeviceInfo.Label > DeviceInfo.Mountpoint > > My questions are... > 1. Is there a more gambas way to do this rather than using lsblk so it's > not even needed? > > 2. Is this a good idea that maybe you could suggest other shell commands > you might want added to a component like this? > > 3. Is this a terrible idea and i should be looking into external library > functions or a gambas thing > that already exists to get disk info? > > If it is better to use an external lib then if someone can point me in the > right direction on using something like liblsblk or some other way to get > disk info i'm up for making a better class. > > Cheers anyone > BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Mon Dec 28 17:04:37 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Mon, 28 Dec 2020 11:04:37 -0500 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: <6eae0ea3-99aa-f68e-a8a3-8c9244ba654c@ajm-software.com> I'd suggest a staged approach. First stage would be to put a class together and put it in the Software Farm.? People could then try it out, test it and suggest additions.? Second stage would be to add it to Gambas.? To ease packaging issues, I'd recommend adding the class to a related existing component. Some potential additions: system-related info like memory used, available, total (/proc/meminfo).? CPU usage (/proc/stat), cpu/system temps (/sys/class/hwmon or sensors), graphics (lspci | grep vga).? See PcInfo in Software Farm. Since most of this data is only needed once, the overhead involved in shell calls can be ignored.? The only data that requires frequent calls is cpu usage.? /proc/stat data is cumulative since last boot.? To get current data, you need to call it about every second. On 2020-12-28 8:57 a.m., Bruce Steers wrote: > My apologies i did not add a subject :( > > > On Mon, 28 Dec 2020 at 13:31, Bruce Steers > wrote: > > I have been looking around but not found much about getting disk > drive information. > > like lsblk > > i made a component called gb.shell.tools (very WIP at mo) > https://gitlab.com/bsteers4/gambas/-/tree/gb.shell.tools/comp/src/gb.shell.tools/.src > > > The premise... > Utilise some linux shell commands for things not so available/easy > in gambas. (afaik) > > So far i've added 2 commands that use lsblk to get disk info. > The first a basic ListDisks() that returns a String[] of disk > paths using *lsblk -lno "PATH"* > > The other is LiskBlocks() that returns a DeviceInfo[] array with > info lsblk finds > DeviceInfo.Path > DeviceInfo.Name > DeviceInfo.Type > DeviceInfo.Size > DeviceInfo.ByteSize > DeviceInfo.UUID > DeviceInfo.FSType > DeviceInfo.Label > DeviceInfo.Mountpoint > > My questions are... > 1. Is there a more gambas way to do this rather than using lsblk > so it's not even needed? > > 2. Is this a good idea that maybe you could suggest other shell > commands you might want added to a component like this? > > 3. Is this a terrible idea and i should be looking into external > library functions or a gambas thing > that already exists to get disk info? > > If it is better to use an external lib then if someone can point > me in the right direction on using something like liblsblk or some > other way to get disk info i'm up for making a better class. > > Cheers anyone > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Dec 28 18:16:02 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 28 Dec 2020 18:16:02 +0100 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: Le 28/12/2020 ? 14:31, Bruce Steers a ?crit?: > I have been looking around but not found much about getting disk drive > information. > > like lsblk > > i made a component called gb.shell.tools (very WIP at mo) > https://gitlab.com/bsteers4/gambas/-/tree/gb.shell.tools/comp/src/gb.shell.tools/.src > Such things should not be Linux-only. They should work on BSD too. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Mon Dec 28 21:20:32 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 28 Dec 2020 20:20:32 +0000 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: okay , downloading FreeBSD and OpenBSD now, will see what i can discover. I have some other ideas for it like maybe being able to quickly add custom shell commands somehow as i have with lsblk and get the output in object form or other. Not sure where else to go with "shell.tools" yet though as I say a WIP. possible potential. On Mon, 28 Dec 2020 at 17:17, Beno?t Minisini wrote: > Le 28/12/2020 ? 14:31, Bruce Steers a ?crit : > > I have been looking around but not found much about getting disk drive > > information. > > > > like lsblk > > > > i made a component called gb.shell.tools (very WIP at mo) > > > https://gitlab.com/bsteers4/gambas/-/tree/gb.shell.tools/comp/src/gb.shell.tools/.src > > > > Such things should not be Linux-only. They should work on BSD too. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Tue Dec 29 08:01:12 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 29 Dec 2020 08:01:12 +0100 Subject: [Gambas-user] Disk devices info and management Message-ID: >From Bruce : I have been looking around but not found much about getting disk drive information. like lsblk i made a component called gb.shell.tools (very WIP at mo) https://gitlab.com/bsteers4/gambas/-/tree/gb.shell.tools/comp/src/gb.shell.tools/.src The premise... Utilise some linux shell commands for things not so available/easy in gambas. (afaik) So far i've added 2 commands that use lsblk to get disk info. The first a basic ListDisks() that returns a String[] of disk paths using *lsblk -lno "PATH"* The other is LiskBlocks() that returns a DeviceInfo[] array with info lsblk finds DeviceInfo.Path DeviceInfo.Name DeviceInfo.Type DeviceInfo.Size DeviceInfo.ByteSize DeviceInfo.UUID DeviceInfo.FSType DeviceInfo.Label DeviceInfo.Mountpoint My questions are... 1. Is there a more gambas way to do this rather than using lsblk so it's not even needed? 2. Is this a good idea that maybe you could suggest other shell commands you might want added to a component like this? 3. Is this a terrible idea and i should be looking into external library functions or a gambas thing that already exists to get disk info? If it is better to use an external lib then if someone can point me in the right direction on using something like liblsblk or some other way to get disk info i'm up for making a better class. Cheers anyone BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Tue Dec 29 08:12:26 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 29 Dec 2020 08:12:26 +0100 Subject: [Gambas-user] Disk devices info and management In-Reply-To: References: Message-ID: I've found this script to imitate lsblk on bsd. https://forums.freebsd.org/threads/lsblk-8-command-for-freebsd.56008/ I've already done a similar work on a udev dbus way. But not finished. Maybe the both can be fusionnate ? The goal will be to have a more advanced internal open dialog. Your component have to manage device info but also devices events are reallly important. The structure of returned infos must be in the most Gambas way. (Mine is not good too) Regards, Fabien -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Tue Dec 29 13:49:13 2020 From: mbelmonte at belmotek.net (Martin) Date: Tue, 29 Dec 2020 13:49:13 +0100 Subject: [Gambas-user] Warnings report Message-ID: Hi, I am trying to create an executable .gambas and because my project has many warnings I cannot do it. To organize the debugging between several developers I would like to be able to distribute the tasks and for this, since it is a lot of warnings, I would like to have a file in which all these are listed. It's possible? thanks MB. From gambas.fr at gmail.com Tue Dec 29 15:05:31 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 29 Dec 2020 15:05:31 +0100 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: This is my first try... last year -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture d??cran du 2020-12-29 15-03-08.png Type: image/png Size: 131057 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.disks-0.0.1.zip Type: application/zip Size: 16117 bytes Desc: not available URL: From bsteers4 at gmail.com Tue Dec 29 15:46:21 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 29 Dec 2020 14:46:21 +0000 Subject: [Gambas-user] Disk devices info and management In-Reply-To: References: Message-ID: lsblk is available on BSD, "pkg install lsblk" but it's output is very different to linux lsblk. My next step after seeing that was to add to the shell-tools component an InstallPkg(sName) function that would handle the various installers. Most ways i'm seeing on BSD to get disk info need sudo unlike lsblk which is a shame. I've not had much fun installing BSD, i tried to install freeBSD and OpenBSD with no success (could not select a partition to install it too) Then i managed to install GhostBSD on free space on an extended partition that had 6 other linux partitions on it and all it's done is wiped the whole extended partition for me :( why oh why can't it just use grub and ext4 ? :'( So now i've downloaded a VM image and doing it that way, just installing at mo. Have not thought in any way (yet) about disk events. My initial goal was to simply get the disk drive list as one of my apps wants the info. that's when i though maybe a component that is unashamedly based on using various shell commands might be useful and frankly simpler for a few things. I have never looked into dbus, ,,,, (looking now) , ooh, that's a nice useful looking component, udev looks interesting does it work on BSD too? It also looks far more in depth than what I have in mind for this shell.tools component. But to be fair the component has been born only from needing disk info so maybe your way is better, would be happy to help get it finished and ready. I think the shell.tools component could still go somewhere though. I'm thinking of commands like ExecToPairs() that would automatically turn shell command results that can return keypairs into a collection array. that would work with what i've done with lsblk .. cCollection = ExecToPairs("lsblk", "-P") also an installer. Say , InstallPkg(sPkgName) that would detect installer per os. Stuff like that. Disk detecting features within gambas would be great though. I think with what i have so far i can make it BSD compatible i just might have to drop a couple of fields but your way sounds less "hack" like ;) lol. Wishing well. BruceS On Tue, 29 Dec 2020 at 07:13, Fabien Bodard wrote: > I've found this script to imitate lsblk on bsd. > > https://forums.freebsd.org/threads/lsblk-8-command-for-freebsd.56008/ > > > I've already done a similar work on a udev dbus way. But not finished. > > Maybe the both can be fusionnate ? > > The goal will be to have a more advanced internal open dialog. > > Your component have to manage device info but also devices events are > reallly important. > The structure of returned infos must be in the most Gambas way. (Mine is > not good too) > > Regards, > Fabien > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Tue Dec 29 17:07:07 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 29 Dec 2020 17:07:07 +0100 Subject: [Gambas-user] Disk devices info and management In-Reply-To: References: Message-ID: My goal was to improve the gambas dialogs.. because fining my usb key content is a job. But my component need to be finished and having a non dbus part in case of terminal using. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Dec 29 17:09:24 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 29 Dec 2020 16:09:24 +0000 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: That's little short of fantastic Fab ! you even got got Mount() / Unmount() , brilliant, gambas needs this for sure :) I think my shell.tools should veer away from disk info and this component needs polishing off to completion. Doesn't look like it's far off being as complete as needs to be. On Tue, 29 Dec 2020 at 14:06, Fabien Bodard wrote: > > This is my first try... last year > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Dec 29 18:06:12 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 29 Dec 2020 17:06:12 +0000 Subject: [Gambas-user] Disk devices info and management In-Reply-To: References: Message-ID: oh noo, not in terminal !! :( (shakes fist in the air) Well i guess the terminal side could use shell lsblk and mount, BSD will be a different case, i have it running now on a VM so will see what output conversion i can manage. your component gets an awful lot more info compared to mine. My initial thoughts were to look into liblsblk and libmount somehow integrate that way but i'm on a bit of a learning curve when it comes to C. On Tue, 29 Dec 2020 at 16:08, Fabien Bodard wrote: > My goal was to improve the gambas dialogs.. because fining my usb key > content is a job. > > But my component need to be finished and having a non dbus part in case of > terminal using. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Dec 29 19:19:20 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 29 Dec 2020 18:19:20 +0000 Subject: [Gambas-user] BSD gambas compile Message-ID: Anyone compiling on BSD got an up to date dependency list? i've used the one on the wiki but it's outdated, fixed some things with updates and some stuff is missing completely. Will involve some compiling , getting dependency errors, and package searching. was wondering if someone already has the list to save the bother? if not will figure it out and post updated list to wiki. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Dec 29 20:03:36 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 29 Dec 2020 19:03:36 +0000 Subject: [Gambas-user] Warnings report In-Reply-To: References: Message-ID: Options.... Right click Console view in gambas IDE and select "Select All" then copy the text to a file Or... run .gambas app in terminal using redirects > . Eg.. gbr3 /$HOME/MyApp/MyApp.gambas >/$HOME/MyApp_Output.txt 2>&1 *>/path* redirects std_out not std_err to file *2>path* redirects std_err not std_out to file *>/path_out 2>/path_err* redirects out and err to 2 files *>/path 2>&1* directs out and err to same file Hope that helps. BruceS On Tue, 29 Dec 2020 at 12:50, Martin wrote: > Hi, > > I am trying to create an executable .gambas and because my project has > many warnings I cannot do it. > To organize the debugging between several developers I would like to be > able to distribute the tasks and for this, since it is a lot of > warnings, I would like to have a file in which all these are listed. > It's possible? > thanks > > MB. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Dec 30 01:23:17 2020 From: mbelmonte at belmotek.net (Martin) Date: Wed, 30 Dec 2020 01:23:17 +0100 Subject: [Gambas-user] Warnings report In-Reply-To: References: Message-ID: <2c34664a-562e-7526-379e-2e10f7be7a76@belmotek.net> Thanks for replying, but I mean the warning list not the console. In the list of warnings, apparently it is not possible to make text copies. Tanks Martin On 29/12/20 20:03, Bruce Steers wrote: > Options.... > > Right click Console view in gambas IDE and select "Select All" then > copy the text to a file > > Or... > run .gambas app in terminal using redirects > . > Eg.. > gbr3 /$HOME/MyApp/MyApp.gambas >/$HOME/MyApp_Output.txt 2>&1 > > *>/path* redirects std_out not std_err to file > *2>path* redirects std_err not std_out to file > *>/path_out 2>/path_err* redirects out and err to 2 files > *>/path 2>&1* directs out and err to same file > > Hope that helps. > BruceS > > > On Tue, 29 Dec 2020 at 12:50, Martin > wrote: > > Hi, > > I am trying to create an executable .gambas and because my project > has > many warnings I cannot do it. > To organize the debugging between several developers I would like > to be > able to distribute the tasks and for this, since it is a lot of > warnings, I would like to have a file in which all these are listed. > It's possible? > thanks > > MB. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 30 13:00:21 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 30 Dec 2020 12:00:21 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: Message-ID: So here's the working list ... sudo pkg install autoconf automake alure libtool libffi bzip2 unixODBC mysql57-client sqlite3 libXtst cairo ncurses gsl openssl imlib imlib2 curl pcre poppler gmime26 gtk3 qt5 sdl sdl2 sdl_ttf sdl_mixer sdl_image sdl2_ttf sdl2_mixer sdl2_image glib libGLU gmime26 glew gtkglext libv4l v4l_compat libxml2 libxslt pkgconf It will not compile though. ./reconf-all and ./configure now running without error but 'make' command fails saying *trunk_version.h* not found. BruceS On Tue, 29 Dec 2020 at 18:19, Bruce Steers wrote: > > Anyone compiling on BSD got an up to date dependency list? > > i've used the one on the wiki but it's outdated, fixed some things with > updates and some stuff is missing completely. > > Will involve some compiling , getting dependency errors, and package > searching. > > was wondering if someone already has the list to save the bother? > > if not will figure it out and post updated list to wiki. > > BruceS > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Dec 30 13:16:16 2020 From: taboege at gmail.com (Tobias Boege) Date: Wed, 30 Dec 2020 13:16:16 +0100 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: Message-ID: <20201230121616.GC1282@highrise.localdomain> On Wed, 30 Dec 2020, Bruce Steers wrote: > So here's the working list ... > > sudo pkg install autoconf automake alure libtool libffi bzip2 unixODBC > mysql57-client sqlite3 libXtst cairo ncurses gsl openssl imlib imlib2 > curl pcre poppler gmime26 gtk3 qt5 sdl sdl2 sdl_ttf sdl_mixer > sdl_image sdl2_ttf sdl2_mixer sdl2_image glib libGLU gmime26 glew > gtkglext libv4l v4l_compat libxml2 libxslt pkgconf > > It will not compile though. > > ./reconf-all and ./configure now running without error > > but 'make' command fails saying > *trunk_version.h* not found. > Try to enter the main/ subdirectory and show the output of $ make trunk_version.h Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bsteers4 at gmail.com Wed Dec 30 14:01:37 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 30 Dec 2020 13:01:37 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: Message-ID: so i manually copied the *trunk_version.h* from another folder to main/ and then the compiler got through that part. Now it's failed saying sys/sysmacros.h not found. So far i'm seeing this when it comes to gambas working on BSD... No Gambas3 on BSD repositories. Dependency list on wiki well out of date. Compiling seems broken in more than one way. So Ben, when you say code has to also work on BSD, are you sure ANYONE with BSD is even using gambas? because installing it is not exactly a walk in the park. *BruceS* On Wed, 30 Dec 2020 at 12:00, Bruce Steers wrote: > So here's the working list ... > > sudo pkg install autoconf automake alure libtool libffi bzip2 unixODBC mysql57-client sqlite3 libXtst cairo ncurses gsl openssl imlib imlib2 curl pcre poppler gmime26 gtk3 qt5 sdl sdl2 sdl_ttf sdl_mixer sdl_image sdl2_ttf sdl2_mixer sdl2_image glib libGLU gmime26 glew gtkglext libv4l v4l_compat libxml2 libxslt pkgconf > > It will not compile though. > > ./reconf-all and ./configure now running without error > > but 'make' command fails saying > *trunk_version.h* not found. > > BruceS > > > > > On Tue, 29 Dec 2020 at 18:19, Bruce Steers wrote: > >> >> Anyone compiling on BSD got an up to date dependency list? >> >> i've used the one on the wiki but it's outdated, fixed some things with >> updates and some stuff is missing completely. >> >> Will involve some compiling , getting dependency errors, and package >> searching. >> >> was wondering if someone already has the list to save the bother? >> >> if not will figure it out and post updated list to wiki. >> >> BruceS >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 30 14:52:32 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 30 Dec 2020 13:52:32 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: <20201230121616.GC1282@highrise.localdomain> References: <20201230121616.GC1282@highrise.localdomain> Message-ID: no output and still no file. :( I've also now installed coreutils and gcc that were not in the dependency list. Still no joy. Trying to do all steps as root now to see if any difference On Wed, 30 Dec 2020 at 12:18, Tobias Boege wrote: > On Wed, 30 Dec 2020, Bruce Steers wrote: > > So here's the working list ... > > > > sudo pkg install autoconf automake alure libtool libffi bzip2 unixODBC > > mysql57-client sqlite3 libXtst cairo ncurses gsl openssl imlib imlib2 > > curl pcre poppler gmime26 gtk3 qt5 sdl sdl2 sdl_ttf sdl_mixer > > sdl_image sdl2_ttf sdl2_mixer sdl2_image glib libGLU gmime26 glew > > gtkglext libv4l v4l_compat libxml2 libxslt pkgconf > > > > It will not compile though. > > > > ./reconf-all and ./configure now running without error > > > > but 'make' command fails saying > > *trunk_version.h* not found. > > > > Try to enter the main/ subdirectory and show the output of > > $ make trunk_version.h > > Regards, > Tobias > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at allunix.ru Wed Dec 30 15:04:10 2020 From: admin at allunix.ru (Admin) Date: Wed, 30 Dec 2020 21:04:10 +0700 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: <20201230121616.GC1282@highrise.localdomain> Message-ID: Just to remind, as I've already posted not so long time ago, I got Gambas 3.12 interpreter compiled on a clean FreeBSD 12.0 and 12.1. You could install it using this script: http://allunix.ru/back/gbinst.sh Dmitry. 30.12.2020 20:52, Bruce Steers ?????: > no output and still no file. :( > > I've also now installed coreutils and gcc that were not in the > dependency list. > Still no joy. > > Trying to do all steps as root now to see if any difference > > > On Wed, 30 Dec 2020 at 12:18, Tobias Boege > wrote: > > On Wed, 30 Dec 2020, Bruce Steers wrote: > > So here's the working list ... > > > > sudo pkg install autoconf automake alure libtool libffi bzip2 > unixODBC > > mysql57-client sqlite3 libXtst cairo ncurses gsl openssl imlib > imlib2 > > curl pcre poppler gmime26 gtk3 qt5 sdl sdl2 sdl_ttf sdl_mixer > > sdl_image sdl2_ttf sdl2_mixer sdl2_image glib libGLU gmime26 glew > > gtkglext libv4l v4l_compat libxml2 libxslt pkgconf > > > > It will not compile though. > > > > ./reconf-all and ./configure now running without error > > > > but 'make' command fails saying > > *trunk_version.h* not found. > > > > Try to enter the main/ subdirectory and show the output of > > ? $ make trunk_version.h > > Regards, > Tobias > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 30 16:12:09 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 30 Dec 2020 15:12:09 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: <20201230121616.GC1282@highrise.localdomain> Message-ID: aah thank you but i'm looking to compile the whole thing. According to ./configure I now have all dependencies and the only thing disabled is qt4. There is something wrong before make. trunk_version.h not found and sys/sysmacros.h not found most likely some package/s i am missing to make it work. Or some wierd configuration bsd does differently. i looked at your script and noticed you installed mc, so i installed it too and got a message about needing to assign procfs to /proc to make things work. I already do not like BSD . it's too , not-normal (and rubbish compared to deb/ubuntu) Thanks for tip though BruceS On Wed, 30 Dec 2020 at 14:33, Admin wrote: > Just to remind, as I've already posted not so long time ago, I got Gambas > 3.12 interpreter compiled on a clean FreeBSD 12.0 and 12.1. You could > install it using this script: http://allunix.ru/back/gbinst.sh > > Dmitry. > > 30.12.2020 20:52, Bruce Steers ?????: > > no output and still no file. :( > > I've also now installed coreutils and gcc that were not in the dependency > list. > Still no joy. > > Trying to do all steps as root now to see if any difference > > > On Wed, 30 Dec 2020 at 12:18, Tobias Boege wrote: > >> On Wed, 30 Dec 2020, Bruce Steers wrote: >> > So here's the working list ... >> > >> > sudo pkg install autoconf automake alure libtool libffi bzip2 unixODBC >> > mysql57-client sqlite3 libXtst cairo ncurses gsl openssl imlib imlib2 >> > curl pcre poppler gmime26 gtk3 qt5 sdl sdl2 sdl_ttf sdl_mixer >> > sdl_image sdl2_ttf sdl2_mixer sdl2_image glib libGLU gmime26 glew >> > gtkglext libv4l v4l_compat libxml2 libxslt pkgconf >> > >> > It will not compile though. >> > >> > ./reconf-all and ./configure now running without error >> > >> > but 'make' command fails saying >> > *trunk_version.h* not found. >> > >> >> Try to enter the main/ subdirectory and show the output of >> >> $ make trunk_version.h >> >> Regards, >> Tobias >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Wed Dec 30 16:44:59 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Wed, 30 Dec 2020 10:44:59 -0500 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: Message-ID: <9f4a47cd-b24c-c48e-3857-2c284f08717a@ajm-software.com> sys/sysmacros.h is a glibc non-standard header file.? BSD does not use glibc so the file will not be found on BSD.? For a fix, see: https://wiki.gentoo.org/wiki/Glibc_2.26_porting_notes/sysmacros.h On 2020-12-30 8:01 a.m., Bruce Steers wrote: > so i manually copied the |*trunk_version.h* from another folder to > main/ and then the compiler got through that part.| > > Now it's failed saying sys/sysmacros.h not found. > > So far i'm seeing this when it comes to gambas working on BSD... > > |No Gambas3 on BSD repositories.| > |Dependency list on wiki well out of date.| > || > |Compiling seems broken in more than one way.* > *| > > So Ben, when you say code has to also work on BSD, are you sure ANYONE > with BSD is even using gambas? > because installing it is not exactly a walk in the park. > || > |*BruceS*| > || > > On Wed, 30 Dec 2020 at 12:00, Bruce Steers > wrote: > > So here's the working list ... > > |sudo pkg install autoconf automake alure libtool libffi bzip2 > unixODBC mysql57-client sqlite3 libXtst cairo ncurses gsl openssl > imlib imlib2 curl pcre poppler gmime26 gtk3 qt5 sdl sdl2 sdl_ttf > sdl_mixer sdl_image sdl2_ttf sdl2_mixer sdl2_image glib libGLU > gmime26 glew gtkglext libv4l v4l_compat libxml2 libxslt pkgconf | > > |It will not compile though. ./reconf-all and ./configure now > running without error but 'make' command fails saying > *trunk_version.h* not found. BruceS | > > || > > > On Tue, 29 Dec 2020 at 18:19, Bruce Steers > wrote: > > > Anyone compiling on BSD got an up to date dependency list? > > i've used the one on the wiki but it's outdated, fixed some > things with updates and some stuff is missing completely. > > Will involve some compiling , getting dependency errors, and > package searching. > > was wondering if someone already has the list to save the bother? > > if not will figure it out and post updated list to wiki. > > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Dec 30 16:57:08 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 30 Dec 2020 16:57:08 +0100 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: Message-ID: Le 30/12/2020 ? 14:01, Bruce Steers a ?crit?: > so i manually copied the |*trunk_version.h* from another folder to main/ > and then the compiler got through that part.| > > Now it's failed saying sys/sysmacros.h not found. > > So far i'm seeing this when it comes to gambas working on BSD... > > |No Gambas3 on BSD repositories.| > |Dependency list on wiki well out of date.| > || > |Compiling seems broken in more than one way.* > *| > > So Ben, when you say code has to also work on BSD, are you sure ANYONE > with BSD is even using gambas? > because installing it is not exactly a walk in the park. > || > |*BruceS*| > |**| > Mac OSX is a BSD, and I know some people told that they succeeded compiling Gambas on it. But when I told you about BSD, my words were not to be taken literally. I wanted to point that you are using a specific Linux command, and that it's not a good idea to base a component on it. Moreover, I don't know exactly what you want to do with that component, but if you have the same goal than Fabien, and/or if you aim at browsing the disk units to show them to the user and allow him to mount/unmount them, then you must look at DBus instead. Regards, -- Beno?t Minisini From gambas.fr at gmail.com Wed Dec 30 17:37:01 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 30 Dec 2020 17:37:01 +0100 Subject: [Gambas-user] Stock Message-ID: Is someone remember how to reach a specific icon in the linux stock ? for example hPic = Picture["icon:/devices/media-floppy"] If not I need to re read the code :-/ -- Fabien Bodard From clhamilto at gmail.com Wed Dec 30 17:55:36 2020 From: clhamilto at gmail.com (Curtis Hamilton) Date: Wed, 30 Dec 2020 11:55:36 -0500 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: Message-ID: I would like to confirm that I?ve been able to compile full gambas on FreeBSD 12 and Current on PowerPC64, using the stock gambas downloads from sourceforge. This includes all versions since 13.12. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 30 18:05:28 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 30 Dec 2020 17:05:28 +0000 Subject: [Gambas-user] Stock In-Reply-To: References: Message-ID: I use Stock class hPic = Stock["icon:32/media-floppy"] On Wed, 30 Dec 2020 at 16:38, Fabien Bodard wrote: > Is someone remember how to reach a specific icon in the linux stock ? > > > for example > hPic = Picture["icon:/devices/media-floppy"] > > If not I need to re read the code :-/ > > -- > Fabien Bodard > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Dec 30 18:20:55 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 30 Dec 2020 17:20:55 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: <9f4a47cd-b24c-c48e-3857-2c284f08717a@ajm-software.com> References: <9f4a47cd-b24c-c48e-3857-2c284f08717a@ajm-software.com> Message-ID: this may have done the trick.. :) (touch wood) As per the instructions I've simply commented out line 35 of gbx_c_file.c // #include (Will this break things Ben?) make has been running for ages (it's very slow on the VM) Thanks Tony :) BruceS On Wed, 30 Dec 2020 at 15:46, Tony Morehen wrote: > sys/sysmacros.h is a glibc non-standard header file. BSD does not use > glibc so the file will not be found on BSD. For a fix, see: > > https://wiki.gentoo.org/wiki/Glibc_2.26_porting_notes/sysmacros.h > On 2020-12-30 8:01 a.m., Bruce Steers wrote: > > so i manually copied the *trunk_version.h* from another folder to main/ > and then the compiler got through that part. > > Now it's failed saying sys/sysmacros.h not found. > > So far i'm seeing this when it comes to gambas working on BSD... > > No Gambas3 on BSD repositories. > Dependency list on wiki well out of date. > Compiling seems broken in more than one way. > > So Ben, when you say code has to also work on BSD, are you sure ANYONE > with BSD is even using gambas? > because installing it is not exactly a walk in the park. > > *BruceS* > > > On Wed, 30 Dec 2020 at 12:00, Bruce Steers wrote: > >> So here's the working list ... >> >> sudo pkg install autoconf automake alure libtool libffi bzip2 unixODBC mysql57-client sqlite3 libXtst cairo ncurses gsl openssl imlib imlib2 curl pcre poppler gmime26 gtk3 qt5 sdl sdl2 sdl_ttf sdl_mixer sdl_image sdl2_ttf sdl2_mixer sdl2_image glib libGLU gmime26 glew gtkglext libv4l v4l_compat libxml2 libxslt pkgconf >> >> It will not compile though../reconf-all and ./configure now running without error >> but 'make' command fails saying * >> trunk_version.h* not found. >> BruceS >> >> >> >> On Tue, 29 Dec 2020 at 18:19, Bruce Steers wrote: >> >>> >>> Anyone compiling on BSD got an up to date dependency list? >>> >>> i've used the one on the wiki but it's outdated, fixed some things with >>> updates and some stuff is missing completely. >>> >>> Will involve some compiling , getting dependency errors, and package >>> searching. >>> >>> was wondering if someone already has the list to save the bother? >>> >>> if not will figure it out and post updated list to wiki. >>> >>> BruceS >>> >>> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Wed Dec 30 18:22:04 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 30 Dec 2020 18:22:04 +0100 Subject: [Gambas-user] Stock In-Reply-To: References: Message-ID: Well :-D I want to use a real icon based in the icons system location and taking theme into account :-). But I don't remember If i've donne something about this case in the past ... so far :-/ Le mer. 30 d?c. 2020 ? 18:06, Bruce Steers a ?crit : > > I use Stock class > > hPic = Stock["icon:32/media-floppy"] > > On Wed, 30 Dec 2020 at 16:38, Fabien Bodard wrote: >> >> Is someone remember how to reach a specific icon in the linux stock ? >> >> >> for example >> hPic = Picture["icon:/devices/media-floppy"] >> >> If not I need to re read the code :-/ >> >> -- >> Fabien Bodard >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From bagonergi at gmail.com Wed Dec 30 18:34:53 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 30 Dec 2020 18:34:53 +0100 Subject: [Gambas-user] Stock In-Reply-To: References: Message-ID: Hi Fabien, I don't think you mean something like: Dim s As String For Each s As String In Stock.Icons Print s Next ? Regards Gianluigi Il giorno mer 30 dic 2020 alle ore 18:25 Fabien Bodard ha scritto: > Well :-D > > I want to use a real icon based in the icons system location and > taking theme into account :-). > > But I don't remember If i've donne something about this case in the > past ... so far :-/ > > Le mer. 30 d?c. 2020 ? 18:06, Bruce Steers a ?crit : > > > > I use Stock class > > > > hPic = Stock["icon:32/media-floppy"] > > > > On Wed, 30 Dec 2020 at 16:38, Fabien Bodard wrote: > >> > >> Is someone remember how to reach a specific icon in the linux stock ? > >> > >> > >> for example > >> hPic = Picture["icon:/devices/media-floppy"] > >> > >> If not I need to re read the code :-/ > >> > >> -- > >> Fabien Bodard > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > -- > Fabien Bodard > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed Dec 30 18:46:46 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 31 Dec 2020 04:16:46 +1030 Subject: [Gambas-user] Stock In-Reply-To: References: Message-ID: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> On 31/12/20 3:52 am, Fabien Bodard wrote: > Well :-D > > I want to use a real icon based in the icons system location and > taking theme into account :-). > > But I don't remember If i've donne something about this case in the > past ... so far :-/ > > Le mer. 30 d?c. 2020 ? 18:06, Bruce Steers a ?crit : >> >> I use Stock class >> >> hPic = Stock["icon:32/media-floppy"] >> >> On Wed, 30 Dec 2020 at 16:38, Fabien Bodard wrote: >>> >>> Is someone remember how to reach a specific icon in the linux stock ? >>> >>> >>> for example >>> hPic = Picture["icon:/devices/media-floppy"] >>> >>> If not I need to re read the code :-/ >>> >>> -- >>> Fabien Bodard >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > No. The Stock component only knows how to get the icons defined in the "Gambas icons list" which are defined in a map file inside the component. You would have to 1) Get the Application.Theme 2) Locate the theme directory in /usr/?/?/icons (depends on distro) 3) Decipher how the theme developers have structured that directory 4) Find your icon. https://specifications.freedesktop.org/icon-theme-spec/latest/index.html ha the definitive standard, but few theme developers adhere to it. b From gambas.fr at gmail.com Wed Dec 30 18:49:10 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 30 Dec 2020 18:49:10 +0100 Subject: [Gambas-user] Stock In-Reply-To: References: Message-ID: It's difficult to me to be understanding In fact the normal use of stock is : Picture["icon:/size/name"]... it take the icon name in the stock map file and then use the accurate one or the internal one if gb.form.stock is loaded. Another tricks is to use some magics for example to get a mime icon : Stock[CStr(Size) &/ "$(mime)" &/ sMime] the $mime enforce the use of the mimetype folder is the icons storage for your linux system. But icons name also follow a kind of standart in naming ... for example 'drive-harddisk' or 'drive-removable-media' Le mer. 30 d?c. 2020 ? 18:36, Gianluigi a ?crit : > > Hi Fabien, > > I don't think you mean something like: > > Dim s As String > For Each s As String In Stock.Icons > Print s > Next > ? > Regards > Gianluigi > > Il giorno mer 30 dic 2020 alle ore 18:25 Fabien Bodard ha scritto: >> >> Well :-D >> >> I want to use a real icon based in the icons system location and >> taking theme into account :-). >> >> But I don't remember If i've donne something about this case in the >> past ... so far :-/ >> >> Le mer. 30 d?c. 2020 ? 18:06, Bruce Steers a ?crit : >> > >> > I use Stock class >> > >> > hPic = Stock["icon:32/media-floppy"] >> > >> > On Wed, 30 Dec 2020 at 16:38, Fabien Bodard wrote: >> >> >> >> Is someone remember how to reach a specific icon in the linux stock ? >> >> >> >> >> >> for example >> >> hPic = Picture["icon:/devices/media-floppy"] >> >> >> >> If not I need to re read the code :-/ >> >> >> >> -- >> >> Fabien Bodard >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > >> > >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> >> -- >> Fabien Bodard >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From gambas.fr at gmail.com Wed Dec 30 18:54:00 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 30 Dec 2020 18:54:00 +0100 Subject: [Gambas-user] Stock In-Reply-To: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> Message-ID: > https://specifications.freedesktop.org/icon-theme-spec/latest/index.html > ha the definitive standard, but few theme developers adhere to it. Well I really know this point :-D.. I've worked hard on the first version of themes resolver for the stock class ;-) In fact I'm just a lazy guy who not remember his own code :-P (And Benoit have mainly doing many things on it... so it is less buggy and more fast) Well so I have two way ... adding it to the map file or modify the stock class to allow more freedom. > > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From bsteers4 at gmail.com Wed Dec 30 20:10:04 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 30 Dec 2020 19:10:04 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: Message-ID: aah , now you tell me lol. okay point noted. On the plus side though i have BSD compiling up to date :) (well GhostBSD at least) I've encountered 3 issues with 3 fixes applied after getting the dependencies right... 1. trunk_version.h does not get created in ./main/ fix: copy the trunk_version.h file from another source folder 2. sys/sysmacros.h not found for gbx_c_file.c fix: commented out the define line on line 35. (is there a way sysmacros.h can be ditched? maybe import the code?) 3. BSD rmdir command does not like the --ignore-non-empty flag in the makefiles (it does not use ANY -- prefixes) Fix: remove flag So after those 3 steps i now have this... http://bws.org.uk/images/Gambas3.15.90.GhostBSD.png Phew. BruceS On Wed, 30 Dec 2020 at 15:58, Beno?t Minisini wrote: > Le 30/12/2020 ? 14:01, Bruce Steers a ?crit : > > so i manually copied the |*trunk_version.h* from another folder to main/ > > and then the compiler got through that part.| > > > > Now it's failed saying sys/sysmacros.h not found. > > > > So far i'm seeing this when it comes to gambas working on BSD... > > > > |No Gambas3 on BSD repositories.| > > |Dependency list on wiki well out of date.| > > || > > |Compiling seems broken in more than one way.* > > *| > > > > So Ben, when you say code has to also work on BSD, are you sure ANYONE > > with BSD is even using gambas? > > because installing it is not exactly a walk in the park. > > || > > |*BruceS*| > > |**| > > > > Mac OSX is a BSD, and I know some people told that they succeeded > compiling Gambas on it. > > But when I told you about BSD, my words were not to be taken literally. > > I wanted to point that you are using a specific Linux command, and that > it's not a good idea to base a component on it. > > Moreover, I don't know exactly what you want to do with that component, > but if you have the same goal than Fabien, and/or if you aim at browsing > the disk units to show them to the user and allow him to mount/unmount > them, then you must look at DBus instead. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Dec 30 20:19:04 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 30 Dec 2020 20:19:04 +0100 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: Message-ID: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> Le 30/12/2020 ? 20:10, Bruce Steers a ?crit?: > aah , now you tell me lol. > okay point noted. > > On the plus side though i have BSD compiling up to date :) > (well GhostBSD at least) > > I've encountered 3 issues with 3 fixes applied after getting the > dependencies right... > > 1. trunk_version.h does not get created in ./main/ > fix: copy the trunk_version.h file from another source folder No idea why. > > 2. sys/sysmacros.h not found for gbx_c_file.c > fix: commented out the define line on line 35. > (is there a way sysmacros.h can be ditched? maybe import the code?) You can use an "#ifdef OS_BSD" to not include the file on BSD. > > 3. BSD rmdir command does not like the --ignore-non-empty flag in the > makefiles? (it does not use ANY -- prefixes) > Fix: remove flag Is there a flag that does the same thing as in Linux? -- Beno?t Minisini From bsteers4 at gmail.com Wed Dec 30 20:20:58 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 30 Dec 2020 19:20:58 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: Message-ID: link was broken trying again... if this one don't work be advised it's complete gambas3 fully working on bsd. http://bws.org.uk/images/Gambas3.15.GhostBSD.png On Wed, 30 Dec 2020 at 19:10, Bruce Steers wrote: > aah , now you tell me lol. > okay point noted. > > On the plus side though i have BSD compiling up to date :) > (well GhostBSD at least) > > I've encountered 3 issues with 3 fixes applied after getting the > dependencies right... > > 1. trunk_version.h does not get created in ./main/ > fix: copy the trunk_version.h file from another source folder > > 2. sys/sysmacros.h not found for gbx_c_file.c > fix: commented out the define line on line 35. > (is there a way sysmacros.h can be ditched? maybe import the code?) > > 3. BSD rmdir command does not like the --ignore-non-empty flag in the > makefiles (it does not use ANY -- prefixes) > Fix: remove flag > > So after those 3 steps i now have this... > http://bws.org.uk/images/Gambas3.15.90.GhostBSD.png > > Phew. > BruceS > > On Wed, 30 Dec 2020 at 15:58, Beno?t Minisini wrote: > >> Le 30/12/2020 ? 14:01, Bruce Steers a ?crit : >> > so i manually copied the |*trunk_version.h* from another folder to >> main/ >> > and then the compiler got through that part.| >> > >> > Now it's failed saying sys/sysmacros.h not found. >> > >> > So far i'm seeing this when it comes to gambas working on BSD... >> > >> > |No Gambas3 on BSD repositories.| >> > |Dependency list on wiki well out of date.| >> > || >> > |Compiling seems broken in more than one way.* >> > *| >> > >> > So Ben, when you say code has to also work on BSD, are you sure ANYONE >> > with BSD is even using gambas? >> > because installing it is not exactly a walk in the park. >> > || >> > |*BruceS*| >> > |**| >> > >> >> Mac OSX is a BSD, and I know some people told that they succeeded >> compiling Gambas on it. >> >> But when I told you about BSD, my words were not to be taken literally. >> >> I wanted to point that you are using a specific Linux command, and that >> it's not a good idea to base a component on it. >> >> Moreover, I don't know exactly what you want to do with that component, >> but if you have the same goal than Fabien, and/or if you aim at browsing >> the disk units to show them to the user and allow him to mount/unmount >> them, then you must look at DBus instead. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at allunix.ru Wed Dec 30 20:37:36 2020 From: admin at allunix.ru (Admin) Date: Thu, 31 Dec 2020 02:37:36 +0700 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: Message-ID: <40d166cc-c6d0-f826-3454-c747d2a3913d@allunix.ru> Nice work! 31.12.2020 2:20, Bruce Steers ?????: > link was broken trying again... > if this one don't work be advised it's complete gambas3 fully working > on bsd. > http://bws.org.uk/images/Gambas3.15.GhostBSD.png > > > > On Wed, 30 Dec 2020 at 19:10, Bruce Steers > wrote: > > aah , now you tell me lol. > okay point noted. > > On the plus side though i have BSD compiling up to date :) > (well GhostBSD at least) > > I've encountered 3 issues with 3 fixes applied after getting the > dependencies right... > > 1. trunk_version.h does not get created in ./main/ > fix: copy the trunk_version.h file from another source folder > > 2. sys/sysmacros.h not found for gbx_c_file.c > fix: commented out the define line on line 35. > (is there a way sysmacros.h can be ditched? maybe import the code?) > > 3. BSD rmdir command does not like the --ignore-non-empty flag in > the makefiles? (it does not use ANY -- prefixes) > Fix: remove flag > > So after those 3 steps i now have this... > http://bws.org.uk/images/Gambas3.15.90.GhostBSD.png > > > Phew. > BruceS > > On Wed, 30 Dec 2020 at 15:58, Beno?t Minisini > wrote: > > Le 30/12/2020 ? 14:01, Bruce Steers a ?crit?: > > so i manually copied the |*trunk_version.h* from another > folder to main/ > > and then the compiler got through that part.| > > > > Now it's failed saying sys/sysmacros.h not found. > > > > So far i'm seeing this when it comes to gambas working on BSD... > > > > |No Gambas3 on BSD repositories.| > > |Dependency list on wiki well out of date.| > > || > > |Compiling seems broken in more than one way.* > > *| > > > > So Ben, when you say code has to also work on BSD, are you > sure ANYONE > > with BSD is even using gambas? > > because installing it is not exactly a walk in the park. > > || > > |*BruceS*| > > |**| > > > > Mac OSX is a BSD, and I know some people told that they succeeded > compiling Gambas on it. > > But when I told you about BSD, my words were not to be taken > literally. > > I wanted to point that you are using a specific Linux command, > and that > it's not a good idea to base a component on it. > > Moreover, I don't know exactly what you want to do with that > component, > but if you have the same goal than Fabien, and/or if you aim > at browsing > the disk units to show them to the user and allow him to > mount/unmount > them, then you must look at DBus instead. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed Dec 30 20:38:57 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 31 Dec 2020 06:08:57 +1030 Subject: [Gambas-user] Stock In-Reply-To: References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> Message-ID: On 31/12/20 4:24 am, Fabien Bodard wrote: >> https://specifications.freedesktop.org/icon-theme-spec/latest/index.html >> ha the definitive standard, but few theme developers adhere to it. > > > Well I really know this point :-D.. I've worked hard on the first > version of themes resolver for the stock class ;-) > > In fact I'm just a lazy guy who not remember his own code :-P (And > Benoit have mainly doing many things on it... so it is less buggy and > more fast) > > Well so I have two way ... adding it to the map file > or > modify the stock class to allow more freedom. > > >> >> b >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > Go the second way! :-) I tried but failed miserably. :-( If you can get it to the point where it resolves those that do follow the standard then that is a big move forward. b From brian at westwoodsvcs.com Wed Dec 30 20:31:59 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 30 Dec 2020 11:31:59 -0800 (PST) Subject: [Gambas-user] Disk devices info and management In-Reply-To: References: Message-ID: <565512175.1622.1609356719585.JavaMail.zimbra@westwoodsvcs.com> BruceS, The information you are looking for can be got from the /sys/block directory ls /sys/block will return a list of devices ls /sys/block/sda gets you alignment_offset capability device events events_poll_msecs hidden inflight mq queue removable sda1 size stat trace bdi dev discard_alignment events_async ext_range holders integrity power range ro sda2 slaves subsystem uevent Notice it lists the sda1 and sda2 partitions etc cat stat gets you 2752110 675832 28981442 3612713 152716 5416705 79021648 4189622 0 3484324 7008448 115123 0 1122950384 7017 this list is left to write The stat file consists of a single line of text containing 11 decimal values separated by whitespace. The fields are summarized in the following table, and described in more detail below. Name units description ---- ----- ----------- read I/Os requests number of read I/Os processed read merges requests number of read I/Os merged with in-queue I/O read sectors sectors number of sectors read read ticks milliseconds total wait time for read requests write I/Os requests number of write I/Os processed write merges requests number of write I/Os merged with in-queue I/O write sectors sectors number of sectors written write ticks milliseconds total wait time for write requests in_flight requests number of I/Os currently in flight io_ticks milliseconds total time this block device has been active time_in_queue milliseconds total wait time for all requests discard I/Os requests number of discard I/Os processed discard merges requests number of discard I/Os merged with in-queue I/O discard sectors sectors number of sectors discarded discard ticks milliseconds total wait time for discard requests notice it lists all sorts of great information cat /sys/block/sda/ size 1953525168 ls /proc/mounts Gets you all the system mounts More info here [ https://www.kernel.org/doc/Documentation/block/stat.txt | https://www.kernel.org/doc/Documentation/block/stat.txt ] Here is a script that gets data with just gambas I did a while ago, Dont know if it helps to do it in just gambas way #!/usr/bin/gbs3 Public Sub Main() 'Linux dim statmap As String[] = [ "&1 = Read I / Os requests number Of Read I / Os processed", "&1 = Read merges requests number Of Read I / Os merged With In -queue I / O", "&1 = Read sectors sectors number Of sectors Read", "&1 = Read ticks milliseconds total Wait Time For Read requests", "&1 = Write I / Os requests number Of Write I / Os processed", "&1 = Write merges requests number Of Write I / Os merged With In -queue I / O", "&1 = Write sectors sectors number Of sectors written", "&1 = Write ticks milliseconds total Wait Time For Write requests", "&1 = in_flight requests number Of I / Os currently In flight", "&1 = io_ticks milliseconds total Time this block device has been active", "&1 = time_in_queue milliseconds total Wait Time For all requests", "&1 = discard I / Os requests number Of discard I / Os processed", "&1 = discard merges requests number Of discard I / Os merged With In -queue I / O", "&1 = discard sectors sectors number Of sectors discarded", "&1 = discard ticks milliseconds total Wait Time For discard requests" ] dim i as integer Dim disks As String[] = Dir("/sys/block","s*") ' you can filter by whatever you like Dim Partitions As String[] = Dir("/sys/block/sda", "sda*") ' again I only filter for sda etc Dim stats As String[] = Split(file.load("/sys/block/sda/stat"), " \n", "", True, True) Dim dSize As String = file.load("/sys/block/sda/size") Dim sda1Stats As String[] = Split(file.load("/sys/block/sda/sda1/stat"), " \n", "", True, True) Dim sda1dSize As String = file.load("/sys/block/sda/sda1/size") ' get mount points Dim mounts As String[] = Split(file.load("/proc/mounts"), "\n", "", True, True) for i = 0 to mounts.max 'lets extract the most interesting fields mounts[i] = split(mounts[i]," \n","",true,true).extract(0,3).join("\t") next 'mount info also retrun the filesystem type '/dev/disk/by-uuid lists all the devices as links to the physical device such as sda1 etc 'these are all available by-id by-label by-partlabel by-partuuid by-path by-uuid Dim uuids As String[] = Dir("/dev/disk/by-uuid") ' each is a link to the device Dim labels As String[] = Dir("/dev/disk/by-label") ' each is a link to the device listing(disks, "Disks") listing(Partitions, "DiskPartitions") listing(stats, "Stats for sda", "*", statmap) Listing(sda1stats, "Stats for sda1", "*", statmap) Print "Sizeof sda :";; Dsize;; Print " sda1 :";; sda1dsize listing(mounts, "Mounted Devices", "/dev*") ' change /dev to UUID if your system uses that For i As Integer = 0 To labels.Max Dim st As Stat = Stat("/dev/disk/by-label" &/ labels[i]) labels[i] = labels[i] & "->" & File.Name(st.link) Next listing(labels, "Label of disks") Print "done" Quit 0 Catch Print error.text & "\n" & error.where End Sub listing(source As String[], title As String, Optional filter As String = "*", map As String[] = []) Print title For i As Integer = 0 To source.max Dim s As String = source[i] If s Like filter Then If map.count > 0 Then Print Space(10); Subst(map[i], Left(s & Space(10), 10)) Else Print Space(10); s Endif Endif Next Print End Cheers Brian G From: "Bruce Steers" To: "Gambas mailing list" Sent: Tuesday, December 29, 2020 9:06:12 AM Subject: Re: [Gambas-user] Disk devices info and management oh noo, not in terminal !! :( (shakes fist in the air) Well i guess the terminal side could use shell lsblk and mount, BSD will be a different case, i have it running now on a VM so will see what output conversion i can manage. your component gets an awful lot more info compared to mine. My initial thoughts were to look into liblsblk and libmount somehow integrate that way but i'm on a bit of a learning curve when it comes to C. On Tue, 29 Dec 2020 at 16:08, Fabien Bodard < [ mailto:gambas.fr at gmail.com | gambas.fr at gmail.com ] > wrote: My goal was to improve the gambas dialogs.. because fining my usb key content is a job. But my component need to be finished and having a non dbus part in case of terminal using. ----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed Dec 30 23:16:10 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 30 Dec 2020 14:16:10 -0800 (PST) Subject: [Gambas-user] Daily builds Message-ID: <223800715.1739.1609366570386.JavaMail.zimbra@westwoodsvcs.com> Are Daily build still happening? Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Dec 31 01:28:36 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 31 Dec 2020 01:28:36 +0100 Subject: [Gambas-user] Daily builds In-Reply-To: <223800715.1739.1609366570386.JavaMail.zimbra@westwoodsvcs.com> References: <223800715.1739.1609366570386.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <91c25d0e-dc3e-b380-ca21-cb71ed250474@gmail.com> Le 30/12/2020 ? 23:16, Brian G a ?crit?: > Are Daily build still happening? > > Thank You > Brian G > I'm trying to fix them... -- Beno?t Minisini From g4mba5 at gmail.com Thu Dec 31 01:33:01 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 31 Dec 2020 01:33:01 +0100 Subject: [Gambas-user] fill color WebProgressBar In-Reply-To: <20201223210527.M89504@455.co.il> References: <20201223210527.M89504@455.co.il> Message-ID: <6161558b-e2ae-a798-bdb9-40823c5a2844@gmail.com> Le 23/12/2020 ? 22:08, Mayost Sharon a ?crit?: > hello > > How to change the fill color of the WebProgressBar > > Thanks > By using a custom style sheet. Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Thu Dec 31 01:52:46 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 30 Dec 2020 16:52:46 -0800 (PST) Subject: [Gambas-user] Daily builds In-Reply-To: <91c25d0e-dc3e-b380-ca21-cb71ed250474@gmail.com> References: <223800715.1739.1609366570386.JavaMail.zimbra@westwoodsvcs.com> <91c25d0e-dc3e-b380-ca21-cb71ed250474@gmail.com> Message-ID: <1715360170.1803.1609375965991.JavaMail.zimbra@westwoodsvcs.com> Thanks Beno?t! Thank You Brian G ----- Original Message ----- From: "Beno?t Minisini" To: "Gambas mailing list" Sent: Wednesday, December 30, 2020 4:28:36 PM Subject: Re: [Gambas-user] Daily builds Le 30/12/2020 ? 23:16, Brian G a ?crit?: > Are Daily build still happening? > > Thank You > Brian G > I'm trying to fix them... -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From ian.roper at iinet.net.au Thu Dec 31 02:05:00 2020 From: ian.roper at iinet.net.au (Ian Roper) Date: Thu, 31 Dec 2020 09:05:00 +0800 Subject: [Gambas-user] Web View help Message-ID: <9190c6cd-ceb2-b361-4878-d229ac58ae0d@iinet.net.au> Can't find the parameter to make a webview editable and went to the help and got this... ?comp ? gb.gui.webview ? webview File or directory does not exist at line #2: @{symbols} Stack backtrace: CComponent._new.225 CComponent.Get.118 WikiMarkdown.Command.199 Markup.ConvertMarkup.164 Markup.Convert.36 Markdown.ToHTML.15 Wiki._PrintPage.344 Wiki.Wiki.0 WebPage.__Render.31 WebPage.Render.56 Main.Main.735 gb.gui.webview / webview / Cheers, IR From g4mba5 at gmail.com Thu Dec 31 02:20:21 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 31 Dec 2020 02:20:21 +0100 Subject: [Gambas-user] Web View help In-Reply-To: <9190c6cd-ceb2-b361-4878-d229ac58ae0d@iinet.net.au> References: <9190c6cd-ceb2-b361-4878-d229ac58ae0d@iinet.net.au> Message-ID: <2132b9e7-7afc-6542-9698-25e0d984983f@gmail.com> Le 31/12/2020 ? 02:05, Ian Roper a ?crit?: > Can't find the parameter to make a webview editable and went to the help > and got this... > > ?comp ? gb.gui.webview ? webview File or directory does not exist at > line #2: > > @{symbols} > > Stack backtrace: > > CComponent._new.225 > CComponent.Get.118 > WikiMarkdown.Command.199 > Markup.ConvertMarkup.164 > Markup.Convert.36 > Markdown.ToHTML.15 > Wiki._PrintPage.344 > Wiki.Wiki.0 > WebPage.__Render.31 > WebPage.Render.56 > Main.Main.735 > gb.gui.webview / webview / > > > Cheers, > > IR > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- WebView of 'gb.gui.webview' is not editable. Regards, -- Beno?t Minisini From ian.roper at iinet.net.au Thu Dec 31 03:31:03 2020 From: ian.roper at iinet.net.au (Ian Roper) Date: Thu, 31 Dec 2020 10:31:03 +0800 Subject: [Gambas-user] Web View help In-Reply-To: <2132b9e7-7afc-6542-9698-25e0d984983f@gmail.com> References: <9190c6cd-ceb2-b361-4878-d229ac58ae0d@iinet.net.au> <2132b9e7-7afc-6542-9698-25e0d984983f@gmail.com> Message-ID: <27f4e2ac-fc37-e48c-e896-0b24b2853dfe@iinet.net.au> Changed over - not editable either. any reference to WebView.Editable produces an error. {Unknown Symbol} File or directory does not exist at line #2: @{symbols} Stack backtrace: CComponent._new.225 CComponent.Get.118 WikiMarkdown.Command.199 Markup.ConvertMarkup.164 Markup.Convert.36 Markdown.ToHTML.15 Wiki._PrintPage.344 Wiki.Wiki.0 WebPage.__Render.31 WebPage.Render.56 Main.Main.735 *gb.qt5.webview / webview / * ???????? Components -------------------------------------------------------------------------------- ????????? Component=gb.image *????????? Component=gb.qt5* ????????? Component=gb.form ????????? Component=gb.db ????????? Component=gb.desktop ????????? Component=gb.eval ????????? Component=gb.eval.highlight ????????? Component=gb.util ????????? Component=gb.form.editor ????????? Component=gb.settings ????????? Component=gb.media ????????? Component=gb.media.form *????????? Component=gb.qt5.webview* ????????? Component=gb.sdl2.audio ????????? Component=gb.web ????????? Component=gb.xml ?? -End of Technical Document- Cheers, IR On 31/12/20 9:20 am, Beno?t Minisini wrote: > Le 31/12/2020 ? 02:05, Ian Roper a ?crit?: >> Can't find the parameter to make a webview editable and went to the >> help and got this... >> >> ??comp ? gb.gui.webview ? webview File or directory does not exist at >> line #2: >> >> @{symbols} >> >> Stack backtrace: >> >> CComponent._new.225 >> CComponent.Get.118 >> WikiMarkdown.Command.199 >> Markup.ConvertMarkup.164 >> Markup.Convert.36 >> Markdown.ToHTML.15 >> Wiki._PrintPage.344 >> Wiki.Wiki.0 >> WebPage.__Render.31 >> WebPage.Render.56 >> Main.Main.735 >> gb.gui.webview / webview / >> >> >> Cheers, >> >> IR >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > WebView of 'gb.gui.webview' is not editable. > > Regards, > On 31/12/20 9:20 am, Beno?t Minisini wrote: > Le 31/12/2020 ? 02:05, Ian Roper a ?crit?: >> Can't find the parameter to make a webview editable and went to the >> help and got this... >> >> ??comp ? gb.gui.webview ? webview File or directory does not exist at >> line #2: >> >> @{symbols} >> >> Stack backtrace: >> >> CComponent._new.225 >> CComponent.Get.118 >> WikiMarkdown.Command.199 >> Markup.ConvertMarkup.164 >> Markup.Convert.36 >> Markdown.ToHTML.15 >> Wiki._PrintPage.344 >> Wiki.Wiki.0 >> WebPage.__Render.31 >> WebPage.Render.56 >> Main.Main.735 >> gb.gui.webview / webview / >> >> >> Cheers, >> >> IR >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > WebView of 'gb.gui.webview' is not editable. > > Regards, > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Dec 31 16:47:45 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 31 Dec 2020 15:47:45 +0000 Subject: [Gambas-user] Web View help In-Reply-To: <27f4e2ac-fc37-e48c-e896-0b24b2853dfe@iinet.net.au> References: <9190c6cd-ceb2-b361-4878-d229ac58ae0d@iinet.net.au> <2132b9e7-7afc-6542-9698-25e0d984983f@gmail.com> <27f4e2ac-fc37-e48c-e896-0b24b2853dfe@iinet.net.au> Message-ID: I have an app that uses qt webview and uses the Editable setting. It's working fine here. Did you select "Compile All" on your source code to make sure all sources get recompiled to qt? On Thu, 31 Dec 2020 at 02:32, Ian Roper wrote: > Changed over - not editable either. > > any reference to WebView.Editable produces an error. {Unknown Symbol} > > > File or directory does not exist at line #2: > > @{symbols} > > Stack backtrace: > > CComponent._new.225 > CComponent.Get.118 > WikiMarkdown.Command.199 > Markup.ConvertMarkup.164 > Markup.Convert.36 > Markdown.ToHTML.15 > Wiki._PrintPage.344 > Wiki.Wiki.0 > WebPage.__Render.31 > WebPage.Render.56 > Main.Main.735 > *gb.qt5.webview / webview / * > > Components > > -------------------------------------------------------------------------------- > Component=gb.image > * Component=gb.qt5* > Component=gb.form > Component=gb.db > Component=gb.desktop > Component=gb.eval > Component=gb.eval.highlight > Component=gb.util > Component=gb.form.editor > Component=gb.settings > Component=gb.media > Component=gb.media.form > * Component=gb.qt5.webview* > Component=gb.sdl2.audio > Component=gb.web > Component=gb.xml > > -End of Technical Document- > > > Cheers, > > IR > > > On 31/12/20 9:20 am, Beno?t Minisini wrote: > > Le 31/12/2020 ? 02:05, Ian Roper a ?crit : > > Can't find the parameter to make a webview editable and went to the help > and got this... > > comp ? gb.gui.webview ? webview File or directory does not exist at line > #2: > > @{symbols} > > Stack backtrace: > > CComponent._new.225 > CComponent.Get.118 > WikiMarkdown.Command.199 > Markup.ConvertMarkup.164 > Markup.Convert.36 > Markdown.ToHTML.15 > Wiki._PrintPage.344 > Wiki.Wiki.0 > WebPage.__Render.31 > WebPage.Render.56 > Main.Main.735 > gb.gui.webview / webview / > > > Cheers, > > IR > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > WebView of 'gb.gui.webview' is not editable. > > Regards, > > On 31/12/20 9:20 am, Beno?t Minisini wrote: > > Le 31/12/2020 ? 02:05, Ian Roper a ?crit : > > Can't find the parameter to make a webview editable and went to the help > and got this... > > comp ? gb.gui.webview ? webview File or directory does not exist at line > #2: > > @{symbols} > > Stack backtrace: > > CComponent._new.225 > CComponent.Get.118 > WikiMarkdown.Command.199 > Markup.ConvertMarkup.164 > Markup.Convert.36 > Markdown.ToHTML.15 > Wiki._PrintPage.344 > Wiki.Wiki.0 > WebPage.__Render.31 > WebPage.Render.56 > Main.Main.735 > gb.gui.webview / webview / > > > Cheers, > > IR > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > WebView of 'gb.gui.webview' is not editable. > > Regards, > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Dec 31 17:00:24 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 31 Dec 2020 16:00:24 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> References: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> Message-ID: On Wed, 30 Dec 2020 at 19:20, Beno?t Minisini wrote: > Le 30/12/2020 ? 20:10, Bruce Steers a ?crit : > > aah , now you tell me lol. > > okay point noted. > > > > On the plus side though i have BSD compiling up to date :) > > (well GhostBSD at least) > > > > I've encountered 3 issues with 3 fixes applied after getting the > > dependencies right... > > > > 1. trunk_version.h does not get created in ./main/ > > fix: copy the trunk_version.h file from another source folder > > No idea why. > Me neither, where is the command that does it? I can investigate. > > 2. sys/sysmacros.h not found for gbx_c_file.c > > fix: commented out the define line on line 35. > > (is there a way sysmacros.h can be ditched? maybe import the code?) > > You can use an "#ifdef OS_BSD" to not include the file on BSD. Excellent , #ifndif even ;) > > 3. BSD rmdir command does not like the --ignore-non-empty flag in the > > makefiles (it does not use ANY -- prefixes) > > Fix: remove flag > > Is there a flag that does the same thing as in Linux? > Does not look like it, it has 2 args -pv BSD info.... The following option is available: *-p* Each *directory* argument is treated as a pathname of which all components will be removed, if they are empty, starting with the last most component. (See rm(1) for fully non-discriminant re- cursive removal.) *-v* Be verbose, listing each directory as it is removed. I've made a branch for testing (cannot find BSD docker image on gitlab) https://gitlab.com/bsteers4/gambas/-/tree/master-bsd Applied the #ifndef OS_BSD fix (works a treat) Removed the -ignore-fail-on-non-empty flag (can what this does be done another way?) Only problems from master are missing rmdir --ignore-fail-on-non-empty flag and trunk_version.h creation needs sorting out. Wishing well -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Thu Dec 31 17:31:32 2020 From: taboege at gmail.com (Tobias Boege) Date: Thu, 31 Dec 2020 17:31:32 +0100 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> Message-ID: <20201231163132.GD1282@highrise.localdomain> On Thu, 31 Dec 2020, Bruce Steers wrote: > On Wed, 30 Dec 2020 at 19:20, Beno?t Minisini wrote: > > > Le 30/12/2020 ? 20:10, Bruce Steers a ?crit : > > > aah , now you tell me lol. > > > okay point noted. > > > > > > On the plus side though i have BSD compiling up to date :) > > > (well GhostBSD at least) > > > > > > I've encountered 3 issues with 3 fixes applied after getting the > > > dependencies right... > > > > > > 1. trunk_version.h does not get created in ./main/ > > > fix: copy the trunk_version.h file from another source folder > > > > No idea why. > > > > Me neither, where is the command that does it? I can investigate. > It's in main/Makefile.am near the beginning of the file. The configure script translates Makefile.am into a real Makefile, so you have to re-./configure after you made changes to Makefile.am to regenerate the Makefile, if you want to test your changes in the actual build process. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bsteers4 at gmail.com Thu Dec 31 18:22:51 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 31 Dec 2020 17:22:51 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> Message-ID: > 2. sys/sysmacros.h not found for gbx_c_file.c > > fix: commented out the define line on line 35. >> > (is there a way sysmacros.h can be ditched? maybe import the code?) >> >> You can use an "#ifdef OS_BSD" to not include the file on BSD. > > > Excellent , #ifndif even ;) > #ifndef even lol :) I've fixed trunk_version.h problem here... possibly not on bash on bsd, modified the if conditions format a little. https://gitlab.com/bsteers4/gambas/-/blob/master-bsd/main/Makefile.am My todo list on perfecting the BSD compile is now this... gotta go through the individual QT dependencies as installing just 'qt5' installs LOADS, much not needed, 200mb of docs 120mb examples, etc. It seemed useful as it also installed lots of other dependencies like llvm and postgresql but i think it's be better to just get what's needed to reduce downloads. (having just a base system and installing deps ate up a 20gb VM drive) All the best BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Dec 31 18:23:36 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 31 Dec 2020 17:23:36 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: <20201231163132.GD1282@highrise.localdomain> References: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> <20201231163132.GD1282@highrise.localdomain> Message-ID: i found and fixed problem :) https://gitlab.com/bsteers4/gambas/-/blob/master-bsd/main/Makefile.am On Thu, 31 Dec 2020 at 16:32, Tobias Boege wrote: > On Thu, 31 Dec 2020, Bruce Steers wrote: > > On Wed, 30 Dec 2020 at 19:20, Beno?t Minisini wrote: > > > > > Le 30/12/2020 ? 20:10, Bruce Steers a ?crit : > > > > aah , now you tell me lol. > > > > okay point noted. > > > > > > > > On the plus side though i have BSD compiling up to date :) > > > > (well GhostBSD at least) > > > > > > > > I've encountered 3 issues with 3 fixes applied after getting the > > > > dependencies right... > > > > > > > > 1. trunk_version.h does not get created in ./main/ > > > > fix: copy the trunk_version.h file from another source folder > > > > > > No idea why. > > > > > > > Me neither, where is the command that does it? I can investigate. > > > > It's in main/Makefile.am near the beginning of the file. > > The configure script translates Makefile.am into a real Makefile, so you > have to re-./configure after you made changes to Makefile.am to regenerate > the Makefile, if you want to test your changes in the actual build process. > > Regards, > Tobias > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Dec 31 19:20:23 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 31 Dec 2020 18:20:23 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> References: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> Message-ID: This is all very nearly fixed and ready to be forgotten about again ;) Only issue left is rmdir > > I've encountered 3 issues with 3 fixes applied after getting the > > dependencies right... > Will make dependency list better, qt5 needs to be replaced for individual components > > 1. trunk_version.h does not get created in ./main/ > > fix: copy the trunk_version.h file from another source folder > > No idea why. > fixed here.. https://gitlab.com/bsteers4/gambas/-/commit/6f8d861760db57ec58358c962be3b2791beaef7c > > 2. sys/sysmacros.h not found for gbx_c_file.c > > fix: commented out the define line on line 35. > > (is there a way sysmacros.h can be ditched? maybe import the code?) > > You can use an "#ifdef OS_BSD" to not include the file on BSD. > fixed here... https://gitlab.com/bsteers4/gambas/-/commit/f6bcd6e121b0eeee458653161914df6b11178a75 > > 3. BSD rmdir command does not like the --ignore-non-empty flag in the > > makefiles (it does not use ANY -- prefixes) > > Fix: remove flag > > Is there a flag that does the same thing as in Linux? > Just this one left... Is there a var to detect BSD like OS_BSD for the makefile? could change to... * if test $OS_BSD -eq 1; then; \* * rmdir $(DESTDIR)$(datarootdir)/desktop-directories; \* *else; \* * rmdir --ignore-fail-on-non-empty $(DESTDIR)$(datarootdir)/desktop-directories; \* *fi; \* Was almost ready to submit a merge request then remembered about this rmdir issue. Respects. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Thu Dec 31 20:04:48 2020 From: taboege at gmail.com (Tobias Boege) Date: Thu, 31 Dec 2020 20:04:48 +0100 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> <20201231163132.GD1282@highrise.localdomain> Message-ID: <20201231190448.GE1282@highrise.localdomain> On Thu, 31 Dec 2020, Bruce Steers wrote: > i found and fixed problem :) > https://gitlab.com/bsteers4/gambas/-/blob/master-bsd/main/Makefile.am > Could you explain what the problem was? Was it a GNU-, bash-, Linux-ism in the script or something else entirely? The diff of that commit [1] doesn't make sense to me. Why would removing a layer of dollars on *some* shell variables fix anything? Moreover, do they not get expanded too soon now? What the trunk_version.h feature does is put version control data into the output of the compiler and interpreter version, in addition to the Gambas version string, i.e. if you compile from a git repository, you get: $ main/gbc/gbc3 --version 3.14.90 46625f446 (gb.test.tap) Sorry to bother, but I don't have a BSD available. But if I had I would try to make a *fresh* clone of your master-bsd branch and run the routine cd main && ./reconf && ./configure && make trunk_version.h && cat trunk_version.h to check if that problem really is fixed. If you then build the compiler or interpreter and call it with the --version flag, you should see your current commit "fdff17b00" and the "master-bsd" branch mentioned in the output. Regards, Tobias [1] https://gitlab.com/bsteers4/gambas/-/commit/fdff17b005c2fbea193539927c1d4dadae5ef3ed -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bsteers4 at gmail.com Thu Dec 31 21:51:29 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 31 Dec 2020 20:51:29 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: <20201231190448.GE1282@highrise.localdomain> References: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> <20201231163132.GD1282@highrise.localdomain> <20201231190448.GE1282@highrise.localdomain> Message-ID: Do not fret Tobias. I have a knack for looking at things alternatively. The double $$ is not something I've used before so issued that line as I would have done. I tried a number of other things too till I found the issue. Why? You ask. Lol, I'm sure we've both been at this long enough to know, god knows why it works better that way, but it does ? And yes I've checked the output trunk_version.h file against original and using changes on bsd and linux. Tis all good ? The only "bad" change done is I removed a non empty flag from rmdir commands in app/ All other changes I think are sound. BruceS On Thu, 31 Dec 2020, 19:05 Tobias Boege, wrote: > On Thu, 31 Dec 2020, Bruce Steers wrote: > > i found and fixed problem :) > > https://gitlab.com/bsteers4/gambas/-/blob/master-bsd/main/Makefile.am > > > > Could you explain what the problem was? Was it a GNU-, bash-, Linux-ism in > the script or something else entirely? The diff of that commit [1] doesn't > make sense to me. Why would removing a layer of dollars on *some* shell > variables fix anything? Moreover, do they not get expanded too soon now? > > What the trunk_version.h feature does is put version control data into the > output of the compiler and interpreter version, in addition to the Gambas > version string, i.e. if you compile from a git repository, you get: > > $ main/gbc/gbc3 --version > 3.14.90 46625f446 (gb.test.tap) > > Sorry to bother, but I don't have a BSD available. But if I had I would try > to make a *fresh* clone of your master-bsd branch and run the routine > > cd main && ./reconf && ./configure && make trunk_version.h && cat > trunk_version.h > > to check if that problem really is fixed. If you then build the compiler or > interpreter and call it with the --version flag, you should see your > current > commit "fdff17b00" and the "master-bsd" branch mentioned in the output. > > Regards, > Tobias > > [1] > https://gitlab.com/bsteers4/gambas/-/commit/fdff17b005c2fbea193539927c1d4dadae5ef3ed > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.roper at iinet.net.au Thu Dec 31 22:59:14 2020 From: ian.roper at iinet.net.au (Ian Roper) Date: Fri, 1 Jan 2021 05:59:14 +0800 Subject: [Gambas-user] Web View help In-Reply-To: References: <9190c6cd-ceb2-b361-4878-d229ac58ae0d@iinet.net.au> <2132b9e7-7afc-6542-9698-25e0d984983f@gmail.com> <27f4e2ac-fc37-e48c-e896-0b24b2853dfe@iinet.net.au> Message-ID: <80197f22-eb5b-7eb1-79ad-4f77e71d4b59@iinet.net.au> Thanks Bruce. It used to work for me too about a week ago. - I have a number of programs that use this component. Primary drive died on Sat 26th. Replaced and installed a fresh Mint 20 & updates to current. Installed Gambas using the PPA gambas-team/gambas-daily Broken since then, and that's the only thing that appears not to work. I see that Benoit has mentioned that the daily updates are not working so I'll wait until that is fixed and I get a fresh build to see if that fixes it. The only other thing I can think of is that I'm missing something (qt?) from the Mint build, but that does seem unlikely. Cheers. IR On 31/12/20 11:47 pm, Bruce Steers wrote: > I have an app that uses qt webview and uses the Editable setting. > It's working fine here. > Did you select "Compile All" on your source code to make sure all > sources get recompiled to qt? > > > > On Thu, 31 Dec 2020 at 02:32, Ian Roper > wrote: > > Changed over - not editable either. > > any reference to WebView.Editable produces an error. {Unknown Symbol} > > > File or directory does not exist at line #2: > > @{symbols} > > Stack backtrace: > > CComponent._new.225 > CComponent.Get.118 > WikiMarkdown.Command.199 > Markup.ConvertMarkup.164 > Markup.Convert.36 > Markdown.ToHTML.15 > Wiki._PrintPage.344 > Wiki.Wiki.0 > WebPage.__Render.31 > WebPage.Render.56 > Main.Main.735 > *gb.qt5.webview / webview / * > > ???????? Components > -------------------------------------------------------------------------------- > ????????? Component=gb.image > *????????? Component=gb.qt5* > ????????? Component=gb.form > ????????? Component=gb.db > ????????? Component=gb.desktop > ????????? Component=gb.eval > ????????? Component=gb.eval.highlight > ????????? Component=gb.util > ????????? Component=gb.form.editor > ????????? Component=gb.settings > ????????? Component=gb.media > ????????? Component=gb.media.form > *????????? Component=gb.qt5.webview* > ????????? Component=gb.sdl2.audio > ????????? Component=gb.web > ????????? Component=gb.xml > > ?? -End of Technical Document- > > > Cheers, > > IR > > > On 31/12/20 9:20 am, Beno?t Minisini wrote: >> Le 31/12/2020 ? 02:05, Ian Roper a ?crit?: >>> Can't find the parameter to make a webview editable and went to >>> the help and got this... >>> >>> ??comp ? gb.gui.webview ? webview File or directory does not >>> exist at line #2: >>> >>> @{symbols} >>> >>> Stack backtrace: >>> >>> CComponent._new.225 >>> CComponent.Get.118 >>> WikiMarkdown.Command.199 >>> Markup.ConvertMarkup.164 >>> Markup.Convert.36 >>> Markdown.ToHTML.15 >>> Wiki._PrintPage.344 >>> Wiki.Wiki.0 >>> WebPage.__Render.31 >>> WebPage.Render.56 >>> Main.Main.735 >>> gb.gui.webview / webview / >>> >>> >>> Cheers, >>> >>> IR >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> WebView of 'gb.gui.webview' is not editable. >> >> Regards, >> > On 31/12/20 9:20 am, Beno?t Minisini wrote: >> Le 31/12/2020 ? 02:05, Ian Roper a ?crit?: >>> Can't find the parameter to make a webview editable and went to >>> the help and got this... >>> >>> ??comp ? gb.gui.webview ? webview File or directory does not >>> exist at line #2: >>> >>> @{symbols} >>> >>> Stack backtrace: >>> >>> CComponent._new.225 >>> CComponent.Get.118 >>> WikiMarkdown.Command.199 >>> Markup.ConvertMarkup.164 >>> Markup.Convert.36 >>> Markdown.ToHTML.15 >>> Wiki._PrintPage.344 >>> Wiki.Wiki.0 >>> WebPage.__Render.31 >>> WebPage.Render.56 >>> Main.Main.735 >>> gb.gui.webview / webview / >>> >>> >>> Cheers, >>> >>> IR >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> WebView of 'gb.gui.webview' is not editable. >> >> Regards, >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: