From jussi.lahtinen at gmail.com Mon Mar 1 02:13:55 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 1 Mar 2021 03:13:55 +0200 Subject: [Gambas-user] Feature or bug in the "write" syntax? Message-ID: See the attachment. Why is the second write allowed? Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: EyeTrap-0.0.1.tar.gz Type: application/gzip Size: 11648 bytes Desc: not available URL: From g4mba5 at gmail.com Mon Mar 1 02:18:09 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 1 Mar 2021 02:18:09 +0100 Subject: [Gambas-user] Feature or bug in the "write" syntax? In-Reply-To: References: Message-ID: Le 01/03/2021 ? 02:13, Jussi Lahtinen a ?crit?: > See the attachment. Why is the second write allowed? > > Jussi As stated in the WRITE documentation page, if you don't specify the stream, then WRITE will write to the standard output. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Mon Mar 1 02:28:02 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 1 Mar 2021 03:28:02 +0200 Subject: [Gambas-user] Feature or bug in the "write" syntax? In-Reply-To: References: Message-ID: > As stated in the WRITE documentation page, if you don't specify the > stream, then WRITE will write to the standard output. > Pff... I missed that. I was confused as I didn't see it printed until I closed the program. I guess that is when it flushes the buffer. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Mar 1 07:15:45 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 1 Mar 2021 06:15:45 +0000 Subject: [Gambas-user] Corruption of application.conf with Raspberry Pi In-Reply-To: References: Message-ID: sorry i read your question on my phone at work and misread it. various things can cause default settings load. difference in exe filename/launching from a link, etc. By default Settings.class uses the application name if you create a symlink then the application gets a different name and so does the settings file , to fix this use an explicit name. Ie. make a public variable *Public mySettings As Settings* then use... *mySettings = New Settings(Settings.DefaultDir &/ "myExplicitSettingsFile.conf")* then search and replace* Settings[ *for *mySettings[ *in your source. then you are sure to use *myExplicitSettingsFile.conf *every time. alternatively you could simply import the Settings.class and modify it to work exactly how you want it to. I wrote a quick "how to" on importing the gb.settings component here... https://forum.gambas.one/viewtopic.php?f=6&t=1029 If you do not know how to import gb.settings then that will let you know how. you could then add a static *DoNotSave* variable to your Settings.class file and stop it saving in* Public sub _free()* Hope that helps BruceS On Sun, 28 Feb 2021 at 19:34, Michele V. wrote: > Gambas on raspberry Pi with raspbian > Sometimes using class gb.setting the file .conf become corrupted and > default value are loaded > most likely this happen in case of crash of gambas program > but i'm not completely sure > in my gambas application whenever a value is changed a settings.save > command is executed > Raspberry Pi use a SD card and it is very slow in read write operation > EXT4 with journaling delays writing change on SD card > Every gambas application write the .conf file whenever is terminated > I suppose the sum of that condition may cause the problem > Another question: > Is possible disable the .conf write at the end of application (specially > in case of crash)? > > > > > ------------------------------------------------------------------------------------------------------------------------------------------- > Io scrivo da UBUNTU GNU/LINUX > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Mar 1 11:12:54 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 1 Mar 2021 11:12:54 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <16d0571f-b772-aa0c-9564-82c59ff8932d@gmail.com> <20210211190235.GA3395629@highrise.localdomain> <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> Message-ID: <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> Am 26.02.21 um 02:26 schrieb Jussi Lahtinen: > > Or did I do sth wrong while copying it? > > > I think so, sTest is written in Process_Read: > > Fast Public Sub Process_Read() > ? > ? Dim sTmp As String = Read #hProcess, 1 > ? > ? sTest &= sTmp ? > ? > End > > It is a stress test for writing via process as I have seen missing data > in similar code. But I think the problem doesn't exist anymore (and > hopefully never reappears). > At least the tester doesn't encounter it. It does the tests 1000 times, > so if they all fail there are 1000 errors from each test... However the > problem was so rare, > that you could see it only once or so. ---------------------------------------------------------------- #tldr: All fast tests pass, we can think about how to integrate it into Gambas development so that we can do a "make test" later. ---------------------------------------------------------------- Ok, I ignored that problem you mentioned until now. Please have a look at the project as it is now. It runs and passes all tests which run fast with gb.test within one second. And it tells if and what test failed so that Beno?t can find the failing test easily. This is the great advantage of gb.test. These slow ones fail (i did some copy/paste errors) and some testmethods in Test1 have silly and inadequate names: > # Ausgef?hrt: 'Testsuite: SlowOnes' > # > # 7 tests failed: > # 1: -- Test1:AlotOfSlowExecs > # 2: -- Test1:LongRunningTimers > # 1: Test1:Timertest -- Timer 1 > # 2: Test1:Timertest -- Timer 2 > # 3: Test1:Timertest -- Test1:Timertest crashed with error 'End of file' in 'Test1.Timertest.2852' > # 4: -- Test1:VeryVeryLongRunner > # 5: -- Test1:VerylongRunner > # > # FAILED But the fast ones (the mayority of all tests) pass: > 1..1 > > Test Test1:DoTests > # Start Crash and compiler tests > # End Crash and compiler tests > ok 1 - ReadFileBoolean > ok 2 - ReadFileString > ok 3 - ReadFileShort > ok 4 - ReadFileByte > ok 5 - ReadFileString2 > ok 6 - ReadFileByte2 > ok 7 - ReadFileGambas > ok 8 - ReadFileByte3 > ok 9 - Testing StringArray > ok 10 - Testing StringArray > ok 11 - Testing StringArray > ok 12 - Testing StringArray > ok 13 - Testing StringArray > ok 14 - Testing StringArray > ok 15 - Testing StringArray > ok 16 - Testing StringArray > ok 17 - Testing StringArray > ok 18 - Testing StringArray > ok 19 - Testing StringArray > ok 20 - Testing StringArray > ok 21 - Testing StringArray > ok 22 - Testing StringArray > ok 23 - String Comparison 1 > ok 24 - String Comparison 2 > ok 25 - String Comparison 3 > ok 26 - String Comparison 4 > ok 27 - String Comparison 5 > ok 28 - String Comparison 6 > ok 29 - Playing with Strings > ok 30 - Testing RInStr > ok 31 - Testing RInStr > ok 32 - Testing RInStr > ok 33 - Html lt > ok 34 - Html gt > ok 35 - Bad Html gt lt > ok 36 - Like 1 > ok 37 - Like 2 > ok 38 - Like 3 > ok 39 - Instr 1 > ok 40 - Instr 2 > ok 41 - Instr 3 > ok 42 - Split string > ok 43 - Scan string > ok 44 - string greater > ok 45 - string not smaller > ok 46 - string greater equals > ok 47 - string greater equals 2 > ok 48 - string samller equals > ok 49 - string samller equals 2 > ok 50 - UnQuote$ > ok 51 - Lenstr57 > ok 52 - Validate result with md5sum. > ok 53 - Trigonometric 1 > ok 54 - Trigonometric 2 > ok 55 - Trigonometric 3 > ok 56 - Trigonometric 4 > ok 57 - Trigonometric 5 > ok 58 - Trigonometric 4 > ok 59 - Str(ACosh(2)) > ok 60 - Deg(Ang(-1,1)) > ok 61 - Str(ATanh(0.5)) > ok 62 - Str(Sinh(1)) > ok 63 - ((8 Or 32) Xor 16) > ok 64 - Bit manipulation 1 > ok 65 - Bit manipulation 2 > ok 66 - Bit manipulation 3 > ok 67 - Bit manipulation 4 > ok 68 - Bit manipulation 5 > ok 69 - Bit manipulation 6 > ok 70 - Bit manipulation 7 > ok 71 - Bit manipulation 8 > ok 72 - Some numbers crumpling > ok 73 - Int Pi > ok 74 - Int -Pi > ok 75 - Max Pi > ok 76 - Min Pi > ok 77 - Sgn(-123456789) > ok 78 - Sgn(-Pi) > ok 79 - Round(Pi, -2) > ok 80 - Round(CSingle(6) + 0.01) > ok 81 - Round(1972, 2) > ok 82 - Rnd 1 > ok 83 - Rnd 3 > ok 84 - Choose 1 > ok 85 - Choose 2 > ok 86 - Choose 3 > ok 87 - Choose 4 > ok 88 - Choose 5 > ok 89 - IIf ii Mod 2 > ok 90 - ii /= 0 > ok 91 - ii = 3 / 0 > ok 92 - ii = cat or dog > ok 93 - ii = 1.234 Div 5 > ok 94 - Is 19 Div 5 > ok 95 - Is2 19 Div 5 > ok 96 - And If test 1 > ok 97 - > ok 98 - > ok 99 - Int 1 > ok 100 - Int 2 > ok 101 - Int 3 > ok 102 - Int 4 > ok 103 - Asl Shl > ok 104 - Asr Shr > ok 105 - Ang Atan2 > ok 106 - Sinh ASinh > ok 107 - TestClass3.TestByref > ok 108 - Breaktest > ok 109 - Test With > ok 110 - Cbr > ok 111 - Sqr > ok 112 - Cbr(Pi ^ 3) - Pi > ok 113 - Sqr(Pi ^ 2) > ok 114 - CByte(17) > ok 115 - CByte(100000) > ok 116 - CByte(True) > # Or Or Xor > # Or If Else > # CBool > ok 117 - Abs((ACosh(Cosh(0.5)) - 0.5) > # CFloat > # CShort > # CSingle > ok 118 - Format Pi > # ValPtr > # ValPtr2 > ok 119 - Val(Format$(Exp(20) > ok 120 - CInt(Exp10(4)) > ok 121 - CInt 12 > ok 122 - Exp2(4) > ok 123 - Expm vs Exp > # Goto Test > ok 124 - Eval Quote Test > ok 125 - Eval(A + B + C, cCol) > ok 126 - InlineArr.Join > ok 127 - Hyp = Sqr > ok 128 - IsBoolean > ok 129 - IsBoolean2 > ok 130 - HighestLong LowestLong > ok 131 - System.Architecture System.Family > ok 132 - Is 1 = 2 Or Me._TestAndIf() = 1 > ok 133 - iTestAndIf = 1 > ok 134 - Is 1 = 2 Or If Me._TestAndIf() = 1 > ok 135 - iTestAndIf = 1 > ok 136 - IsBlank > ok 137 - IsDigit(1972) > ok 138 - IsDigit > ok 139 - IsDir(Application.Path) > ok 140 - IsDir <> File > ok 141 - Not existent dir/file > ok 142 - ClassTest.x = 1 > ok 143 - Continue ok > ok 144 - Hex$ > ok 145 - IsLCase > ok 146 - IsLCase2 > ok 147 - IsUCase GAMBAS > ok 148 - IsUCase Cool > ok 149 - CVariant array > ok 150 - String array > ok 151 - 9A177BA5 > ok 152 - IsHexa > ok 153 - IsNumber > ok 154 - IsNumber2 > ok 155 - IsFloat > ok 156 - IsFloat2 > ok 157 - Val Str > ok 158 - ClassArray > ok 159 - IsInteger > ok 160 - IsInteger2 > ok 161 - IsPunct > ok 162 - IsPunct2 > ok 163 - IsAscii > ok 164 - IsAscii2 > ok 165 - IsDate > ok 166 - IsDate2 > ok 167 - IsLetter > ok 168 - IsLetter2 > ok 169 - IsLong > ok 170 - Typeof Lof > ok 171 - IsSpace > ok 172 - IsSpace2 > ok 173 - Floor > ok 174 - Ceil > ok 175 - Log2 > ok 176 - Log2-2 > ok 177 - Format$ Log > ok 178 - Log10 > ok 179 - Log10-2 > ok 180 - Mid > ok 181 - Mid2 > ok 182 - Mid3 > ok 183 - Mid4 > ok 184 - Mid5 > ok 185 - Mid6 > ok 186 - Mid7 > ok 187 - Logp > ok 188 - Logp2 > ok 189 - mTest.Test() > ok 190 - Let > ok 191 - Hyp Mag > ok 192 - Day > # 500 Dates > ok 193 - DateDiff > ok 194 - Month > ok 195 - Hour > ok 196 - Minute > ok 197 - Second > ok 198 - Access > ok 199 - ClassTest symbol not exist > ok 200 - ClassTest 1 > ok 201 - ClassTest 2 > ok 202 - ClassTest 3 > ok 203 - ClassTest 4 > ok 204 - ClassTest 5 > ok 205 - ClassTest 6 > ok 206 - TestPoint 1 > ok 207 - TestPoint 2 > ok 208 - mTest.Test1 > ok 209 - TestClass2.iInitVar > ok 210 - ClassTest 7 > ok 211 - ClassTest 8 > ok 212 - Format$ Rad > ok 213 - Rad(180) - Pi > ok 214 - Repeat Until > ok 215 - While Wend > ok 216 - For Next > ok 217 - IIf(1 = 1, 10, 20) > ok 218 - CLong(Pi) > ok 219 - CLong(Pi ^ (Pi ^ Pi)) > ok 220 - For To > ok 221 - Stat ~ > ok 222 - Stat ~ > ok 223 - -2E-16 > ok 224 - Pointer Magic > ok 225 - Open File Create/Read > ok 226 - Memory Write > ok 227 - Memory Write 2 > ok 228 - Memory Write 3 > ok 229 - Translate > ok 230 - Format$ Tanh > ok 231 - Test Time > ok 232 - Array play > ok 233 - Test Str$ > ok 234 - Test {Dim} > ok 235 - VarPtr Short > ok 236 - VarPtr Single > ok 237 - VarPtr Long > ok 238 - VarPtr String > ok 239 - VarPtr Float > ok 240 - VarPtr Int > ok 241 - VarPtr Byte > ok 242 - Date play 1 > ok 243 - Date play 2 > ok 244 - Date play 3 > ok 245 - mTest.TestErrorManagment 1 > ok 246 - mTest.TestErrorManagment 2 > ok 247 - mTest.TestErrorManagment 3 > ok 248 - mTest.TestErrorManagment 4 > ok 249 - Test &/ > ok 250 - Test Mkdir IsDir > ok 251 - date to file > ok 252 - Test Link > ok 253 - Test file Line Input > ok 254 - Test Read file > ok 255 - Dir 1 > ok 256 - RDir 1 > ok 257 - RDir 2 > ok 258 - Dir 2 > ok 259 - test Dfree > ok 260 - IsDir with not dir > ok 261 - test Alloc > ok 262 - test Realloc > ok 263 - ii = -3 > ok 264 - Comp 1 > ok 265 - Comp 2 > ok 266 - Comp 3 > ok 267 - Comp 4 > ok 268 - Comp 5 > ok 269 - Comp 6 > ok 270 - mTest.TestErrorManagment3(1) > ok 271 - mTest.TestErrorManagment3(2) > ok 272 - mTest.ArrayBoundsTest > ok 273 - Test TestGosub > ok 274 - Even Odd > ok 275 - Byte@ VarPtr > ok 276 - For .. Round > ok 277 - Test If False > ok 278 - JITTest > ok 279 - YetAnotherClass ThisObject_Gets_Lost > ok 280 - JITTestBoolArray > # - - - - - - - - - - - - - - - - - - - - - - - - - - -Missing tests > # These key words are missing from test: > # Abs > # Access > # ACos > # ACosh > # Alloc > # Ang > # APPEND > # * > # ^ > # \ > # New Float[ > # New Single[ > # New Long[ > # New Short[ > # New Byte[ > # New Boolean[ > # New Date[ > # New Variant[ > # New Object[ > # New Pointer[ > # Asc > # ASin > # ASinh > # Asl > # Asr > # += > # -= > # *= > # /= > # \= > # >= > # ATan > # ATan2 > # ATanh > # BChg > # BClr > # BEGINS > # Bin$ > # Boolean@ > # BSet > # BTst > # Byte@ > # CBool > # Cbr > # CByte > # CDate > # Ceil > # CFloat > # Chr$ > # CInt > # CLong > # Comp > # gb.Binary > # gb.IgnoreCase > # gb.Like > # CONTINUE > # Cos > # Cosh > # CREATE > # CShort > # CSingle > # CVariant > # Date > # DateAdd > # DateDiff > # Day > # DEC > # DEFAULT > # Deg > # DFree > # Dir > # DIV > # DO > # ENDS > # Eof > # Eval > # Even > # Exist > # Exp > # Exp10 > # Exp2 > # Expm > # Fix > # Float@ > # Floor > # Format$ > # Frac > # GOTO > # Free > # Hex$ > # Hour > # Html$ > # Hyp > # IIf > # ["A": 1, "B": 2, "C": 3] > # INPUT > # InStr > # Int > # Int@ > # IsAscii > # IsBlank > # IsBoolean > # IsDate > # IsDigit > # IsDir > # IsFloat > # IsHexa > # IsInteger > # IsLCase > # IsLetter > # IsLong > # IsNumber > # IsPunct > # IsSpace > # IsUCase > # LCase$ > # Len > # LET > # LIKE > # LINE INPUT > # LINK > # Lof > # Log > # Log10 > # Log2 > # Logp > # Long@ > # LOOP > # Lsl > # Lsr > # LTrim$ > # Mag > # ME > # MEMORY > # Mid$ > # Min > # Minute > # MKDIR > # MkInteger$ > # MkLong$ > # MOD > # Month > # MOVE > # NOT > # Now > # Odd > # OR IF > # OUTPUT > # Pi > # Pointer@ > # Quote$ > # Rad > # RANDOMIZE > # RDir > # Realloc > # REPEAT > # Replace$ > # Right$ > # RInStr > # RMDIR > # Rnd > # Rol > # Ror > # Round > # RTrim$ > # Scan > # Second > # Sgn > # SHELL > # Shl > # Short@ > # Shr > # Sin > # Single@ > # Sinh > # SizeOf > # SLEEP > # Space$ > # Sqr > # Stat > # Str$ > # == > # String$ > # Str@ > # Subst$ > # SWAP > # System.Architecture > # System.ByteOrder > # System.Family > # Tan > # Tanh > # Time > # Tr$ > # Trim$ > # UCase$ > # Unquote$ > # UNTIL > # Val > # VarPtr > # WAIT > # WATCH > # Week > # WeekDay > # WEND > # WHILE > # XOR > # Year > # EndOfThisList > # > not ok 281 - # TODO Tests missing > 1..281 > ok 1 - Test1:DoTests > > # Ausgef?hrt: 'Test1.DoTests' > # > # 1 todo: > # 281: Test1:DoTests -- # Tests missing > # > # PASSED Have fun with 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 bagonergi at gmail.com Mon Mar 1 11:14:47 2021 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 1 Mar 2021 11:14:47 +0100 Subject: [Gambas-user] GridView Cell Height with WordWrap In-Reply-To: References: Message-ID: Hi Rolf, I thank you for the question about the _GridView_Cell.WordWrap property which allowed me to go deeper into the subject. I would like to make a couple of considerations with you. First of all, I would avoid looping the rows directly in the Form_Open() routine, as I wrongly proposed, because it forces to read all the cells and therefore if you have many columns it slows down the code. If you want to use GridView_Data, better if you cycle the column where WordWrap is useful in the Sub Form_Activate(), if desired, it also allows you to show a ProgressBar. But, with WordWrap, I would also avoid using the GridView_Data routine because this routine is primarily meant for large amounts of data and in this case it is best to avoid WordWrap and rely on GridView.Columns.Width = -1. In summary, if you have little data you can use WordWrap such as: '----------------------------------------- Public Sub Form_Open() With GridView1 .Header = 3 .Columns.Count = 2 .Columns.Width = 100 .Rows.Count = 100 End With For r As Integer = 0 To GridView1.Rows.Max For c As Integer = 0 To GridView1.Columns.Max If r Mod 2 = 0 Then GridView1[r, c].Background = &HBFFFBF GridView1[r, c].Text = "Liber tempor" Else GridView1[r, c].WordWrap = True GridView1[r, c].Text = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy." Endif Next GridView1.Rows[r].Height = -1 Next End '----------------------------------------- If you have a lot of data, use GridView_Data and Columns.Width such as: '----------------------------------------- Public Sub Form_Open() With GridView1 .Header = 3 .Columns.Count = 2 .Rows.Count = 100 .Columns.Width = -1 End With End Public Sub GridView1_Data(Row As Integer, Column As Integer) If Row Mod 2 = 0 Then GridView1.Data.Text = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy." Else GridView1.Data.Text = "Liber tempor" GridView1.Data.Background = &HBFFFBF Endif End '----------------------------------------- In the hope of not having written some nonsense Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Mar 1 13:52:39 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 1 Mar 2021 13:52:39 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> References: <16d0571f-b772-aa0c-9564-82c59ff8932d@gmail.com> <20210211190235.GA3395629@highrise.localdomain> <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> Message-ID: <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> Le 01/03/2021 ? 11:12, Christof Thalhofer a ?crit?: > Am 26.02.21 um 02:26 schrieb Jussi Lahtinen: >> >> Or did I do sth wrong while copying it? >> >> >> I think so, sTest is written in Process_Read: >> >> Fast Public Sub Process_Read() >> >> ? Dim sTmp As String = Read #hProcess, 1 >> >> ? sTest &= sTmp >> >> End >> >> It is a stress test for writing via process as I have seen missing data >> in similar code. But I think the problem doesn't exist anymore (and >> hopefully never reappears). >> At least the tester doesn't encounter it. It does the tests 1000 times, >> so if they all fail there are 1000 errors from each test... However the >> problem was so rare, >> that you could see it only once or so. > > ---------------------------------------------------------------- > #tldr: All fast tests pass, we can think about how to integrate it into > Gambas development so that we can do a "make test" later. > ---------------------------------------------------------------- > Thanks! If the full test is not too long to run, it will be possible to run it during "make install" so that any regression is detected almost immediately. It could be made optional, so that it will be run only on GitLab, which compile and install Gambas at each commit. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Mon Mar 1 17:28:29 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 1 Mar 2021 16:28:29 +0000 Subject: [Gambas-user] Objects out of place, jumping left on resize with QT (probably my code) Message-ID: I have this custom CheckBox working almost perfectly now. the hardest part was to get the look/behaviour to be the same on gtk2+3 and qt and to to emulate standard CheckBox layout. I just had to re-write it a bit because I used .Centered making it not work on older gambas versions. It's got one problem though and one difference in the normal checkbox layout. the difference is in look in qt (it's only slight) with gtk2 and 3 if you set AutoResize and Expand on a CheckBox it just expands. On qt it expands the height but not the width (run the test app with different GB_GUI to see what i mean) that's merely cosmetic though and not really an issue. the problem is that if i run with qt and have the text to the right the box is a little too far right. if i resize the window the boxes jump left to where they should be and then stay there. I can't seem to stop it happening :( attached is the TextBox control source.. Please feel free to laugh at the code if it needs it (just let me know what's funny) ;) Any help appreciated BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TickBox.zip Type: application/zip Size: 28458 bytes Desc: not available URL: From chrisml at deganius.de Mon Mar 1 18:45:43 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 1 Mar 2021 18:45:43 +0100 Subject: [Gambas-user] Objects out of place, jumping left on resize with QT (probably my code) In-Reply-To: References: Message-ID: <13f54f27-f2c6-12fa-9b45-6678e2153296@deganius.de> Am 01.03.21 um 17:28 schrieb Bruce Steers: > I have this custom CheckBox working almost perfectly now. Your mail was bounced by all Gmail servers because of TickBox.zip. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From bsteers4 at gmail.com Mon Mar 1 19:58:51 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 1 Mar 2021 18:58:51 +0000 Subject: [Gambas-user] Objects out of place, jumping left on resize with QT (probably my code) Message-ID: I have this custom CheckBox working almost perfectly now. the hardest part was to get the look/behaviour to be the same on gtk2+3 and qt and to to emulate standard CheckBox layout. I just had to re-write it a bit because I used .Centered making it not work on older gambas versions. It's got one problem though and one difference in the normal checkbox layout. the difference is in look in qt (it's only slight) with gtk2 and 3 if you set AutoResize and Expand on a CheckBox it just expands. On qt it expands the height but not the width (run the test app with different GB_GUI to see what i mean) that's merely cosmetic though and not really an issue. the problem is that if i run with qt and have the text to the right the box is a little too far right. if i resize the window the boxes jump left to where they should be and then stay there. I can't seem to stop it happening :( Here is a link to the TextBox control source.. http://bws.org.uk/TickBox.zip Please feel free to laugh at the code if it needs it (just let me know what's funny) ;) Any help appreciated BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Mar 1 21:36:40 2021 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 1 Mar 2021 12:36:40 -0800 (PST) Subject: [Gambas-user] Cancel button on the screen when a make install package completes Message-ID: <320927244.5572.1614631000605.JavaMail.zimbra@westwoodsvcs.com> Does it bother anyone else that the cancel button does not change to a done button when the make install package finishes building an install package? First few times I used it i was not sure what to do when it finished! "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Tue Mar 2 08:51:43 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 2 Mar 2021 08:51:43 +0100 Subject: [Gambas-user] GridView Cell Height with WordWrap In-Reply-To: References: Message-ID: <2044da83-e3ec-5811-b89f-ebfdbe8d63ee@osnanet.de> Am 01.03.21 um 11:14 schrieb Gianluigi: > Hi Rolf, > I thank you for the question about the _GridView_Cell.WordWrap property > which allowed me to go deeper into the subject. > I would like to make a couple of considerations with you. > > First of all, I would avoid looping the rows directly in the Form_Open() > routine, as I wrongly proposed, because it forces to read all the cells > and therefore if you have many columns it slows down the code. > If you want to use GridView_Data, better if you cycle the column where > WordWrap is useful in the Sub Form_Activate(), if desired, it also > allows you to show a ProgressBar. > > But, with WordWrap, I would also avoid using the GridView_Data routine > because this routine is primarily meant for large amounts of data and in > this case it is best to avoid WordWrap and rely on > GridView.Columns.Width = -1. > > In summary, if you have little data you can use WordWrap such as: > '----------------------------------------- > Public Sub Form_Open() > > ? With GridView1 > ? ? .Header = 3 > ? ? .Columns.Count = 2 > ? ? .Columns.Width = 100 > ? ? .Rows.Count = 100 > ? End With > ? For r As Integer = 0 To GridView1.Rows.Max > ? ? For c As Integer = 0 To GridView1.Columns.Max > ? ? ? If r Mod 2 = 0 Then > ? ? ? ? GridView1[r, c].Background = &HBFFFBF > ? ? ? ? GridView1[r, c].Text = "Liber tempor" > ? ? ? Else > ? ? ? ? GridView1[r, c].WordWrap = True > ? ? ? ? GridView1[r, c].Text = "Lorem ipsum dolor sit amet, > consectetuer adipiscing elit, sed diam nonummy." > ? ? ? Endif > ? ? Next > ? ? GridView1.Rows[r].Height = -1 > ? Next > > End > '----------------------------------------- > > If you have a lot of data, use GridView_Data and Columns.Width such as: > '----------------------------------------- > Public Sub Form_Open() > > ? With GridView1 > ? ? .Header = 3 > ? ? .Columns.Count = 2 > ? ? .Rows.Count = 100 > ? ? .Columns.Width = -1 > ? End With > > End > > Public Sub GridView1_Data(Row As Integer, Column As Integer) > > ? If Row Mod 2 = 0 Then > ? ? GridView1.Data.Text = "Lorem ipsum dolor sit amet, consectetuer > adipiscing elit, sed diam nonummy." > ? Else > ? ? GridView1.Data.Text = "Liber tempor" > ? ? GridView1.Data.Background = &HBFFFBF > ? Endif > > End > '----------------------------------------- > > In the hope of not having written some nonsense > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Yes, but... When I can set .Data.Background within _Data, why not just set Data.Height = -1 here too? Because it affects the whole Row and not only one cell? If it really makes so much a speed difference to set this AFTER the _Data event has spread the individual cell data, then it should be at least be explicitely mentioned in the help for the Data event to warn off anyone who is unaware. Regards Rolf From bagonergi at gmail.com Tue Mar 2 11:24:23 2021 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 2 Mar 2021 11:24:23 +0100 Subject: [Gambas-user] GridView Cell Height with WordWrap In-Reply-To: <2044da83-e3ec-5811-b89f-ebfdbe8d63ee@osnanet.de> References: <2044da83-e3ec-5811-b89f-ebfdbe8d63ee@osnanet.de> Message-ID: Il giorno mar 2 mar 2021 alle ore 08:52 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > > Yes, but... When I can set .Data.Background within _Data, why not just > set Data.Height = -1 here too? Because it affects the whole Row and not > only one cell? > As Minisini replied in the bugtracker, it depends on the fact that the Data event returns the content, to change the background you don't need to know the content, instead it is useful for changing the size. Columns.Width = -1 must also be set later but the columns are few compared to the rows. I believe that if your project does not include more than a few thousand lines you should not consider the problem. > > If it really makes so much a speed difference to set this AFTER the > _Data event has spread the individual cell data, then it should be at > least be explicitely mentioned in the help for the Data event to warn > off anyone who is unaware. > If you find it useful, you can add it yourself, anyone who signed up with the bugtracker can do it. Regards Gianluigi > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Mar 2 11:30:26 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 2 Mar 2021 11:30:26 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> References: <20210211190235.GA3395629@highrise.localdomain> <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> Message-ID: <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> Am 01.03.21 um 13:52 schrieb Beno?t Minisini: > Thanks! If the full test is not too long to run, it will be possible to > run it during "make install" so that any regression is detected almost > immediately. It could be made optional, so that it will be run only on > GitLab, which compile and install Gambas at each commit. I'm not done with the full test, if it works it lasts a few minutes at all. We can define two test suites: 'Fast' and 'Full'. 'Fast' lasts a second, 'Full' lasts a few minutes. I think 'Fast' can run on every installation and every time something was changed in Gambas. 'Full' should only be needed if someone encounters problems with Gambas to exclude that the cause is rooted in one of the problems covered by the long running tests. The 'Standard' test suite should be held free to play around with it. We need a place in the Gambas directory tree so that we can move it there. Also Jussi should take a look at it. Later someone can write the missing tests which are a TODO. 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 Mar 3 01:37:04 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 3 Mar 2021 02:37:04 +0200 Subject: [Gambas-user] Crash with latest version In-Reply-To: <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> References: <20210211190235.GA3395629@highrise.localdomain> <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> Message-ID: Sorry about the silence. I will try to take a closer look later. Is it possible to put it to Gambas sources, so that I could run it as it should be and debug there? Jussi On Tue, Mar 2, 2021 at 12:31 PM Christof Thalhofer wrote: > Am 01.03.21 um 13:52 schrieb Beno?t Minisini: > > > Thanks! If the full test is not too long to run, it will be possible to > > run it during "make install" so that any regression is detected almost > > immediately. It could be made optional, so that it will be run only on > > GitLab, which compile and install Gambas at each commit. > > I'm not done with the full test, if it works it lasts a few minutes at > all. We can define two test suites: 'Fast' and 'Full'. 'Fast' lasts a > second, 'Full' lasts a few minutes. > > I think 'Fast' can run on every installation and every time something > was changed in Gambas. > > 'Full' should only be needed if someone encounters problems with Gambas > to exclude that the cause is rooted in one of the problems covered by > the long running tests. > > The 'Standard' test suite should be held free to play around with it. > > We need a place in the Gambas directory tree so that we can move it there. > > Also Jussi should take a look at it. > > Later someone can write the missing tests which are a TODO. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed Mar 3 03:58:24 2021 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 2 Mar 2021 18:58:24 -0800 (PST) Subject: [Gambas-user] Scripter ability to create plugin custom preprocessor Message-ID: <1435512721.6441.1614740304192.JavaMail.zimbra@westwoodsvcs.com> Would anyone else be interested if scripter had the ability to provide a custom pre-processor that was passed the script text before the scripter builds the projects and then returns to scripter the pre-processed program text. Pre-processor being in the form of a library, with a well defined entry point : Public sub _call(ProgramText as string) return string used like this : gbs3 -p MyLibPreProcess myscript Any comments? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed Mar 3 08:36:33 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 3 Mar 2021 08:36:33 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <20210211190235.GA3395629@highrise.localdomain> <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> Message-ID: Am 03.03.21 um 01:37 schrieb Jussi Lahtinen: > Sorry about the silence. I will try to take a closer look later. No problem, I also just work on it if I have time left. > Is it possible to put it to Gambas sources, so that I could run it as it > should be and debug there? I think yes, but Beno?t must tell us the place where it should be. 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 akrobaticone at gmail.com Wed Mar 3 09:16:47 2021 From: akrobaticone at gmail.com (Michele V.) Date: Wed, 3 Mar 2021 09:16:47 +0100 Subject: [Gambas-user] Corruption of application.conf with Raspberry Pi Message-ID: Thank you Bruce for your reply > you could then add a static *DoNotSave* variable to your Settings.class > file and stop it saving in* Public sub _free()* For the future it could be interesting to add by default this property at Settings Class in order to prevent settings writing at the end of application It may be very useful in Raspberry application or in another critical situation of course I will follow the directions you suggested. > https://forum.gambas.one/viewtopic.php?f=6&t=1029 I add another informations When the corruption happen sometimes the application.conf file has 0 size The reason could be the Ext4 fs and journalig, in Raspberry Pi with Sd card the real writing on disk may be very delayed Two options are available 1) disable journaling 2) By shell execute "sync" command" to force writing on disk ------------------------------------------------------------------------------------------------------------------------------------------- Io scrivo da UBUNTU GNU/LINUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Wed Mar 3 14:38:29 2021 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Wed, 3 Mar 2021 14:38:29 +0100 Subject: [Gambas-user] Issues with Gambas WebTable Message-ID: <2bf8d481-e77c-aec4-d07e-9f143a045ba0@freenet.de> After some tests with the Gambas WebTable (with gb.web.gui) I like to summarize my observations as follows: a) A number of CSS style sheet formats like 'vertical alignment' and 'padding' are not recognized, when using the HTML- or text-format of the Data-object. b) The text-format of the Data-object doesn't support multi-line texts. c) The data object seems not to support images although it is documented. So I used the HTML-format and and inline formatting as workaround. d) A property for a vertical 'middle' alignment seems not to be available. Question: Did I do mistakes or is the WebTable possibly not fully mature yet? My project could be stripped down and made available for a review. Claus From brian at westwoodsvcs.com Wed Mar 3 15:32:39 2021 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 3 Mar 2021 06:32:39 -0800 (PST) Subject: [Gambas-user] Scripter - removed support for data type short form Message-ID: <438572246.6624.1614781959409.JavaMail.zimbra@westwoodsvcs.com> The support for -e command with datatype short forms in the style {type} has be sunsetted and will no longer be supported by Scripter moving forward. Example: -e 'for {i}count = 0 to 100: print counter: next' Must now write -e 'for count as integer = 0 to 100 : print counter : next' Any comments regarding this or adding the external ability for plugin custom pre-processor "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Mar 3 17:43:32 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 3 Mar 2021 17:43:32 +0100 Subject: [Gambas-user] Farm malfunction Message-ID: Unaspected error Cannot open database: FATAL: the database system is in recovery mode MMain.Opendatabase.122 MMain.searchSoftware.849 MMnai.Main.75 Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Mar 3 20:11:59 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 3 Mar 2021 20:11:59 +0100 Subject: [Gambas-user] Issues with Gambas WebTable In-Reply-To: References: <2bf8d481-e77c-aec4-d07e-9f143a045ba0@freenet.de> <0c395a63-089c-8e2e-58a4-2f8da8fe81cf@gmail.com> Message-ID: <04fd7db3-5265-7a83-50f6-fe9b17c6aec1@gmail.com> Sorry, I wanted to answer to the mailing-list... Le 03/03/2021 ? 16:45, Claus Dietrich a ?crit?: > to a):??? I mean a style sheet file named 'style.css' located in the > Public-path of the project with following content (beside others) for > the formatting of the header and data cells: > > th, td{ > ??? border: 1px solid #ddd; > ??? /* following two lines are not recognised by the WebTable */ > ??? padding: 8px; > ??? vertical-align: middle; > } You can already define a 'style.css' in your 'Public' folder, it will be taken into account automatically. > > The WebTable turned out to be quite useful in Web programming. So any > progress for this control would be much appreciated. > > BTW: I observed similar CSS formatting issues with other web controls > and assume that CSS support is limited. Correct? I still don't understand what you are talking about by "limited CSS support"... -- Beno?t Minisini From g4mba5 at gmail.com Wed Mar 3 20:31:18 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 3 Mar 2021 20:31:18 +0100 Subject: [Gambas-user] Farm malfunction In-Reply-To: References: Message-ID: <30d9101a-07c1-a9da-6ff9-c2afe151a41c@gmail.com> Le 03/03/2021 ? 17:43, Gianluigi a ?crit?: > Unaspected error > > Cannot open database: FATAL: the database system is in recovery mode > > MMain.Opendatabase.122 > MMain.searchSoftware.849 > MMnai.Main.75 > > Regards > Gianluigi > > OK, I know now: it's the 'https://gambas.one/gambasfarm' farm search page that browses the farm server and send him almost 100 requests by second. Alas the farm server has not enough memory to handle that, and then the infamous oom-killer wakes up and starts to shoot processes until it kills the database server. Well, who is the manager of that website? -- Beno?t Minisini From g4mba5 at gmail.com Wed Mar 3 20:34:46 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 3 Mar 2021 20:34:46 +0100 Subject: [Gambas-user] Issues with Gambas WebTable In-Reply-To: <04fd7db3-5265-7a83-50f6-fe9b17c6aec1@gmail.com> References: <2bf8d481-e77c-aec4-d07e-9f143a045ba0@freenet.de> <0c395a63-089c-8e2e-58a4-2f8da8fe81cf@gmail.com> <04fd7db3-5265-7a83-50f6-fe9b17c6aec1@gmail.com> Message-ID: <395151ee-e47a-3b0d-f35a-e461877fc789@gmail.com> Le 03/03/2021 ? 20:11, Beno?t Minisini a ?crit?: > Sorry, I wanted to answer to the mailing-list... > > Le 03/03/2021 ? 16:45, Claus Dietrich a ?crit?: >> to a):??? I mean a style sheet file named 'style.css' located in the >> Public-path of the project with following content (beside others) for >> the formatting of the header and data cells: >> >> th, td{ >> ???? border: 1px solid #ddd; >> ???? /* following two lines are not recognised by the WebTable */ >> ???? padding: 8px; >> ???? vertical-align: middle; >> } > > You can already define a 'style.css' in your 'Public' folder, it will be > taken into account automatically. > >> >> The WebTable turned out to be quite useful in Web programming. So any >> progress for this control would be much appreciated. >> >> BTW: I observed similar CSS formatting issues with other web controls >> and assume that CSS support is limited. Correct? > > I still don't understand what you are talking about by "limited CSS > support"... > You can use the bugtracker for registering your feature requests. That way I won't forget them when I have time to go back working on 'gb.web.gui'. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Wed Mar 3 20:47:50 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 3 Mar 2021 19:47:50 +0000 Subject: [Gambas-user] gtk2 only cannot draw my object. Message-ID: Hi all My next adventure is re-making the checkbox i made but not using any controls (Label and Button in the last one) this time I have used (for the very first time) Paint commands to hand paint it all. Looks fine on QT and GTK3 but for some reason GTK2 draws one object and that's it, blank boxes for the rest? Any ideas why? Tis puzzling. Many thanks fo any help. (attached is the source using gambas textify option) (PS. control is incomplete and lacks a few things at present) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- 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 CIuwCIvw/wX+D+mvEycAoAAA From charlie at cogier.com Wed Mar 3 21:44:29 2021 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 3 Mar 2021 20:44:29 +0000 Subject: [Gambas-user] Farm malfunction In-Reply-To: <2bf7fec3-1ef2-2e20-bd07-9344ea366335@cogier.com> References: <30d9101a-07c1-a9da-6ff9-c2afe151a41c@gmail.com> <2bf7fec3-1ef2-2e20-bd07-9344ea366335@cogier.com> Message-ID: <524fbd41-2f09-c434-e0ad-2587cb9f9d2a@cogier.com> Further to this issue I refer you to the following post. https://forum.gambas.one/viewtopic.php?f=4&t=1057&p=4017#p4017 On 03/03/2021 20:19, Charlie Ogier wrote: > Hi Beno?t, > > I am the manager for this site and we are looking in to this. We are > taking down this feature until the situation can be clarified. It > seems strange that we have had this connection for a long time without > issue, however I do not wish to cause any inconvenience. > > I will update you further when I have established what is causing this. > > Regards, > > Charlie Ogier > > OK, I know now: it's the 'https://gambas.one/gambasfarm' farm search > page that browses the farm server and send him almost 100 requests by > second. Alas the farm server has not enough memory to handle that, and > then the infamous oom-killer wakes up and starts to shoot processes > until it kills the database server. >> >> Well, who is the manager of that website? >> > From charlie at cogier.com Wed Mar 3 21:19:35 2021 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 3 Mar 2021 20:19:35 +0000 Subject: [Gambas-user] Farm malfunction In-Reply-To: <30d9101a-07c1-a9da-6ff9-c2afe151a41c@gmail.com> References: <30d9101a-07c1-a9da-6ff9-c2afe151a41c@gmail.com> Message-ID: <2bf7fec3-1ef2-2e20-bd07-9344ea366335@cogier.com> Hi Beno?t, I am the manager for this site and we are looking in to this. We are taking down this feature until the situation can be clarified. It seems strange that we have had this connection for a long time without issue, however I do not wish to cause any inconvenience. I will update you further when I have established what is causing this. Regards, Charlie Ogier OK, I know now: it's the 'https://gambas.one/gambasfarm' farm search page that browses the farm server and send him almost 100 requests by second. Alas the farm server has not enough memory to handle that, and then the infamous oom-killer wakes up and starts to shoot processes until it kills the database server. > > Well, who is the manager of that website? > From adamnt42 at gmail.com Wed Mar 3 23:20:21 2021 From: adamnt42 at gmail.com (Bruce) Date: Thu, 4 Mar 2021 08:50:21 +1030 Subject: [Gambas-user] Cancel button on the screen when a make install package completes In-Reply-To: <320927244.5572.1614631000605.JavaMail.zimbra@westwoodsvcs.com> References: <320927244.5572.1614631000605.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 2/3/21 7:06 am, Brian G wrote: > Does it bother anyone else that the cancel button does not change to a done button when the make install package finishes building an install package? > > First few times I used it i was not sure what to do when it finished! > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Not really, it's always been that way. But ... "Done" is a status not an action/command. "Close" would IMO be better. b From brian at westwoodsvcs.com Thu Mar 4 00:36:06 2021 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 3 Mar 2021 15:36:06 -0800 (PST) Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script Message-ID: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> Is anyone interested in having a command line parameter that will allow to create a script from a project? gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut --FromProject having the project directory as input and script path as output "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Mar 4 00:51:17 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 4 Mar 2021 00:51:17 +0100 Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script In-Reply-To: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <2e0ce987-aa57-6a7a-a091-6faf9f70c16a@gmail.com> Le 04/03/2021 ? 00:36, Brian G a ?crit?: > Is anyone interested in having a command line parameter that will allow > to create a script from a project? > > gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut > > --FromProject having the project directory as input and script path as > output > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I suggest that you respect the standard Unix option naming by using lowercase (except for single character options): gbs3 --from-project ... Regards, -- Beno?t Minisini From bsteers4 at gmail.com Thu Mar 4 00:57:10 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 3 Mar 2021 23:57:10 +0000 Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script In-Reply-To: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Sounds like a good feature ? Is there an option (even a default setting maybe) to not print the script on failure just the error? Or could there be? On Wed, 3 Mar 2021, 23:47 Brian G, wrote: > Is anyone interested in having a command line parameter that will allow to > create a script from a project? > > gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut > > --FromProject having the project directory as input and script path as > output > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Mar 4 03:25:23 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 4 Mar 2021 02:25:23 +0000 Subject: [Gambas-user] gtk2 only cannot draw my object. In-Reply-To: References: Message-ID: this could be a bug Ben. I just tried it on Gambas 3.15.3 and gtk2 is okay. It's just on master it fails. Wishing Well BruceS On Wed, 3 Mar 2021 at 19:47, Bruce Steers wrote: > Hi all > > My next adventure is re-making the checkbox i made but not using any > controls (Label and Button in the last one) > > this time I have used (for the very first time) Paint commands to hand > paint it all. > > Looks fine on QT and GTK3 but for some reason GTK2 draws one object and > that's it, blank boxes for the rest? > Any ideas why? > > Tis puzzling. > Many thanks fo any help. > > (attached is the source using gambas textify option) > (PS. control is incomplete and lacks a few things at present) > BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Mar 4 05:39:56 2021 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Thu, 04 Mar 2021 07:39:56 +0300 Subject: [Gambas-user] =?utf-8?q?Scripter_Add_--fromProject_to_scripter_t?= =?utf-8?q?hat_will_convert_a_project_to_a_script?= In-Reply-To: References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1614832796.615769120@f17.my.com> Right now it will only print warnings if select -w and verbose with -v, it prints the error and listing showing error., The errors are printed first and may come from more that one file being compiled. We could add an option to suppress the error listing of the error file -terse, or maybe the opposite --error-detailed The line numbers mean very little that are displayed in the error reports by the scripter without the listing of the file they are in. As again the there may be errors in more than one compiled file, or included file. Remember that classes are each a separate file to the compiler. As well as the include files. Any ideas what would work best? -- Thanks Brian Wednesday, 03 March 2021, 03:58PM -08:00 from Bruce Steers bsteers4 at gmail.com : >Sounds like a good feature ? > >Is there an option (even a default setting maybe) to not print the script on failure just the error? >Or could there be? >On Wed, 3 Mar 2021, 23:47 Brian G, < brian at westwoodsvcs.com> wrote: >>Is anyone interested in having a command line parameter that will allow to create a script from a project? >> >>gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut >> >>--FromProject having the project directory as input and script path as output >> >>"Failure is the key to success; >>?each mistake teaches us something" ?.. Morihei Ueshiba >>Brian G >>----[ 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 Mar 4 07:05:22 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 4 Mar 2021 06:05:22 +0000 Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script In-Reply-To: <1614832796.615769120@f17.my.com> References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> <1614832796.615769120@f17.my.com> Message-ID: On Thu, 4 Mar 2021 at 05:07, Brian G wrote: > Right now it will only print warnings if select -w and verbose with -v, it > prints the error and listing showing error., The errors are printed first > and may come from more that one file being compiled. > We could add an option to suppress the error listing of the error file > -terse, or maybe the opposite --error-detailed > The line numbers mean very little that are displayed in the error reports > by the scripter without the listing of the file they are in. As again the > there may be errors in more than one compiled file, or included file. > Remember that classes are each a separate file to the compiler. As well as > the include files. > > Any ideas what would work best? > I'm not sure you understood me , i get the warnings/errors fine i just don't want the entire script printed on an error. the name will do I do not understand why it has to print the entire script on an error. It doesn't just print a "listing" It prints the module name and error position on the 1st line then prints the entire script out! if the script is long enough it goes beyond my terminal scroll limit. Seems erroneous (for my single script usage) On error i get something like the following message... *MMain.module:6:12: error: Syntax error# Gambas Project File 3.0Title=Gambas ScriptStartup=MMain' Gambas module file' Gambas script filePublic Sub Main()Dim sBasesShell "dpkg-query --list linux*|grep \"generic\"|grep ii|awk '{print $2}" To sBases* *the rest of the script.....* The 1st line MMain.module:6:12: error: Syntax error tells me all I need to know, i'd like to not see the rest If is makes an alternative project file so the line numbers are different to my actual script then can it not print just the line in error. Was just a thought. All the best BruceS -- > Thanks > Brian > Wednesday, 03 March 2021, 03:58PM -08:00 from Bruce Steers > bsteers4 at gmail.com: > > Sounds like a good feature ? > > Is there an option (even a default setting maybe) to not print the script > on failure just the error? > Or could there be? > > On Wed, 3 Mar 2021, 23:47 Brian G, wrote: > > Is anyone interested in having a command line parameter that will allow to > create a script from a project? > > gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut > > --FromProject having the project directory as input and script path as > output > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----[ 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 Thu Mar 4 16:11:11 2021 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Thu, 04 Mar 2021 18:11:11 +0300 Subject: [Gambas-user] =?utf-8?q?Scripter_Add_--fromProject_to_scripter_t?= =?utf-8?q?hat_will_convert_a_project_to_a_script?= In-Reply-To: References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> <1614832796.615769120@f17.my.com> Message-ID: <1614870670.696584790@f20.my.com> How about if it just prints the one line in error, so you can identify it in your original script file.? -- Thanks Brian Wednesday, 03 March 2021, 10:05PM -08:00 from Bruce Steers bsteers4 at gmail.com : > > >On Thu, 4 Mar 2021 at 05:07, Brian G < brian at westwoodsvcs.com> wrote: >>Right now it will only print warnings if select -w and verbose with -v, it prints the error and listing showing error., The errors are printed first and may come from more that one file being compiled. >>We could add an option to suppress the error listing of the error file -terse, or maybe the opposite --error-detailed >>The line numbers mean very little that are displayed in the error reports by the scripter without the listing of the file they are in. As again the there may be errors in more than one compiled file, or included file. >>Remember that classes are each a separate file to the compiler. As well as the include files. >>Any ideas what would work best? >I'm not sure you understood me , i get the warnings/errors fine i just don't want the entire script printed on an error. the name will do > >I do not understand why it has to print the entire script on an error. >It doesn't just print a "listing" It prints the module name and error position on the 1st line then prints the entire script out! >if the script is long enough it goes beyond my terminal scroll limit. >Seems erroneous (for my single script usage) > >On error i get something like the following message... >MMain.module:6:12: error: Syntax error > ># Gambas Project File 3.0 >Title=Gambas Script >Startup=MMain > >' Gambas module file > > >' Gambas script file >Public Sub Main() >Dim sBases >Shell "dpkg-query --list linux*|grep \"generic\"|grep ii|awk '{print $2}" To sBases > >the rest of the script..... > >The 1st line >MMain.module:6:12: error: Syntax error > >tells me all I need to know, i'd like to not see the rest >If is makes an alternative project file so the line numbers are different to my actual script then can it not print just the line in error. > >Was just a thought. >All the best >BruceS > >-- >>Thanks >>Brian Wednesday, 03 March 2021, 03:58PM -08:00 from Bruce Steers bsteers4 at gmail.com : >> >>>Sounds like a good feature ? >>> >>>Is there an option (even a default setting maybe) to not print the script on failure just the error? >>>Or could there be? >>>On Wed, 3 Mar 2021, 23:47 Brian G, < brian at westwoodsvcs.com> wrote: >>>>Is anyone interested in having a command line parameter that will allow to create a script from a project? >>>> >>>>gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut >>>> >>>>--FromProject having the project directory as input and script path as output >>>> >>>>"Failure is the key to success; >>>>?each mistake teaches us something" ?.. Morihei Ueshiba >>>>Brian G >>>>----[ 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 bsteers4 at gmail.com Thu Mar 4 17:02:10 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 4 Mar 2021 16:02:10 +0000 Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script In-Reply-To: <1614870670.696584790@f20.my.com> References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> <1614832796.615769120@f17.my.com> <1614870670.696584790@f20.my.com> Message-ID: Sounds awesome, and like exactly what i said lol :) could we Env the option too? maybe if the scripter could do something like a simple .. bStopScriptPrinting = (Env["GB_SCRIPT_ERRORS_ONLY"] = "true") then we could set a system Env variable so i wouldn't have to add the arg each time. Cheers Bri , that's the only thing i wasn't keen on with the scripter, scrolling back through the terminal trying to find the error msg line. Wishing well BruceS On Thu, 4 Mar 2021 at 15:21, Brian G wrote: > How about if it just prints the one line in error, so you can identify it > in your original script file. > > -- > Thanks > Brian > Wednesday, 03 March 2021, 10:05PM -08:00 from Bruce Steers > bsteers4 at gmail.com: > > > > On Thu, 4 Mar 2021 at 05:07, Brian G wrote: > > Right now it will only print warnings if select -w and verbose with -v, it > prints the error and listing showing error., The errors are printed first > and may come from more that one file being compiled. > We could add an option to suppress the error listing of the error file > -terse, or maybe the opposite --error-detailed > The line numbers mean very little that are displayed in the error reports > by the scripter without the listing of the file they are in. As again the > there may be errors in more than one compiled file, or included file. > Remember that classes are each a separate file to the compiler. As well as > the include files. > > Any ideas what would work best? > > I'm not sure you understood me , i get the warnings/errors fine i just > don't want the entire script printed on an error. the name will do > > I do not understand why it has to print the entire script on an error. > It doesn't just print a "listing" It prints the module name and error > position on the 1st line then prints the entire script out! > if the script is long enough it goes beyond my terminal scroll limit. > Seems erroneous (for my single script usage) > > On error i get something like the following message... > > > > > > > > > > > > > *MMain.module:6:12: error: Syntax error# Gambas Project File > 3.0Title=Gambas ScriptStartup=MMain' Gambas module file' Gambas script > filePublic Sub Main()Dim sBasesShell "dpkg-query --list linux*|grep > \"generic\"|grep ii|awk '{print $2}" To sBases* > > *the rest of the script.....* > > The 1st line > MMain.module:6:12: error: Syntax error > > tells me all I need to know, i'd like to not see the rest > If is makes an alternative project file so the line numbers are different > to my actual script then can it not print just the line in error. > > Was just a thought. > All the best > BruceS > > -- > > Thanks > Brian > Wednesday, 03 March 2021, 03:58PM -08:00 from Bruce Steers > bsteers4 at gmail.com: > > Sounds like a good feature ? > > Is there an option (even a default setting maybe) to not print the script > on failure just the error? > Or could there be? > > On Wed, 3 Mar 2021, 23:47 Brian G, wrote: > > Is anyone interested in having a command line parameter that will allow to > create a script from a project? > > gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut > > --FromProject having the project directory as input and script path as > output > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----[ 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 Thu Mar 4 18:37:33 2021 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 4 Mar 2021 09:37:33 -0800 (PST) Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script In-Reply-To: References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> <1614832796.615769120@f17.my.com> <1614870670.696584790@f20.my.com> Message-ID: <1767700950.7822.1614879453313.JavaMail.zimbra@westwoodsvcs.com> Ok, here is what I have done so far, The reason for the line of program as well as the error is that it is possible the error is from class files and there can be more than one error -T option is terse your script header looks like this: #!/usr/bin/env -S gbs3 -T the output for terse looks like this ------------------------------------------------------------------ # Gambas module file : MMain:11:36 11*:Loop ' should be do...loop until ^ LOOP without DO ----------------------------------------------------------------------- Without -T option looks like this: -------------------------------------------------------------------------- # Gambas Project File 3.0 Title=Gambas Script Startup=MMain Vendor=Ordinary Version=0.0.1 License=General Public License 2.0 # Gambas module file : MMain:11:36 1 :' Gambas module file 2 : 3 : 4 : 5 : 6 :' #!/usr/bin/env -S gbs3 -c 7 :'Auto Generated Script 03/01/2021 23:31:35.409 8 :' Gambas module file 9 :Public Sub Main() 10 :Dim i As Integer = 0 11*:Loop ' should be do...loop until ^ LOOP without DO 12 : Inc i 13 : Print "Hello world" 14 : 15 :Until i > 20 16 :End 17 : ------------------------------------------------------------------------------------ In include the latest dev version of scripter, you will need to make install package and uninstall scripter and then install this version It has been well test on my 60-70 scripts I use in my work flow. Should be stable enough for most uses. to go back just uninstall this version and reinstall from daily. It has the -T option included. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 4, 2021, at 8:02 AM, Bruce Steers wrote: > Sounds awesome, and like exactly what i said lol :) > could we Env the option too? > maybe if the scripter could do something like a simple .. > bStopScriptPrinting = (Env["GB_SCRIPT_ERRORS_ONLY"] = "true") > then we could set a system Env variable so i wouldn't have to add the arg each > time. > Cheers Bri , that's the only thing i wasn't keen on with the scripter, scrolling > back through the terminal trying to find the error msg line. > Wishing well > BruceS > On Thu, 4 Mar 2021 at 15:21, Brian G < [ mailto:brian at westwoodsvcs.com | > brian at westwoodsvcs.com ] > wrote: >> How about if it just prints the one line in error, so you can identify it in >> your original script file. >> -- >> Thanks >> Brian >> Wednesday, 03 March 2021, 10:05PM -08:00 from Bruce Steers [ >> mailto:bsteers4 at gmail.com | bsteers4 at gmail.com ] : >>> On Thu, 4 Mar 2021 at 05:07, Brian G < [ mailto:brian at westwoodsvcs.com | >>> brian at westwoodsvcs.com ] > wrote: >>>> Right now it will only print warnings if select -w and verbose with -v, it >>>> prints the error and listing showing error., The errors are printed first and >>>> may come from more that one file being compiled. >>>> We could add an option to suppress the error listing of the error file -terse, >>>> or maybe the opposite --error-detailed >>>> The line numbers mean very little that are displayed in the error reports by the >>>> scripter without the listing of the file they are in. As again the there may be >>>> errors in more than one compiled file, or included file. >>>> Remember that classes are each a separate file to the compiler. As well as the >>>> include files. >>>> Any ideas what would work best? >>> I'm not sure you understood me , i get the warnings/errors fine i just don't >>> want the entire script printed on an error. the name will do >>> I do not understand why it has to print the entire script on an error. >>> It doesn't just print a "listing" It prints the module name and error position >>> on the 1st line then prints the entire script out! >>> if the script is long enough it goes beyond my terminal scroll limit. >>> Seems erroneous (for my single script usage) >>> On error i get something like the following message... >>> MMain.module:6:12: error: Syntax error >>> # Gambas Project File 3.0 >>> Title=Gambas Script >>> Startup=MMain >>> ' Gambas module file >>> ' Gambas script file >>> Public Sub Main() >>> Dim sBases >>> Shell "dpkg-query --list linux*|grep \"generic\"|grep ii|awk '{print $2}" To >>> sBases >>> the rest of the script..... >>> The 1st line >>> MMain.module:6:12: error: Syntax error >>> tells me all I need to know, i'd like to not see the rest >>> If is makes an alternative project file so the line numbers are different to my >>> actual script then can it not print just the line in error. >>> Was just a thought. >>> All the best >>> BruceS >>> -- >>>> Thanks >>>> Brian >>>> Wednesday, 03 March 2021, 03:58PM -08:00 from Bruce Steers [ >>>> mailto:bsteers4 at gmail.com | bsteers4 at gmail.com ] : >>>>> Sounds like a good feature \uD83D\uDE42 >>>>> Is there an option (even a default setting maybe) to not print the script on >>>>> failure just the error? >>>>> Or could there be? >>>>> On Wed, 3 Mar 2021, 23:47 Brian G, < [ mailto:brian at westwoodsvcs.com | >>>>> brian at westwoodsvcs.com ] > wrote: >>>>>> Is anyone interested in having a command line parameter that will allow to >>>>>> create a script from a project? >>>>>> gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut >>>>>> --FromProject having the project directory as input and script path as output >>>>>> "Failure is the key to success; >>>>>> each mistake teaches us something" .. Morihei Ueshiba >>>>>> Brian G >>>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>>> ----[ [ 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: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: gbs3-3.15.90.tar.gz.gmail.txt URL: From brian at westwoodsvcs.com Thu Mar 4 18:54:43 2021 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 4 Mar 2021 09:54:43 -0800 (PST) Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script In-Reply-To: <1767700950.7822.1614879453313.JavaMail.zimbra@westwoodsvcs.com> References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> <1614832796.615769120@f17.my.com> <1614870670.696584790@f20.my.com> <1767700950.7822.1614879453313.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <177590592.7836.1614880483399.JavaMail.zimbra@westwoodsvcs.com> As an example of multi error the terse output from this script _____________________________________________________________________ #!/usr/bin/env -S gbs3 -c -T 'Auto Generated Script 03/01/2021 23:31:35.409 ' Gambas module file class testclass fg = dog print fg end class Public Sub Main() Dim i As Integer = 0 Loop ' should be do...loop until Inc i Print "Hello world" Until i > 20 End _________________________________________________________ Would be: ________________________________________________________ # Gambas module file : MMain:11:36 11*:Loop ' should be do...loop until ^ LOOP without DO # Gambas class file : testclass:1:9 1*: fg = dog ^ Missing AS _____________________________________________________________ "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 4, 2021, at 9:48 AM, Brian brian at westwoodsvcs.com wrote: From bsteers4 at gmail.com Thu Mar 4 19:14:56 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 4 Mar 2021 18:14:56 +0000 Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script In-Reply-To: <1767700950.7822.1614879453313.JavaMail.zimbra@westwoodsvcs.com> References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> <1614832796.615769120@f17.my.com> <1614870670.696584790@f20.my.com> <1767700950.7822.1614879453313.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Brilliant thank you Brian, that's going to be much better :) I gotta ask though how come your example output has line numbers? I've never seen line numbers before. I'd agree the output would be helpful if the line numbers of the constructed file show but i never found they did. Thanks again BruceS :) On Thu, 4 Mar 2021 at 17:48, Brian G wrote: > Ok, here is what I have done so far, > The reason for the line of program as well as the error is that it is > possible the error is from class files and there can be more than one error > > -T option is terse > your script header looks like this: > #!/usr/bin/env -S gbs3 -T > > the output for terse looks like this > ------------------------------------------------------------------ > # Gambas module file : MMain:11:36 > 11*:Loop ' should be do...loop until > ^ LOOP without > DO > ----------------------------------------------------------------------- > Without -T option looks like this: > -------------------------------------------------------------------------- > # Gambas Project File 3.0 > Title=Gambas Script > Startup=MMain > Vendor=Ordinary > Version=0.0.1 > License=General Public License 2.0 > > # Gambas module file : MMain:11:36 > 1 :' Gambas module file > 2 : > 3 : > 4 : > 5 : > 6 :' #!/usr/bin/env -S gbs3 -c > 7 :'Auto Generated Script 03/01/2021 23:31:35.409 > 8 :' Gambas module file > 9 :Public Sub Main() > 10 :Dim i As Integer = 0 > 11*:Loop ' should be do...loop until > ^ LOOP without DO > 12 : Inc i > 13 : Print "Hello world" > 14 : > 15 :Until i > 20 > 16 :End > 17 : > > ------------------------------------------------------------------------------------ > In include the latest dev version of scripter, you will need to make > install package and uninstall scripter and then install this version > It has been well test on my 60-70 scripts I use in my work flow. Should be > stable enough for most uses. > to go back just uninstall this version and reinstall from daily. > It has the -T option included. > > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----- On Mar 4, 2021, at 8:02 AM, Bruce Steers wrote: > > Sounds awesome, and like exactly what i said lol :) > > could we Env the option too? > maybe if the scripter could do something like a simple .. > > bStopScriptPrinting = (Env["GB_SCRIPT_ERRORS_ONLY"] = "true") > > then we could set a system Env variable so i wouldn't have to add the arg > each time. > > Cheers Bri , that's the only thing i wasn't keen on with the scripter, > scrolling back through the terminal trying to find the error msg line. > > Wishing well > BruceS > > On Thu, 4 Mar 2021 at 15:21, Brian G wrote: > >> How about if it just prints the one line in error, so you can identify it >> in your original script file. >> >> -- >> Thanks >> Brian >> Wednesday, 03 March 2021, 10:05PM -08:00 from Bruce Steers >> bsteers4 at gmail.com: >> >> >> >> On Thu, 4 Mar 2021 at 05:07, Brian G wrote: >> >> Right now it will only print warnings if select -w and verbose with -v, >> it prints the error and listing showing error., The errors are printed >> first and may come from more that one file being compiled. >> We could add an option to suppress the error listing of the error file >> -terse, or maybe the opposite --error-detailed >> The line numbers mean very little that are displayed in the error reports >> by the scripter without the listing of the file they are in. As again the >> there may be errors in more than one compiled file, or included file. >> Remember that classes are each a separate file to the compiler. As well >> as the include files. >> >> Any ideas what would work best? >> >> I'm not sure you understood me , i get the warnings/errors fine i just >> don't want the entire script printed on an error. the name will do >> >> I do not understand why it has to print the entire script on an error. >> It doesn't just print a "listing" It prints the module name and error >> position on the 1st line then prints the entire script out! >> if the script is long enough it goes beyond my terminal scroll limit. >> Seems erroneous (for my single script usage) >> >> On error i get something like the following message... >> >> >> >> >> >> >> >> >> >> >> >> >> *MMain.module:6:12: error: Syntax error# Gambas Project File >> 3.0Title=Gambas ScriptStartup=MMain' Gambas module file' Gambas script >> filePublic Sub Main()Dim sBasesShell "dpkg-query --list linux*|grep >> \"generic\"|grep ii|awk '{print $2}" To sBases* >> >> *the rest of the script.....* >> >> The 1st line >> MMain.module:6:12: error: Syntax error >> >> tells me all I need to know, i'd like to not see the rest >> If is makes an alternative project file so the line numbers are different >> to my actual script then can it not print just the line in error. >> >> Was just a thought. >> All the best >> BruceS >> >> -- >> >> Thanks >> Brian >> Wednesday, 03 March 2021, 03:58PM -08:00 from Bruce Steers >> bsteers4 at gmail.com: >> >> Sounds like a good feature \uD83D\uDE42 >> >> Is there an option (even a default setting maybe) to not print the script >> on failure just the error? >> Or could there be? >> >> On Wed, 3 Mar 2021, 23:47 Brian G, wrote: >> >> Is anyone interested in having a command line parameter that will allow >> to create a script from a project? >> >> gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut >> >> --FromProject having the project directory as input and script path as >> output >> >> "Failure is the key to success; >> each mistake teaches us something" .. Morihei Ueshiba >> Brian G >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> ----[ 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 Thu Mar 4 19:18:54 2021 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 4 Mar 2021 10:18:54 -0800 (PST) Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script In-Reply-To: References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> <1614832796.615769120@f17.my.com> <1614870670.696584790@f20.my.com> <1767700950.7822.1614879453313.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1881582862.7900.1614881933998.JavaMail.zimbra@westwoodsvcs.com> line numbers help me relate, so i add them to the listing. The version I set you shows line numbers. What I sent does all these things already. I is ready to be used! "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 4, 2021, at 10:14 AM, Bruce Steers wrote: > Brilliant thank you Brian, that's going to be much better :) > I gotta ask though how come your example output has line numbers? > I've never seen line numbers before. > I'd agree the output would be helpful if the line numbers of the constructed > file show but i never found they did. > Thanks again > BruceS :) > On Thu, 4 Mar 2021 at 17:48, Brian G < [ mailto:brian at westwoodsvcs.com | > brian at westwoodsvcs.com ] > wrote: >> Ok, here is what I have done so far, >> The reason for the line of program as well as the error is that it is possible >> the error is from class files and there can be more than one error >> -T option is terse >> your script header looks like this: >> #!/usr/bin/env -S gbs3 -T >> the output for terse looks like this >> ------------------------------------------------------------------ >> # Gambas module file : MMain:11:36 >> 11*:Loop ' should be do...loop until >> ^ LOOP without DO >> ----------------------------------------------------------------------- >> Without -T option looks like this: >> -------------------------------------------------------------------------- >> # Gambas Project File 3.0 >> Title=Gambas Script >> Startup=MMain >> Vendor=Ordinary >> Version=0.0.1 >> License=General Public License 2.0 >> # Gambas module file : MMain:11:36 >> 1 :' Gambas module file >> 2 : >> 3 : >> 4 : >> 5 : >> 6 :' #!/usr/bin/env -S gbs3 -c >> 7 :'Auto Generated Script 03/01/2021 23:31:35.409 >> 8 :' Gambas module file >> 9 :Public Sub Main() >> 10 :Dim i As Integer = 0 >> 11*:Loop ' should be do...loop until >> ^ LOOP without DO >> 12 : Inc i >> 13 : Print "Hello world" >> 14 : >> 15 :Until i > 20 >> 16 :End >> 17 : >> ------------------------------------------------------------------------------------ >> In include the latest dev version of scripter, you will need to make install >> package and uninstall scripter and then install this version >> It has been well test on my 60-70 scripts I use in my work flow. Should be >> stable enough for most uses. >> to go back just uninstall this version and reinstall from daily. >> It has the -T option included. >> "Failure is the key to success; >> each mistake teaches us something" .. Morihei Ueshiba >> Brian G >> ----- On Mar 4, 2021, at 8:02 AM, Bruce Steers < [ mailto:bsteers4 at gmail.com | >> bsteers4 at gmail.com ] > wrote: >>> Sounds awesome, and like exactly what i said lol :) >>> could we Env the option too? >>> maybe if the scripter could do something like a simple .. >>> bStopScriptPrinting = (Env["GB_SCRIPT_ERRORS_ONLY"] = "true") >>> then we could set a system Env variable so i wouldn't have to add the arg each >>> time. >>> Cheers Bri , that's the only thing i wasn't keen on with the scripter, scrolling >>> back through the terminal trying to find the error msg line. >>> Wishing well >>> BruceS >>> On Thu, 4 Mar 2021 at 15:21, Brian G < [ mailto:brian at westwoodsvcs.com | >>> brian at westwoodsvcs.com ] > wrote: >>>> How about if it just prints the one line in error, so you can identify it in >>>> your original script file. >>>> -- >>>> Thanks >>>> Brian >>>> Wednesday, 03 March 2021, 10:05PM -08:00 from Bruce Steers [ >>>> mailto:bsteers4 at gmail.com | bsteers4 at gmail.com ] : >>>>> On Thu, 4 Mar 2021 at 05:07, Brian G < [ mailto:brian at westwoodsvcs.com | >>>>> brian at westwoodsvcs.com ] > wrote: >>>>>> Right now it will only print warnings if select -w and verbose with -v, it >>>>>> prints the error and listing showing error., The errors are printed first and >>>>>> may come from more that one file being compiled. >>>>>> We could add an option to suppress the error listing of the error file -terse, >>>>>> or maybe the opposite --error-detailed >>>>>> The line numbers mean very little that are displayed in the error reports by the >>>>>> scripter without the listing of the file they are in. As again the there may be >>>>>> errors in more than one compiled file, or included file. >>>>>> Remember that classes are each a separate file to the compiler. As well as the >>>>>> include files. >>>>>> Any ideas what would work best? >>>>> I'm not sure you understood me , i get the warnings/errors fine i just don't >>>>> want the entire script printed on an error. the name will do >>>>> I do not understand why it has to print the entire script on an error. >>>>> It doesn't just print a "listing" It prints the module name and error position >>>>> on the 1st line then prints the entire script out! >>>>> if the script is long enough it goes beyond my terminal scroll limit. >>>>> Seems erroneous (for my single script usage) >>>>> On error i get something like the following message... >>>>> MMain.module:6:12: error: Syntax error >>>>> # Gambas Project File 3.0 >>>>> Title=Gambas Script >>>>> Startup=MMain >>>>> ' Gambas module file >>>>> ' Gambas script file >>>>> Public Sub Main() >>>>> Dim sBases >>>>> Shell "dpkg-query --list linux*|grep \"generic\"|grep ii|awk '{print $2}" To >>>>> sBases >>>>> the rest of the script..... >>>>> The 1st line >>>>> MMain.module:6:12: error: Syntax error >>>>> tells me all I need to know, i'd like to not see the rest >>>>> If is makes an alternative project file so the line numbers are different to my >>>>> actual script then can it not print just the line in error. >>>>> Was just a thought. >>>>> All the best >>>>> BruceS >>>>> -- >>>>>> Thanks >>>>>> Brian >>>>>> Wednesday, 03 March 2021, 03:58PM -08:00 from Bruce Steers [ >>>>>> mailto:bsteers4 at gmail.com | bsteers4 at gmail.com ] : >>>>>>> Sounds like a good feature \uD83D\uDE42 >>>>>>> Is there an option (even a default setting maybe) to not print the script on >>>>>>> failure just the error? >>>>>>> Or could there be? >>>>>>> On Wed, 3 Mar 2021, 23:47 Brian G, < [ mailto:brian at westwoodsvcs.com | >>>>>>> brian at westwoodsvcs.com ] > wrote: >>>>>>>> Is anyone interested in having a command line parameter that will allow to >>>>>>>> create a script from a project? >>>>>>>> gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut >>>>>>>> --FromProject having the project directory as input and script path as output >>>>>>>> "Failure is the key to success; >>>>>>>> each mistake teaches us something" .. Morihei Ueshiba >>>>>>>> Brian G >>>>>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>>>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >> ----[ [ 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 Thu Mar 4 19:20:52 2021 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 4 Mar 2021 10:20:52 -0800 (PST) Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script In-Reply-To: <1881582862.7900.1614881933998.JavaMail.zimbra@westwoodsvcs.com> References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> <1614832796.615769120@f17.my.com> <1614870670.696584790@f20.my.com> <1767700950.7822.1614879453313.JavaMail.zimbra@westwoodsvcs.com> <1881582862.7900.1614881933998.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <665038186.7912.1614882052906.JavaMail.zimbra@westwoodsvcs.com> BruceS, To be clear, the version I sent is complete and does show line numbers. You should use it ! The examples were actual output from scripter! "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 4, 2021, at 10:18 AM, Brian wrote: > line numbers help me relate, so i add them to the listing. > The version I set you shows line numbers. > What I sent does all these things already. I is ready to be used! > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > ----- On Mar 4, 2021, at 10:14 AM, Bruce Steers wrote: >> Brilliant thank you Brian, that's going to be much better :) >> I gotta ask though how come your example output has line numbers? >> I've never seen line numbers before. >> I'd agree the output would be helpful if the line numbers of the constructed >> file show but i never found they did. >> Thanks again >> BruceS :) >> On Thu, 4 Mar 2021 at 17:48, Brian G < [ mailto:brian at westwoodsvcs.com | >> brian at westwoodsvcs.com ] > wrote: >>> Ok, here is what I have done so far, >>> The reason for the line of program as well as the error is that it is possible >>> the error is from class files and there can be more than one error >>> -T option is terse >>> your script header looks like this: >>> #!/usr/bin/env -S gbs3 -T >>> the output for terse looks like this >>> ------------------------------------------------------------------ >>> # Gambas module file : MMain:11:36 >>> 11*:Loop ' should be do...loop until >>> ^ LOOP without DO >>> ----------------------------------------------------------------------- >>> Without -T option looks like this: >>> -------------------------------------------------------------------------- >>> # Gambas Project File 3.0 >>> Title=Gambas Script >>> Startup=MMain >>> Vendor=Ordinary >>> Version=0.0.1 >>> License=General Public License 2.0 >>> # Gambas module file : MMain:11:36 >>> 1 :' Gambas module file >>> 2 : >>> 3 : >>> 4 : >>> 5 : >>> 6 :' #!/usr/bin/env -S gbs3 -c >>> 7 :'Auto Generated Script 03/01/2021 23:31:35.409 >>> 8 :' Gambas module file >>> 9 :Public Sub Main() >>> 10 :Dim i As Integer = 0 >>> 11*:Loop ' should be do...loop until >>> ^ LOOP without DO >>> 12 : Inc i >>> 13 : Print "Hello world" >>> 14 : >>> 15 :Until i > 20 >>> 16 :End >>> 17 : >>> ------------------------------------------------------------------------------------ >>> In include the latest dev version of scripter, you will need to make install >>> package and uninstall scripter and then install this version >>> It has been well test on my 60-70 scripts I use in my work flow. Should be >>> stable enough for most uses. >>> to go back just uninstall this version and reinstall from daily. >>> It has the -T option included. >>> "Failure is the key to success; >>> each mistake teaches us something" .. Morihei Ueshiba >>> Brian G >>> ----- On Mar 4, 2021, at 8:02 AM, Bruce Steers < [ mailto:bsteers4 at gmail.com | >>> bsteers4 at gmail.com ] > wrote: >>>> Sounds awesome, and like exactly what i said lol :) >>>> could we Env the option too? >>>> maybe if the scripter could do something like a simple .. >>>> bStopScriptPrinting = (Env["GB_SCRIPT_ERRORS_ONLY"] = "true") >>>> then we could set a system Env variable so i wouldn't have to add the arg each >>>> time. >>>> Cheers Bri , that's the only thing i wasn't keen on with the scripter, scrolling >>>> back through the terminal trying to find the error msg line. >>>> Wishing well >>>> BruceS >>>> On Thu, 4 Mar 2021 at 15:21, Brian G < [ mailto:brian at westwoodsvcs.com | >>>> brian at westwoodsvcs.com ] > wrote: >>>>> How about if it just prints the one line in error, so you can identify it in >>>>> your original script file. >>>>> -- >>>>> Thanks >>>>> Brian >>>>> Wednesday, 03 March 2021, 10:05PM -08:00 from Bruce Steers [ >>>>> mailto:bsteers4 at gmail.com | bsteers4 at gmail.com ] : >>>>>> On Thu, 4 Mar 2021 at 05:07, Brian G < [ mailto:brian at westwoodsvcs.com | >>>>>> brian at westwoodsvcs.com ] > wrote: >>>>>>> Right now it will only print warnings if select -w and verbose with -v, it >>>>>>> prints the error and listing showing error., The errors are printed first and >>>>>>> may come from more that one file being compiled. >>>>>>> We could add an option to suppress the error listing of the error file -terse, >>>>>>> or maybe the opposite --error-detailed >>>>>>> The line numbers mean very little that are displayed in the error reports by the >>>>>>> scripter without the listing of the file they are in. As again the there may be >>>>>>> errors in more than one compiled file, or included file. >>>>>>> Remember that classes are each a separate file to the compiler. As well as the >>>>>>> include files. >>>>>>> Any ideas what would work best? >>>>>> I'm not sure you understood me , i get the warnings/errors fine i just don't >>>>>> want the entire script printed on an error. the name will do >>>>>> I do not understand why it has to print the entire script on an error. >>>>>> It doesn't just print a "listing" It prints the module name and error position >>>>>> on the 1st line then prints the entire script out! >>>>>> if the script is long enough it goes beyond my terminal scroll limit. >>>>>> Seems erroneous (for my single script usage) >>>>>> On error i get something like the following message... >>>>>> MMain.module:6:12: error: Syntax error >>>>>> # Gambas Project File 3.0 >>>>>> Title=Gambas Script >>>>>> Startup=MMain >>>>>> ' Gambas module file >>>>>> ' Gambas script file >>>>>> Public Sub Main() >>>>>> Dim sBases >>>>>> Shell "dpkg-query --list linux*|grep \"generic\"|grep ii|awk '{print $2}" To >>>>>> sBases >>>>>> the rest of the script..... >>>>>> The 1st line >>>>>> MMain.module:6:12: error: Syntax error >>>>>> tells me all I need to know, i'd like to not see the rest >>>>>> If is makes an alternative project file so the line numbers are different to my >>>>>> actual script then can it not print just the line in error. >>>>>> Was just a thought. >>>>>> All the best >>>>>> BruceS >>>>>> -- >>>>>>> Thanks >>>>>>> Brian >>>>>>> Wednesday, 03 March 2021, 03:58PM -08:00 from Bruce Steers [ >>>>>>> mailto:bsteers4 at gmail.com | bsteers4 at gmail.com ] : >>>>>>>> Sounds like a good feature \uD83D\uDE42 >>>>>>>> Is there an option (even a default setting maybe) to not print the script on >>>>>>>> failure just the error? >>>>>>>> Or could there be? >>>>>>>> On Wed, 3 Mar 2021, 23:47 Brian G, < [ mailto:brian at westwoodsvcs.com | >>>>>>>> brian at westwoodsvcs.com ] > wrote: >>>>>>>>> Is anyone interested in having a command line parameter that will allow to >>>>>>>>> create a script from a project? >>>>>>>>> gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut >>>>>>>>> --FromProject having the project directory as input and script path as output >>>>>>>>> "Failure is the key to success; >>>>>>>>> each mistake teaches us something" .. Morihei Ueshiba >>>>>>>>> Brian G >>>>>>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>>>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>>>>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>>>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>> ----[ [ 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 Thu Mar 4 19:23:33 2021 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 4 Mar 2021 10:23:33 -0800 (PST) Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script In-Reply-To: <665038186.7912.1614882052906.JavaMail.zimbra@westwoodsvcs.com> References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> <1614870670.696584790@f20.my.com> <1767700950.7822.1614879453313.JavaMail.zimbra@westwoodsvcs.com> <1881582862.7900.1614881933998.JavaMail.zimbra@westwoodsvcs.com> <665038186.7912.1614882052906.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1185550167.7924.1614882213525.JavaMail.zimbra@westwoodsvcs.com> Here is the not terse output from that same script --------------------------------------------------------------------------------- # Gambas Project File 3.0 Title=Gambas Script Startup=MMain Vendor=Ordinary Version=0.0.1 License=General Public License 2.0 # Gambas module file : MMain:11:36 1 :' Gambas module file 2 : 3 : 4 : 5 : 6 :' #!/usr/bin/env -S gbs3 -c 7 :'Auto Generated Script 03/01/2021 23:31:35.409 8 :' Gambas module file 9 :Public Sub Main() 10 :Dim i As Integer = 0 11*:Loop ' should be do...loop until ^ LOOP without DO 12 : Inc i 13 : Print "Hello world" 14 : 15 :Until i > 20 16 :End 17 : # Gambas class file : testclass:1:9 1*: fg = dog ^ Missing AS 2 : print fg ____________________________________________________- "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 4, 2021, at 10:20 AM, Brian wrote: > BruceS, > To be clear, the version I sent is complete and does show line numbers. > You should use it ! > The examples were actual output from scripter! > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > ----- On Mar 4, 2021, at 10:18 AM, Brian wrote: >> line numbers help me relate, so i add them to the listing. >> The version I set you shows line numbers. >> What I sent does all these things already. I is ready to be used! >> "Failure is the key to success; >> each mistake teaches us something" .. Morihei Ueshiba >> Brian G >> ----- On Mar 4, 2021, at 10:14 AM, Bruce Steers wrote: >>> Brilliant thank you Brian, that's going to be much better :) >>> I gotta ask though how come your example output has line numbers? >>> I've never seen line numbers before. >>> I'd agree the output would be helpful if the line numbers of the constructed >>> file show but i never found they did. >>> Thanks again >>> BruceS :) >>> On Thu, 4 Mar 2021 at 17:48, Brian G < [ mailto:brian at westwoodsvcs.com | >>> brian at westwoodsvcs.com ] > wrote: >>>> Ok, here is what I have done so far, >>>> The reason for the line of program as well as the error is that it is possible >>>> the error is from class files and there can be more than one error >>>> -T option is terse >>>> your script header looks like this: >>>> #!/usr/bin/env -S gbs3 -T >>>> the output for terse looks like this >>>> ------------------------------------------------------------------ >>>> # Gambas module file : MMain:11:36 >>>> 11*:Loop ' should be do...loop until >>>> ^ LOOP without DO >>>> ----------------------------------------------------------------------- >>>> Without -T option looks like this: >>>> -------------------------------------------------------------------------- >>>> # Gambas Project File 3.0 >>>> Title=Gambas Script >>>> Startup=MMain >>>> Vendor=Ordinary >>>> Version=0.0.1 >>>> License=General Public License 2.0 >>>> # Gambas module file : MMain:11:36 >>>> 1 :' Gambas module file >>>> 2 : >>>> 3 : >>>> 4 : >>>> 5 : >>>> 6 :' #!/usr/bin/env -S gbs3 -c >>>> 7 :'Auto Generated Script 03/01/2021 23:31:35.409 >>>> 8 :' Gambas module file >>>> 9 :Public Sub Main() >>>> 10 :Dim i As Integer = 0 >>>> 11*:Loop ' should be do...loop until >>>> ^ LOOP without DO >>>> 12 : Inc i >>>> 13 : Print "Hello world" >>>> 14 : >>>> 15 :Until i > 20 >>>> 16 :End >>>> 17 : >>>> ------------------------------------------------------------------------------------ >>>> In include the latest dev version of scripter, you will need to make install >>>> package and uninstall scripter and then install this version >>>> It has been well test on my 60-70 scripts I use in my work flow. Should be >>>> stable enough for most uses. >>>> to go back just uninstall this version and reinstall from daily. >>>> It has the -T option included. >>>> "Failure is the key to success; >>>> each mistake teaches us something" .. Morihei Ueshiba >>>> Brian G >>>> ----- On Mar 4, 2021, at 8:02 AM, Bruce Steers < [ mailto:bsteers4 at gmail.com | >>>> bsteers4 at gmail.com ] > wrote: >>>>> Sounds awesome, and like exactly what i said lol :) >>>>> could we Env the option too? >>>>> maybe if the scripter could do something like a simple .. >>>>> bStopScriptPrinting = (Env["GB_SCRIPT_ERRORS_ONLY"] = "true") >>>>> then we could set a system Env variable so i wouldn't have to add the arg each >>>>> time. >>>>> Cheers Bri , that's the only thing i wasn't keen on with the scripter, scrolling >>>>> back through the terminal trying to find the error msg line. >>>>> Wishing well >>>>> BruceS >>>>> On Thu, 4 Mar 2021 at 15:21, Brian G < [ mailto:brian at westwoodsvcs.com | >>>>> brian at westwoodsvcs.com ] > wrote: >>>>>> How about if it just prints the one line in error, so you can identify it in >>>>>> your original script file. >>>>>> -- >>>>>> Thanks >>>>>> Brian >>>>>> Wednesday, 03 March 2021, 10:05PM -08:00 from Bruce Steers [ >>>>>> mailto:bsteers4 at gmail.com | bsteers4 at gmail.com ] : >>>>>>> On Thu, 4 Mar 2021 at 05:07, Brian G < [ mailto:brian at westwoodsvcs.com | >>>>>>> brian at westwoodsvcs.com ] > wrote: >>>>>>>> Right now it will only print warnings if select -w and verbose with -v, it >>>>>>>> prints the error and listing showing error., The errors are printed first and >>>>>>>> may come from more that one file being compiled. >>>>>>>> We could add an option to suppress the error listing of the error file -terse, >>>>>>>> or maybe the opposite --error-detailed >>>>>>>> The line numbers mean very little that are displayed in the error reports by the >>>>>>>> scripter without the listing of the file they are in. As again the there may be >>>>>>>> errors in more than one compiled file, or included file. >>>>>>>> Remember that classes are each a separate file to the compiler. As well as the >>>>>>>> include files. >>>>>>>> Any ideas what would work best? >>>>>>> I'm not sure you understood me , i get the warnings/errors fine i just don't >>>>>>> want the entire script printed on an error. the name will do >>>>>>> I do not understand why it has to print the entire script on an error. >>>>>>> It doesn't just print a "listing" It prints the module name and error position >>>>>>> on the 1st line then prints the entire script out! >>>>>>> if the script is long enough it goes beyond my terminal scroll limit. >>>>>>> Seems erroneous (for my single script usage) >>>>>>> On error i get something like the following message... >>>>>>> MMain.module:6:12: error: Syntax error >>>>>>> # Gambas Project File 3.0 >>>>>>> Title=Gambas Script >>>>>>> Startup=MMain >>>>>>> ' Gambas module file >>>>>>> ' Gambas script file >>>>>>> Public Sub Main() >>>>>>> Dim sBases >>>>>>> Shell "dpkg-query --list linux*|grep \"generic\"|grep ii|awk '{print $2}" To >>>>>>> sBases >>>>>>> the rest of the script..... >>>>>>> The 1st line >>>>>>> MMain.module:6:12: error: Syntax error >>>>>>> tells me all I need to know, i'd like to not see the rest >>>>>>> If is makes an alternative project file so the line numbers are different to my >>>>>>> actual script then can it not print just the line in error. >>>>>>> Was just a thought. >>>>>>> All the best >>>>>>> BruceS >>>>>>> -- >>>>>>>> Thanks >>>>>>>> Brian >>>>>>>> Wednesday, 03 March 2021, 03:58PM -08:00 from Bruce Steers [ >>>>>>>> mailto:bsteers4 at gmail.com | bsteers4 at gmail.com ] : >>>>>>>>> Sounds like a good feature \uD83D\uDE42 >>>>>>>>> Is there an option (even a default setting maybe) to not print the script on >>>>>>>>> failure just the error? >>>>>>>>> Or could there be? >>>>>>>>> On Wed, 3 Mar 2021, 23:47 Brian G, < [ mailto:brian at westwoodsvcs.com | >>>>>>>>> brian at westwoodsvcs.com ] > wrote: >>>>>>>>>> Is anyone interested in having a command line parameter that will allow to >>>>>>>>>> create a script from a project? >>>>>>>>>> gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut >>>>>>>>>> --FromProject having the project directory as input and script path as output >>>>>>>>>> "Failure is the key to success; >>>>>>>>>> each mistake teaches us something" .. Morihei Ueshiba >>>>>>>>>> Brian G >>>>>>>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>>>>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>>>>>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>>>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>>>>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>>>> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >>>>> http://gambaswiki.org/wiki/doc/netiquette ] ]---- >>>> ----[ [ 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 Thu Mar 4 19:28:59 2021 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 4 Mar 2021 10:28:59 -0800 (PST) Subject: [Gambas-user] IDE Console - buttons not functioning at all Message-ID: <976422067.7964.1614882539150.JavaMail.zimbra@westwoodsvcs.com> When I detach the console from the ide to be separate. None of the buttons for copy, clear, echo, open content function, nothing happen when I click on them in the latest master build. Has anyone else noticed this or Is it just me? Can't figure out how to re-attach it to the ide... ummm "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Mar 4 19:37:48 2021 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 4 Mar 2021 10:37:48 -0800 (PST) Subject: [Gambas-user] Scripter Added --convert-project Message-ID: <77548085.8030.1614883067997.JavaMail.zimbra@westwoodsvcs.com> Scripter Added --convert-project option This will convert a simple project to a script executable be scripter format like this gbs3 --convert-project [] The project directory is required the output directory is optional if not provided the script will be written to the shells env["PWD"] directory The name of the script is the project name. Comments? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Mar 4 20:43:56 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 4 Mar 2021 19:43:56 +0000 Subject: [Gambas-user] Scripter Add --fromProject to scripter that will convert a project to a script In-Reply-To: <665038186.7912.1614882052906.JavaMail.zimbra@westwoodsvcs.com> References: <809143654.6902.1614814566292.JavaMail.zimbra@westwoodsvcs.com> <1614832796.615769120@f17.my.com> <1614870670.696584790@f20.my.com> <1767700950.7822.1614879453313.JavaMail.zimbra@westwoodsvcs.com> <1881582862.7900.1614881933998.JavaMail.zimbra@westwoodsvcs.com> <665038186.7912.1614882052906.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Sorry my friend I got distracted when I went to download the archive unpacker from the farm and found my gtk3 gambas locking up. I tried lol. Got work now but will check it out later. ? Get the updates merged into master innit looks like lots of improvements. BruceS On Thu, 4 Mar 2021, 18:31 Brian G, wrote: > BruceS, > > To be clear, the version I sent is complete and does show line numbers. > You should use it ! > The examples were actual output from scripter! > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----- On Mar 4, 2021, at 10:18 AM, Brian wrote: > > line numbers help me relate, so i add them to the listing. > The version I set you shows line numbers. > What I sent does all these things already. I is ready to be used! > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----- On Mar 4, 2021, at 10:14 AM, Bruce Steers > wrote: > > Brilliant thank you Brian, that's going to be much better :) > > I gotta ask though how come your example output has line numbers? > I've never seen line numbers before. > I'd agree the output would be helpful if the line numbers of the > constructed file show but i never found they did. > > Thanks again > BruceS :) > > > > > On Thu, 4 Mar 2021 at 17:48, Brian G wrote: > >> Ok, here is what I have done so far, >> The reason for the line of program as well as the error is that it is >> possible the error is from class files and there can be more than one error >> >> -T option is terse >> your script header looks like this: >> #!/usr/bin/env -S gbs3 -T >> >> the output for terse looks like this >> ------------------------------------------------------------------ >> # Gambas module file : MMain:11:36 >> 11*:Loop ' should be do...loop until >> ^ LOOP without >> DO >> ----------------------------------------------------------------------- >> Without -T option looks like this: >> -------------------------------------------------------------------------- >> # Gambas Project File 3.0 >> Title=Gambas Script >> Startup=MMain >> Vendor=Ordinary >> Version=0.0.1 >> License=General Public License 2.0 >> >> # Gambas module file : MMain:11:36 >> 1 :' Gambas module file >> 2 : >> 3 : >> 4 : >> 5 : >> 6 :' #!/usr/bin/env -S gbs3 -c >> 7 :'Auto Generated Script 03/01/2021 23:31:35.409 >> 8 :' Gambas module file >> 9 :Public Sub Main() >> 10 :Dim i As Integer = 0 >> 11*:Loop ' should be do...loop until >> ^ LOOP without DO >> 12 : Inc i >> 13 : Print "Hello world" >> 14 : >> 15 :Until i > 20 >> 16 :End >> 17 : >> >> ------------------------------------------------------------------------------------ >> In include the latest dev version of scripter, you will need to make >> install package and uninstall scripter and then install this version >> It has been well test on my 60-70 scripts I use in my work flow. Should >> be stable enough for most uses. >> to go back just uninstall this version and reinstall from daily. >> It has the -T option included. >> >> >> "Failure is the key to success; >> each mistake teaches us something" .. Morihei Ueshiba >> Brian G >> >> ----- On Mar 4, 2021, at 8:02 AM, Bruce Steers >> wrote: >> >> Sounds awesome, and like exactly what i said lol :) >> >> could we Env the option too? >> maybe if the scripter could do something like a simple .. >> >> bStopScriptPrinting = (Env["GB_SCRIPT_ERRORS_ONLY"] = "true") >> >> then we could set a system Env variable so i wouldn't have to add the arg >> each time. >> >> Cheers Bri , that's the only thing i wasn't keen on with the scripter, >> scrolling back through the terminal trying to find the error msg line. >> >> Wishing well >> BruceS >> >> On Thu, 4 Mar 2021 at 15:21, Brian G wrote: >> >>> How about if it just prints the one line in error, so you can identify >>> it in your original script file. >>> >>> -- >>> Thanks >>> Brian >>> Wednesday, 03 March 2021, 10:05PM -08:00 from Bruce Steers >>> bsteers4 at gmail.com: >>> >>> >>> >>> On Thu, 4 Mar 2021 at 05:07, Brian G wrote: >>> >>> Right now it will only print warnings if select -w and verbose with -v, >>> it prints the error and listing showing error., The errors are printed >>> first and may come from more that one file being compiled. >>> We could add an option to suppress the error listing of the error file >>> -terse, or maybe the opposite --error-detailed >>> The line numbers mean very little that are displayed in the error >>> reports by the scripter without the listing of the file they are in. As >>> again the there may be errors in more than one compiled file, or included >>> file. >>> Remember that classes are each a separate file to the compiler. As well >>> as the include files. >>> >>> Any ideas what would work best? >>> >>> I'm not sure you understood me , i get the warnings/errors fine i just >>> don't want the entire script printed on an error. the name will do >>> >>> I do not understand why it has to print the entire script on an error. >>> It doesn't just print a "listing" It prints the module name and error >>> position on the 1st line then prints the entire script out! >>> if the script is long enough it goes beyond my terminal scroll limit. >>> Seems erroneous (for my single script usage) >>> >>> On error i get something like the following message... >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> *MMain.module:6:12: error: Syntax error# Gambas Project File >>> 3.0Title=Gambas ScriptStartup=MMain' Gambas module file' Gambas script >>> filePublic Sub Main()Dim sBasesShell "dpkg-query --list linux*|grep >>> \"generic\"|grep ii|awk '{print $2}" To sBases* >>> >>> *the rest of the script.....* >>> >>> The 1st line >>> MMain.module:6:12: error: Syntax error >>> >>> tells me all I need to know, i'd like to not see the rest >>> If is makes an alternative project file so the line numbers are >>> different to my actual script then can it not print just the line in error. >>> >>> Was just a thought. >>> All the best >>> BruceS >>> >>> -- >>> >>> Thanks >>> Brian >>> Wednesday, 03 March 2021, 03:58PM -08:00 from Bruce Steers >>> bsteers4 at gmail.com: >>> >>> Sounds like a good feature \uD83D\uDE42 >>> >>> Is there an option (even a default setting maybe) to not print the >>> script on failure just the error? >>> Or could there be? >>> >>> On Wed, 3 Mar 2021, 23:47 Brian G, wrote: >>> >>> Is anyone interested in having a command line parameter that will allow >>> to create a script from a project? >>> >>> gbs3 --FromProject ~/MyProjectIn ~/MyScriptOut >>> >>> --FromProject having the project directory as input and script path as >>> output >>> >>> "Failure is the key to success; >>> each mistake teaches us something" .. Morihei Ueshiba >>> Brian G >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> >>> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> ----[ 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 bagonergi at gmail.com Fri Mar 5 09:56:13 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 5 Mar 2021 09:56:13 +0100 Subject: [Gambas-user] Error installing Gambas Master Message-ID: See errors below [0] Regards Gianluigi [0] Installing 'gb.web.feed' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.form.print' component... gbc3: error: Component not found: gb.form Compiling 'gb.scanner' component... gbc3: error: Component not found: gb.form make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/gian/gambasdevel/comp' make[1]: Leaving directory '/home/gian/gambasdevel/comp' Making install in app make[1]: Entering directory '/home/gian/gambasdevel/app' Making install in . make[2]: Entering directory '/home/gian/gambasdevel/app' make[3]: Entering directory '/home/gian/gambasdevel/app' Installing the development environment... Compiling gambas3... gbc3: error: Component not found: gb.form Compiling gbs3... OK Installing gbs3... Installing IDE application icon... Installing IDE application menu... Installing the scripter... Registering Gambas script mimetype... Registering Gambas server page mimetype... Installing the Gambas appdata file... Installing the Gambas template projects... make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/gian/gambasdevel/app' make[2]: Leaving directory '/home/gian/gambasdevel/app' Making install in man make[2]: Entering directory '/home/gian/gambasdevel/app/man' make[3]: Entering directory '/home/gian/gambasdevel/app/man' make[3]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/usr/share/man/man1' /usr/bin/install -c -m 644 gambas3.1 gbs3.1 gbw3.1 '/usr/share/man/man1' make[3]: Leaving directory '/home/gian/gambasdevel/app/man' make[2]: Leaving directory '/home/gian/gambasdevel/app/man' make[1]: Leaving directory '/home/gian/gambasdevel/app' Making install in . make[1]: Entering directory '/home/gian/gambasdevel' make[2]: Entering directory '/home/gian/gambasdevel' || || Unable to compile 'gb.gui.base' component || Unable to compile 'gb.form' component || Unable to compile 'gb.form.dialog' component || Unable to compile 'gb.form.mdi' component || Unable to compile 'gb.db.form' component || Unable to compile 'gb.desktop' component || Unable to compile 'gb.report' component || Unable to compile 'gb.report2' component || Unable to compile 'gb.chart' component || Unable to compile 'gb.memcached' component || Unable to compile 'gb.map' component || Unable to compile 'gb.media.form' component || Unable to compile 'gb.form.editor' component || Unable to compile 'gb.dbus.trayicon' component || Unable to compile 'gb.form.terminal' component || Unable to compile 'gb.form.print' component || Unable to compile 'gb.scanner' component || Unable to compile gambas3 || make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/gian/gambasdevel' make[1]: Leaving directory '/home/gian/gambasdevel' -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Mar 5 10:06:03 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 5 Mar 2021 10:06:03 +0100 Subject: [Gambas-user] Error installing Gambas Master In-Reply-To: References: Message-ID: Il giorno ven 5 mar 2021 alle ore 09:56 Gianluigi ha scritto: > See errors below [0] > Sorry, the error seems to start from here: ... make install-data-hook make[4]: Entering directory '/home/gian/gambasdevel/gb.openal/src' Installing 'gb.openal' control icons if needed... Creating the information files for 'gb.openal' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory make[4]: Leaving directory '/home/gian/gambasdevel/gb.openal/src' make[3]: Leaving directory '/home/gian/gambasdevel/gb.openal/src' make[2]: Leaving directory '/home/gian/gambasdevel/gb.openal/src' make[2]: Entering directory '/home/gian/gambasdevel/gb.openal' make[3]: Entering directory '/home/gian/gambasdevel/gb.openal' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/gian/gambasdevel/gb.openal' make[2]: Leaving directory '/home/gian/gambasdevel/gb.openal' make[1]: Leaving directory '/home/gian/gambasdevel/gb.openal' Making install in comp make[1]: Entering directory '/home/gian/gambasdevel/comp' make[2]: Entering directory '/home/gian/gambasdevel/comp' Compiling 'gb.eval.highlight' component... OK Installing 'gb.eval.highlight' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.args' component... OK Installing 'gb.args' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.settings' component... OK Installing 'gb.settings' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.gui.base' component... Label.class:203:64: error: Unexpected '^' Compiling 'gb.form.stock' component... OK Installing 'gb.form.stock' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.form' component... ButtonBox.class:39:20: error: Unknown identifier: PictureBox FBalloon.form:3: error: Unknown identifier: TextLabel ColorPalette.class:28:18: error: Unknown identifier: ScrollArea MenuButton.class:141:11: error: Unknown identifier: Action Completion.class:17:18: error: Unknown identifier: GridView TimeBox.class:18:18: error: Unknown identifier: SpinBox FColorChooser.form:14: error: Unknown identifier: PictureBox FCalendar.form:11: error: Unknown identifier: SpinBox DocumentView.class:37:18: error: Unknown identifier: ScrollArea Compiling 'gb.form.dialog' component... gbc3: error: Component not found: gb.form Compiling 'gb.form.mdi' component... gbc3: error: Component not found: gb.form Compiling 'gb.db.form' component... gbc3: error: Component not found: gb.form Compiling 'gb.desktop' component... gbc3: error: Component not found: gb.form Compiling 'gb.web' component... OK Installing 'gb.web' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.report' component... gbc3: error: Component not found: gb.form Compiling 'gb.report2' component... gbc3: error: Component not found: gb.form Compiling 'gb.chart' component... gbc3: error: Component not found: gb.form Compiling 'gb.mysql' component... OK Installing 'gb.mysql' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.net.smtp' component... OK Installing 'gb.net.smtp' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.net.pop3' component... OK Installing 'gb.net.pop3' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.memcached' component... FMain.form:3: error: Unknown identifier: Frame Compiling 'gb.map' component... gbc3: error: Component not found: gb.form Compiling 'gb.logging' component... OK Installing 'gb.logging' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.markdown' component... OK Installing 'gb.markdown' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.media.form' component... gbc3: error: Component not found: gb.form Compiling 'gb.util' component... OK Installing 'gb.util' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.util.web' component... OK Installing 'gb.util.web' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.form.editor' component... gbc3: error: Component not found: gb.form Compiling 'gb.dbus.trayicon' component... gbc3: error: Component not found: gb.form Compiling 'gb.web.form' component... OK Installing 'gb.web.form' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.web.gui' component... OK Installing 'gb.web.gui' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.form.terminal' component... gbc3: error: Component not found: gb.form Compiling 'gb.term.form' component... OK Installing 'gb.term.form' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.web.feed' component... OK Installing 'gb.web.feed' component... Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Compiling 'gb.form.print' component... gbc3: error: Component not found: gb.form Compiling 'gb.scanner' component... gbc3: error: Component not found: gb.form make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/gian/gambasdevel/comp' make[1]: Leaving directory '/home/gian/gambasdevel/comp' Making install in app make[1]: Entering directory '/home/gian/gambasdevel/app' Making install in . make[2]: Entering directory '/home/gian/gambasdevel/app' make[3]: Entering directory '/home/gian/gambasdevel/app' Installing the development environment... Compiling gambas3... gbc3: error: Component not found: gb.form Compiling gbs3... OK Installing gbs3... Installing IDE application icon... Installing IDE application menu... Installing the scripter... Registering Gambas script mimetype... Registering Gambas server page mimetype... Installing the Gambas appdata file... Installing the Gambas template projects... make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/gian/gambasdevel/app' make[2]: Leaving directory '/home/gian/gambasdevel/app' Making install in man make[2]: Entering directory '/home/gian/gambasdevel/app/man' make[3]: Entering directory '/home/gian/gambasdevel/app/man' make[3]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/usr/share/man/man1' /usr/bin/install -c -m 644 gambas3.1 gbs3.1 gbw3.1 '/usr/share/man/man1' make[3]: Leaving directory '/home/gian/gambasdevel/app/man' make[2]: Leaving directory '/home/gian/gambasdevel/app/man' make[1]: Leaving directory '/home/gian/gambasdevel/app' Making install in . make[1]: Entering directory '/home/gian/gambasdevel' make[2]: Entering directory '/home/gian/gambasdevel' || || Unable to compile 'gb.gui.base' component || Unable to compile 'gb.form' component || Unable to compile 'gb.form.dialog' component || Unable to compile 'gb.form.mdi' component || Unable to compile 'gb.db.form' component || Unable to compile 'gb.desktop' component || Unable to compile 'gb.report' component || Unable to compile 'gb.report2' component || Unable to compile 'gb.chart' component || Unable to compile 'gb.memcached' component || Unable to compile 'gb.map' component || Unable to compile 'gb.media.form' component || Unable to compile 'gb.form.editor' component || Unable to compile 'gb.dbus.trayicon' component || Unable to compile 'gb.form.terminal' component || Unable to compile 'gb.form.print' component || Unable to compile 'gb.scanner' component || Unable to compile gambas3 || make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/gian/gambasdevel' make[1]: Leaving directory '/home/gian/gambasdevel' -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Fri Mar 5 10:42:09 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 5 Mar 2021 10:42:09 +0100 Subject: [Gambas-user] Timer backwards? Message-ID: Just stumbled over this one - there isn't a property like Timer.Backwards or Timer.StopWatch, right? Might be a practical thing to have: Timer.Backwards as Boolean (to set stopwatch mode) Timer.Start as Integer (in milliseconds to set the start value) Timer_Stop - event to trigger some action on counter 0 Setting Timer.Start > 0 could start the Timer from code. Regards Rolf From adamnt42 at gmail.com Fri Mar 5 12:39:26 2021 From: adamnt42 at gmail.com (Bruce) Date: Fri, 5 Mar 2021 22:09:26 +1030 Subject: [Gambas-user] Timer backwards? In-Reply-To: References: Message-ID: <480be144-dcb2-0f6a-cd3b-185a8a86206f@gmail.com> On 5/3/21 8:12 pm, Rolf-Werner Eilert wrote: > Just stumbled over this one - there isn't a property like > Timer.Backwards or Timer.StopWatch, right? > > Might be a practical thing to have: > > Timer.Backwards as Boolean (to set stopwatch mode) > Timer.Start as Integer (in milliseconds to set the start value) > Timer_Stop - event to trigger some action on counter 0 > > Setting Timer.Start > 0 could start the Timer from code. > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- I cant see the point, whether you count up or down the effect is the same. Dim Fuse as new Timer Fuse.Delay=60*100 Sub Fuse_Timer() Planet.Explode End regards Vogon.Commander bruce From bsteers4 at gmail.com Fri Mar 5 13:59:08 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 12:59:08 +0000 Subject: [Gambas-user] Error installing Gambas Master In-Reply-To: References: Message-ID: Hey GL there was a typo in gb.gui.base , Ben has kindly corrected it now :) BruceS On Fri, 5 Mar 2021 at 09:07, Gianluigi wrote: > > > Il giorno ven 5 mar 2021 alle ore 09:56 Gianluigi > ha scritto: > >> See errors below [0] >> > > Sorry, the error seems to start from here: > > ... > make install-data-hook > make[4]: Entering directory '/home/gian/gambasdevel/gb.openal/src' > Installing 'gb.openal' control icons if needed... > Creating the information files for 'gb.openal' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > > make[4]: Leaving directory '/home/gian/gambasdevel/gb.openal/src' > make[3]: Leaving directory '/home/gian/gambasdevel/gb.openal/src' > make[2]: Leaving directory '/home/gian/gambasdevel/gb.openal/src' > make[2]: Entering directory '/home/gian/gambasdevel/gb.openal' > make[3]: Entering directory '/home/gian/gambasdevel/gb.openal' > make[3]: Nothing to be done for 'install-exec-am'. > make[3]: Nothing to be done for 'install-data-am'. > make[3]: Leaving directory '/home/gian/gambasdevel/gb.openal' > make[2]: Leaving directory '/home/gian/gambasdevel/gb.openal' > make[1]: Leaving directory '/home/gian/gambasdevel/gb.openal' > Making install in comp > make[1]: Entering directory '/home/gian/gambasdevel/comp' > make[2]: Entering directory '/home/gian/gambasdevel/comp' > Compiling 'gb.eval.highlight' component... > OK > Installing 'gb.eval.highlight' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.args' component... > OK > Installing 'gb.args' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.settings' component... > OK > Installing 'gb.settings' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.gui.base' component... > Label.class:203:64: error: Unexpected '^' > Compiling 'gb.form.stock' component... > OK > Installing 'gb.form.stock' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.form' component... > ButtonBox.class:39:20: error: Unknown identifier: PictureBox > FBalloon.form:3: error: Unknown identifier: TextLabel > ColorPalette.class:28:18: error: Unknown identifier: ScrollArea > MenuButton.class:141:11: error: Unknown identifier: Action > Completion.class:17:18: error: Unknown identifier: GridView > TimeBox.class:18:18: error: Unknown identifier: SpinBox > FColorChooser.form:14: error: Unknown identifier: PictureBox > FCalendar.form:11: error: Unknown identifier: SpinBox > DocumentView.class:37:18: error: Unknown identifier: ScrollArea > Compiling 'gb.form.dialog' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.form.mdi' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.db.form' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.desktop' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.web' component... > OK > Installing 'gb.web' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.report' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.report2' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.chart' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.mysql' component... > OK > Installing 'gb.mysql' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.net.smtp' component... > OK > Installing 'gb.net.smtp' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.net.pop3' component... > OK > Installing 'gb.net.pop3' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.memcached' component... > FMain.form:3: error: Unknown identifier: Frame > Compiling 'gb.map' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.logging' component... > OK > Installing 'gb.logging' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.markdown' component... > OK > Installing 'gb.markdown' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.media.form' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.util' component... > OK > Installing 'gb.util' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.util.web' component... > OK > Installing 'gb.util.web' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.form.editor' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.dbus.trayicon' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.web.form' component... > OK > Installing 'gb.web.form' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.web.gui' component... > OK > Installing 'gb.web.gui' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.form.terminal' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.term.form' component... > OK > Installing 'gb.term.form' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.web.feed' component... > OK > Installing 'gb.web.feed' component... > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Compiling 'gb.form.print' component... > gbc3: error: Component not found: gb.form > Compiling 'gb.scanner' component... > gbc3: error: Component not found: gb.form > make[2]: Nothing to be done for 'install-data-am'. > make[2]: Leaving directory '/home/gian/gambasdevel/comp' > make[1]: Leaving directory '/home/gian/gambasdevel/comp' > Making install in app > make[1]: Entering directory '/home/gian/gambasdevel/app' > Making install in . > make[2]: Entering directory '/home/gian/gambasdevel/app' > make[3]: Entering directory '/home/gian/gambasdevel/app' > Installing the development environment... > Compiling gambas3... > gbc3: error: Component not found: gb.form > Compiling gbs3... > OK > Installing gbs3... > Installing IDE application icon... > Installing IDE application menu... > Installing the scripter... > Registering Gambas script mimetype... > Registering Gambas server page mimetype... > Installing the Gambas appdata file... > Installing the Gambas template projects... > make[3]: Nothing to be done for 'install-data-am'. > make[3]: Leaving directory '/home/gian/gambasdevel/app' > make[2]: Leaving directory '/home/gian/gambasdevel/app' > Making install in man > make[2]: Entering directory '/home/gian/gambasdevel/app/man' > make[3]: Entering directory '/home/gian/gambasdevel/app/man' > make[3]: Nothing to be done for 'install-exec-am'. > /usr/bin/mkdir -p '/usr/share/man/man1' > /usr/bin/install -c -m 644 gambas3.1 gbs3.1 gbw3.1 '/usr/share/man/man1' > make[3]: Leaving directory '/home/gian/gambasdevel/app/man' > make[2]: Leaving directory '/home/gian/gambasdevel/app/man' > make[1]: Leaving directory '/home/gian/gambasdevel/app' > Making install in . > make[1]: Entering directory '/home/gian/gambasdevel' > make[2]: Entering directory '/home/gian/gambasdevel' > > || > || Unable to compile 'gb.gui.base' component > || Unable to compile 'gb.form' component > || Unable to compile 'gb.form.dialog' component > || Unable to compile 'gb.form.mdi' component > || Unable to compile 'gb.db.form' component > || Unable to compile 'gb.desktop' component > || Unable to compile 'gb.report' component > || Unable to compile 'gb.report2' component > || Unable to compile 'gb.chart' component > || Unable to compile 'gb.memcached' component > || Unable to compile 'gb.map' component > || Unable to compile 'gb.media.form' component > || Unable to compile 'gb.form.editor' component > || Unable to compile 'gb.dbus.trayicon' component > || Unable to compile 'gb.form.terminal' component > || Unable to compile 'gb.form.print' component > || Unable to compile 'gb.scanner' component > || Unable to compile gambas3 > || > > make[2]: Nothing to be done for 'install-data-am'. > make[2]: Leaving directory '/home/gian/gambasdevel' > make[1]: Leaving directory '/home/gian/gambasdevel' > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Mar 5 14:56:40 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 5 Mar 2021 14:56:40 +0100 Subject: [Gambas-user] Error installing Gambas Master In-Reply-To: References: Message-ID: Il giorno ven 5 mar 2021 alle ore 14:00 Bruce Steers ha scritto: > Hey GL there was a typo in gb.gui.base , Ben has kindly corrected it now :) > > http://gambaswiki.org/wiki/doc/netiquette > Yes I have seen, but now I have compiled the stable and am working with that, so I cannot know if the error has actually been corrected and report it to Benoit. Since the stable works well, for example if I click on the Gnome's Dock icon the IDE starts immediately with the QT, unlike what happens with the Master, I think I will stay here for a while. :-) Thanks anyway -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 5 15:32:27 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 14:32:27 +0000 Subject: [Gambas-user] Error installing Gambas Master In-Reply-To: References: Message-ID: Er. error is already reported and fixed as I mentioned. :) https://gitlab.com/gambas/gambas/-/commits/master is always a good place to check ;) Master switched from QT to GTK3 some time ago as GTK3 has most need for bug testing at present as it's newest. just prefix dock icon with env GB_GUI=gb.qt5 gambas3 to force QT on master but you know all this ;) Wishing well BruceS On Fri, 5 Mar 2021 at 13:57, Gianluigi wrote: > > > Il giorno ven 5 mar 2021 alle ore 14:00 Bruce Steers > ha scritto: > >> Hey GL there was a typo in gb.gui.base , Ben has kindly corrected it now >> :) >> > > >> http://gambaswiki.org/wiki/doc/netiquette >> > > Yes I have seen, but now I have compiled the stable and am working with > that, so I cannot know if the error has actually been corrected and report > it to Benoit. > Since the stable works well, for example if I click on the Gnome's Dock > icon the IDE starts immediately with the QT, unlike what happens with the > Master, I think I will stay here for a while. :-) > > Thanks anyway > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Mar 5 15:52:37 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 5 Mar 2021 15:52:37 +0100 Subject: [Gambas-user] Error installing Gambas Master In-Reply-To: References: Message-ID: Il giorno ven 5 mar 2021 alle ore 15:33 Bruce Steers ha scritto: > > Master switched from QT to GTK3 some time ago as GTK3 has most need for > bug testing at present as it's newest. > > just prefix dock icon with env GB_GUI=gb.qt5 gambas3 to force QT on master > > but you know all this ;) > http://gambaswiki.org/wiki/doc/netiquette > http://gambaswiki.org/wiki/doc/netiquette I don't understand what you mean, of course I know since it was me who suggested it Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 5 15:56:53 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 14:56:53 +0000 Subject: [Gambas-user] Error installing Gambas Master In-Reply-To: References: Message-ID: > > Master switched from QT to GTK3 some time ago as GTK3 has most need for > bug testing at present as it's newest. > > just prefix dock icon with env GB_GUI=gb.qt5 gambas3 to force QT on master > Personally (just my view) I'm sticking with master and gtk3 and reporting ALL the bugs i find until i find no more. It's getting better every day :) The last error was just an after-glitch in what is yet another improvement. I reported glitches in the way some of the toolkits write label text (text getting cut off in qt) Now gambas does not use/rely on the toolkit Labels and TextLabels at all it creates it's own. Master will get better faster if we all stick with it and help squish the bugs. but like i say, that's just me, I understand for many their gambas installation can be considered more "crucial" and they cannot afford to use the version that has "USE AT YOUR OWN RISK!" it it's title bar. hehe , it gets me every time, I kinda take it for granted and forget that most of the software i use I have hand written in gambas and when there's a bug in master suddenly MOST of the software i use does not work. grrrr But it just makes me a better bug reporter as I get straight on the bugtracker and moan and Benoit is frankly amazing at tracking the bugs down and squishing them. my suggestions are more often than not way off the mark lol , live and learn though eh ;) Al the best BruceS On Fri, 5 Mar 2021 at 13:57, Gianluigi wrote: > >> >> >> Il giorno ven 5 mar 2021 alle ore 14:00 Bruce Steers >> ha scritto: >> >>> Hey GL there was a typo in gb.gui.base , Ben has kindly corrected it now >>> :) >>> >> >> >>> http://gambaswiki.org/wiki/doc/netiquette >>> >> >> Yes I have seen, but now I have compiled the stable and am working with >> that, so I cannot know if the error has actually been corrected and report >> it to Benoit. >> Since the stable works well, for example if I click on the Gnome's Dock >> icon the IDE starts immediately with the QT, unlike what happens with the >> Master, I think I will stay here for a while. :-) >> >> Thanks anyway >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 5 16:08:28 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 15:08:28 +0000 Subject: [Gambas-user] Error installing Gambas Master In-Reply-To: References: Message-ID: On Fri, 5 Mar 2021 at 14:53, Gianluigi wrote: > > > Il giorno ven 5 mar 2021 alle ore 15:33 Bruce Steers > ha scritto: > >> >> Master switched from QT to GTK3 some time ago as GTK3 has most need for >> bug testing at present as it's newest. >> >> just prefix dock icon with env GB_GUI=gb.qt5 gambas3 to force QT on master >> >> but you know all this ;) >> http://gambaswiki.org/wiki/doc/netiquette >> > > http://gambaswiki.org/wiki/doc/netiquette > > I don't understand what you mean, of course I know since it was me who > suggested i > so why say you stick with stable as it's better because it uses QT when you know master can be easily QT too? I don't understand why you said you cannot know of master fixes and stable is better as it's qt. I give you answers to both those complaints and you reply with "of course I know" Happy to help... Bruce Steers -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 5 16:24:19 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 15:24:19 +0000 Subject: [Gambas-user] Focus shifting with arrow keys (custom controls) Message-ID: Hi all I got me a problem and just need to know if there is a function or if i'll have to write the code... I have made a custom Checkbox and it's test form has a bunch of the custom checkboxes plus some normal ones in a selection of panels. I have set Focus = True on my controls but get the following behaviour... Tab button works completely as expected. focus shifts to the next control even if it is in another panel or the first control if it's on the last one. Using the arrow keyboard keys though initially only worked for the normal checkboxes and not mine. I started to add some code on the Key event handler using Me.Next , then had to work on finding parent containers and stuff to get to the next control if in another panel. as it was getting more and more complicated i thought maybe i could ask if there is a function i am missing to do this or if i should continue to write the code? Thanks in advance BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Mar 5 16:45:46 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 5 Mar 2021 16:45:46 +0100 Subject: [Gambas-user] Error installing Gambas Master In-Reply-To: References: Message-ID: Il giorno ven 5 mar 2021 alle ore 16:09 Bruce Steers ha scritto: > > > > so why say you stick with stable as it's better because it uses QT when > you know master can be easily QT too? > > I don't understand why you said you cannot know of master fixes and stable > is better as it's qt. > I give you answers to both those complaints and you reply with "of course > I know" > > Happy to help... > Bruce Steers > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > You suggest me I can use env GB_GUI to force... etc. Well, since you have a short memory, read here: https://lists.gambas-basic.org/pipermail/user/2020-November/070664.html this is what I mean by "of course I know". Naturally you are the best, Benoit wouldn't know how to do if you weren't there. And it is thanks to this that we can now safely use the stable and stop with our miserable search for bugs. Thank you so much for your tremendous help Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 5 17:15:31 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 16:15:31 +0000 Subject: [Gambas-user] Timer backwards? In-Reply-To: References: Message-ID: On Fri, 5 Mar 2021 at 09:43, Rolf-Werner Eilert wrote: > Just stumbled over this one - there isn't a property like > Timer.Backwards or Timer.StopWatch, right? > > Might be a practical thing to have: > > Timer.Backwards as Boolean (to set stopwatch mode) > Timer.Start as Integer (in milliseconds to set the start value) > Timer_Stop - event to trigger some action on counter 0 > > Setting Timer.Start > 0 could start the Timer from code. > > Regards > Rolf > Well for starters Timer.Start is already a function so cannot use that name. And as vogon commander bruce said "count down or up, what's the difference really?" But if you must have it then to implement this yourself would take very little code... I'll show you, it's as easy as this...... Create a new class file in your app and Call it StopWatch.class copy and paste this text into it... -----------cut------------------------------------ ' Gambas class file Export Inherits Timer Event ZeroReached Public Const _Properties As String = "*,-Delay" ' hide Delay as we only want seconds Property CountDown As Integer Use $iCountDown Private $Timer As Timer Public Sub _new() $Timer = New Timer As "Time" $Timer.Delay = 1000 End Public Sub BeginCountDown(Seconds As Integer) $iCountDown = Seconds $Timer.Start End Public Sub Time_Timer() Dec $iCountDown If $iCountDown > 0 Then Return $Timer.Stop Raise ZeroReached End ------cut-------------- So this class inherits Timer and adds the Property CountDown , a command BeginCountDown(seconds) and an event ZeroReached. It will be in the form designer with the normal timer on the "Special" family tab and can be instanced as you would a normal Timer. So now your app has a countdown Timer and could use code like this... '' Begin a 10 second countdown Public Sub Button1_Click() StopWatch1.BeginCountDown(10) End '' react to countdown reaching zero Public Sub StopWatch1_ZeroReached() Message("countdown reached zero") End '' reading StopWatch1.CountDown tells us how many seconds to go. Public Sub Button2_Click() Last.Text = "How long to go " & StopWatch1.CountDown & " seconds" End Wishing Well BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 5 17:50:30 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 16:50:30 +0000 Subject: [Gambas-user] Error installing Gambas Master In-Reply-To: References: Message-ID: On Fri, 5 Mar 2021 at 15:47, Gianluigi wrote: > > > Il giorno ven 5 mar 2021 alle ore 16:09 Bruce Steers > ha scritto: > >> >> >> >> so why say you stick with stable as it's better because it uses QT when >> you know master can be easily QT too? >> >> I don't understand why you said you cannot know of master fixes and >> stable is better as it's qt. >> I give you answers to both those complaints and you reply with "of course >> I know" >> >> Happy to help... >> Bruce Steers >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > You suggest me I can use env GB_GUI to force... etc. > Well, since you have a short memory, read here: > https://lists.gambas-basic.org/pipermail/user/2020-November/070664.html > this is what I mean by "of course I know". > Me memory isn't that bad , that why i said "but you know this" ;) But alas the memory came after i had given the instructions and i didn't want to have wasted my time typing the help ;) > Naturally you are the best, Benoit wouldn't know how to do if you weren't > there. > And it is thanks to this that we can now safely use the stable and stop > with our miserable search for bugs. > aaah yeah I remember back then when stable being unstable was pretty bloomin annoying. I almost fell out with people here over all my moaning about it ;) gotta say what you gotta say though right? ever since i was a child before computers were even invented (almost) i have never been fond of bugs, especially the nasty ones. > Thank you so much for your tremendous help > well it gives me something to do, and likewise dude :) To be fair I do it because it benefits you, me, Benoit and everyone. I just need to convince you, me Benoit and everyone that we need to stop making new stuff and new bugs for a bit and refine what's there :) (or maybe it's just me who needs to hear that? I seem to have a collection of working but 3/4 finished programs ;) lol) Well wishes BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 5 18:57:32 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 17:57:32 +0000 Subject: [Gambas-user] Timer backwards? In-Reply-To: References: Message-ID: > Public Sub Time_Timer() > Dec $iCountDown > If $iCountDown > 0 Then Return > $Timer.Stop > Raise ZeroReached > End > Oops , sorry, correction. The first 2 lines of that function are in error because if the countdown was 1 second it would instantly become zero so it is 1 second out. * If $iCountDown > -1 Then Return* Would fix that :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 5 19:09:19 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 18:09:19 +0000 Subject: [Gambas-user] Scripter Added --convert-project In-Reply-To: <77548085.8030.1614883067997.JavaMail.zimbra@westwoodsvcs.com> References: <77548085.8030.1614883067997.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On Thu, 4 Mar 2021 at 18:48, Brian G wrote: > Scripter > > Added --convert-project option > > This will convert a simple project to a script executable be scripter > > format like this > gbs3 --convert-project > [] > The project directory is required > the output directory is optional if not provided the script will be > written to the shells env["PWD"] directory > The name of the script is the project name. > > Comments? > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > In a word... Awesome :) In more than a word... That's excellent Brian, I have not used it yet but i have wanted this feature before and i am sure i will again. Thank you for all the work you have put into this. I noticed all the changes have now been merged into master :) so now we can all experience the improvements you have made. I know this feature is just one of many new additions/improvements made to the scripter and being a fan of scripting i salute you sir for all you are doing. [inserts the Leonardo Di-Caprio Meme of him raising his glass] Much respect BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 5 23:21:51 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 22:21:51 +0000 Subject: [Gambas-user] Latest commit failing to compile (gbx) Message-ID: So the latest commit will not compile for me. Make fails finding all sorts of errors in the gbx file here's the start of the errors... /usr/bin/ld: gbx3-gbx_subr_file.o: in function `SUBR_open': /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:224: undefined reference to `VALUE_is_null' /usr/bin/ld: /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:214: undefined reference to `THROW_TYPE' /usr/bin/ld: gbx3-gbx_subr_file.o: in function `_get_stream': /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:135: undefined reference to `VALUE_is_null' /usr/bin/ld: /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:125: undefined reference to `VALUE_undo_variant' /usr/bin/ld: /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:135: undefined reference to `VALUE_is_null' /usr/bin/ld: /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:125: undefined reference to `VALUE_undo_variant' I reported the bug on the bugtracker but Ben says it's something wrong with my system and i should not report compilation bugs on the bugtracker. so i reverted the recent commit that affected gbx https://gitlab.com/gambas/gambas/-/commit/da082311554e247fbba93d799fb6d2c787a0e412 and this broke the recent commit made to gb.eval https://gitlab.com/gambas/gambas/-/commit/635fd2de43e9053c13562d1db2e9ed23d3021abc so i reverted that change too. Now it compiles again. can anyone suggest what may be wrong with my system if this is not a new bug ? thanks a lot. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Mar 5 23:33:59 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 5 Mar 2021 23:33:59 +0100 Subject: [Gambas-user] Latest commit failing to compile (gbx) In-Reply-To: References: Message-ID: <7da50336-dad6-ad68-22b4-5b73bac1ada1@gmail.com> Le 05/03/2021 ? 23:21, Bruce Steers a ?crit?: > > So the latest commit will not compile for me. > > Make fails finding all sorts of errors in the gbx file > > here's the start of the errors... > > /usr/bin/ld: gbx3-gbx_subr_file.o: in function `SUBR_open': > /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:224: undefined reference to `VALUE_is_null' > /usr/bin/ld: /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:214: undefined reference to `THROW_TYPE' > /usr/bin/ld: gbx3-gbx_subr_file.o: in function `_get_stream': > /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:135: undefined reference to `VALUE_is_null' > /usr/bin/ld: /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:125: undefined reference to `VALUE_undo_variant' > /usr/bin/ld: /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:135: undefined reference to `VALUE_is_null' > /usr/bin/ld: /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:125: undefined reference to `VALUE_undo_variant' > > > I reported the bug on the bugtracker but Ben says it's something wrong > with my system and i should not report compilation bugs on the bugtracker. > > so i reverted the recent commit that affected gbx > https://gitlab.com/gambas/gambas/-/commit/da082311554e247fbba93d799fb6d2c787a0e412 > > > and this broke the recent commit made to gb.eval > https://gitlab.com/gambas/gambas/-/commit/635fd2de43e9053c13562d1db2e9ed23d3021abc > > > so i reverted that change too. > > Now it compiles again. > > can anyone suggest what may be wrong with my system if this is not a new > bug ? > > thanks a lot. > BruceS > These are linkers errors. You should not have them without having compiler errors, this is why I said there must something broken on your system. Try again with a "make clean" before. -- Beno?t Minisini From bsteers4 at gmail.com Sat Mar 6 00:27:28 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 23:27:28 +0000 Subject: [Gambas-user] Latest commit failing to compile (gbx) In-Reply-To: <7da50336-dad6-ad68-22b4-5b73bac1ada1@gmail.com> References: <7da50336-dad6-ad68-22b4-5b73bac1ada1@gmail.com> Message-ID: Thanks Ben , i do not understand why i get this sort of error though. as far as i know i have not changed anything. I downloaded and compiled/installed Gambas a couple of times yesterday without problem then suddenly i get a problem with gbx compiling after you made changes to it. It must be a problem in the make install not overwriting things/updating libs properly? that's why I was a little put out by you saying it's my fault? My thinking was "well i didn't bloody do anything !" This certainly seems to be an issue with the installer not properly configuring. You are absolutely right in your solution it seems i did a make distclean (it's a function in my app) and it has compiled again now, thank you. But why ? how ? what bloomin causes it? It's both annoying and embarrassing and still strikes me as a bug in the gambas installer. i want to add something to the wiki about what type of change will possibly require make clean as the installer fails at some type of change. Or is it just going to have to be considered an addition to what to do if not compiling just running "make install" Thanks again. apologies for my deflated ego shouting out. BruceS On Fri, 5 Mar 2021 at 22:34, Beno?t Minisini wrote: > Le 05/03/2021 ? 23:21, Bruce Steers a ?crit : > > > > So the latest commit will not compile for me. > > > > Make fails finding all sorts of errors in the gbx file > > > > here's the start of the errors... > > > > /usr/bin/ld: gbx3-gbx_subr_file.o: in function `SUBR_open': > > /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:224: > undefined reference to `VALUE_is_null' > > /usr/bin/ld: > /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:214: > undefined reference to `THROW_TYPE' > > /usr/bin/ld: gbx3-gbx_subr_file.o: in function `_get_stream': > > /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:135: > undefined reference to `VALUE_is_null' > > /usr/bin/ld: > /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:125: > undefined reference to `VALUE_undo_variant' > > /usr/bin/ld: > /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:135: > undefined reference to `VALUE_is_null' > > /usr/bin/ld: > /media/bonus/SSDiskspace/git/gambas-b/main/gbx/gbx_subr_file.c:125: > undefined reference to `VALUE_undo_variant' > > > > > > I reported the bug on the bugtracker but Ben says it's something wrong > > with my system and i should not report compilation bugs on the > bugtracker. > > > > so i reverted the recent commit that affected gbx > > > https://gitlab.com/gambas/gambas/-/commit/da082311554e247fbba93d799fb6d2c787a0e412 > > < > https://gitlab.com/gambas/gambas/-/commit/da082311554e247fbba93d799fb6d2c787a0e412 > > > > > > and this broke the recent commit made to gb.eval > > > https://gitlab.com/gambas/gambas/-/commit/635fd2de43e9053c13562d1db2e9ed23d3021abc > > < > https://gitlab.com/gambas/gambas/-/commit/635fd2de43e9053c13562d1db2e9ed23d3021abc > > > > > > so i reverted that change too. > > > > Now it compiles again. > > > > can anyone suggest what may be wrong with my system if this is not a new > > bug ? > > > > thanks a lot. > > BruceS > > > > These are linkers errors. You should not have them without having > compiler errors, this is why I said there must something broken on your > system. > > Try again with a "make clean" before. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Mar 6 00:32:15 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 6 Mar 2021 00:32:15 +0100 Subject: [Gambas-user] Latest commit failing to compile (gbx) In-Reply-To: References: <7da50336-dad6-ad68-22b4-5b73bac1ada1@gmail.com> Message-ID: Le 06/03/2021 ? 00:27, Bruce Steers a ?crit?: > Thanks Ben , i do not understand why i get this sort of error though. > > as far as i know i have not changed anything. > I downloaded and compiled/installed Gambas a couple of times yesterday > without problem then suddenly i get a problem with gbx compiling after > you made changes to it. > It must be a problem in the make install not overwriting things/updating > libs properly? > > that's why I was a little put out by you saying it's my fault?? My > thinking was "well i didn't bloody do anything !" > > This certainly seems to be an issue with the installer not properly > configuring. > You are absolutely right in your solution it seems i did a make > distclean (it's a function in my app) and it has compiled again now, > thank you. > > But why ?? how ? what bloomin causes it?? It's both annoying and > embarrassing and still strikes me as a bug in the gambas installer. > > i want to add something to the wiki about what type of change will > possibly require make clean as the installer fails at some type of change. > > Or is it just going to have to be considered an addition to what to do > if not compiling just running "make install" > > Thanks again.? apologies for my deflated ego shouting out. > BruceS > When you have such a problem, you can go to GitLab and check the CI/CD pipeline integration. If the last one is green, it means that Gambas successfully compiled and installed on fifteen different Linux distributions. In that case you can almost be sure that the problem is on your side. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sat Mar 6 00:57:18 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 5 Mar 2021 23:57:18 +0000 Subject: [Gambas-user] Latest commit failing to compile (gbx) In-Reply-To: References: <7da50336-dad6-ad68-22b4-5b73bac1ada1@gmail.com> Message-ID: On Fri, 5 Mar 2021 at 23:33, Beno?t Minisini wrote: > Le 06/03/2021 ? 00:27, Bruce Steers a ?crit : > > Thanks Ben , i do not understand why i get this sort of error though. > > > > as far as i know i have not changed anything. > > I downloaded and compiled/installed Gambas a couple of times yesterday > > without problem then suddenly i get a problem with gbx compiling after > > you made changes to it. > > It must be a problem in the make install not overwriting things/updating > > libs properly? > > > > that's why I was a little put out by you saying it's my fault? My > > thinking was "well i didn't bloody do anything !" > > > > This certainly seems to be an issue with the installer not properly > > configuring. > > You are absolutely right in your solution it seems i did a make > > distclean (it's a function in my app) and it has compiled again now, > > thank you. > > > > But why ? how ? what bloomin causes it? It's both annoying and > > embarrassing and still strikes me as a bug in the gambas installer. > > > > i want to add something to the wiki about what type of change will > > possibly require make clean as the installer fails at some type of > change. > > > > Or is it just going to have to be considered an addition to what to do > > if not compiling just running "make install" > > > > Thanks again. apologies for my deflated ego shouting out. > > BruceS > > > > When you have such a problem, you can go to GitLab and check the CI/CD > pipeline integration. > > If the last one is green, it means that Gambas successfully compiled and > installed on fifteen different Linux distributions. > > In that case you can almost be sure that the problem is on your side. > > Regards, > well yes but to be fair gitlab creates a brand new system and source dir each time and does everything from clean and fresh. i ran into a problem because my source folder already existed and had files in them that did not update/recompile when they needed to. I should imagine everyone who compiles from a gitlab pull update on an existing folder would run into the same problem there. It seems a problem that the installer does not recompile/install the changed files itself. So technically a problem my end yes but i'm not so sure it's my fault. i wonder if fixable your end or not by maybe auto triggering a make clean in /main if core files change? I know not the best solution , just that there seems to be a problem. (occasionally) But i guess just knowing to run make clean if problem recurs will do as is very much just occasional. I think I will add a notice to my installer app to try the clean function if you get failure even after running ./reconf-all where you did not get failure before. Thanks for the help. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Mar 6 04:59:08 2021 From: adamnt42 at gmail.com (Bruce) Date: Sat, 6 Mar 2021 14:29:08 +1030 Subject: [Gambas-user] Latest commit failing to compile (gbx) In-Reply-To: References: <7da50336-dad6-ad68-22b4-5b73bac1ada1@gmail.com> Message-ID: On 6/3/21 10:27 am, Bruce Steers wrote: > On Fri, 5 Mar 2021 at 23:33, Beno?t Minisini wrote: > >> Le 06/03/2021 ? 00:27, Bruce Steers a ?crit : >>> Thanks Ben , i do not understand why i get this sort of error though. >>> >>> as far as i know i have not changed anything. >>> I downloaded and compiled/installed Gambas a couple of times yesterday >>> without problem then suddenly i get a problem with gbx compiling after >>> you made changes to it. >>> It must be a problem in the make install not overwriting things/updating >>> libs properly? >>> >>> that's why I was a little put out by you saying it's my fault? My >>> thinking was "well i didn't bloody do anything !" >>> >>> This certainly seems to be an issue with the installer not properly >>> configuring. >>> You are absolutely right in your solution it seems i did a make >>> distclean (it's a function in my app) and it has compiled again now, >>> thank you. >>> >>> But why ? how ? what bloomin causes it? It's both annoying and >>> embarrassing and still strikes me as a bug in the gambas installer. >>> >>> i want to add something to the wiki about what type of change will >>> possibly require make clean as the installer fails at some type of >> change. >>> >>> Or is it just going to have to be considered an addition to what to do >>> if not compiling just running "make install" >>> >>> Thanks again. apologies for my deflated ego shouting out. >>> BruceS >>> >> >> When you have such a problem, you can go to GitLab and check the CI/CD >> pipeline integration. >> >> If the last one is green, it means that Gambas successfully compiled and >> installed on fifteen different Linux distributions. >> >> In that case you can almost be sure that the problem is on your side. >> >> Regards, >> > > well yes but to be fair gitlab creates a brand new system and source dir > each time and does everything from clean and fresh. > > i ran into a problem because my source folder already existed and had files > in them that did not update/recompile when they needed to. > > I should imagine everyone who compiles from a gitlab pull update on an > existing folder would run into the same problem there. > > It seems a problem that the installer does not recompile/install the > changed files itself. > So technically a problem my end yes but i'm not so sure it's my fault. > i wonder if fixable your end or not by maybe auto triggering a make clean > in /main if core files change? > > I know not the best solution , just that there seems to be a problem. > (occasionally) > > But i guess just knowing to run make clean if problem recurs will do as is > very much just occasional. > > I think I will add a notice to my installer app to try the clean function > if you get failure even after running ./reconf-all where you did not get > failure before. > > Thanks for the help. > BruceS > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Bruce, It's not "your fault" it's just "your system". It happens because occasionally the autotools macros think something does or does not need to happen. Why, I have no idea. When, ditto. "Because", gremlins exist. It is not something that is peculiiar to Gambas. I'd say I get one of these events about once a fortnight (I use quite a lot of install from source applications. However I get no problems well over 95% of the time. "make clean" is something we all have to do now and then when autotools scrunges things up. There is no need to cry about it. If, on the other hand, something still wont go (configure or make) after a "make clean" then there may be a source files or autotools config files problem. BTW you "should" only have to do/try a "make distclean" if a fail occurs at the "make install" stage. "make clean" should do the trick before that point. regards bruce From chrisml at deganius.de Sat Mar 6 13:45:51 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 6 Mar 2021 13:45:51 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <20210211190235.GA3395629@highrise.localdomain> <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> Message-ID: Am 03.03.21 um 01:37 schrieb Jussi Lahtinen: > Sorry about the silence. I will try to take a closer look later. > Is it possible to put it to Gambas sources, so that I could run it as it > should be and debug there? You now can find it in the Gambas sources in 'app/src/gambas3-selftest'. As I can see all tests run. If you open the project you can hit Shift-F4 to arrange the tests and F4 to run. The testsuite 'Standard' is the place to play around. It runs in the IDE of the dev version of Gambas3. On the command line you can run it with: > GB_NO_JIT=01 GB_JIT_CFLAGS=-O0 gbx3 -T "@Fast" app/src/gambas3-selftest or > GB_NO_JIT=01 GB_JIT_CFLAGS=-O0 gbx3 -T "@Full" app/src/gambas3-selftest We can use this command in 'make test'. 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 g4mba5 at gmail.com Sat Mar 6 14:51:40 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 6 Mar 2021 14:51:40 +0100 Subject: [Gambas-user] Authors is not up to date Message-ID: Hi, The AUTHORS file in the source tree directory must list all Gambas developers and translators, but it is not up to date. I'm starting to think about Gambas 3.16 release, so could the people who developed or translated anything update that file? Or tell me what to update and I will do it? Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sat Mar 6 15:31:00 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 6 Mar 2021 14:31:00 +0000 Subject: [Gambas-user] Authors is not up to date In-Reply-To: References: Message-ID: I feel i barely qualify but i'm quite proud of the sh highlighting i did :) and if i consider bug reporting as part of development then I guess i'm possibly as much of an as active developer as you are ;) I thank you for your guidance and understanding of my tragic combination of an eagerness to help combined with a lack of ability ;) Excited about 3.16 :) Much love to all who have helped make gambas what it is. i applaud you all ? BruceS On Sat, 6 Mar 2021 at 13:52, Beno?t Minisini wrote: > Hi, > > The AUTHORS file in the source tree directory must list all Gambas > developers and translators, but it is not up to date. > > I'm starting to think about Gambas 3.16 release, so could the people who > developed or translated anything update that file? Or tell me what to > update and I will do it? > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Mar 6 16:00:21 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 6 Mar 2021 15:00:21 +0000 Subject: [Gambas-user] Latest commit failing to compile (gbx) In-Reply-To: References: <7da50336-dad6-ad68-22b4-5b73bac1ada1@gmail.com> Message-ID: On Sat, 6 Mar 2021 at 04:00, Bruce wrote: > On 6/3/21 10:27 am, Bruce Steers wrote: > > > Bruce, > It's not "your fault" it's just "your system". It happens because > occasionally the autotools macros think something does or does not need > to happen. Why, I have no idea. When, ditto. "Because", gremlins exist. > > It is not something that is peculiiar to Gambas. I'd say I get one of > these events about once a fortnight (I use quite a lot of install from > source applications. However I get no problems well over 95% of the time. > > "make clean" is something we all have to do now and then when autotools > scrunges things up. There is no need to cry about it. > > If, on the other hand, something still wont go (configure or make) after > a "make clean" then there may be a source files or autotools config > files problem. > > BTW you "should" only have to do/try a "make distclean" if a fail occurs > at the "make install" stage. "make clean" should do the trick before > that point. > > regards > > bruce > Aah thank you bruce That clears things up. My voice of inexperience in these things humbles at your voice of experience :) I added a bit to my installers that suggests running make clean if compile fails where it didn't before. (and an extra bit to wiki after it suggests trying ./reconf-all if it happens) All the best BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sat Mar 6 22:18:11 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 6 Mar 2021 13:18:11 -0800 (PST) Subject: [Gambas-user] Authors is not up to date In-Reply-To: References: Message-ID: <1349597354.8951.1615065491677.JavaMail.zimbra@westwoodsvcs.com> Brian G -- helped with scripter "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 6, 2021, at 6:31 AM, Bruce Steers wrote: > I feel i barely qualify but i'm quite proud of the sh highlighting i did :) > and if i consider bug reporting as part of development then I guess i'm possibly > as much of an as active developer as you are ;) > I thank you for your guidance and understanding of my tragic combination of an > eagerness to help combined with a lack of ability ;) > Excited about 3.16 :) > Much love to all who have helped make gambas what it is. > i applaud you all \uD83D\uDC4D > BruceS > On Sat, 6 Mar 2021 at 13:52, Beno?t Minisini < [ mailto:g4mba5 at gmail.com | > g4mba5 at gmail.com ] > wrote: >> Hi, >> The AUTHORS file in the source tree directory must list all Gambas >> developers and translators, but it is not up to date. >> I'm starting to think about Gambas 3.16 release, so could the people who >> developed or translated anything update that file? Or tell me what to >> update and I will do it? >> 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 brian at westwoodsvcs.com Sat Mar 6 22:20:13 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 6 Mar 2021 13:20:13 -0800 (PST) Subject: [Gambas-user] (no subject) Message-ID: <890869546.8988.1615065613200.JavaMail.zimbra@westwoodsvcs.com> The PPA for daily seems to be down, or inaccessible! Or is it just me? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Mar 7 01:10:04 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 7 Mar 2021 00:10:04 +0000 Subject: [Gambas-user] Timer backwards? In-Reply-To: References: Message-ID: Doh derrr! I doubted myself here and mis-thought it but actually i realised i was right the first time :-\ If you run Stopwatch1.Start then the first Time_Timer event would happen 1 second later. so 1 second HAS passed , so it is not in error and i was right the first time round :^) * If $iCountDown > 0 Then Return* Sorry about that. On Fri, 5 Mar 2021 at 17:57, Bruce Steers wrote: > > Public Sub Time_Timer() >> Dec $iCountDown >> If $iCountDown > 0 Then Return >> $Timer.Stop >> Raise ZeroReached >> End >> > > Oops , sorry, correction. > The first 2 lines of that function are in error because if the countdown > was 1 second it would instantly become zero so it is 1 second out. > > * If $iCountDown > -1 Then Return* > > Would fix that :) > BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Mar 7 01:50:40 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 7 Mar 2021 02:50:40 +0200 Subject: [Gambas-user] New Label does not have synonym for "caption". Message-ID: As the subject line says, only Text is supported. Benoit, can you add it? Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Mar 7 02:23:33 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 7 Mar 2021 03:23:33 +0200 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <20210211190235.GA3395629@highrise.localdomain> <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> Message-ID: I think there needs to be some cleaning. mTest is basically not used anymore, all the references to it can be moved to GambasSelftests, etc, right? And then TestTester() should be modified to read all the sources that are actually executed, otherwise it is useless. I have been thinking of fetching the SearchList content from https://gambaswiki.org/wiki/lang ... not sure. Normally when I run the tester (the old version), I run it once without JIT and second with JIT. And the third time with a different language / localization. At least the JIT & no-JIT runs are important. Jussi On Sat, Mar 6, 2021 at 2:46 PM Christof Thalhofer wrote: > Am 03.03.21 um 01:37 schrieb Jussi Lahtinen: > > > Sorry about the silence. I will try to take a closer look later. > > Is it possible to put it to Gambas sources, so that I could run it as it > > should be and debug there? > > You now can find it in the Gambas sources in 'app/src/gambas3-selftest'. > As I can see all tests run. If you open the project you can hit Shift-F4 > to arrange the tests and F4 to run. > > The testsuite 'Standard' is the place to play around. It runs in the IDE > of the dev version of Gambas3. > > On the command line you can run it with: > > > GB_NO_JIT=01 GB_JIT_CFLAGS=-O0 gbx3 -T "@Fast" app/src/gambas3-selftest > > or > > > GB_NO_JIT=01 GB_JIT_CFLAGS=-O0 gbx3 -T "@Full" app/src/gambas3-selftest > > We can use this command in 'make test'. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Mar 7 09:22:26 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 7 Mar 2021 09:22:26 +0100 Subject: [Gambas-user] New Label does not have synonym for "caption". In-Reply-To: References: Message-ID: <193a0516-de5f-f0a0-733f-632c6e13473a@gmail.com> Le 07/03/2021 ? 01:50, Jussi Lahtinen a ?crit?: > As the subject line says, only Text is supported. > Benoit, can you add it? > > Jussi Yep. -- Beno?t Minisini From chrisml at deganius.de Sun Mar 7 11:32:04 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 7 Mar 2021 11:32:04 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <20210211190235.GA3395629@highrise.localdomain> <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> Message-ID: <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> Am 07.03.21 um 02:23 schrieb Jussi Lahtinen: > I think there needs to be some cleaning. Yes for sure. > mTest is basically not used > anymore, all the references to it can be moved to GambasSelftests, etc, > right? Not always. In a test module every method is a test and will be executed, except it's name starts with '_'. As long as we can move the methods to 'GambasSelftests' and refactor their names to use a heading underscore, we could do that. But I think it would make 'GambasSelftests' even more confusing. Basically I'm fine with a testmodule that contains only tests. What I really do not like at all is that 'FastTests' contains more that 2500 LOC. This is what it makes it really messy. I'd like it much more if every tested symbol had it's own testmethod. That would be a lot of work but it would clean out the mess and would help a lot for the future. This: > ... 'lot of code > sDescription = "Test If False" > ... 'lot of code Would become: > Public Sub TestIfFalse() > ' small amount of code > ' with appropriate assartions > > End ... Also the global variables in GambasSelftests are confusing. Are they really necessary? > And then TestTester() should be modified to read all the sources that > are actually executed, otherwise it is useless. Yes. > I have been thinking of fetching the SearchList content from > https://gambaswiki.org/wiki/lang ... not sure. We can ask Beno?t to give us a hint how to get a list of all commands in the Gambas language. How it is done in the Wiki? By hand? Really? > Normally when I run the tester (the old version), I run it once without > JIT and second with JIT. And the third time with a different language / > localization. > At least the JIT & no-JIT runs are important. This is the first problem we should solve before we try to refactor all the mess. Hmm ... how can we achieve that this is done automatically? Move all tests to a standard module and then call the tests from two different test modules, one with and one without 'Fast'? I'm unsure because I have no experience with JIT. ------ If we work together we could use a tool which helped Tobi and me to organize the things to be done with gb.test. It's called 'taskell' and stores it's data in a file like this: main/lib/test/gb.test/taskell.md https://taskell.app/ It's in Ubuntu. Is this ok for you? 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 brian at westwoodsvcs.com Sun Mar 7 18:01:59 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 7 Mar 2021 09:01:59 -0800 (PST) Subject: [Gambas-user] Scripter new version Bug Message-ID: <1813717670.9351.1615136519553.JavaMail.zimbra@westwoodsvcs.com> Scripter option --convert-project creates an error right now as it uses the new #Script Startup=xx format. when you run the generated script it will cause a syntax error. The latest version of scripter now fails because #Script has been turned into a keyword PreProcess command after the initial commit of the scripter causing scripter not to recognize the keyword, A patch that fixes scripter to accommodate this has been submitted for merge. In the mean time for simple scripts, deleting this line from the output script should work a treat. Lines starting with #Script can be deleted for now. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Mar 7 20:02:46 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 7 Mar 2021 20:02:46 +0100 Subject: [Gambas-user] Scripter new version Bug In-Reply-To: <1813717670.9351.1615136519553.JavaMail.zimbra@westwoodsvcs.com> References: <1813717670.9351.1615136519553.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 07/03/2021 ? 18:01, Brian G a ?crit?: > Scripter? option --convert-project creates an error right now as? it > uses the new #Script Startup=xx format. > when you run the generated script it will cause a syntax error. > > The latest version of scripter now fails because #Script has been turned > into a keyword PreProcess command after the initial commit of the > scripter causing scripter not to recognize the keyword, A patch that > fixes scripter to accommodate this has been submitted for merge. > > In the mean time for simple scripts, deleting this line from the output > script should work a treat. > Lines starting with #Script can be deleted for now. > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > Hi, The merge request has been merged A few remarks: 1) I now realize the misunderstanding about Highlight.Analyze() and Highlight.Types. If an analyzed token is told to be 'Highlight.XXXX', it does not mean that the token is syntactically 'XXXX', but that it will be highlighted as 'XXXX'. So if '#SCRIPT' has the type 'Highlight.Preprocessor', it does not -necessarily- mean that you are in a preprocessor line. Even if it is very likely. It just tells you that the Gambas reader detected a token named '#SCRIPT' that will be highlighted with 'Highlight.Preprocessor' style. I don't know if I was clear... Concretely, what tells you that you have a preprocessor line is the first non-space character of the line being "#". 2) There are possible optimizations in the TokenizeFile() function. For example: - Storing Highlight.Symbols and Highlight.Types in local variables for faster access. - Use `If == "ABCD"` instead of `If UCase() = "ABCD"`. - Check for '#' at the start of the line before doing its specific script commands checks. Or directly check that the first token starts with a '#'. 3) When you write a commit log, please follow exactly the requested format described in the 'README.commit' file: [SCRIPTER] * BUG: Fixed bug #1. * NEW: Add feature #2. * OPT: Scripter is now faster! And be careful with English (even if I make a lot of mistakes myself!). Otherwise the automatic log compilation cannot work, and I have to rewrite the log by hand for each commit. My time is better spent somewhere else. It's not dramatic at the moment, as a lot of commit log will be removed from the ChangeLog, the ones who are internal changes and not new features or bug fixes of precedently implemented features. 4) By reading the code of TokenizeFile(), I see support for apparently embedding classes (ok), modules (why not), form (??) and connections (????). But nothing for the other Gambas source file types. I didn't see anything about that in the list of changes you sent me. Did I miss it? Or is it an hidden feature? Something not yet implemented? Otherwise why did you implement that? Anyway, thanks for your work! Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun Mar 7 20:24:42 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 7 Mar 2021 21:24:42 +0200 Subject: [Gambas-user] Crash with latest version In-Reply-To: <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> References: <20210211190235.GA3395629@highrise.localdomain> <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> Message-ID: > Not always. In a test module every method is a test and will be > executed, except it's name starts with '_'. As long as we can move the > methods to 'GambasSelftests' and refactor their names to use a heading > underscore, we could do that. But I think it would make > 'GambasSelftests' even more confusing. Basically I'm fine with a > testmodule that contains only tests. > I think at least the duplicate code should be removed. > This: > > > ... 'lot of code > > sDescription = "Test If False" > > ... 'lot of code > > Would become: > > > Public Sub TestIfFalse() > > ' small amount of code > > ' with appropriate assartions > > > > End > Yes, a lot of work... I'm not sure how much I will be able to contribute. I knew some rabbit holes would emerge... I'm not familiar with taskell, let's see how things work out. > Also the global variables in GambasSelftests are confusing. Are they > really necessary? > I'm afraid they are. In history there have been cases where bugs are specific to global variables. It is very hard to make code look clean, if it tests everything, even non-clean cases. > We can ask Beno?t to give us a hint how to get a list of all commands in > the Gambas language. How it is done in the Wiki? By hand? Really? > Good idea. Benoit? This is the first problem we should solve before we try to refactor all > the mess. > I agree. > Hmm ... how can we achieve that this is done automatically? > Maybe this should be left to the make file? Or how the test automation is done? Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Mar 7 21:00:58 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 7 Mar 2021 21:00:58 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> Message-ID: <2e6cb963-e012-abb0-b945-083e43eb8aa8@gmail.com> Le 07/03/2021 ? 20:24, Jussi Lahtinen a ?crit?: > > ?We can ask Beno?t to give us a hint how to get a list of all > commands in > the Gambas language. How it is done in the Wiki? By hand? Really? > > > Good idea. Benoit? > I suggest cleaning the test code so that: 1) We know what each function tests. 2) Each function tests one thing as much as possible. The only list of "commands" is the wiki, and it is done by hand. They are not "commands", but keywords, and do not necessarily implies something to test. But it may be the simplest way to know what test is implemented or not. Some keywords like "Sin()" are easy to test. Some keywords like "Open" are almost impossible to test entirely, as you can do a infinite different things with it. Another point: I don't want to write tests myself, for psychological reasons: I noticed that a programmer unconsciously avoids any behaviour that make the program he wrotes encounter its bugs. Jussi should agree. He wrote a lot of strange test code I would have never imagine, and found a lot of bugs with it. :-) -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun Mar 7 21:52:36 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 7 Mar 2021 22:52:36 +0200 Subject: [Gambas-user] New TextArea Message-ID: TextArea behaviour is different now. At Form_Open it seems that TextArea does not return correct .TextWidth or .Width? See the attachment. Make a new alarm with few words and you will see that the text warp does not match the actual width. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GAlarm-0.6.3.tar.gz Type: application/gzip Size: 71438 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Mon Mar 8 02:42:32 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 8 Mar 2021 03:42:32 +0200 Subject: [Gambas-user] New TextArea In-Reply-To: References: Message-ID: Actually I'm not sure what *should* be available at from_open. I couldn't find the documentation. However, my problem is easily solved by moving the text wrap to form_show. Jussi On Sun, Mar 7, 2021 at 10:52 PM Jussi Lahtinen wrote: > TextArea behaviour is different now. At Form_Open it seems that TextArea > does not return correct .TextWidth or .Width? > > See the attachment. Make a new alarm with few words and you will see that > the text warp does not match the actual width. > > > Jussi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Mar 8 04:09:28 2021 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Mon, 08 Mar 2021 06:09:28 +0300 Subject: [Gambas-user] =?utf-8?q?Scripter_new_version_Bug?= In-Reply-To: References: <1813717670.9351.1615136519553.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1615172968.128503684@f30.my.com> I don't understand, your note regarding the other source types -- Thanks Brian Sunday, 07 March 2021, 11:03AM -08:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 07/03/2021 ? 18:01, Brian G a ?crit?: > Scripter? option --convert-project creates an error right now as? it > uses the new #Script Startup=xx format. > when you run the generated script it will cause a syntax error. > > The latest version of scripter now fails because #Script has been turned > into a keyword PreProcess command after the initial commit of the > scripter causing scripter not to recognize the keyword, A patch that > fixes scripter to accommodate this has been submitted for merge. > > In the mean time for simple scripts, deleting this line from the output > script should work a treat. > Lines starting with #Script can be deleted for now. > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > > >Hi, > >The merge request has been merged > >A few remarks: > >1) I now realize the misunderstanding about Highlight.Analyze() and >Highlight.Types. > >If an analyzed token is told to be 'Highlight.XXXX', it does not mean >that the token is syntactically 'XXXX', but that it will be highlighted >as 'XXXX'. > >So if '#SCRIPT' has the type 'Highlight.Preprocessor', it does not >-necessarily- mean that you are in a preprocessor line. Even if it is >very likely. It just tells you that the Gambas reader detected a token >named '#SCRIPT' that will be highlighted with 'Highlight.Preprocessor' >style. > >I don't know if I was clear... > >Concretely, what tells you that you have a preprocessor line is the >first non-space character of the line being "#". > >2) There are possible optimizations in the TokenizeFile() function. For >example: > >- Storing Highlight.Symbols and Highlight.Types in local variables for >faster access. > >- Use `If == "ABCD"` instead of `If UCase( ) = "ABCD"`. > >- Check for '#' at the start of the line before doing its specific >script commands checks. Or directly check that the first token starts >with a '#'. > >3) When you write a commit log, please follow exactly the requested >format described in the 'README.commit' file: > > > >[SCRIPTER] >* BUG: Fixed bug #1. >* NEW: Add feature #2. >* OPT: Scripter is now faster! > >And be careful with English (even if I make a lot of mistakes myself!). > >Otherwise the automatic log compilation cannot work, and I have to >rewrite the log by hand for each commit. My time is better spent >somewhere else. > >It's not dramatic at the moment, as a lot of commit log will be removed >from the ChangeLog, the ones who are internal changes and not new >features or bug fixes of precedently implemented features. > >4) By reading the code of TokenizeFile(), I see support for apparently >embedding classes (ok), modules (why not), form (??) and connections >(????). But nothing for the other Gambas source file types. > >I didn't see anything about that in the list of changes you sent me. Did >I miss it? Or is it an hidden feature? Something not yet implemented? >Otherwise why did you implement that? > >Anyway, thanks for your work! > >Regards, > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Mar 8 04:15:21 2021 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Mon, 08 Mar 2021 06:15:21 +0300 Subject: [Gambas-user] =?utf-8?q?Scripter_new_version_Bug?= In-Reply-To: References: <1813717670.9351.1615136519553.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1615173321.789786185@f42.my.com> The change log does metion for forms and modules for simple scripts. It was basically implemented to make it easy to generate an number of test scripts form projects. And it is not tested deeply for that support, but they are there for now. I am not sure of all the gambas source types. -- Thanks Brian Sunday, 07 March 2021, 11:03AM -08:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 07/03/2021 ? 18:01, Brian G a ?crit?: > Scripter? option --convert-project creates an error right now as? it > uses the new #Script Startup=xx format. > when you run the generated script it will cause a syntax error. > > The latest version of scripter now fails because #Script has been turned > into a keyword PreProcess command after the initial commit of the > scripter causing scripter not to recognize the keyword, A patch that > fixes scripter to accommodate this has been submitted for merge. > > In the mean time for simple scripts, deleting this line from the output > script should work a treat. > Lines starting with #Script can be deleted for now. > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > > >Hi, > >The merge request has been merged > >A few remarks: > >1) I now realize the misunderstanding about Highlight.Analyze() and >Highlight.Types. > >If an analyzed token is told to be 'Highlight.XXXX', it does not mean >that the token is syntactically 'XXXX', but that it will be highlighted >as 'XXXX'. > >So if '#SCRIPT' has the type 'Highlight.Preprocessor', it does not >-necessarily- mean that you are in a preprocessor line. Even if it is >very likely. It just tells you that the Gambas reader detected a token >named '#SCRIPT' that will be highlighted with 'Highlight.Preprocessor' >style. > >I don't know if I was clear... > >Concretely, what tells you that you have a preprocessor line is the >first non-space character of the line being "#". > >2) There are possible optimizations in the TokenizeFile() function. For >example: > >- Storing Highlight.Symbols and Highlight.Types in local variables for >faster access. > >- Use `If == "ABCD"` instead of `If UCase( ) = "ABCD"`. > >- Check for '#' at the start of the line before doing its specific >script commands checks. Or directly check that the first token starts >with a '#'. > >3) When you write a commit log, please follow exactly the requested >format described in the 'README.commit' file: > > > >[SCRIPTER] >* BUG: Fixed bug #1. >* NEW: Add feature #2. >* OPT: Scripter is now faster! > >And be careful with English (even if I make a lot of mistakes myself!). > >Otherwise the automatic log compilation cannot work, and I have to >rewrite the log by hand for each commit. My time is better spent >somewhere else. > >It's not dramatic at the moment, as a lot of commit log will be removed >from the ChangeLog, the ones who are internal changes and not new >features or bug fixes of precedently implemented features. > >4) By reading the code of TokenizeFile(), I see support for apparently >embedding classes (ok), modules (why not), form (??) and connections >(????). But nothing for the other Gambas source file types. > >I didn't see anything about that in the list of changes you sent me. Did >I miss it? Or is it an hidden feature? Something not yet implemented? >Otherwise why did you implement that? > >Anyway, thanks for your work! > >Regards, > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Mar 8 10:18:51 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Mar 2021 10:18:51 +0100 Subject: [Gambas-user] New TextArea In-Reply-To: References: <7d707b57-12b8-9561-5908-f64411f08f7a@gmail.com> Message-ID: <48c6d352-f62b-fbca-a98d-b8944b3417a5@gmail.com> Le 08/03/2021 ? 03:29, Jussi Lahtinen a ?crit?: > 1. See attachment. > 2. Make a new text alarm, which has few words. Set it to go off after a > few seconds. > 3. Observe the alarm form as it appears. > > Example, if I have written to the alarm; "This is a test alarm!", it > shows it wrapped like this: > > This > is > a > test > alarm! > > > Jussi > It's normal. Your code is buggy: you suppose that the controls are arranged before the Open event is raised. They usually are not. You must run any code that depends on the size of an arranged control from the Arrange event handler of the control parent. Moreover, I don't understand at all what you are trying to do. If you want to display wrapped text inside a TextArea, just set the Wrap property to TRUE. No need to do it by yourself. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Mon Mar 8 12:22:01 2021 From: adamnt42 at gmail.com (Bruce) Date: Mon, 8 Mar 2021 21:52:01 +1030 Subject: [Gambas-user] [THEORY] What's the difference* between a RO Property and a public function? Message-ID: <196ba215-f6de-5e7a-a9d5-def1509fe53e@gmail.com> *Difference as in: a) pCode size b) wxecution speed Particularly, but not specifically, I have a class that has an attribute "TableNames" that returns the list of tables in a database as a String[] array. The source code implementation is essentially the same either way - query the database system catalog, build the array and return it. So, ignoring the implementation detail which is immaterial to the question, can someone who understands the stuff "under the bonnet" tell me if there is any difference? (BTW: This is NOT the same as using the Connection.Tables property! I am looking to get a simple list of table names for a combobox list.) tia bruce From bsteers4 at gmail.com Mon Mar 8 13:56:47 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 8 Mar 2021 12:56:47 +0000 Subject: [Gambas-user] My "Gambas developer mode" Message-ID: Ever considered anything like this for us Ben? That Not-so-safe thing i have done to load custom controls in gambas IDE (that I am finding a VERY useful feature) I have now hidden behind an unlock feature a bit like an Android phone hides it's developer options till you click "Build Info" a few times. With plenty of warnings about the risks of the functions we should be aware of. Here's a screengrab of me enabling/disabling the feature. http://bws.org.uk/images/screenrecord-2021-03-07_20.51.37.mp4 I'm sure there's a number of other things that possibly come with risk but great benefit you would not want to enable for general use but could be handy for gambas developers. Well wishes BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From tercoide at hotmail.com Mon Mar 8 14:09:18 2021 From: tercoide at hotmail.com (martin p cristia) Date: Mon, 8 Mar 2021 10:09:18 -0300 Subject: [Gambas-user] Dialog Error In-Reply-To: References: Message-ID: This code: ??????????? Dialog.Title = ("Select File") ??????????? Dialog.Filter = ["*.dxf", "DXF Drawing exchange 2010", "*.dwg", "DWG AutoCAD Drawing file 2010"] ??????????? Dialog.OpenFile(False) <--Error! ??????????? f = Dialog.Path gives: Type mismatch, required Float[], obtained Integer[] [System] Gambas=3.15.90 OperatingSystem=Linux Kernel=5.8.0-44-generic Architecture=x86_64 Distribution=Ubuntu 20.10 Desktop=UBUNTU:GNOME Font=Ubuntu,11 Scale=8 Theme=yaru Language=es_AR.UTF-8 Memory=7865M [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.1800.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 Poppler=libpoppler.so.73.0.0 QT5=libQt5Core.so.5.14.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 EDITOR=gedit GB_GUI=gb.gtk3 GDMSESSION=ubuntu GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=143773 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_SHELL_SESSION_MODE=ubuntu GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge HOME= IM_CONFIG_PHASE=1 INVOCATION_ID=56d5ea31c380407d98bffeedc71425a9 JOURNAL_STREAM=8:51923 LANG=es_AR.UTF-8 LANGUAGE=es_AR.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_ALL=es_AR.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_TIME=en_US.UTF-8 LOGNAME= MANAGERPID=1893 MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PAPERSIZE=letter 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_IM_MODULE=ibus QT_LOGGING_RULES=*.debug=false SESSION_MANAGER=local/:@/tmp/.ICE-unix/2114,unix/:/tmp/.ICE-unix/2114 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2077 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=2 XAUTHORITY=/run/user/1000/gdm/Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg XDG_CURRENT_DESKTOP=ubuntu:GNOME XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_TYPE=x11 XMODIFIERS=@im=ibus _=/usr/bin/dbus-update-activation-environment -- Saludos Ing. Martin P Cristia From chrisml at deganius.de Mon Mar 8 14:14:01 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 8 Mar 2021 14:14:01 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: <2e6cb963-e012-abb0-b945-083e43eb8aa8@gmail.com> References: <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> <2e6cb963-e012-abb0-b945-083e43eb8aa8@gmail.com> Message-ID: <882d0e64-e140-e9af-5391-61106aa038de@deganius.de> Am 07.03.21 um 21:00 schrieb Beno?t Minisini: > Another point: I don't want to write tests myself, for psychological > reasons: I noticed that a programmer unconsciously avoids any behaviour > that make the program he wrotes encounter its bugs. I think you are assuming the wrong things. Test driven development is not to find/avoid bugs but to test *expected behavior*. If you want to create a new method you usually have in mind that it alters the state of the machine in a special way. But instead of writing the method and then play around with it a bit you you first can write a test that tests what you want to get from that method: Asser.Equals(42, MyProgram.GiveAnswer("The Question of everything")) After that you write MyProgram.GiveAnswer() The test helps to ensure that the *expected behavior* will be the same in future, even if you change or extend MyProgram.GiveAnswer two years later! It does not help to find out that (maybe) ... MyProgram.GiveAnswer("Crash the system")) ...crashes the system. Because this was not tested! > Jussi should agree. He wrote a lot of strange test code I would have > never imagine, and found a lot of bugs with it. :-) No, he found bugs and then he wrote a couple of tests which help you to avoid these bugs in future. This is a different thing. What you thought about is "Fuzzing": https://en.wikipedia.org/wiki/Fuzzing This is another playing field. But it would help a lot if you could write the expected behavior in tests before you create a new method because if someone later would alter the program we could assure that it won't destroy the expected behavior. You are still free to produce any bugs you want. ;-) 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 g4mba5 at gmail.com Mon Mar 8 14:17:56 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Mar 2021 14:17:56 +0100 Subject: [Gambas-user] Dialog Error In-Reply-To: References: Message-ID: Le 08/03/2021 ? 14:09, martin p cristia a ?crit?: > This code: > > ??????????? Dialog.Title = ("Select File") > > ??????????? Dialog.Filter = ["*.dxf", "DXF Drawing exchange 2010", > "*.dwg", "DWG AutoCAD Drawing file 2010"] > > ??????????? Dialog.OpenFile(False) <--Error! > > ??????????? f = Dialog.Path > > gives: > > Type mismatch, required Float[], obtained Integer[] > I can't reproduce the error. Please provide a project that reproduces it. Regards, -- Beno?t Minisini From tercoide at hotmail.com Mon Mar 8 14:58:01 2021 From: tercoide at hotmail.com (martin p cristia) Date: Mon, 8 Mar 2021 10:58:01 -0300 Subject: [Gambas-user] Dialog Error In-Reply-To: References: Message-ID: Use this components and you will get it: gb.gui gb.gsl gb.form.dialog > I can't reproduce the error. Please provide a project that reproduces > it. Regards, > -- Beno?t Minisini -- Saludos Ing. Martin P Cristia From g4mba5 at gmail.com Mon Mar 8 16:21:21 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Mar 2021 16:21:21 +0100 Subject: [Gambas-user] Dialog Error In-Reply-To: References: Message-ID: <48f2c9c8-9810-3955-a066-8803e2fbe8bd@gmail.com> Le 08/03/2021 ? 14:58, martin p cristia a ?crit?: > Use this components and you will get it: > > gb.gui > > gb.gsl > > gb.form.dialog > The bug comes from 'gb.gsl', being the first component that extends an array class. It should be fixed in last commit. -- Beno?t Minisini From g4mba5 at gmail.com Mon Mar 8 20:42:08 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 Mar 2021 20:42:08 +0100 Subject: [Gambas-user] My "Gambas developer mode" In-Reply-To: References: Message-ID: Le 08/03/2021 ? 13:56, Bruce Steers a ?crit?: > Ever considered anything like this for us Ben? > > That Not-so-safe thing i have done to load custom controls in gambas IDE > (that I am finding a VERY useful feature) I have now hidden behind an > unlock feature a bit like an Android phone hides it's developer options > till you click "Build Info" a few times. > > With plenty of warnings about the risks of the functions we should be > aware of. > > Here's a screengrab of me enabling/disabling the feature. > http://bws.org.uk/images/screenrecord-2021-03-07_20.51.37.mp4 > > > I'm sure there's a number of other things that possibly come with risk > but great benefit you would not want to enable for general use but could > be handy for gambas developers. > > Well wishes > BruceS > Mmm... No. If I want to test something, I put in the development version. Once in the stable version, there should be no reason to hide an IDE feature. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Mon Mar 8 21:52:28 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 8 Mar 2021 20:52:28 +0000 Subject: [Gambas-user] NoTabFocus glitch when pressing shift (usercontrols) Message-ID: This is weird. I I have a form full of custom usercontrols and have set NoTabFocus on one. If i let the GUIs handle Tab focus then they get selected despite the NoTabFocus flag. So i have written my own focus routine and grab the key events using up and down arrow and tab works fine and skips the NoTabFocus object. Using Shift + Tab selects it :( Using Shift and Tab uses the exact same command as Up arrow but up arrow works. I am calling Stop Event to cancel Tab and Shift+Tab press anywhere else. Odd how Tab works but shift + Tab does not. Project is here... https://gitlab.com/bsteers4/ncheckbox BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Mar 8 22:40:17 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 8 Mar 2021 23:40:17 +0200 Subject: [Gambas-user] New TextArea In-Reply-To: <48c6d352-f62b-fbca-a98d-b8944b3417a5@gmail.com> References: <7d707b57-12b8-9561-5908-f64411f08f7a@gmail.com> <48c6d352-f62b-fbca-a98d-b8944b3417a5@gmail.com> Message-ID: > > It's normal. Your code is buggy: you suppose that the controls are > arranged before the Open event is raised. They usually are not. > > You must run any code that depends on the size of an arranged control > from the Arrange event handler of the control parent. > OK, thanks! Moreover, I don't understand at all what you are trying to do. If you > want to display wrapped text inside a TextArea, just set the Wrap > property to TRUE. No need to do it by yourself. > For some reason I thought the property doesn't exist... so many native features that I forget quarter of them. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Mar 8 22:49:08 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 8 Mar 2021 23:49:08 +0200 Subject: [Gambas-user] Crash with latest version In-Reply-To: <882d0e64-e140-e9af-5391-61106aa038de@deganius.de> References: <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> <2e6cb963-e012-abb0-b945-083e43eb8aa8@gmail.com> <882d0e64-e140-e9af-5391-61106aa038de@deganius.de> Message-ID: > > No, he found bugs and then he wrote a couple of tests which help you to > avoid these bugs in future. This is a different thing. > Actually it is the both. I have made code just to look for crashes and I have found bugs and then turned them into tests. > What you thought about is "Fuzzing": > https://en.wikipedia.org/wiki/Fuzzing > > This is another playing field. > I think the approach of testing expected behaviour is a must, but we also need a bit of fuzzing like tests also. > But it would help a lot if you could write the expected behavior in > tests before you create a new method because if someone later would > alter the program we could assure that it won't destroy the expected > behavior. > I agree, and it would work kind of a part of documentation / standardization also. But it may also be too much work for Benoit. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Tue Mar 9 00:42:28 2021 From: adamnt42 at gmail.com (Bruce) Date: Tue, 9 Mar 2021 10:12:28 +1030 Subject: [Gambas-user] NoTabFocus glitch when pressing shift (usercontrols) In-Reply-To: References: Message-ID: <37721ca2-6e64-73e9-7ada-038ef45838fe@gmail.com> On 9/3/21 7:22 am, Bruce Steers wrote: > This is weird. > > I I have a form full of custom usercontrols and have set NoTabFocus on one. > > If i let the GUIs handle Tab focus then they get selected despite the > NoTabFocus flag. > > So i have written my own focus routine and grab the key events > > using up and down arrow and tab works fine and skips the NoTabFocus object. > > Using Shift + Tab selects it :( > > Using Shift and Tab uses the exact same command as Up arrow but up arrow > works. > I am calling Stop Event to cancel Tab and Shift+Tab press anywhere else. > > Odd how Tab works but shift + Tab does not. > > Project is here... > https://gitlab.com/bsteers4/ncheckbox > > BruceS > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Wade through the following and see if you can find something in it. It works here for all our custom controls. '' [EVT] Handler for the navigation keys Public Sub SELF_KeyPress() Dim hTarget As Control ' 1) Make [Enter] emulate a [Tab] If Key.Code = Key.Return Then ' a) figure out where to start looking If Key.Shift Then If Me.Previous Then hTarget = Me.Previous Else hTarget = Me.Parent.Children[Me.Parent.Children.Count - 1] Endif Else If Me.Next Then hTarget = Me.Next Else hTarget = Me.Parent.Children[0] Endif Endif ' b) find the next viable control While hTarget.NoTabFocus If Key.Shift Then hTarget = hTarget.Previous If Not hTarget Then hTarget = Me.Parent.Children[Me.Parent.Children.Count - 1] Else hTarget = hTarget.Next If Not hTarget Then hTarget = Me.Parent.Children[0] Debug hTarget.Name Endif Wend ' c) go there hTarget.SetFocus Endif rgrds bruce From bsteers4 at gmail.com Tue Mar 9 05:30:55 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 9 Mar 2021 04:30:55 +0000 Subject: [Gambas-user] NoTabFocus glitch when pressing shift (usercontrols) In-Reply-To: <37721ca2-6e64-73e9-7ada-038ef45838fe@gmail.com> References: <37721ca2-6e64-73e9-7ada-038ef45838fe@gmail.com> Message-ID: On Mon, 8 Mar 2021 at 23:43, Bruce wrote: > On 9/3/21 7:22 am, Bruce Steers wrote: > > This is weird. > > > > I I have a form full of custom usercontrols and have set NoTabFocus on > one. > > > > If i let the GUIs handle Tab focus then they get selected despite the > > NoTabFocus flag. > > > > So i have written my own focus routine and grab the key events > > > > using up and down arrow and tab works fine and skips the NoTabFocus > object. > > > > Using Shift + Tab selects it :( > > > > Using Shift and Tab uses the exact same command as Up arrow but up arrow > > works. > > I am calling Stop Event to cancel Tab and Shift+Tab press anywhere else. > > > > Odd how Tab works but shift + Tab does not. > > > > Project is here... > > https://gitlab.com/bsteers4/ncheckbox > > > > BruceS > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > Wade through the following and see if you can find something in it. It > works here for all our custom controls. > > '' [EVT] Handler for the navigation keys > Public Sub SELF_KeyPress() > > Dim hTarget As Control > > ' 1) Make [Enter] emulate a [Tab] > If Key.Code = Key.Return Then > ' a) figure out where to start looking > If Key.Shift Then > If Me.Previous Then > hTarget = Me.Previous > Else > hTarget = Me.Parent.Children[Me.Parent.Children.Count - 1] > Endif > Else > If Me.Next Then > hTarget = Me.Next > Else > hTarget = Me.Parent.Children[0] > Endif > Endif > ' b) find the next viable control > While hTarget.NoTabFocus > If Key.Shift Then > hTarget = hTarget.Previous > If Not hTarget Then hTarget = > Me.Parent.Children[Me.Parent.Children.Count - 1] > Else > hTarget = hTarget.Next > If Not hTarget Then hTarget = Me.Parent.Children[0] > Debug hTarget.Name > Endif > Wend > ' c) go there > hTarget.SetFocus > > Endif > > rgrds > bruce > Awesome thanks bruce. you know what? I did wade through it and thought,, hmm, although you are doing things quite differently ii seems we are both still just getting the prev/next control and then using SetFocus on it. :-\ So it had to be something else and i had to dig deeper, my initial thought was I was not setting NoTabFocus properly.. But I eventually found my solution in the form of the following little change... from * $hView.Focus = True* to * If Not Me.NoTabFocus Then $hView.Focus = True* It seems the NoTabFocus property does actually set okay (as my own key handler could see it) But if the control has .Focus = True set the native tab handling routines do not honour NoTabFocus. And by the looks of my original issue the key handler event i set up worked for everything except Shift+Tab for some reason that event was picked up by something else (at a rough guess i'd say Form_KeyPress) Thank you very much for the "tried and tested" code for me to compare. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Tue Mar 9 08:58:20 2021 From: adamnt42 at gmail.com (Bruce) Date: Tue, 9 Mar 2021 18:28:20 +1030 Subject: [Gambas-user] NoTabFocus glitch when pressing shift (usercontrols) In-Reply-To: <37721ca2-6e64-73e9-7ada-038ef45838fe@gmail.com> References: <37721ca2-6e64-73e9-7ada-038ef45838fe@gmail.com> Message-ID: <9df6bdc1-2c2e-c988-38fb-4a0ca1cd9429@gmail.com> On 9/3/21 10:12 am, Bruce wrote: > On 9/3/21 7:22 am, Bruce Steers wrote: >> This is weird. >> >> I I have a form full of custom usercontrols and have set NoTabFocus on >> one. >> >> If i let the GUIs handle Tab focus then they get selected despite the >> NoTabFocus flag. >> >> So i have written my own focus routine and grab the key events >> >> using up and down arrow and tab works fine and skips the NoTabFocus >> object. >> >> Using Shift + Tab selects it :( >> >> Using Shift and Tab uses the exact same command as Up arrow but up arrow >> works. >> I am calling Stop Event to cancel Tab and Shift+Tab press anywhere else. >> >> Odd how Tab works but shift + Tab does not. >> >> Project is here... >> https://gitlab.com/bsteers4/ncheckbox >> >> BruceS >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > Wade through the following and see if you can find something in it. It > works here for all our custom controls. > > '' [EVT] Handler for the navigation keys > Public Sub SELF_KeyPress() > > ? Dim hTarget As Control > > ? ' 1) Make [Enter] emulate a [Tab] > ? If Key.Code = Key.Return Then > ??? ' a) figure out where to start looking > ??? If Key.Shift Then > ????? If Me.Previous Then > ??????? hTarget = Me.Previous > ????? Else > ??????? hTarget = Me.Parent.Children[Me.Parent.Children.Count - 1] > ????? Endif > ??? Else > ????? If Me.Next Then > ??????? hTarget = Me.Next > ????? Else > ??????? hTarget = Me.Parent.Children[0] > ????? Endif > ??? Endif > ??? ' b) find the next viable control > ??? While hTarget.NoTabFocus > ????? If Key.Shift Then > ??????? hTarget = hTarget.Previous > ??????? If Not hTarget Then hTarget = > Me.Parent.Children[Me.Parent.Children.Count - 1] > ????? Else > ??????? hTarget = hTarget.Next > ??????? If Not hTarget Then hTarget = Me.Parent.Children[0] > ??????? Debug hTarget.Name > ????? Endif > ??? Wend > ??? ' c) go there > ??? hTarget.SetFocus > > ? Endif > > rgrds > bruce Sorry - that was totally the wrong routine. Look through tis one. '' Resolves the previous "real" control to tab to (Possibly no longer required) Public Function PrevActiveControl(cControl As Control) As Control Dim tControl As Control Dim tContainer As Container ' Dim isContainer As Boolean If IsNull(cControl.Previous) Then ' Print "No Prev for " & cControl.Name If Not IsNull(cControl.Parent) Then ' Print "Has parent so try " & cControl.Parent.Name Return PrevActiveControl(cControl.Parent) Else ' Print "No parent (EOF?) so try " & cControl.Window.Children[cControl.Window.Children.Count - 1].Name tControl = cControl.Window.Children[cControl.Window.Children.Count - 1] Endif Else ' Print "Got a target " & cControl.Previous.Name tControl = cControl.Previous Endif While tControl Is Container ' Print "Target is a container, so try last child " & tContainer.Children[tContainer.Children.Count - 1].Name tContainer = tControl If tContainer.Children.Count > 0 Then tControl = tContainer.Children[tContainer.Children.Count - 1] Else Return PrevActiveControl(tControl) Endif Wend If Not tControl.Enabled Then Return PrevActiveControl(tControl) If Not tControl.Visible Then Return PrevActiveControl(tControl) If tControl Is PictureBox Then Return PrevActiveControl(tControl) If tControl Is Label Then Return PrevActiveControl(tControl) ' Print "Found next control " & tControl.Name Return tControl End It is called from the control _KeyPress() handler as per the following example. If Key.Code = Key.Tab Then Stop Event InnerSpinBox_Activate If Key.Shift Then MUtil.PrevActiveControl(Me).SetFocus Else MUtil.NextActiveControl(Me).SetFocus Endif Endif rdrds bruce From chrisml at deganius.de Tue Mar 9 09:40:46 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 9 Mar 2021 09:40:46 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> <2e6cb963-e012-abb0-b945-083e43eb8aa8@gmail.com> <882d0e64-e140-e9af-5391-61106aa038de@deganius.de> Message-ID: Am 08.03.21 um 22:49 schrieb Jussi Lahtinen: > But it would help a lot if you could write the expected behavior in > tests before you create a new method because if someone later would > alter the program we could assure that it won't destroy the expected > behavior. > > I agree, and it would work kind of a part of documentation / > standardization also. > But it may also be too much work for Benoit. My experience is that writing tests before the code often makes the work easier and faster at all. One part of the work as a programmer is to control whether the new code does it's thingi right. Before gb.test I used to write small routines that call new code so that I could run it with F5, stop at breakpoints, control the content of variables, print sth to stdout and so on. The predecessor of gb.test was created to keep control over that small routines, which at the end not only started the different parts of the code but also were able to test the output. So why not keep them for later usage? Why not collect them in test suites? gb.test solved that for me. But the real benefit comes later. I have written a database ORM for my firm which is quite complex and consists of several layers (a SQL wrapper, which creates SQL queries, an ORM that maps database tables to arrays of objects that represent columns and calls the SQL wrapper on changes). Fortunately I have written tests at every stage of the development that can verify that the database contains the correct values after each run and each change. Now I am quite sure I won't break the old behavior of this complex system when I touch it and change or add things. It is much easier to touch the system, it gives me much more freedom and i am free from fear. Before gb.test I broke a lot of things in my software by accident when I had to change old code, now it's a lot better. So gb.test helps me at the other part of my work as a programmer when I have to extend or fix old code. It gives me much more reliability. I can't be 100% sure that I'll never break old code again, but the amount of new bugs I produce has decreased significantly for code which is covered by tests. So the usage of gb.test not only made my software more reliable but it also saved me a lot of time because I did not have to fix as much bugs as before. Instead, I can use more of my energy to develop new things. I am old and I have to use my energy sparingly. When I was young, I could code for 16 hours a day for two months without a problem, producing and fixing lots and lots of bugs. gb.test is a crutch for old programmers, if you are young and have too much energy, don't use 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 Tue Mar 9 13:44:47 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 9 Mar 2021 12:44:47 +0000 Subject: [Gambas-user] My "Gambas developer mode" In-Reply-To: References: Message-ID: On Mon, 8 Mar 2021 at 19:43, Beno?t Minisini wrote: > Le 08/03/2021 ? 13:56, Bruce Steers a ?crit : > > Ever considered anything like this for us Ben? > > > > That Not-so-safe thing i have done to load custom controls in gambas IDE > > (that I am finding a VERY useful feature) I have now hidden behind an > > unlock feature a bit like an Android phone hides it's developer options > > till you click "Build Info" a few times. > > > > With plenty of warnings about the risks of the functions we should be > > aware of. > > > > Here's a screengrab of me enabling/disabling the feature. > > http://bws.org.uk/images/screenrecord-2021-03-07_20.51.37.mp4 > > > > > > I'm sure there's a number of other things that possibly come with risk > > but great benefit you would not want to enable for general use but could > > be handy for gambas developers. > > > > Well wishes > > BruceS > > > > Mmm... No. If I want to test something, I put in the development > version. Once in the stable version, there should be no reason to hide > an IDE feature. > Aaw Ben you're so ,, er ,, correct :) And so is gambas because of it (and that is great) But I have a great reason to hide a feature , because it's useful for advanced users but simply put "a hack" and causes unexpected behaviour ;) Like adding custom controls, the only problem i have come across doing this is if in the IDE (using the same window) i load the custom control project and then load another project then go back to the control project without closing gambas it gets a load error, I just have to be sure to close gambas or re-load the project into a new window. (it's a downside i'm happy to deal with to see my controls in the dasigner) So my thinking is about "unsafe" features. I assume getting custom controls to load/unload in the designer safely is no simple task that would take quite a re-write of some stuff. So there some workarounds for the not so timid. I mean , I'm using a development environment that says "USE AT YOUR OWN RISK" in the title. I really don't mind using some features that have "USE AT YOUR OWN RISK" in the title too ;) Maybe not call it "Developer options" or "Tweaks" but call it "Hacks" shamelessly , features that cannot be corrctly implemented but can still be incredibly useful, if understood the risks ;) The benefits of loading a custom control for me are huge, being able to change alignment / autoresize / etc and see the changes react in the designer, I do not think i would have understood what Me.Design meant so quick if i was not seeing things in the IDE. Just seeing a custom controls icon and its name in a box in the IDE is just soo , nah , me no like, but properly implementing something like this i think would be well beyond my understanding of the gambas internals. but i think I see what you are saying. This "hidden feature" thing i propose is how you see gambas-master compared to stable, but I was not thinking this feature i propose of adding controls would or could be a gambas addition and only a workaround/hack was possible. hence hide it , make someone read some docs/warnings before using it. But a bonus for someone like me who has reached a level of hand building controls. and understanding how adding them to gambas is great but has a down side. Much respect BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Mar 9 14:03:01 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 9 Mar 2021 13:03:01 +0000 Subject: [Gambas-user] NoTabFocus glitch when pressing shift (usercontrols) In-Reply-To: <9df6bdc1-2c2e-c988-38fb-4a0ca1cd9429@gmail.com> References: <37721ca2-6e64-73e9-7ada-038ef45838fe@gmail.com> <9df6bdc1-2c2e-c988-38fb-4a0ca1cd9429@gmail.com> Message-ID: hehe , I wasn't going to say anything about the first example but i was thinking "well how are you handling .Enabled and things then?" ;) I got my routine tiny. It's lazy i know and more memory hungry as it simply runs through Me.Window.Controls and builds a list of all the focusable controls and selects prev/next or first/last . so if there are lots of controls it might be an issue. I plan to do that a bit better like you have :) But like i said, the finding the prev/next control was not my problem. turns out setting .Focus on an object hides .NoTabFocus from the native Tab routine. Now i have made it not set .Focus if .NotabFocus the Tab / Shift+Tab buttons work completely as expected without me adding them to my key handler. i have just the arrow keys in there now. Cheers me old mucka :) BruceS Public Sub NextFocus(Optional bReverse As Boolean) Dim ctList As New Control[], m, c As Integer, cName As String ' make a list of all the enabled/visible/focusable controls For Each ct As Control In Me.Window.Controls cName = Object.Class(ct).Parent.Name If cName <> "Control" And cName <> "UserControl" Then Continue If (ct.NoTabFocus) Or (Not ct.Enabled) Or (Not ct.Visible) Then Continue ctList.Add(ct) If ct = Me Then m = c ' m is Index of this control Inc c Next ' select prev/next or first/last If Not bReverse Then ctList[IIf(m = c - 1, 0, m + 1)].SetFocus Else ctList[IIf(m = 0, c - 1, m - 1)].SetFocus Endif End On Tue, 9 Mar 2021 at 07:59, Bruce wrote: > On 9/3/21 10:12 am, Bruce wrote: > > On 9/3/21 7:22 am, Bruce Steers wrote: > >> This is weird. > >> > >> I I have a form full of custom usercontrols and have set NoTabFocus on > >> one. > >> > >> If i let the GUIs handle Tab focus then they get selected despite the > >> NoTabFocus flag. > >> > >> So i have written my own focus routine and grab the key events > >> > >> using up and down arrow and tab works fine and skips the NoTabFocus > >> object. > >> > >> Using Shift + Tab selects it :( > >> > >> Using Shift and Tab uses the exact same command as Up arrow but up arrow > >> works. > >> I am calling Stop Event to cancel Tab and Shift+Tab press anywhere else. > >> > >> Odd how Tab works but shift + Tab does not. > >> > >> Project is here... > >> https://gitlab.com/bsteers4/ncheckbox > >> > >> BruceS > >> > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >> > > Wade through the following and see if you can find something in it. It > > works here for all our custom controls. > > > > '' [EVT] Handler for the navigation keys > > Public Sub SELF_KeyPress() > > > > Dim hTarget As Control > > > > ' 1) Make [Enter] emulate a [Tab] > > If Key.Code = Key.Return Then > > ' a) figure out where to start looking > > If Key.Shift Then > > If Me.Previous Then > > hTarget = Me.Previous > > Else > > hTarget = Me.Parent.Children[Me.Parent.Children.Count - 1] > > Endif > > Else > > If Me.Next Then > > hTarget = Me.Next > > Else > > hTarget = Me.Parent.Children[0] > > Endif > > Endif > > ' b) find the next viable control > > While hTarget.NoTabFocus > > If Key.Shift Then > > hTarget = hTarget.Previous > > If Not hTarget Then hTarget = > > Me.Parent.Children[Me.Parent.Children.Count - 1] > > Else > > hTarget = hTarget.Next > > If Not hTarget Then hTarget = Me.Parent.Children[0] > > Debug hTarget.Name > > Endif > > Wend > > ' c) go there > > hTarget.SetFocus > > > > Endif > > > > rgrds > > bruce > > Sorry - that was totally the wrong routine. > Look through tis one. > > '' Resolves the previous "real" control to tab to (Possibly no longer > required) > Public Function PrevActiveControl(cControl As Control) As Control > > Dim tControl As Control > Dim tContainer As Container > ' Dim isContainer As Boolean > > If IsNull(cControl.Previous) Then > ' Print "No Prev for " & cControl.Name > If Not IsNull(cControl.Parent) Then > ' Print "Has parent so try " & cControl.Parent.Name > Return PrevActiveControl(cControl.Parent) > Else > ' Print "No parent (EOF?) so try " & > cControl.Window.Children[cControl.Window.Children.Count - 1].Name > tControl = > cControl.Window.Children[cControl.Window.Children.Count - 1] > Endif > Else > ' Print "Got a target " & cControl.Previous.Name > tControl = cControl.Previous > Endif > > While tControl Is Container > ' Print "Target is a container, so try last child " & > tContainer.Children[tContainer.Children.Count - 1].Name > tContainer = tControl > If tContainer.Children.Count > 0 Then > tControl = tContainer.Children[tContainer.Children.Count - 1] > Else > Return PrevActiveControl(tControl) > Endif > Wend > > If Not tControl.Enabled Then Return PrevActiveControl(tControl) > If Not tControl.Visible Then Return PrevActiveControl(tControl) > If tControl Is PictureBox Then Return PrevActiveControl(tControl) > If tControl Is Label Then Return PrevActiveControl(tControl) > > ' Print "Found next control " & tControl.Name > Return tControl > > End > > It is called from the control _KeyPress() handler as per the following > example. > > If Key.Code = Key.Tab Then > Stop Event > InnerSpinBox_Activate > If Key.Shift Then > MUtil.PrevActiveControl(Me).SetFocus > Else > MUtil.NextActiveControl(Me).SetFocus > Endif > Endif > > > rdrds > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Mar 9 14:07:12 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 9 Mar 2021 14:07:12 +0100 Subject: [Gambas-user] My "Gambas developer mode" In-Reply-To: References: Message-ID: <7eb4295c-af34-7822-c665-d83a6260138c@gmail.com> Le 09/03/2021 ? 13:44, Bruce Steers a ?crit?: > > > On Mon, 8 Mar 2021 at 19:43, Beno?t Minisini > wrote: > > Le 08/03/2021 ? 13:56, Bruce Steers a ?crit?: > > Ever considered anything like this for us Ben? > > > > That Not-so-safe thing i have done to load custom controls in > gambas IDE > > (that I am finding a VERY useful feature) I have now hidden > behind an > > unlock feature a bit like an Android phone hides it's developer > options > > till you click "Build Info" a few times. > > > > With plenty of warnings about the risks of the functions we > should be > > aware of. > > > > Here's a screengrab of me enabling/disabling the feature. > > http://bws.org.uk/images/screenrecord-2021-03-07_20.51.37.mp4 > > > > > > > > I'm sure there's a number of other things that possibly come with > risk > > but great benefit you would not want to enable for general use > but could > > be handy for gambas developers. > > > > Well wishes > > BruceS > > > > Mmm... No. If I want to test something, I put in the development > version. Once in the stable version, there should be no reason to hide > an IDE feature. > > > Aaw Ben you're so ,, er ,,? correct :) > And so is gambas because of it (and that is great) > > But I have a great reason to hide a feature , because it's useful for > advanced users but simply put "a hack" and causes unexpected behaviour ;) > > Like adding custom controls, the only problem i have come across doing > this is if in the IDE (using the same window) i load the custom control > project and then load another project then go back to the control > project without closing gambas it gets a load error, I just have to be > sure to close gambas or re-load the project into a new window.? (it's a > downside i'm happy to deal with to see my controls in the dasigner) > > So my thinking is about "unsafe" features. > I assume getting custom controls to load/unload in the designer safely > is no simple task that would take quite a re-write of some stuff. > So there some workarounds for the not so timid. > I mean , I'm using a development environment that says "USE AT YOUR OWN > RISK" in the title. I really don't mind using some features that have > "USE AT YOUR OWN RISK" in the title too ;) > > Maybe not call it "Developer options" or "Tweaks" but call it "Hacks" > shamelessly , features that cannot be corrctly implemented but can still > be incredibly useful, if understood the risks ;) > > The benefits of loading a custom control for me are huge, being able to > change alignment / autoresize / etc and see the changes react in the > designer, I do not think i would have understood what Me.Design meant so > quick if i was not seeing things in the IDE. > > Just seeing a custom controls icon and its name in a box in the IDE is > just soo , nah , me no like, but properly implementing something like > this i think would be well beyond my understanding of the gambas internals. > > but i think I see what you are saying.? This "hidden feature" thing i > propose is how you see gambas-master compared to stable, but I was not > thinking this feature i propose of adding controls would or could be a > gambas addition and only a workaround/hack was possible. hence hide it , > make someone read some docs/warnings before using it. > But a bonus for someone like me who has reached a level of hand building > controls. and understanding how adding them to gambas is great but has a > down side. > > Much respect > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > As I said before, I can't add that to the IDE because it is not possible to make it reliable. What I can imagine to make custom controls drawable in the IDE in a reliable way would be creating another hidden component side by side to the main component (for example ".draw") that just implement the drawing routines of the main component controls, and that offer them to the IDE throw a specific method ("DrawControl" for example) of a specific class ("__Draw" for example). But then you will have to duplicate the drawing code, and adapt it to the IDE context: you will receive the values of the property from the IDE, you won't actually create the control, and so on... I won't make that now anyway. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Tue Mar 9 14:16:31 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 9 Mar 2021 14:16:31 +0100 Subject: [Gambas-user] NoTabFocus glitch when pressing shift (usercontrols) In-Reply-To: References: Message-ID: <4a344cc6-1a0a-7934-8945-ee3ae0279f79@gmail.com> Le 08/03/2021 ? 21:52, Bruce Steers a ?crit?: > This is weird. > > I I have a form full of custom usercontrols and have set NoTabFocus on one. > > If i let the GUIs handle Tab focus then they get selected despite the > NoTabFocus flag. > > So i have written my own focus routine and grab the key events > > using up and down arrow and tab works fine and skips the NoTabFocus object. > > Using Shift + Tab selects it :( > > Using Shift and Tab uses the exact same command as Up arrow but up arrow > works. > I am calling Stop Event to cancel Tab and Shift+Tab press anywhere else. > > Odd how Tab works but shift + Tab does not. > > Project is here... > https://gitlab.com/bsteers4/ncheckbox > > > BruceS > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It is better with commit https://gitlab.com/gambas/gambas/-/commit/e13afca718bc93d7db910407a95209942f869662? -- Beno?t Minisini From tercoide at hotmail.com Tue Mar 9 15:27:50 2021 From: tercoide at hotmail.com (martin p cristia) Date: Tue, 9 Mar 2021 11:27:50 -0300 Subject: [Gambas-user] Dialog Error In-Reply-To: References: Message-ID: Thank you, boss! I've noted that now,in the dev version, a Float[] can't be filled like [0, 0, 0, 0] and should be filled with something like [0.0, 0.0, 0.0, 0.0] like in C, wich is an improovement to make code more clear, but made me do some work :) > The bug comes from 'gb.gsl', being the first component that extends an > array class. > > It should be fixed in last commit. -- Saludos Ing. Martin P Cristia From g4mba5 at gmail.com Tue Mar 9 15:30:45 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 9 Mar 2021 15:30:45 +0100 Subject: [Gambas-user] Dialog Error In-Reply-To: References: Message-ID: Le 09/03/2021 ? 15:27, martin p cristia a ?crit?: > Thank you, boss! > > I've noted that now,in the dev version, a Float[] can't be filled like > [0, 0, 0, 0] and should be > It should work, otherwise it's a bug. -- Beno?t Minisini From jussi.lahtinen at gmail.com Tue Mar 9 18:59:34 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 9 Mar 2021 19:59:34 +0200 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> <2e6cb963-e012-abb0-b945-083e43eb8aa8@gmail.com> <882d0e64-e140-e9af-5391-61106aa038de@deganius.de> Message-ID: On Tue, Mar 9, 2021 at 10:41 AM Christof Thalhofer wrote: > Am 08.03.21 um 22:49 schrieb Jussi Lahtinen: > > > But it would help a lot if you could write the expected behavior in > > tests before you create a new method because if someone later would > > alter the program we could assure that it won't destroy the expected > > behavior. > > > > I agree, and it would work kind of a part of documentation / > > standardization also. > > But it may also be too much work for Benoit. > > My experience is that writing tests before the code often makes the work > easier and faster at all. > > One part of the work as a programmer is to control whether the new code > does it's thingi right. Before gb.test I used to write small routines > that call new code so that I could run it with F5, stop at breakpoints, > control the content of variables, print sth to stdout and so on. > > The predecessor of gb.test was created to keep control over that small > routines, which at the end not only started the different parts of the > code but also were able to test the output. So why not keep them for > later usage? Why not collect them in test suites? gb.test solved that > for me. > > But the real benefit comes later. > > I have written a database ORM for my firm which is quite complex and > consists of several layers (a SQL wrapper, which creates SQL queries, an > ORM that maps database tables to arrays of objects that represent > columns and calls the SQL wrapper on changes). Fortunately I have > written tests at every stage of the development that can verify that the > database contains the correct values after each run and each change. Now > I am quite sure I won't break the old behavior of this complex system > when I touch it and change or add things. It is much easier to touch the > system, it gives me much more freedom and i am free from fear. > > Before gb.test I broke a lot of things in my software by accident when I > had to change old code, now it's a lot better. > So gb.test helps me at the other part of my work as a programmer when I > have to extend or fix old code. > > It gives me much more reliability. I can't be 100% sure that I'll never > break old code again, but the amount of new bugs I produce has decreased > significantly for code which is covered by tests. > > So the usage of gb.test not only made my software more reliable but it > also saved me a lot of time because I did not have to fix as much bugs > as before. Instead, I can use more of my energy to develop new things. > > I am old and I have to use my energy sparingly. When I was young, I > could code for 16 hours a day for two months without a problem, > producing and fixing lots and lots of bugs. gb.test is a crutch for old > programmers, if you are young and have too much energy, don't use it. > > ;-) > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > I think you make good points. Perhaps Benoit could write the test cases he uses and others could expand from it. But what Benoit thinks? Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Mar 9 19:46:17 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 9 Mar 2021 18:46:17 +0000 Subject: [Gambas-user] NoTabFocus glitch when pressing shift (usercontrols) In-Reply-To: <4a344cc6-1a0a-7934-8945-ee3ae0279f79@gmail.com> References: <4a344cc6-1a0a-7934-8945-ee3ae0279f79@gmail.com> Message-ID: Yes Ben, brilliant :) I just set Focus = True on everything again then set NoTabFocus on a couple and now the native routines skip them okay :) Thank you :) On Tue, 9 Mar 2021 at 13:17, Beno?t Minisini wrote: > Le 08/03/2021 ? 21:52, Bruce Steers a ?crit : > > This is weird. > > > > I I have a form full of custom usercontrols and have set NoTabFocus on > one. > > > > If i let the GUIs handle Tab focus then they get selected despite the > > NoTabFocus flag. > > > > So i have written my own focus routine and grab the key events > > > > using up and down arrow and tab works fine and skips the NoTabFocus > object. > > > > Using Shift + Tab selects it :( > > > > Using Shift and Tab uses the exact same command as Up arrow but up arrow > > works. > > I am calling Stop Event to cancel Tab and Shift+Tab press anywhere else. > > > > Odd how Tab works but shift + Tab does not. > > > > Project is here... > > https://gitlab.com/bsteers4/ncheckbox > > > > > > BruceS > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > It is better with commit > > https://gitlab.com/gambas/gambas/-/commit/e13afca718bc93d7db910407a95209942f869662 > ? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicco.gambas at libero.it Wed Mar 10 10:05:10 2021 From: kicco.gambas at libero.it (kicco.gambas) Date: Wed, 10 Mar 2021 10:05:10 +0100 Subject: [Gambas-user] gb.map: ...calculating the area of irregular polygons In-Reply-To: References: Message-ID: <6f886e39-e0d8-82d3-637b-ddc94cdc2540@libero.it> Il 24/02/21 15:19, vuott--- via User ha scritto: > To Fabien BODARD > > Hello Fabien, > I would like to propose to you to add/implement to the gb.map > Component an Method for the easy calculation of the area of irregular > polygons (Gauss's area formula), set by the user on the map. > > Regards > vuott > > > > > > -- > Inviato in modo sicuro con Tutanota. Ottieni la tua casella di posta > elettronica crittografata e senza pubblicit?: > https://tutanota.com > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Fabien, I join the request of vuott.It would be very interesting to develop sw for agriculture and land management and natural parks! carlo panara -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Mar 10 10:43:19 2021 From: mbelmonte at belmotek.net (Martin) Date: Wed, 10 Mar 2021 10:43:19 +0100 Subject: [Gambas-user] WebView Foreground how-to ?? Message-ID: <3f1ce1fe-394b-b501-5ac3-2774a7a390c8@belmotek.net> Hi. Someone could tell me please if is possible change the background foreground colors in the webview. I leave this simple example to do the test. Also, on my desktop, which has a dark theme, it doesn't look properly, because the text is black and it should be white (like the rest of the controls) Regards Mart?n. https://imgur.com/frRhrWF.png Public Sub Form_Open() ? WebView1.HTML = " Declaraci?n de derechos humanos

Art?culo 1.

Todos los seres humanos nacen libres e iguales en dignidad y derechos...???

Art?culo 2.

Toda persona tiene todos los derechos y libertades proclamados...

" End Public Sub ToggleButtonsGroup_Click() ? Select Last.tag ??? Case 1 ????? WebView1.Foreground = Color.DarkBlue ????? WebView1.Background = Color.Cyan ??? Case 2 ????? WebView1.Foreground = Color.DarkRed ????? WebView1.Background = Color.Yellow ??? Case 3 ????? WebView1.Foreground = Color.Foreground ????? WebView1.Background = Color.Background ? End Select End From bagonergi at gmail.com Wed Mar 10 12:09:17 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 10 Mar 2021 12:09:17 +0100 Subject: [Gambas-user] WebView Foreground how-to ?? In-Reply-To: <3f1ce1fe-394b-b501-5ac3-2774a7a390c8@belmotek.net> References: <3f1ce1fe-394b-b501-5ac3-2774a7a390c8@belmotek.net> Message-ID: Il giorno mer 10 mar 2021 alle ore 11:03 Martin ha scritto: > Hi. > > Someone could tell me please if is possible change the background > foreground colors in the webview. > I believe you should look at webview.eval You might check out the seHelpBuilder project on the Farm, it's full of naivety but something about webkit can teach. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Mar 10 22:25:16 2021 From: mbelmonte at belmotek.net (Martin) Date: Wed, 10 Mar 2021 22:25:16 +0100 Subject: [Gambas-user] WebView Foreground how-to ?? In-Reply-To: References: <3f1ce1fe-394b-b501-5ac3-2774a7a390c8@belmotek.net> Message-ID: Tanks Gianluigi. .eval didn't work so I finally fixed it with html and Style property like: > > Il giorno mer 10 mar 2021 alle ore 11:03 Martin > > ha scritto: > > Hi. > > Someone could tell me please if is possible change the background > foreground colors in the webview. > > > I believe you should look at webview.eval > You might check out the seHelpBuilder project on the Farm, it's full > of naivety but something about webkit can teach. > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Mar 10 22:37:54 2021 From: mbelmonte at belmotek.net (Martin) Date: Wed, 10 Mar 2021 22:37:54 +0100 Subject: [Gambas-user] Count the real time spent editing the data Message-ID: Is there any way to know if a gambas program had keyboard activity from when it was opened until it was closed? It is to count the real time spent editing the data. Regards. Mart?n. From ea7dfh at ea7dfh.com Wed Mar 10 22:37:08 2021 From: ea7dfh at ea7dfh.com (Jesus Guardon) Date: Wed, 10 Mar 2021 22:37:08 +0100 Subject: [Gambas-user] gambas-es.org down [OVH Disaster] Message-ID: Hi folks =English= Only to let you know that the Spanish site https://gambas-es.org has been struck by the OVH datacenter fire: https://news.yahoo.com/fire-breaks-ovh-building-strasbourg-074135784.html Fortunately, we have recent backups in order to migrate and restore the server, but this can take several days to get fully operational. I beg for your patience and understanding. =Espa?ol= Os informo de la ca?da de gambas-es.org debido al desastre producido en los data center de OVH donde se aloja nuestro servidor. https://www.20minutos.es/noticia/4612250/0/un-incendio-destruye-parte-del-centro-de-datos-de-ovh-en-estrasburgo-uno-de-los-servidores-mas-importantes-de-europa/ Afortunadamente disponemos de copias de seguridad de los datos, pero el proceso de migraci?n y restauraci?n puede tomar varios d?as en completarse. Ruego paciencia y comprensi?n. Saludos/Regards Jesus (gambas-es.org Admin) From bagonergi at gmail.com Wed Mar 10 23:01:55 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 10 Mar 2021 23:01:55 +0100 Subject: [Gambas-user] gambas-es.org down [OVH Disaster] In-Reply-To: References: Message-ID: Il giorno mer 10 mar 2021 alle ore 22:44 Jesus Guardon ha scritto: > Hi folks > > =English= > > Only to let you know that the Spanish site https://gambas-es.org has > been struck by the OVH datacenter fire: > > Hi Jesus, I'm sorry to hear this, but relieved you can fix it. All the Gambas-it.org closeness Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Mar 10 23:09:10 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 11 Mar 2021 00:09:10 +0200 Subject: [Gambas-user] Count the real time spent editing the data In-Reply-To: References: Message-ID: Quickly thinking... Start timer in key event and stop it when x seconds have passed without activity. Something like this: This in some key event: If fActivityStarted = -1 Then fActivityStarted = Timer ActivityTimer.Start Endif And this for the started timer: Public Sub ActivityTimer_Timer() ''No activity for x seconds fTotalTime += Timer - fActivityStarted fActivityStarted = -1 ActivityTimer.Enabled = False End Jussi On Wed, Mar 10, 2021 at 11:38 PM Martin wrote: > Is there any way to know if a gambas program had keyboard activity from > when it was opened until it was closed? > It is to count the real time spent editing the data. > > Regards. > > Mart?n. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Mar 10 23:12:42 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 11 Mar 2021 00:12:42 +0200 Subject: [Gambas-user] Count the real time spent editing the data In-Reply-To: References: Message-ID: Wait... you need to restart the timer: If fActivityStarted = -1 Then fActivityStarted = Timer ActivityTimer.Restart ''<-- here, not start, restart. Endif On Thu, Mar 11, 2021 at 12:09 AM Jussi Lahtinen wrote: > Quickly thinking... Start timer in key event and stop it when x seconds > have passed without activity. > Something like this: > > This in some key event: > > If fActivityStarted = -1 Then > fActivityStarted = Timer > ActivityTimer.Start > Endif > > And this for the started timer: > > Public Sub ActivityTimer_Timer() ''No activity for x seconds > fTotalTime += Timer - fActivityStarted > fActivityStarted = -1 > ActivityTimer.Enabled = False > End > > > Jussi > > On Wed, Mar 10, 2021 at 11:38 PM Martin wrote: > >> Is there any way to know if a gambas program had keyboard activity from >> when it was opened until it was closed? >> It is to count the real time spent editing the data. >> >> Regards. >> >> Mart?n. >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Mar 10 23:24:20 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 10 Mar 2021 22:24:20 +0000 Subject: [Gambas-user] Count the real time spent editing the data In-Reply-To: References: Message-ID: Maybe activating the profiler (in debug menu) and looking at the key routine times? On Wed, 10 Mar 2021, 21:38 Martin, wrote: > Is there any way to know if a gambas program had keyboard activity from > when it was opened until it was closed? > It is to count the real time spent editing the data. > > Regards. > > Mart?n. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Mar 10 23:25:14 2021 From: mbelmonte at belmotek.net (Martin) Date: Wed, 10 Mar 2021 23:25:14 +0100 Subject: [Gambas-user] Count the real time spent editing the data In-Reply-To: References: Message-ID: <1959043f-d458-1c35-c9d5-456d6c9943af@belmotek.net> I'm interested to accumulate the amount of minutes for some "project" If the user press some key bTime change to true then when each minute the timer event check if there are changes (bTime = true) then increase 1 minute then bTime = False Public Sub Form_KeyPress() ? bTime = True End Public Sub ActivityLogger_Timer() ? Inc iOpen ? If bTime Then ??? Inc iTime ??? File.Save(exd &/ "time.log", CStr(iTime)) ??? bTime = False ? Endif ? ActivitiIndication() End Regards El 10/3/21 a las 22:37, Martin escribi?: > Is there any way to know if a gambas program had keyboard activity > from when it was opened until it was closed? > It is to count the real time spent editing the data. > > Regards. > > Mart?n. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bagonergi at gmail.com Thu Mar 11 00:04:08 2021 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 11 Mar 2021 00:04:08 +0100 Subject: [Gambas-user] WebView Foreground how-to ?? In-Reply-To: References: <3f1ce1fe-394b-b501-5ac3-2774a7a390c8@belmotek.net> Message-ID: Il giorno mer 10 mar 2021 alle ore 22:26 Martin ha scritto: > Tanks Gianluigi. > > .eval didn't work so I finally fixed it with html and Style property like: > > > The sentence changes according to the colors of the text that Gambas > defines according to whether the desktop is dark or light. > > https://imgur.com/GuJjzx3.png > > Regards. > > Mart?n. > Exactly, i forgot i used style sheets. I'm old and forget things... :-) But I'm pretty sure it can also be done as suggested, in the Wysiwyg tab there are two color buttons that do it like this. Good night Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Mar 11 02:07:30 2021 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 10 Mar 2021 17:07:30 -0800 (PST) Subject: [Gambas-user] Scripter inline data support? Message-ID: <1593151694.10680.1615424850428.JavaMail.zimbra@westwoodsvcs.com> Does anyone feel they could use inline data inside of scripts looking sort of like this: dim sData as string sData = file.load("projectDataFileName") Data projectDataFileName .... whatever data end data "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From tercoide at hotmail.com Thu Mar 11 12:42:23 2021 From: tercoide at hotmail.com (martin p cristia) Date: Thu, 11 Mar 2021 08:42:23 -0300 Subject: [Gambas-user] Dialog Error In-Reply-To: References: Message-ID: After the update, that error it's not longer present. El 3/9/21 a las 3:00 PM, user-request at lists.gambas-basic.org escribi?: > It should work, otherwise it's a bug. -- Saludos Ing. Martin P Cristia From tercoide at hotmail.com Thu Mar 11 12:45:56 2021 From: tercoide at hotmail.com (martin p cristia) Date: Thu, 11 Mar 2021 08:45:56 -0300 Subject: [Gambas-user] gambas-es.org down [OVH Disaster] In-Reply-To: References: Message-ID: Wow! Escribime si necesitas algo. Abz El 3/10/21 a las 7:13 PM, user-request at lists.gambas-basic.org escribi?: > Fortunately, we have recent backups in order to migrate and restore the > server, but this can take several days to get fully operational. > I beg for your patience and understanding. -- Saludos Ing. Martin P Cristia From brian at westwoodsvcs.com Fri Mar 12 21:29:03 2021 From: brian at westwoodsvcs.com (Brian G) Date: Fri, 12 Mar 2021 12:29:03 -0800 (PST) Subject: [Gambas-user] Adding new Keywords #Include and #Script to wiki Message-ID: <987658000.11121.1615580943842.JavaMail.zimbra@westwoodsvcs.com> I am having trouble figuring out how to add the #Include and #Script keywords to the wiki Should #Script link to the Scripter description and parameters, or should Scripter point to #Script keyword and have that contain all possible values. Any help would be appreciated "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sat Mar 13 18:46:26 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 13 Mar 2021 09:46:26 -0800 (PST) Subject: [Gambas-user] Scripter - using Class to define a reference to a not class loaded by the main script Message-ID: <2012708375.11896.1615657586578.JavaMail.zimbra@westwoodsvcs.com> Hi Ben, In Gambas you may define a reference to a class not loaded by main or project component list with: Class eval Which allows the compiler to process references to elements of that class. This of course does not work in scripter as it will interpret this as the definition of a new class beginning. Should a note be added to the CLASS page that this is not supported by the scripter? And indicate how this is used by a script. Or is there a way to identify this as not a script begin class definition through the highlighter. Right now this generates a syntax error missing end class in the script when it occurs. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Mar 13 19:30:07 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 13 Mar 2021 19:30:07 +0100 Subject: [Gambas-user] Scripter - using Class to define a reference to a not class loaded by the main script In-Reply-To: <2012708375.11896.1615657586578.JavaMail.zimbra@westwoodsvcs.com> References: <2012708375.11896.1615657586578.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 13/03/2021 ? 18:46, Brian G a ?crit?: > Hi Ben, > > In Gambas you may define a reference to a class not loaded by main or > project component list with: > > ? ? ?Class eval > > Which allows the compiler to process references to elements of that class. > > ? ? ?This of course does not work in scripter as it will interpret this > as the definition of a new class beginning. > > Should a note be added to the CLASS page that this is not supported by > the scripter? > And indicate how this is used by a script. > > Or is there a way to identify this as not a script begin class > definition through the highlighter. > > Right now this generates a syntax error missing end class in the script > when it occurs. > > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > > This is unfortunate, as "Class xxxx" declaration is the only way to use a class not known at compilation time. (I should have been more cautious with what was done with this scripter thing to avoid these kind of problems before being they hit us... You see now why I am reluctant to each specific syntax added to it.) The right thing to do would have been not using "Class" to define a new class, but the preprocessor keywords (for example "#Class"). Alas, because of backward-compatibility, I guess that we must support the current use of "Class". The only idea I can give you is analyzing the script file in two passes: At first pass, you identify the "Class xxx" and "End Class" lines. At second pass, every "Class xxx" without a corresponding "End Class" is supposed to be a class declaration. Two "End Class" without an intermediate "Class xxxx" is a syntax error. Of course, then you cannot detect that the user forgot the last "End Class" keyword. Note that you can't use the indentation to solve the problem, as indentation as no syntax meaning in Gambas - it's not Python! :-) If you have better ideas, tell me. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Mar 13 19:34:58 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 13 Mar 2021 19:34:58 +0100 Subject: [Gambas-user] Documentation inside source code & wiki Message-ID: Hi, I fixed some bugs in the wiki, and finally the documentation written in the comments of the components source code is now automatically inserted into the wiki without having to edit it. For one documentation page, you can now either: - Not creating it. In that case, a page is automatically generated from the help comments in the source code. - Creating a page, using the '@{help}' wiki command to insert into your specific page the help coming from the source code comments, and adding some specific stuff. - Creating a page, and type what you want. By the way, for example, the 'gb.test' is well documented, but I think the help comments need a bit of love by using the wiki markdown syntax for non proportional text, examples... Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sat Mar 13 20:10:32 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 13 Mar 2021 19:10:32 +0000 Subject: [Gambas-user] Documentation inside source code & wiki In-Reply-To: References: Message-ID: On Sat, 13 Mar 2021 at 18:35, Beno?t Minisini wrote: > Hi, > > I fixed some bugs in the wiki, and finally the documentation written in > the comments of the components source code is now automatically inserted > into the wiki without having to edit it. > That's great , i figured i would not even have to figure out the wiki once i discovered 2 single quotes works for autocomplete as was just in personal projects not anything for the wiki but if i'm doing anything to be included in gambas that wants wiki info this is really cool :) Great stuff BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Mar 13 20:17:12 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 13 Mar 2021 19:17:12 +0000 Subject: [Gambas-user] gitlab gambas is down Message-ID: Is this just a "it happens" kind of thing. Me , and i know of one other have not been able to load the gambas gitlab page since last night. Error 404 not found. Is it just a case of waiting for it to re-enable itself? Cheers BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Mar 13 20:21:56 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 13 Mar 2021 20:21:56 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: Message-ID: Le 13/03/2021 ? 20:17, Bruce Steers a ?crit?: > Is this just a "it happens" kind of thing. > > Me , and i know of one other have not been able to load the gambas > gitlab page since last night. > > Error 404 not found. > > Is it just a case of waiting for it to re-enable itself? > > Cheers > BruceS > It works perfectly here (in Paris). Check your DNS! -- Beno?t Minisini From bsteers4 at gmail.com Sat Mar 13 20:49:42 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 13 Mar 2021 19:49:42 +0000 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: Message-ID: I can access any other gitlab page , all my own , just not gambas/gambas ? Not sure what i can do about my DNS? i connect through my phone. On Sat, 13 Mar 2021 at 19:22, Beno?t Minisini wrote: > Le 13/03/2021 ? 20:17, Bruce Steers a ?crit : > > Is this just a "it happens" kind of thing. > > > > Me , and i know of one other have not been able to load the gambas > > gitlab page since last night. > > > > Error 404 not found. > > > > Is it just a case of waiting for it to re-enable itself? > > > > Cheers > > BruceS > > > > It works perfectly here (in Paris). > > Check your DNS! > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Mar 13 21:19:53 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 13 Mar 2021 20:19:53 +0000 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: Message-ID: even my gitlab fork cannot access it. It says... "Forked from an inaccessible project" It , like me, has not had access for 20 hours. wishing well BruceS On Sat, 13 Mar 2021 at 19:22, Beno?t Minisini wrote: > Le 13/03/2021 ? 20:17, Bruce Steers a ?crit : > > Is this just a "it happens" kind of thing. > > > > Me , and i know of one other have not been able to load the gambas > > gitlab page since last night. > > > > Error 404 not found. > > > > Is it just a case of waiting for it to re-enable itself? > > > > Cheers > > BruceS > > > > It works perfectly here (in Paris). > > Check your DNS! > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot at 2021-03-13 20-07-13.png Type: image/png Size: 111372 bytes Desc: not available URL: From g4mba5 at gmail.com Sat Mar 13 21:20:04 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 13 Mar 2021 21:20:04 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: Message-ID: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> Le 13/03/2021 ? 20:49, Bruce Steers a ?crit?: > I can access any other gitlab page , all my own , just not gambas/gambas ? > > Not sure what i can do about my DNS? > ? i connect through my phone. > Strange... -- Beno?t Minisini From bsteers4 at gmail.com Sat Mar 13 21:28:39 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 13 Mar 2021 20:28:39 +0000 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> Message-ID: On Sat, 13 Mar 2021 at 20:22, Beno?t Minisini wrote: > Le 13/03/2021 ? 20:49, Bruce Steers a ?crit : > > I can access any other gitlab page , all my own , just not gambas/gambas > ? > > > > Not sure what i can do about my DNS? > > i connect through my phone. > > > > Strange... > > Strange, It's bloody infuriating , i want to know if the Paint.TrimText is all okay now?? :D i feel i've been cut short, like watching a mystery movie but just before the finale it finishes leaving me hanging there wondering what happened!!! :D BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Mar 13 21:56:29 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 13 Mar 2021 22:56:29 +0200 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> Message-ID: It's down from here too. And for the first time I couldn't even try to connect to the site without logging in to gitlab. Jussi On Sat, Mar 13, 2021 at 10:29 PM Bruce Steers wrote: > > > On Sat, 13 Mar 2021 at 20:22, Beno?t Minisini wrote: > >> Le 13/03/2021 ? 20:49, Bruce Steers a ?crit : >> > I can access any other gitlab page , all my own , just not >> gambas/gambas ? >> > >> > Not sure what i can do about my DNS? >> > i connect through my phone. >> > >> >> Strange... >> >> > Strange, It's bloody infuriating , i want to know if the Paint.TrimText is > all okay now?? :D > i feel i've been cut short, like watching a mystery movie but just before > the finale it finishes leaving me hanging there wondering what happened!!! > > :D > BruceS > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnaltrogge at web.de Sat Mar 13 22:23:05 2021 From: mnaltrogge at web.de (Michael N. Altrogge) Date: Sat, 13 Mar 2021 22:23:05 +0100 Subject: [Gambas-user] test Message-ID: <07fff98b-73a4-0f70-eda6-059c283824f4@web.de> test ... because my answer was rejected From bsteers4 at gmail.com Sat Mar 13 22:31:40 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 13 Mar 2021 21:31:40 +0000 Subject: [Gambas-user] test In-Reply-To: <07fff98b-73a4-0f70-eda6-059c283824f4@web.de> References: <07fff98b-73a4-0f70-eda6-059c283824f4@web.de> Message-ID: you have too many email addresses ;) BruceS On Sat, 13 Mar 2021 at 21:24, Michael N. Altrogge wrote: > test ... because my answer was rejected > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnaltrogge at web.de Sat Mar 13 22:39:15 2021 From: mnaltrogge at web.de (Michael N. Altrogge) Date: Sat, 13 Mar 2021 22:39:15 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> Message-ID: <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> Hey Beno?t, hey Bruce, I'm the "one other" ... and my network works perfectly! I'm using 8.8.8.8 and 8.8.4.4 (These are the Google DNS Servers) as always and did not change my network config for a long time now (why should i) i can reach: https://gitlab.com/it-mna (that's me) https://gitlab.com/bsteers4 (that's Bruce) https://gitlab.com/christhal https://gitlab.com/tboege but i CAN NOT reach: https://gitlab.com/gambas/gambas so to me it seems that https://gitlab.com works (the 404 error page comes from gitlab) the error lies in the /gambas/gambas part ... at least not a name resolution error. Micha Am 13.03.21 um 21:56 schrieb Jussi Lahtinen: > It's down from here too. And for the first time I couldn't even try to > connect to the site without logging in to gitlab. > > > Jussi > > On Sat, Mar 13, 2021 at 10:29 PM Bruce Steers > wrote: > > > > On Sat, 13 Mar 2021 at 20:22, Beno?t Minisini > wrote: > > Le 13/03/2021 ? 20:49, Bruce Steers a ?crit?: > > I can access any other gitlab page , all my own , just not > gambas/gambas ? > > > > Not sure what i can do about my DNS? > >? ? i connect through my phone. > > > > Strange... > > > Strange, It's bloody infuriating , i want to know if the > Paint.TrimText is all okay now??? :D > i feel i've been cut short, like watching a mystery movie but just > before the finale it finishes leaving me hanging there wondering > what happened!!! > > :D > BruceS > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Mar 13 23:18:18 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 14 Mar 2021 00:18:18 +0200 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> Message-ID: > https://gitlab.com/it-mna (that's me) > Doesn't work. > https://gitlab.com/bsteers4 (that's Bruce) > Works. > https://gitlab.com/christhal > Works. > https://gitlab.com/tboege > Works. > https://gitlab.com/gambas/gambas > Doesn't work. The same thing with Firefox and Chrome. I think the problem is in gitlab db access, maybe some server down. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Mar 13 23:37:16 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 13 Mar 2021 23:37:16 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> Message-ID: Le 13/03/2021 ? 23:18, Jussi Lahtinen a ?crit?: > > https://gitlab.com/it-mna (that's me) > > > Doesn't work. > > https://gitlab.com/bsteers4 (that's > Bruce) > > Works. > > https://gitlab.com/christhal > > Works. > > https://gitlab.com/tboege > > Works. > > https://gitlab.com/gambas/gambas > > Doesn't work. > The same thing with Firefox and Chrome. I think the problem is in gitlab > db access, maybe some server down. > > > Jussi > It's weirder than that as 'https://gitlab.com/gambas/gambas' works as usual for me. -- Beno?t Minisini From jussi.lahtinen at gmail.com Sat Mar 13 23:49:06 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 14 Mar 2021 00:49:06 +0200 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> Message-ID: > > It's weirder than that as 'https://gitlab.com/gambas/gambas' works as > usual for me. > Maybe it is some cloud system and what is missing depends on where you are connecting from. The closest server cannot find what you are looking for, and instead of redirecting it just says 404. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Mar 13 23:59:25 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 13 Mar 2021 22:59:25 +0000 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> Message-ID: Could you put a link to a copy of the latest source archive for us to download somewhere? As like, man, I'm going to start clucking like a junkie without a fix soon ! ?? Hehe only kidding, so it looks like the internet is broken ? ? Benoit , you any good at fixing the internet too? ? On Sat, 13 Mar 2021, 22:38 Beno?t Minisini, wrote: > Le 13/03/2021 ? 23:18, Jussi Lahtinen a ?crit : > > > > https://gitlab.com/it-mna (that's me) > > > > > > Doesn't work. > > > > https://gitlab.com/bsteers4 (that's > > Bruce) > > > > Works. > > > > https://gitlab.com/christhal > > > > Works. > > > > https://gitlab.com/tboege > > > > Works. > > > > https://gitlab.com/gambas/gambas > > > > Doesn't work. > > The same thing with Firefox and Chrome. I think the problem is in gitlab > > db access, maybe some server down. > > > > > > Jussi > > > > It's weirder than that as 'https://gitlab.com/gambas/gambas' works as > usual for me. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Sat Mar 13 23:48:23 2021 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sat, 13 Mar 2021 23:48:23 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> Message-ID: Am Samstag, den 13.03.2021, 23:37 +0100 schrieb Beno?t Minisini: > Le 13/03/2021 ? 23:18, Jussi Lahtinen a ?crit : > > https://gitlab.com/it-mna (that's > > me) > > > > > > Doesn't work. > > > > https://gitlab.com/bsteers4 > > (that's > > Bruce) > > > > Works. > > > > https://gitlab.com/christhal > > > > Works. > > > > https://gitlab.com/tboege > > > > Works. > > > > https://gitlab.com/gambas/gambas < > > https://gitlab.com/gambas/gambas> > > > > Doesn't work. > > The same thing with Firefox and Chrome. I think the problem is in > > gitlab > > db access, maybe some server down. > > > > > > Jussi > > > > It's weirder than that as 'https://gitlab.com/gambas/gambas' works > as > usual for me. > may be if you hide your ssh-keys -- Amicalement Charlie From karl.reinl at fen-net.de Sun Mar 14 00:05:38 2021 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sun, 14 Mar 2021 00:05:38 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> Message-ID: Am Samstag, den 13.03.2021, 23:37 +0100 schrieb Beno?t Minisini: > Le 13/03/2021 ? 23:18, Jussi Lahtinen a ?crit : > > https://gitlab.com/it-mna (that's > > me) > > > > > > Doesn't work. > > > > https://gitlab.com/bsteers4 > > (that's > > Bruce) > > > > Works. > > > > https://gitlab.com/christhal > > > > Works. > > > > https://gitlab.com/tboege > > > > Works. > > > > https://gitlab.com/gambas/gambas < > > https://gitlab.com/gambas/gambas> > > > > Doesn't work. > > The same thing with Firefox and Chrome. I think the problem is in > > gitlab > > db access, maybe some server down. > > > > > > Jussi > > > > It's weirder than that as 'https://gitlab.com/gambas/gambas' works > as > usual for me.GEThttps://gitlab.com/gambas/gambas > [HTTP/2 404 Not Found 673ms] > > Content Security Policy: "'unsafe-inline'" wird innerhalb von script- > src oder style-src ignoriert: nonce-source oder hash-source angegeben > Content Security Policy: Die Einstellungen der Seite haben das Laden > einer Ressource auf inline blockiert ("script-src"). sandbox eval > code:16:502 > Content Security Policy: Die Einstellungen der Seite haben das Laden > einer Ressource auf inline blockiert ("script-src"). adguard- > content.js:5647:15 > > may be if you hide your ssh-keys Sorry posted that to bugtracker first: GEThttps://gitlab.com/gambas/gambas [HTTP/2 404 Not Found 673ms] Content Security Policy: "'unsafe-inline'" wird innerhalb von script- src oder style-src ignoriert: nonce-source oder hash-source angegeben Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf inline blockiert ("script-src"). sandbox eval code:16:502 Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf inline blockiert ("script-src"). adguard- content.js:5647:15 this is on Firefox -- Amicalement Charlie From tobs at taboege.de Sun Mar 14 00:07:46 2021 From: tobs at taboege.de (Tobias Boege) Date: Sun, 14 Mar 2021 00:07:46 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> Message-ID: <20210313230746.GE979924@highrise.localdomain> I just updated my fork at https://gitlab.com/tboege to the latest commit bcd3b84366ea66 which was announced to the Notification list about 4 hours ago. Apparently I have access to Beno?t's repository at gitlab. Since this is git, you can base any work off the HEAD commit checked out from any copy of the repository, including mine ? if you can load it. Best, Tobias On Sat, 13 Mar 2021, Bruce Steers wrote: > Could you put a link to a copy of the latest source archive for us to > download somewhere? > As like, man, I'm going to start clucking like a junkie without a fix soon > ! > ?? > > Hehe only kidding, > so it looks like the internet is broken ? ? > > Benoit , you any good at fixing the internet too? ? > > On Sat, 13 Mar 2021, 22:38 Beno?t Minisini, wrote: > > > Le 13/03/2021 ? 23:18, Jussi Lahtinen a ?crit : > > > > > > https://gitlab.com/it-mna (that's me) > > > > > > > > > Doesn't work. > > > > > > https://gitlab.com/bsteers4 (that's > > > Bruce) > > > > > > Works. > > > > > > https://gitlab.com/christhal > > > > > > Works. > > > > > > https://gitlab.com/tboege > > > > > > Works. > > > > > > https://gitlab.com/gambas/gambas > > > > > > Doesn't work. > > > The same thing with Firefox and Chrome. I think the problem is in gitlab > > > db access, maybe some server down. > > > > > > > > > Jussi > > > > > > > It's weirder than that as 'https://gitlab.com/gambas/gambas' works as > > usual for me. > > From brian at westwoodsvcs.com Sun Mar 14 00:26:33 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 13 Mar 2021 15:26:33 -0800 (PST) Subject: [Gambas-user] Scripter - using Class to define a reference to a not class loaded by the main script In-Reply-To: References: <2012708375.11896.1615657586578.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1068362706.12025.1615677993411.JavaMail.zimbra@westwoodsvcs.com> my simple suggestion that inside a script the key word class means start of class definition and DefClass is used inside a script for simple class reference, Scripter translates that to that the correct Class definition for the compiler and we document the heck out of it in the Class keyword, as being different in a script. And Perhaps explain why? or perhaps a #Script Class classname to do the job. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 13, 2021, at 10:30 AM, Beno?t Minisini g4mba5 at gmail.com wrote: > Le 13/03/2021 ? 18:46, Brian G a ?crit?: >> Hi Ben, >> >> In Gambas you may define a reference to a class not loaded by main or >> project component list with: >> >> ? ? ?Class eval >> >> Which allows the compiler to process references to elements of that class. >> >> ? ? ?This of course does not work in scripter as it will interpret this >> as the definition of a new class beginning. >> >> Should a note be added to the CLASS page that this is not supported by >> the scripter? >> And indicate how this is used by a script. >> >> Or is there a way to identify this as not a script begin class >> definition through the highlighter. >> >> Right now this generates a syntax error missing end class in the script >> when it occurs. >> >> >> "Failure is the key to success; >> ?each mistake teaches us something" ?.. Morihei Ueshiba >> Brian G >> >> > > This is unfortunate, as "Class xxxx" declaration is the only way to use > a class not known at compilation time. > > (I should have been more cautious with what was done with this scripter > thing to avoid these kind of problems before being they hit us... You > see now why I am reluctant to each specific syntax added to it.) > > The right thing to do would have been not using "Class" to define a new > class, but the preprocessor keywords (for example "#Class"). > > Alas, because of backward-compatibility, I guess that we must support > the current use of "Class". > > The only idea I can give you is analyzing the script file in two passes: > > At first pass, you identify the "Class xxx" and "End Class" lines. > > At second pass, every "Class xxx" without a corresponding "End Class" is > supposed to be a class declaration. Two "End Class" without an > intermediate "Class xxxx" is a syntax error. > > Of course, then you cannot detect that the user forgot the last "End > Class" keyword. > > Note that you can't use the indentation to solve the problem, as > indentation as no syntax meaning in Gambas - it's not Python! :-) > > If you have better ideas, tell me. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From buster6seven at gmail.com Sun Mar 14 00:38:49 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 14 Mar 2021 10:38:49 +1100 Subject: [Gambas-user] message Message-ID: Hi ??? What am I doing wrong with this code Public Sub Button4_Click() ? If selected = Null Then ??? Message("Do some thing else first") ? Else ? ?? Do stuff here ? Endif End the message window pops up and then i press ok then it pops up agian then faults with window already open From bsteers4 at gmail.com Sun Mar 14 00:50:26 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 13 Mar 2021 23:50:26 +0000 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <20210313230746.GE979924@highrise.localdomain> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <20210313230746.GE979924@highrise.localdomain> Message-ID: Aah excellent. I'm at work now so cannot test but I assume I should be able to set my forks upstream to your fork and pull upstream master from there? Thank you ? BruceS On Sat, 13 Mar 2021, 23:09 Tobias Boege, wrote: > I just updated my fork at https://gitlab.com/tboege to the latest commit > bcd3b84366ea66 which was announced to the Notification list about 4 hours > ago. Apparently I have access to Beno?t's repository at gitlab. > > Since this is git, you can base any work off the HEAD commit checked out > from any copy of the repository, including mine ? if you can load it. > > Best, > Tobias > > On Sat, 13 Mar 2021, Bruce Steers wrote: > > Could you put a link to a copy of the latest source archive for us to > > download somewhere? > > As like, man, I'm going to start clucking like a junkie without a fix > soon > > ! > > ?? > > > > Hehe only kidding, > > so it looks like the internet is broken ? ? > > > > Benoit , you any good at fixing the internet too? ? > > > > On Sat, 13 Mar 2021, 22:38 Beno?t Minisini, wrote: > > > > > Le 13/03/2021 ? 23:18, Jussi Lahtinen a ?crit : > > > > > > > > https://gitlab.com/it-mna (that's > me) > > > > > > > > > > > > Doesn't work. > > > > > > > > https://gitlab.com/bsteers4 > (that's > > > > Bruce) > > > > > > > > Works. > > > > > > > > https://gitlab.com/christhal > > > > > > > > Works. > > > > > > > > https://gitlab.com/tboege > > > > > > > > Works. > > > > > > > > https://gitlab.com/gambas/gambas < > https://gitlab.com/gambas/gambas> > > > > > > > > Doesn't work. > > > > The same thing with Firefox and Chrome. I think the problem is in > gitlab > > > > db access, maybe some server down. > > > > > > > > > > > > Jussi > > > > > > > > > > It's weirder than that as 'https://gitlab.com/gambas/gambas' works as > > > usual for me. > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sun Mar 14 00:46:27 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 13 Mar 2021 15:46:27 -0800 (PST) Subject: [Gambas-user] Scripter - using Class to define a reference to a not class loaded by the main script In-Reply-To: <1068362706.12025.1615677993411.JavaMail.zimbra@westwoodsvcs.com> References: <2012708375.11896.1615657586578.JavaMail.zimbra@westwoodsvcs.com> <1068362706.12025.1615677993411.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1836151962.12108.1615679187464.JavaMail.zimbra@westwoodsvcs.com> To be more clear Perhaps use ClassDef ClassName or #Script Class ClassName inside a script to do the job or the original Class ClassName The scripter would do the correct translation as it creates the project. This is in reality not very likely to happen very often in a script at all. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 13, 2021, at 3:26 PM, Brian brian at westwoodsvcs.com wrote: > my simple suggestion that inside a script the key word class means start of > class definition > and DefClass is used inside a script for simple class reference, Scripter > translates that to that the correct > Class definition for the compiler and we document the heck out of it in the > Class keyword, as being different in a script. And Perhaps explain why? > > or perhaps a #Script Class classname to do the job. > > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----- On Mar 13, 2021, at 10:30 AM, Beno?t Minisini g4mba5 at gmail.com wrote: > >> Le 13/03/2021 ? 18:46, Brian G a ?crit?: >>> Hi Ben, >>> >>> In Gambas you may define a reference to a class not loaded by main or >>> project component list with: >>> >>> ? ? ?Class eval >>> >>> Which allows the compiler to process references to elements of that class. >>> >>> ? ? ?This of course does not work in scripter as it will interpret this >>> as the definition of a new class beginning. >>> >>> Should a note be added to the CLASS page that this is not supported by >>> the scripter? >>> And indicate how this is used by a script. >>> >>> Or is there a way to identify this as not a script begin class >>> definition through the highlighter. >>> >>> Right now this generates a syntax error missing end class in the script >>> when it occurs. >>> >>> >>> "Failure is the key to success; >>> ?each mistake teaches us something" ?.. Morihei Ueshiba >>> Brian G >>> >>> >> >> This is unfortunate, as "Class xxxx" declaration is the only way to use >> a class not known at compilation time. >> >> (I should have been more cautious with what was done with this scripter >> thing to avoid these kind of problems before being they hit us... You >> see now why I am reluctant to each specific syntax added to it.) >> >> The right thing to do would have been not using "Class" to define a new >> class, but the preprocessor keywords (for example "#Class"). >> >> Alas, because of backward-compatibility, I guess that we must support >> the current use of "Class". >> >> The only idea I can give you is analyzing the script file in two passes: >> >> At first pass, you identify the "Class xxx" and "End Class" lines. >> >> At second pass, every "Class xxx" without a corresponding "End Class" is >> supposed to be a class declaration. Two "End Class" without an >> intermediate "Class xxxx" is a syntax error. >> >> Of course, then you cannot detect that the user forgot the last "End >> Class" keyword. >> >> Note that you can't use the indentation to solve the problem, as >> indentation as no syntax meaning in Gambas - it's not Python! :-) >> >> If you have better ideas, tell me. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From jussi.lahtinen at gmail.com Sun Mar 14 01:14:38 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 14 Mar 2021 02:14:38 +0200 Subject: [Gambas-user] message In-Reply-To: References: Message-ID: Please send a project that demonstrates the problem. Jussi On Sun, Mar 14, 2021 at 1:39 AM Shane wrote: > Hi > > What am I doing wrong with this code > > Public Sub Button4_Click() > > If selected = Null Then > Message("Do some thing else first") > Else > Do stuff here > > Endif > > End > > the message window pops up and then i press ok then it pops up agian > then faults with window already open > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Mar 14 01:14:59 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 14 Mar 2021 11:14:59 +1100 Subject: [Gambas-user] message In-Reply-To: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> Message-ID: <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> Maybe its the way I am Calling it Im using Spinbox.Change event On 14/3/21 11:04 am, Michael Altrogge wrote: > this works fine for me: > > > ??? Dim selected As String = Null > ??? 'Dim selected As String = "4711" > > ??? If selected = Null Then > ??????? Message("Do some thing else first") > ??? Else > ??????? Message("Do stuff here") > ??? Endif > > > > Am 14.03.21 um 00:38 schrieb Shane: >> Hi >> >> ??? What am I doing wrong with this code >> >> Public Sub Button4_Click() >> >> ? If selected = Null Then >> ??? Message("Do some thing else first") >> ? Else >> ? ?? Do stuff here >> >> ? Endif >> >> End >> >> the message window pops up and then i press ok then it pops up agian >> then faults with window already open >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From jussi.lahtinen at gmail.com Sun Mar 14 01:19:30 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 14 Mar 2021 02:19:30 +0200 Subject: [Gambas-user] message In-Reply-To: <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> Message-ID: You are likely doing something wrong, but no one knows without seeing the actual code. Jussi On Sun, Mar 14, 2021 at 2:16 AM Shane wrote: > Maybe its the way I am Calling it Im using Spinbox.Change event > > > On 14/3/21 11:04 am, Michael Altrogge wrote: > > this works fine for me: > > > > > > Dim selected As String = Null > > 'Dim selected As String = "4711" > > > > If selected = Null Then > > Message("Do some thing else first") > > Else > > Message("Do stuff here") > > Endif > > > > > > > > Am 14.03.21 um 00:38 schrieb Shane: > >> Hi > >> > >> What am I doing wrong with this code > >> > >> Public Sub Button4_Click() > >> > >> If selected = Null Then > >> Message("Do some thing else first") > >> Else > >> Do stuff here > >> > >> Endif > >> > >> End > >> > >> the message window pops up and then i press ok then it pops up agian > >> then faults with window already open > >> > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Mar 14 01:21:31 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 14 Mar 2021 11:21:31 +1100 Subject: [Gambas-user] message In-Reply-To: References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> Message-ID: <079993c7-1127-86ed-d2a5-dcba11fa1e3a@gmail.com> looks like when the message box is used it get called twice On 14/3/21 11:19 am, Jussi Lahtinen wrote: > You are likely doing something wrong, but no one knows without seeing > the actual code. > > > Jussi > > On Sun, Mar 14, 2021 at 2:16 AM Shane > wrote: > > Maybe its the way I am Calling it Im using Spinbox.Change event > > > On 14/3/21 11:04 am, Michael Altrogge wrote: > > this works fine for me: > > > > > > ??? Dim selected As String = Null > > ??? 'Dim selected As String = "4711" > > > > ??? If selected = Null Then > > ??????? Message("Do some thing else first") > > ??? Else > > ??????? Message("Do stuff here") > > ??? Endif > > > > > > > > Am 14.03.21 um 00:38 schrieb Shane: > >> Hi > >> > >> ??? What am I doing wrong with this code > >> > >> Public Sub Button4_Click() > >> > >> ? If selected = Null Then > >> ??? Message("Do some thing else first") > >> ? Else > >> ? ?? Do stuff here > >> > >> ? Endif > >> > >> End > >> > >> the message window pops up and then i press ok then it pops up > agian > >> then faults with window already open > >> > >> > >> > >> ----[ 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 buster6seven at gmail.com Sun Mar 14 01:28:25 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 14 Mar 2021 11:28:25 +1100 Subject: [Gambas-user] message In-Reply-To: References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> Message-ID: <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> quick test crash's gambas On 14/3/21 11:19 am, Jussi Lahtinen wrote: > You are likely doing something wrong, but no one knows without seeing > the actual code. > > > Jussi > > On Sun, Mar 14, 2021 at 2:16 AM Shane > wrote: > > Maybe its the way I am Calling it Im using Spinbox.Change event > > > On 14/3/21 11:04 am, Michael Altrogge wrote: > > this works fine for me: > > > > > > ??? Dim selected As String = Null > > ??? 'Dim selected As String = "4711" > > > > ??? If selected = Null Then > > ??????? Message("Do some thing else first") > > ??? Else > > ??????? Message("Do stuff here") > > ??? Endif > > > > > > > > Am 14.03.21 um 00:38 schrieb Shane: > >> Hi > >> > >> ??? What am I doing wrong with this code > >> > >> Public Sub Button4_Click() > >> > >> ? If selected = Null Then > >> ??? Message("Do some thing else first") > >> ? Else > >> ? ?? Do stuff here > >> > >> ? Endif > >> > >> End > >> > >> the message window pops up and then i press ok then it pops up > agian > >> then faults with window already open > >> > >> > >> > >> ----[ 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: message_test-0.0.1.tar.gz Type: application/gzip Size: 11601 bytes Desc: not available URL: From bsteers4 at gmail.com Sun Mar 14 01:37:17 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 14 Mar 2021 00:37:17 +0000 Subject: [Gambas-user] message In-Reply-To: <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> Message-ID: I'm at work so cannot test but try.. Object.Lock(SpinBox1) Message("message") Object.Unlock(SpinBox1) That will stop spin box triggering more events when the msg is open. BruceS On Sun, 14 Mar 2021, 00:29 Shane, wrote: > quick test crash's gambas > On 14/3/21 11:19 am, Jussi Lahtinen wrote: > > You are likely doing something wrong, but no one knows without seeing the > actual code. > > > Jussi > > On Sun, Mar 14, 2021 at 2:16 AM Shane wrote: > >> Maybe its the way I am Calling it Im using Spinbox.Change event >> >> >> On 14/3/21 11:04 am, Michael Altrogge wrote: >> > this works fine for me: >> > >> > >> > Dim selected As String = Null >> > 'Dim selected As String = "4711" >> > >> > If selected = Null Then >> > Message("Do some thing else first") >> > Else >> > Message("Do stuff here") >> > Endif >> > >> > >> > >> > Am 14.03.21 um 00:38 schrieb Shane: >> >> Hi >> >> >> >> What am I doing wrong with this code >> >> >> >> Public Sub Button4_Click() >> >> >> >> If selected = Null Then >> >> Message("Do some thing else first") >> >> Else >> >> Do stuff here >> >> >> >> Endif >> >> >> >> End >> >> >> >> the message window pops up and then i press ok then it pops up agian >> >> then faults with window already open >> >> >> >> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> ----[ 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 buster6seven at gmail.com Sun Mar 14 02:02:43 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 14 Mar 2021 12:02:43 +1100 Subject: [Gambas-user] message In-Reply-To: References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> Message-ID: <547d8ce0-09b7-0e6b-a6a3-5992a334f5a2@gmail.com> No it didn't work the spinbox just kept incrementing each time the window is closed and it just reopens but there are no errors On 14/3/21 11:37 am, Bruce Steers wrote: > I'm at work so cannot test but try.. > > Object.Lock(SpinBox1) > Message("message") > Object.Unlock(SpinBox1) > > That will stop spin box triggering more events when the msg is open. > > BruceS > > On Sun, 14 Mar 2021, 00:29 Shane, > wrote: > > quick test crash's gambas > > On 14/3/21 11:19 am, Jussi Lahtinen wrote: >> You are likely doing something wrong, but no one knows without >> seeing the actual code. >> >> >> Jussi >> >> On Sun, Mar 14, 2021 at 2:16 AM Shane > > wrote: >> >> Maybe its the way I am Calling it Im using Spinbox.Change event >> >> >> On 14/3/21 11:04 am, Michael Altrogge wrote: >> > this works fine for me: >> > >> > >> > ??? Dim selected As String = Null >> > ??? 'Dim selected As String = "4711" >> > >> > ??? If selected = Null Then >> > ??????? Message("Do some thing else first") >> > ??? Else >> > ??????? Message("Do stuff here") >> > ??? Endif >> > >> > >> > >> > Am 14.03.21 um 00:38 schrieb Shane: >> >> Hi >> >> >> >> ??? What am I doing wrong with this code >> >> >> >> Public Sub Button4_Click() >> >> >> >> ? If selected = Null Then >> >> ??? Message("Do some thing else first") >> >> ? Else >> >> ? ?? Do stuff here >> >> >> >> ? Endif >> >> >> >> End >> >> >> >> the message window pops up and then i press ok then it >> pops up agian >> >> then faults with window already open >> >> >> >> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette >> ]---- >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette >> ]---- >> >> >> ----[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 jussi.lahtinen at gmail.com Sun Mar 14 02:09:35 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 14 Mar 2021 03:09:35 +0200 Subject: [Gambas-user] message In-Reply-To: <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> Message-ID: The message() seems to trigger the previous mouse click again and thus the whole thing happens again ad infinitum. If you give a value for the spinbox without using increase/decrease buttons, then everything works fine. This is a bug. Jussi On Sun, Mar 14, 2021 at 2:29 AM Shane wrote: > quick test crash's gambas > On 14/3/21 11:19 am, Jussi Lahtinen wrote: > > You are likely doing something wrong, but no one knows without seeing the > actual code. > > > Jussi > > On Sun, Mar 14, 2021 at 2:16 AM Shane wrote: > >> Maybe its the way I am Calling it Im using Spinbox.Change event >> >> >> On 14/3/21 11:04 am, Michael Altrogge wrote: >> > this works fine for me: >> > >> > >> > Dim selected As String = Null >> > 'Dim selected As String = "4711" >> > >> > If selected = Null Then >> > Message("Do some thing else first") >> > Else >> > Message("Do stuff here") >> > Endif >> > >> > >> > >> > Am 14.03.21 um 00:38 schrieb Shane: >> >> Hi >> >> >> >> What am I doing wrong with this code >> >> >> >> Public Sub Button4_Click() >> >> >> >> If selected = Null Then >> >> Message("Do some thing else first") >> >> Else >> >> Do stuff here >> >> >> >> Endif >> >> >> >> End >> >> >> >> the message window pops up and then i press ok then it pops up agian >> >> then faults with window already open >> >> >> >> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> ----[ 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 bsteers4 at gmail.com Sun Mar 14 03:32:49 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 14 Mar 2021 02:32:49 +0000 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <20210313230746.GE979924@highrise.localdomain> Message-ID: Thank you again Tobias that worked a treat :) Finally i have closure on the bug hunt result :) BruceS On Sat, 13 Mar 2021 at 23:50, Bruce Steers wrote: > Aah excellent. I'm at work now so cannot test but I assume I should be > able to set my forks upstream to your fork and pull upstream master from > there? > > Thank you ? > BruceS > > > On Sat, 13 Mar 2021, 23:09 Tobias Boege, wrote: > >> I just updated my fork at https://gitlab.com/tboege to the latest commit >> bcd3b84366ea66 which was announced to the Notification list about 4 hours >> ago. Apparently I have access to Beno?t's repository at gitlab. >> >> Since this is git, you can base any work off the HEAD commit checked out >> from any copy of the repository, including mine ? if you can load it. >> >> Best, >> Tobias >> >> On Sat, 13 Mar 2021, Bruce Steers wrote: >> > Could you put a link to a copy of the latest source archive for us to >> > download somewhere? >> > As like, man, I'm going to start clucking like a junkie without a fix >> soon >> > ! >> > ?? >> > >> > Hehe only kidding, >> > so it looks like the internet is broken ? ? >> > >> > Benoit , you any good at fixing the internet too? ? >> > >> > On Sat, 13 Mar 2021, 22:38 Beno?t Minisini, wrote: >> > >> > > Le 13/03/2021 ? 23:18, Jussi Lahtinen a ?crit : >> > > > >> > > > https://gitlab.com/it-mna (that's >> me) >> > > > >> > > > >> > > > Doesn't work. >> > > > >> > > > https://gitlab.com/bsteers4 >> (that's >> > > > Bruce) >> > > > >> > > > Works. >> > > > >> > > > https://gitlab.com/christhal >> > > > >> > > > Works. >> > > > >> > > > https://gitlab.com/tboege >> > > > >> > > > Works. >> > > > >> > > > https://gitlab.com/gambas/gambas < >> https://gitlab.com/gambas/gambas> >> > > > >> > > > Doesn't work. >> > > > The same thing with Firefox and Chrome. I think the problem is in >> gitlab >> > > > db access, maybe some server down. >> > > > >> > > > >> > > > Jussi >> > > > >> > > >> > > It's weirder than that as 'https://gitlab.com/gambas/gambas' works as >> > > usual for me. >> > > >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Mar 14 04:18:08 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 14 Mar 2021 14:18:08 +1100 Subject: [Gambas-user] message In-Reply-To: References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> Message-ID: <40a1f2f5-afa9-b2cf-6a70-5994bd560bb4@gmail.com> Ok Thanks Hope Some Can Fix It cheers Shane On 14/3/21 12:09 pm, Jussi Lahtinen wrote: > The message() seems to trigger the previous mouse click again and thus > the whole thing happens again ad infinitum. > If you give a value for the spinbox without using increase/decrease > buttons, then everything works fine. > This is a bug. > > Jussi > > On Sun, Mar 14, 2021 at 2:29 AM Shane > wrote: > > quick test crash's gambas > > On 14/3/21 11:19 am, Jussi Lahtinen wrote: >> You are likely doing something wrong, but no one knows without >> seeing the actual code. >> >> >> Jussi >> >> On Sun, Mar 14, 2021 at 2:16 AM Shane > > wrote: >> >> Maybe its the way I am Calling it Im using Spinbox.Change event >> >> >> On 14/3/21 11:04 am, Michael Altrogge wrote: >> > this works fine for me: >> > >> > >> > ??? Dim selected As String = Null >> > ??? 'Dim selected As String = "4711" >> > >> > ??? If selected = Null Then >> > ??????? Message("Do some thing else first") >> > ??? Else >> > ??????? Message("Do stuff here") >> > ??? Endif >> > >> > >> > >> > Am 14.03.21 um 00:38 schrieb Shane: >> >> Hi >> >> >> >> ??? What am I doing wrong with this code >> >> >> >> Public Sub Button4_Click() >> >> >> >> ? If selected = Null Then >> >> ??? Message("Do some thing else first") >> >> ? Else >> >> ? ?? Do stuff here >> >> >> >> ? Endif >> >> >> >> End >> >> >> >> the message window pops up and then i press ok then it >> pops up agian >> >> then faults with window already open >> >> >> >> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette >> ]---- >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette >> ]---- >> >> >> ----[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 g4mba5 at gmail.com Sun Mar 14 07:48:34 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 14 Mar 2021 07:48:34 +0100 Subject: [Gambas-user] message In-Reply-To: <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> Message-ID: <21bb31f6-20b8-6acb-0017-686676ad49e9@gmail.com> Le 14/03/2021 ? 01:28, Shane a ?crit?: > quick test crash's gambas > The weird behavior comes from the fact that the dialog eats the MouseUp event. The SpinBox automatically repeats incrementing (or decrementing) between MouseDown and MouseUp with a Timer. As it does not see the MouseUp, it raises the event indefinitely. The fault is in the dialog management, not the SpinBox. Regards, -- Beno?t Minisini From chrisml at deganius.de Sun Mar 14 09:30:48 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 14 Mar 2021 09:30:48 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> Message-ID: <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> Hi, Am 13.03.21 um 22:39 schrieb Michael N. Altrogge: > https://gitlab.com/it-mna (that's me) I get a 404 ! > https://gitlab.com/bsteers4 (that's Bruce) Ok > https://gitlab.com/christhal Ok > https://gitlab.com/tboege Ok > but i CAN NOT reach: > > https://gitlab.com/gambas/gambas Ok ------------------------------------------ I think they mirror to different servers for load balancing and there's sth wrong with that. We should tell the boys and girls of Gitlab. Does anyone knows if they have a public monitor? 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 psaux7 at tuta.io Sun Mar 14 09:43:08 2021 From: psaux7 at tuta.io (psaux7 at tuta.io) Date: Sun, 14 Mar 2021 09:43:08 +0100 (CET) Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> References: <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> Message-ID: gitlab problem? cloudflare problem? (accidentally) switched to a private repository? launchpad also has problems accessing it: https://code.launchpad.net/~gambas-team/+git/gambas#repository-import-details https://www.uptrends.com/tools/uptime?toolRequestGuid=0f02f068-fae7-47c9-8357-b1db60bb60f0 From chrisml at deganius.de Sun Mar 14 10:30:26 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 14 Mar 2021 10:30:26 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> Message-ID: <75be90b8-5c1f-4e1c-0347-3594aa241c03@deganius.de> Am 14.03.21 um 09:30 schrieb Christof Thalhofer: > Does anyone knows if they have a public monitor? Yes: https://status.gitlab.com/ But they say everything is fine. 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 Sun Mar 14 11:48:44 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 14 Mar 2021 10:48:44 +0000 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <75be90b8-5c1f-4e1c-0347-3594aa241c03@deganius.de> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> <75be90b8-5c1f-4e1c-0347-3594aa241c03@deganius.de> Message-ID: The pattern i am seeing is the people who are on the gambas gitlab team listed as maintainers. authorised to access/edit So Ben Chrs and Toby Maybe it's a gitlab auth thing gone wrong? On Sun, 14 Mar 2021 at 09:31, Christof Thalhofer wrote: > Am 14.03.21 um 09:30 schrieb Christof Thalhofer: > > > Does anyone knows if they have a public monitor? > > Yes: > https://status.gitlab.com/ > > But they say everything is fine. > > 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 Sun Mar 14 14:11:59 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 14 Mar 2021 13:11:59 +0000 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> Message-ID: On Sun, 14 Mar 2021 at 08:31, Christof Thalhofer wrote: > Hi, > > Am 13.03.21 um 22:39 schrieb Michael N. Altrogge: > > > https://gitlab.com/it-mna (that's me) > > I get a 404 ! > > Michaels repository is set to "Private" so only him and i can see it. It's almost as if the same thing has happened to gambas/gambas , if it was set to private then only the official maintainers could see it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Mar 14 15:47:13 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 14 Mar 2021 15:47:13 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> Message-ID: <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> Le 14/03/2021 ? 14:11, Bruce Steers a ?crit?: > > > On Sun, 14 Mar 2021 at 08:31, Christof Thalhofer > wrote: > > Hi, > > Am 13.03.21 um 22:39 schrieb Michael N. Altrogge: > > > https://gitlab.com/it-mna (that's me) > > I get a 404 ! > > > Michaels repository is set to "Private" so only him and i can see it. > It's almost as if the same thing has happened to gambas/gambas , if it > was set to private then only the official maintainers could see it. > You are right, the Gambas project is set to private. But I didn't touch anything about that since the beginning... Did GitLab change anything about how they understand their own authorization system? -- Beno?t Minisini From g4mba5 at gmail.com Sun Mar 14 15:48:31 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 14 Mar 2021 15:48:31 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> Message-ID: <57c09dc9-3b24-5430-e53f-0785088d66c8@gmail.com> Le 14/03/2021 ? 15:47, Beno?t Minisini a ?crit?: > Le 14/03/2021 ? 14:11, Bruce Steers a ?crit?: >> >> >> On Sun, 14 Mar 2021 at 08:31, Christof Thalhofer > > wrote: >> >> ??? Hi, >> >> ??? Am 13.03.21 um 22:39 schrieb Michael N. Altrogge: >> >> ???? > https://gitlab.com/it-mna (that's me) >> >> ??? I get a 404 ! >> >> >> Michaels repository is set to "Private" so only him and i can see it. >> It's almost as if the same thing has happened to gambas/gambas , if it >> was set to private then only the official maintainers could see it. >> > > You are right, the Gambas project is set to private. > > But I didn't touch anything about that since the beginning... > > Did GitLab change anything about how they understand their own > authorization system? > Moreover, I cannot change the project visibility to "public". Only "private" is possible. -- Beno?t Minisini From bsteers4 at gmail.com Sun Mar 14 17:33:36 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 14 Mar 2021 16:33:36 +0000 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> Message-ID: I looked up what i could, seems there's a few bugs in gitlab. 2 of note were instances of people setting their repos to private but then not being able to set them to public again. and instances of a fork getting set to private that pushed the setting the wrong way back to the main repo. Most issues i read about claimed the "api" could fix it where the web interface does not, but some claimed that didn't even work. On Sun, 14 Mar 2021 at 14:48, Beno?t Minisini wrote: > Le 14/03/2021 ? 14:11, Bruce Steers a ?crit : > > > > > > On Sun, 14 Mar 2021 at 08:31, Christof Thalhofer > > wrote: > > > > Hi, > > > > Am 13.03.21 um 22:39 schrieb Michael N. Altrogge: > > > > > https://gitlab.com/it-mna (that's me) > > > > I get a 404 ! > > > > > > Michaels repository is set to "Private" so only him and i can see it. > > It's almost as if the same thing has happened to gambas/gambas , if it > > was set to private then only the official maintainers could see it. > > > > You are right, the Gambas project is set to private. > > But I didn't touch anything about that since the beginning... > > Did GitLab change anything about how they understand their own > authorization system? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Mar 14 18:37:52 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 14 Mar 2021 18:37:52 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> Message-ID: <31bbbdcc-9dde-569d-5648-f5c6ebc45896@gmail.com> Le 14/03/2021 ? 17:33, Bruce Steers a ?crit?: > I looked up what i could, seems there's a few bugs in gitlab. > 2 of note were instances of people setting their repos to private but > then not being able to set them to public again. > > and instances of a fork getting set to private that pushed the setting > the wrong way back to the main repo. > Most issues i read about claimed the "api" could fix it where the web > interface does not, but some claimed that didn't even work. > > But I never changed the status of the project. It was public not so long ago. When you was still able to pull I guess... -- Beno?t Minisini From vuott at tutanota.com Sun Mar 14 18:39:50 2021 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sun, 14 Mar 2021 18:39:50 +0100 (CET) Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> Message-ID: Hello, if I want to update my Gambas, when I send this command from the Terminal: ?? ~$ git clone --depth=1 https://gitlab.com/gambas/gambas.git gambasdevel I get a prompt to enter the "Username" text: ?? Clone in 'gambasdevel' in corso... ?? Username for 'https://gitlab.com': it waits for me to write a text..... regards ?? -- Inviato in modo sicuro con Tutanota. Ottieni la tua casella di posta elettronica crittografata e senza pubblicit?: https://tutanota.com 14 mar 2021, 17:33 da bsteers4 at gmail.com: > I looked up what i could, seems there's a few bugs in gitlab. > 2 of note were instances of people setting their repos to private but then not being able to set them to public again. > > and instances of a fork getting set to private that pushed the setting the wrong way back to the main repo. > > Most issues i read about claimed the "api" could fix it where the web interface does not, but some claimed that didn't even work. > > > > On Sun, 14 Mar 2021 at 14:48, Beno?t Minisini <> g4mba5 at gmail.com> > wrote: > >> Le 14/03/2021 ? 14:11, Bruce Steers a ?crit?: >> > >> > >> > On Sun, 14 Mar 2021 at 08:31, Christof Thalhofer <>> chrisml at deganius.de>> >> > > chrisml at deganius.de>> >> wrote: >> > >> >? ? ?Hi, >> > >> >? ? ?Am 13.03.21 um 22:39 schrieb Michael N. Altrogge: >> > >> >? ? ? > >> https://gitlab.com/it-mna>> <>> https://gitlab.com/it-mna>> > (that's me) >> > >> >? ? ?I get a 404 ! >> > >> > >> > Michaels repository is set to "Private" so only him and i can see it. >> > It's almost as if the same thing has happened to gambas/gambas , if it >> > was set to private then only the official maintainers could see it. >> > >> >> You are right, the Gambas project is set to private. >> >> But I didn't touch anything about that since the beginning... >> >> Did GitLab change anything about how they understand their own >> authorization system? >> >> -- >> Beno?t Minisini >> >> ----[ >> http://gambaswiki.org/wiki/doc/netiquette>> ]---- >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Mar 14 18:46:02 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 14 Mar 2021 18:46:02 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <31bbbdcc-9dde-569d-5648-f5c6ebc45896@gmail.com> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> <31bbbdcc-9dde-569d-5648-f5c6ebc45896@gmail.com> Message-ID: <5e82bc13-8391-ac29-0e44-00b4295b4e77@gmail.com> Le 14/03/2021 ? 18:37, Beno?t Minisini a ?crit?: > Le 14/03/2021 ? 17:33, Bruce Steers a ?crit?: >> I looked up what i could, seems there's a few bugs in gitlab. >> 2 of note were instances of people setting their repos to private but >> then not being able to set them to public again. >> >> and instances of a fork getting set to private that pushed the setting >> the wrong way back to the main repo. >> Most issues i read about claimed the "api" could fix it where the web >> interface does not, but some claimed that didn't even work. >> >> > > But I never changed the status of the project. It was public not so long > ago. When you was still able to pull I guess... > OK, the problem should be fixed now, the repository is now public again. The group of the project (named 'Gambas' too) was 'private', and hence all its projects. I switched the group to 'public', and was able then to switch the project to 'public' again. I have still no idea what happened... -- Beno?t Minisini From tobs at taboege.de Sun Mar 14 18:50:29 2021 From: tobs at taboege.de (Tobias Boege) Date: Sun, 14 Mar 2021 18:50:29 +0100 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> Message-ID: <20210314175029.GA3601735@highrise.localdomain> On Sun, 14 Mar 2021, vuott--- via User wrote: > Hello, > if I want to update my Gambas, when I send this command from the Terminal: > > ?? ~$ git clone --depth=1 https://gitlab.com/gambas/gambas.git gambasdevel > > I get a prompt to enter the "Username" text: > > ?? Clone in 'gambasdevel' in corso... > ?? Username for 'https://gitlab.com': > > it waits for me to write a text..... > Right, I noticed this, too, when I pulled from the official repository yesterday. I was almost sure that I didn't have to authenticate for read- only access before (only when I pushed directly to master) and now this makes sense if the repository has been turned secret/private on (by?) Gitlab. The prompt wants you to type the username and password of someone who is allowed to see the repository. Best, Tobias From vuott at tutanota.com Sun Mar 14 19:15:02 2021 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sun, 14 Mar 2021 19:15:02 +0100 (CET) Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <5e82bc13-8391-ac29-0e44-00b4295b4e77@gmail.com> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> <31bbbdcc-9dde-569d-5648-f5c6ebc45896@gmail.com> <5e82bc13-8391-ac29-0e44-00b4295b4e77@gmail.com> Message-ID: Ok, yes, now it works. -- Inviato in modo sicuro con Tutanota. Ottieni la tua casella di posta elettronica crittografata e senza pubblicit?: https://tutanota.com 14 mar 2021, 18:46 da g4mba5 at gmail.com: > Le 14/03/2021 ? 18:37, Beno?t Minisini a ?crit?: > >> Le 14/03/2021 ? 17:33, Bruce Steers a ?crit?: >> >>> I looked up what i could, seems there's a few bugs in gitlab. >>> 2 of note were instances of people setting their repos to private but then not being able to set them to public again. >>> >>> and instances of a fork getting set to private that pushed the setting the wrong way back to the main repo. >>> Most issues i read about claimed the "api" could fix it where the web interface does not, but some claimed that didn't even work. >>> >> >> But I never changed the status of the project. It was public not so long ago. When you was still able to pull I guess... >> > > OK, the problem should be fixed now, the repository is now public again. > > The group of the project (named 'Gambas' too) was 'private', and hence all its projects. I switched the group to 'public', and was able then to switch the project to 'public' again. > > I have still no idea what happened... > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Mar 14 19:34:36 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 14 Mar 2021 18:34:36 +0000 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <5e82bc13-8391-ac29-0e44-00b4295b4e77@gmail.com> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> <31bbbdcc-9dde-569d-5648-f5c6ebc45896@gmail.com> <5e82bc13-8391-ac29-0e44-00b4295b4e77@gmail.com> Message-ID: On Sun, 14 Mar 2021 at 17:47, Beno?t Minisini wrote: > Le 14/03/2021 ? 18:37, Beno?t Minisini a ?crit : > > Le 14/03/2021 ? 17:33, Bruce Steers a ?crit : > >> I looked up what i could, seems there's a few bugs in gitlab. > >> 2 of note were instances of people setting their repos to private but > >> then not being able to set them to public again. > >> > >> and instances of a fork getting set to private that pushed the setting > >> the wrong way back to the main repo. > >> Most issues i read about claimed the "api" could fix it where the web > >> interface does not, but some claimed that didn't even work. > >> > >> > > > > But I never changed the status of the project. It was public not so long > > ago. When you was still able to pull I guess... > > > > OK, the problem should be fixed now, the repository is now public again. > > The group of the project (named 'Gambas' too) was 'private', and hence > all its projects. I switched the group to 'public', and was able then to > switch the project to 'public' again. > > I have still no idea what happened... > > -- > Beno?t Minisini > Yay , Thank you Ben you are once again our hero :) Weird ghosts in the machine? I'm guessing gitlab made a recent change that linked the group setting to the main page? the conspiracy theorist in me wants to say it's gaslighting, especially when i see changes in my code i do not remember doing ;) Thank god you found the problem , i was starting to worry , my options were swap to daily builds with none of my tweaks or keep my tweaks and no more updates :'( Much respect :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Mar 14 20:51:23 2021 From: buster6seven at gmail.com (Shane) Date: Mon, 15 Mar 2021 06:51:23 +1100 Subject: [Gambas-user] message In-Reply-To: <21bb31f6-20b8-6acb-0017-686676ad49e9@gmail.com> References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> <21bb31f6-20b8-6acb-0017-686676ad49e9@gmail.com> Message-ID: <9611ab8e-1a30-8dc9-0ce7-d1ff91fffcc4@gmail.com> So is there a way to mitigate this Cheers On 14/3/21 5:48 pm, Beno?t Minisini wrote: > Le 14/03/2021 ? 01:28, Shane a ?crit?: >> quick test crash's gambas >> > > The weird behavior comes from the fact that the dialog eats the > MouseUp event. The SpinBox automatically repeats incrementing (or > decrementing) between MouseDown and MouseUp with a Timer. As it does > not see the MouseUp, it raises the event indefinitely. > > The fault is in the dialog management, not the SpinBox. > > Regards, > From g4mba5 at gmail.com Sun Mar 14 21:19:24 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 14 Mar 2021 21:19:24 +0100 Subject: [Gambas-user] message In-Reply-To: <9611ab8e-1a30-8dc9-0ce7-d1ff91fffcc4@gmail.com> References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> <21bb31f6-20b8-6acb-0017-686676ad49e9@gmail.com> <9611ab8e-1a30-8dc9-0ce7-d1ff91fffcc4@gmail.com> Message-ID: Le 14/03/2021 ? 20:51, Shane a ?crit?: > So is there a way to mitigate this > > Cheers > I am searching... -- Beno?t Minisini From g4mba5 at gmail.com Sun Mar 14 22:32:46 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 14 Mar 2021 22:32:46 +0100 Subject: [Gambas-user] message In-Reply-To: References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> <21bb31f6-20b8-6acb-0017-686676ad49e9@gmail.com> <9611ab8e-1a30-8dc9-0ce7-d1ff91fffcc4@gmail.com> Message-ID: <2e6d2338-122a-b51b-3eb6-0ed0e0888a8a@gmail.com> Le 14/03/2021 ? 21:19, Beno?t Minisini a ?crit?: > Le 14/03/2021 ? 20:51, Shane a ?crit?: >> So is there a way to mitigate this >> >> Cheers >> > > I am searching... > OK, it should be fixed with the last commit. -- Beno?t Minisini From buster6seven at gmail.com Mon Mar 15 07:24:47 2021 From: buster6seven at gmail.com (Shane) Date: Mon, 15 Mar 2021 17:24:47 +1100 Subject: [Gambas-user] message In-Reply-To: <2e6d2338-122a-b51b-3eb6-0ed0e0888a8a@gmail.com> References: <2fb8de58-6e02-1582-11cd-9e31700c486a@it-mna.de> <87d33fb7-5208-6d7b-ce96-5036258c41c1@gmail.com> <4b9a0b57-20bb-c2b0-4a39-2d7ee109f118@gmail.com> <21bb31f6-20b8-6acb-0017-686676ad49e9@gmail.com> <9611ab8e-1a30-8dc9-0ce7-d1ff91fffcc4@gmail.com> <2e6d2338-122a-b51b-3eb6-0ed0e0888a8a@gmail.com> Message-ID: Thanks Beno?t On 15/3/21 8:32 am, Beno?t Minisini wrote: > Le 14/03/2021 ? 21:19, Beno?t Minisini a ?crit?: >> Le 14/03/2021 ? 20:51, Shane a ?crit?: >>> So is there a way to mitigate this >>> >>> Cheers >>> >> >> I am searching... >> > > OK, it should be fixed with the last commit. > From gambas at cd-bahia.com Mon Mar 15 08:51:04 2021 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Mon, 15 Mar 2021 08:51:04 +0100 Subject: [Gambas-user] Window size fitting Message-ID: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Hi, what do I do wrong: I make a window bigger than the monitor size, works fine with scrollbars, set AutoResize to True. But it does not fit the content to the window, also when I set Arrangement to Fill. Twist in my brain? I normally program on a PC with a bigger monitor, but then get surprised when I see the result on a laptop - doesn't fit. Grateful for any help, Dag From bagonergi at gmail.com Mon Mar 15 09:41:23 2021 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 15 Mar 2021 09:41:23 +0100 Subject: [Gambas-user] Window size fitting In-Reply-To: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: Il giorno lun 15 mar 2021 alle ore 08:57 Dag Jarle Nerland Johansen - Gambas ha scritto: > Hi, > what do I do wrong: > I make a window bigger than the monitor size, works fine with > scrollbars, set AutoResize to True. > But it does not fit the content to the window, also when I set > Arrangement to Fill. > Twist in my brain? > I normally program on a PC with a bigger monitor, but then get surprised > when I see the result on a laptop - doesn't fit. > Grateful for any help, > Dag > you have some possibilities or start with some small size and then bring the window to: Me.Maximized = True Or: Private $iWidth As Integer = Screen.AvailableWidth Private $iHeight As Integer = Screen.AvailableHeight Public Sub Form_Activate() Me.w = ($iWidth - 100) Me.h = ($iHeight - 100) Me.Center End or ... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Mar 15 09:49:14 2021 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 15 Mar 2021 09:49:14 +0100 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: I forgot, Autoresize adapts the window to the content, not to the screen Regards > Gianluigi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Mon Mar 15 09:55:37 2021 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Mon, 15 Mar 2021 09:55:37 +0100 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: <2ba1350d-db9c-9608-9168-d62075a33f99@cd-bahia.com> Thank you. Also for the tip about resizing. Regards, Dag Am 15.03.21 um 09:41 schrieb Gianluigi: > > > Il giorno lun 15 mar 2021 alle ore 08:57 Dag Jarle Nerland Johansen - > Gambas > ha scritto: > > Hi, > what do I do wrong: > I make a window bigger than the monitor size, works fine with > scrollbars, set AutoResize to True. > But it does not fit the content to the window, also when I set > Arrangement to Fill. > Twist in my brain? > I normally program on a PC with a bigger monitor, but then get > surprised > when I see the result on a laptop - doesn't fit. > Grateful for any help, > Dag > > > you have some possibilities or start with some small size and then > bring the window to: > > Me.Maximized = True > > Or: > > Private $iWidth As Integer = Screen.AvailableWidth > Private $iHeight As Integer = Screen.AvailableHeight > > Public Sub Form_Activate() > > ? Me.w = ($iWidth - 100) > ? Me.h = ($iHeight - 100) > ? Me.Center > > End > > or ... > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Mon Mar 15 10:21:37 2021 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Mon, 15 Mar 2021 10:21:37 +0100 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: Am 15.03.21 um 09:41 schrieb Gianluigi: > > > Il giorno lun 15 mar 2021 alle ore 08:57 Dag Jarle Nerland Johansen - > Gambas > ha scritto: > > Hi, > what do I do wrong: > I make a window bigger than the monitor size, works fine with > scrollbars, set AutoResize to True. > But it does not fit the content to the window, also when I set > Arrangement to Fill. > Twist in my brain? > I normally program on a PC with a bigger monitor, but then get > surprised > when I see the result on a laptop - doesn't fit. > Grateful for any help, > Dag > > > you have some possibilities or start with some small size and then > bring the window to: > > Me.Maximized = True > > Or: > > Private $iWidth As Integer = Screen.AvailableWidth > Private $iHeight As Integer = Screen.AvailableHeight > > Public Sub Form_Activate() > > ? Me.w = ($iWidth - 100) > ? Me.h = ($iHeight - 100) > ? Me.Center > > End > > or ... > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Hi again, sorry doesn't change anything. Is there any possibility to set scrollbars on the window? I can see only a part of the window I programmed on a monitor with higher resolutuion 1920x1080, and my laptop has only 1366x768. The problem is, I have a LOT of fields on that window I need to see. Regards, Dag -------------- next part -------------- An HTML attachment was scrubbed... URL: From denisc at exemail.com.au Mon Mar 15 12:11:00 2021 From: denisc at exemail.com.au (Denis Crowther) Date: Mon, 15 Mar 2021 22:11:00 +1100 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: <9c0eabb3-4595-555d-b849-c8db01372f26@exemail.com.au> Then probably the form "Arrangement" and the controls "Expand" properties are what you'll need. Regards Denis On 15/3/21 9:59 pm, Dag Jarle Nerland Johansen - Gambas wrote: > Hi, thank you Denis. > I did the tutorial, will see later if it helps on the laptop, on the PC > right now. > I have already used a lot of containers and Hsplit and VSsplit, perhaps > I got a wrong start somewhere. > Regards, > Dag > > Am 15.03.21 um 11:41 schrieb Denis Crowther: >> >> You'll need to discover "Containers". >> >> This article >> https://kalaharix.wordpress.com/gambas/using-gambas-containers/ >> >> for the general idea and then the Expanding Forms Example in the >> Software Farm helped me heaps. >> >> Regards >> Denis >> >> On 15/3/21 8:21 pm, Dag Jarle Nerland Johansen - Gambas wrote: >>> >>> >>> Am 15.03.21 um 09:41 schrieb Gianluigi: >>>> >>>> >>>> Il giorno lun 15 mar 2021 alle ore 08:57 Dag Jarle Nerland Johansen >>>> - Gambas > ha scritto: >>>> >>>> ??? Hi, >>>> ??? what do I do wrong: >>>> ??? I make a window bigger than the monitor size, works fine with >>>> ??? scrollbars, set AutoResize to True. >>>> ??? But it does not fit the content to the window, also when I set >>>> ??? Arrangement to Fill. >>>> ??? Twist in my brain? >>>> ??? I normally program on a PC with a bigger monitor, but then get >>>> ??? surprised >>>> ??? when I see the result on a laptop - doesn't fit. >>>> ??? Grateful for any help, >>>> ??? Dag >>>> >>>> >>>> you have some possibilities or start with some small size and then >>>> bring the window to: >>>> >>>> Me.Maximized = True >>>> >>>> Or: >>>> >>>> Private $iWidth As Integer = Screen.AvailableWidth >>>> Private $iHeight As Integer = Screen.AvailableHeight >>>> >>>> Public Sub Form_Activate() >>>> >>>> ? Me.w = ($iWidth - 100) >>>> ? Me.h = ($iHeight - 100) >>>> ? Me.Center >>>> >>>> End >>>> >>>> or ... >>>> >>>> Regards >>>> Gianluigi >>>> >>>> ----[http://gambaswiki.org/wiki/doc/netiquette? ]---- >>> Hi again, >>> sorry doesn't change anything. >>> Is there any possibility to set scrollbars on the window? >>> I can see only a part of the window I programmed on a monitor with >>> higher resolutuion 1920x1080, >>> and my laptop has only 1366x768. >>> The problem is, I have a LOT of fields on that window I need to see. >>> Regards, >>> Dag >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> > From bsteers4 at gmail.com Mon Mar 15 12:14:03 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 15 Mar 2021 11:14:03 +0000 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: No to window scrollbars , windows do not have that they must be added. ScrollView can be a pain when just how AutoResize, Expand and Arrangemenet work and effect objects isn't FULLY understood. (I do not claim to fully understand this either and often have problems making a whole window scroll) It's probably a case of playing with the AutoResize/Expand/Arrangement properties of the ScrollView/Window/Objects. Personally I think you need an alternative layout. Having so many controls it's bigger than your screen isn't really ideal. My suggestions would be one of the following.... * Make all the controls smaller. * Handle all your fields in a GridView or something else with a built in scrollbar. * make a TabPanel and split the fields into 2 pages BruceS On Mon, 15 Mar 2021 at 09:22, Dag Jarle Nerland Johansen - Gambas < gambas at cd-bahia.com> wrote: > > > Am 15.03.21 um 09:41 schrieb Gianluigi: > > > > Il giorno lun 15 mar 2021 alle ore 08:57 Dag Jarle Nerland Johansen - > Gambas ha scritto: > >> Hi, >> what do I do wrong: >> I make a window bigger than the monitor size, works fine with >> scrollbars, set AutoResize to True. >> But it does not fit the content to the window, also when I set >> Arrangement to Fill. >> Twist in my brain? >> I normally program on a PC with a bigger monitor, but then get surprised >> when I see the result on a laptop - doesn't fit. >> Grateful for any help, >> Dag >> > > you have some possibilities or start with some small size and then bring > the window to: > > Me.Maximized = True > > Or: > > Private $iWidth As Integer = Screen.AvailableWidth > Private $iHeight As Integer = Screen.AvailableHeight > > Public Sub Form_Activate() > > Me.w = ($iWidth - 100) > Me.h = ($iHeight - 100) > Me.Center > > End > > or ... > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Hi again, > sorry doesn't change anything. > Is there any possibility to set scrollbars on the window? > I can see only a part of the window I programmed on a monitor with higher > resolutuion 1920x1080, > and my laptop has only 1366x768. > The problem is, I have a LOT of fields on that window I need to see. > Regards, > Dag > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From denisc at exemail.com.au Mon Mar 15 11:43:10 2021 From: denisc at exemail.com.au (Denis Crowther) Date: Mon, 15 Mar 2021 21:43:10 +1100 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: You'll need to discover "Containers". This article https://kalaharix.wordpress.com/gambas/using-gambas-containers/ for the general idea and then the Expanding Forms Example in the Software Farm helped me heaps. Regards Denis On 15/3/21 8:21 pm, Dag Jarle Nerland Johansen - Gambas wrote: > > > Am 15.03.21 um 09:41 schrieb Gianluigi: >> >> >> Il giorno lun 15 mar 2021 alle ore 08:57 Dag Jarle Nerland Johansen - >> Gambas > ha scritto: >> >> Hi, >> what do I do wrong: >> I make a window bigger than the monitor size, works fine with >> scrollbars, set AutoResize to True. >> But it does not fit the content to the window, also when I set >> Arrangement to Fill. >> Twist in my brain? >> I normally program on a PC with a bigger monitor, but then get >> surprised >> when I see the result on a laptop - doesn't fit. >> Grateful for any help, >> Dag >> >> >> you have some possibilities or start with some small size and then >> bring the window to: >> >> Me.Maximized = True >> >> Or: >> >> Private $iWidth As Integer = Screen.AvailableWidth >> Private $iHeight As Integer = Screen.AvailableHeight >> >> Public Sub Form_Activate() >> >> ? Me.w = ($iWidth - 100) >> ? Me.h = ($iHeight - 100) >> ? Me.Center >> >> End >> >> or ... >> >> Regards >> Gianluigi >> >> ----[http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi again, > sorry doesn't change anything. > Is there any possibility to set scrollbars on the window? > I can see only a part of the window I programmed on a monitor with > higher resolutuion 1920x1080, > and my laptop has only 1366x768. > The problem is, I have a LOT of fields on that window I need to see. > Regards, > Dag > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From bagonergi at gmail.com Mon Mar 15 13:29:39 2021 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 15 Mar 2021 13:29:39 +0100 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: I only came back now, I have not followed the discussion, see if this example can help you: https://paste.c-net.org/TobeyMakes Although I think Bruce's advice is good... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Mar 15 15:32:35 2021 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 15 Mar 2021 15:32:35 +0100 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: Il giorno lun 15 mar 2021 alle ore 10:22 Dag Jarle Nerland Johansen - Gambas ha scritto: > Hi again, > sorry doesn't change anything. > Is there any possibility to set scrollbars on the window? > I can see only a part of the window I programmed on a monitor with higher > resolutuion 1920x1080, > and my laptop has only 1366x768. > The problem is, I have a LOT of fields on that window I need to see. > Regards, > Dag > Hi Dag, here's another project: https://paste.c-net.org/ConvoyMothers The attached is an old abandoned project that wanted to show in a very simplified way how to organize a window in the manner of the Gambas IDE. Demonstrate (?) how to use Action, Settings, gb.form.mdi ... I specify that the title was meant to be joking, it is a barely sketched project and it is certainly not perfect but it could inspire you :-) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Mar 15 15:34:48 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 15 Mar 2021 14:34:48 +0000 Subject: [Gambas-user] ButtonFrame anyone? Message-ID: If anyone has use for an enhanced Frame container that has a menu button (if you want) there is one here... https://gitlab.com/bsteers4/buttonframe Any suggestions/comments welcome Maybe ButtonFrame is misnamed and should be MenuFrame? Wishing well BruceS Form the README... ButtonFrame.class A Gambas Frame.class with a menu button A Frame.class with a menu icon in the top right corner.\ - Assign a Menu as you would a normal Popup menu\ - Set the menu icon image using MenuIcon property. - Access ButtonFrame.LastFrame on menu click so one menu can be used on multiple frames. - Use Text or RichText for Title (setting RichText will override Text property) - Increase button size by increasing TextFont (Frame title text) size. - Button can be excluded from TabFocus - Set Buttonframe.Foreground to change title color. - Simply copy the ButtonFrame.class file to your project .src directory and compile. - After compiling ButtonFrame will be in the designer Container section. - Info/help is added to the source so it shows in the help section/wiki Credits.\ - Benoit Minisini: Author of Gambas the the original Frame.class - Bruce Steers: menu button additional code plus some other enhancements. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Mar 15 16:13:28 2021 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 15 Mar 2021 16:13:28 +0100 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: Il giorno lun 15 mar 2021 alle ore 15:32 Gianluigi ha scritto: > > > Il giorno lun 15 mar 2021 alle ore 10:22 Dag Jarle Nerland Johansen - > Gambas ha scritto: > >> Hi again, >> sorry doesn't change anything. >> Is there any possibility to set scrollbars on the window? >> I can see only a part of the window I programmed on a monitor with higher >> resolutuion 1920x1080, >> and my laptop has only 1366x768. >> The problem is, I have a LOT of fields on that window I need to see. >> Regards, >> Dag >> > > Hi Dag, > > here's another project: > ... > Hi Dag, I add that even this attachment: https://paste.c-net.org/TobeyMakes which I accidentally addressed to Denisc was addressed to you. I read the article that linked you, I recommend you do it too. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Mar 15 18:05:22 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 15 Mar 2021 18:05:22 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> Message-ID: Am 07.03.21 um 20:24 schrieb Jussi Lahtinen: > This is the first problem we should solve before we try to refactor all > the mess. > > > I agree. > > ? > > Hmm ... how can we achieve that this is done automatically? > > > Maybe this should be left to the make file? Or how the test automation > is done? Ok, I made a run.sh just as an idea in this commit: f0eb33110639 It runs the tests with and without JIT and returns 1 on failure or bad tests. It can be used in a makefile and must be called like so: '$ cd app/src/gambas3-selftest & ./run.sh' 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 gambas at cd-bahia.com Mon Mar 15 19:12:12 2021 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Mon, 15 Mar 2021 19:12:12 +0100 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: Am 15.03.21 um 12:14 schrieb Bruce Steers: > No to window scrollbars , windows do not have that they must be added. > ScrollView can be a pain when just how AutoResize, Expand and > Arrangemenet work and effect objects isn't FULLY understood. > (I do not claim to fully understand this either and often have > problems making a whole window scroll) > It's probably a case of playing with the AutoResize/Expand/Arrangement > properties of the ScrollView/Window/Objects. > > Personally I think you need an alternative layout. > Having so many controls it's bigger than your screen isn't really ideal. > > My suggestions would be one of the following.... > * Make all the controls smaller. > * Handle all your fields in a GridView or something else with a built > in scrollbar. > * make a TabPanel and split the fields into 2 pages > > BruceS > > On Mon, 15 Mar 2021 at 09:22, Dag Jarle Nerland Johansen - Gambas > > wrote: > > > > Am 15.03.21 um 09:41 schrieb Gianluigi: >> >> >> Il giorno lun 15 mar 2021 alle ore 08:57 Dag Jarle Nerland >> Johansen - Gambas > > ha scritto: >> >> Hi, >> what do I do wrong: >> I make a window bigger than the monitor size, works fine with >> scrollbars, set AutoResize to True. >> But it does not fit the content to the window, also when I set >> Arrangement to Fill. >> Twist in my brain? >> I normally program on a PC with a bigger monitor, but then >> get surprised >> when I see the result on a laptop - doesn't fit. >> Grateful for any help, >> Dag >> >> >> you have some possibilities or start with some small size and >> then bring the window to: >> >> Me.Maximized = True >> >> Or: >> >> Private $iWidth As Integer = Screen.AvailableWidth >> Private $iHeight As Integer = Screen.AvailableHeight >> >> Public Sub Form_Activate() >> >> ? Me.w = ($iWidth - 100) >> ? Me.h = ($iHeight - 100) >> ? Me.Center >> >> End >> >> or ... >> >> Regards >> Gianluigi >> >> ----[http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi again, > sorry doesn't change anything. > Is there any possibility to set scrollbars on the window? > I can see only a part of the window I programmed on a monitor with > higher resolutuion 1920x1080, > and my laptop has only 1366x768. > The problem is, I have a LOT of fields on that window I need to see. > Regards, > Dag > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- To Bruce, I generate the form, and the size of it (height) depends on the amount of fields in a SQL-table. Till now I have only one annoying me :-) I can consider to make more columns. To Gianluigi, I will for sure look into that. Thank you both, regards Dag -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Mar 15 19:35:56 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 15 Mar 2021 19:35:56 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <1189e743-bc84-6f30-3152-bc87a7bf6d33@deganius.de> <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> Message-ID: Le 15/03/2021 ? 18:05, Christof Thalhofer a ?crit?: > Am 07.03.21 um 20:24 schrieb Jussi Lahtinen: > >> This is the first problem we should solve before we try to refactor all >> the mess. >> >> >> I agree. >> >> >> >> Hmm ... how can we achieve that this is done automatically? >> >> >> Maybe this should be left to the make file? Or how the test automation >> is done? > > Ok, I made a run.sh just as an idea in this commit: > > f0eb33110639 > > It runs the tests with and without JIT and returns 1 on failure or bad > tests. It can be used in a makefile and must be called like so: > > '$ cd app/src/gambas3-selftest & ./run.sh' > > Alles Gute > > Christof Thalhofer > Is that script actually needed? The two tests can be executed directly from the 'Makefile.am' files during installation. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Mon Mar 15 20:18:55 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 15 Mar 2021 20:18:55 +0100 Subject: [Gambas-user] Question about thunderbird Message-ID: <47c2a865-9c32-6ffb-c182-074bd19d701c@gmail.com> This is not directly to Gambas, but anyway: Does someone know how to prevent Thunderbird 78.5 from eating 10% of a CPU constantly when idle? What I found with Google didn't help. -- Beno?t Minisini From mbelmonte at belmotek.net Mon Mar 15 20:42:19 2021 From: mbelmonte at belmotek.net (Martin) Date: Mon, 15 Mar 2021 20:42:19 +0100 Subject: [Gambas-user] Question about thunderbird In-Reply-To: <47c2a865-9c32-6ffb-c182-074bd19d701c@gmail.com> References: <47c2a865-9c32-6ffb-c182-074bd19d701c@gmail.com> Message-ID: Try change idle from *300000 to ***30000000** Regards **** https://rainbow.chard.org/2013/02/19/thunderbird-high-cpu/ El 15/3/21 a las 20:18, Beno?t Minisini escribi?: > This is not directly to Gambas, but anyway: > > Does someone know how to prevent Thunderbird 78.5 from eating 10% of a > CPU constantly when idle? What I found with Google didn't help. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Mar 15 20:49:06 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 15 Mar 2021 20:49:06 +0100 Subject: [Gambas-user] Question about thunderbird In-Reply-To: References: <47c2a865-9c32-6ffb-c182-074bd19d701c@gmail.com> Message-ID: Le 15/03/2021 ? 20:42, Martin a ?crit?: > Try change idle from *300000 to ***30000000** > > Regards > **** > > https://rainbow.chard.org/2013/02/19/thunderbird-high-cpu/ > > El 15/3/21 a las 20:18, Beno?t Minisini escribi?: >> This is not directly to Gambas, but anyway: >> >> Does someone know how to prevent Thunderbird 78.5 from eating 10% of a >> CPU constantly when idle? What I found with Google didn't help. >> > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I did that. CPU usage drops, and then returned to 10% a few times later. I disabled GPU acceleration and global search too. -- Beno?t Minisini From chrisml at deganius.de Mon Mar 15 21:43:35 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 15 Mar 2021 21:43:35 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> Message-ID: Am 15.03.21 um 19:35 schrieb Beno?t Minisini: > Is that script actually needed? The two tests can be executed directly > from the 'Makefile.am' files during installation. No, it was just an idea. Feel free to integrate the tests into the makefile. We just need to stop the installation if the tests fails. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From bsteers4 at gmail.com Tue Mar 16 02:10:16 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 16 Mar 2021 01:10:16 +0000 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: What i would do is make a ScrollView Set it to Arrange.Vertical or Arrange.Column then add all your objects to the scrollview and possibly Don't set autoresize on the scrollview just the objects inside it BruceS On Mon, 15 Mar 2021 at 18:13, Dag Jarle Nerland Johansen - Gambas < gambas at cd-bahia.com> wrote: > > > Am 15.03.21 um 12:14 schrieb Bruce Steers: > > No to window scrollbars , windows do not have that they must be added. > ScrollView can be a pain when just how AutoResize, Expand and Arrangemenet > work and effect objects isn't FULLY understood. > (I do not claim to fully understand this either and often have problems > making a whole window scroll) > It's probably a case of playing with the AutoResize/Expand/Arrangement > properties of the ScrollView/Window/Objects. > > Personally I think you need an alternative layout. > Having so many controls it's bigger than your screen isn't really ideal. > > My suggestions would be one of the following.... > * Make all the controls smaller. > * Handle all your fields in a GridView or something else with a built in > scrollbar. > * make a TabPanel and split the fields into 2 pages > > BruceS > > On Mon, 15 Mar 2021 at 09:22, Dag Jarle Nerland Johansen - Gambas < > gambas at cd-bahia.com> wrote: > >> >> >> Am 15.03.21 um 09:41 schrieb Gianluigi: >> >> >> >> Il giorno lun 15 mar 2021 alle ore 08:57 Dag Jarle Nerland Johansen - >> Gambas ha scritto: >> >>> Hi, >>> what do I do wrong: >>> I make a window bigger than the monitor size, works fine with >>> scrollbars, set AutoResize to True. >>> But it does not fit the content to the window, also when I set >>> Arrangement to Fill. >>> Twist in my brain? >>> I normally program on a PC with a bigger monitor, but then get surprised >>> when I see the result on a laptop - doesn't fit. >>> Grateful for any help, >>> Dag >>> >> >> you have some possibilities or start with some small size and then bring >> the window to: >> >> Me.Maximized = True >> >> Or: >> >> Private $iWidth As Integer = Screen.AvailableWidth >> Private $iHeight As Integer = Screen.AvailableHeight >> >> Public Sub Form_Activate() >> >> Me.w = ($iWidth - 100) >> Me.h = ($iHeight - 100) >> Me.Center >> >> End >> >> or ... >> >> Regards >> Gianluigi >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> Hi again, >> sorry doesn't change anything. >> Is there any possibility to set scrollbars on the window? >> I can see only a part of the window I programmed on a monitor with higher >> resolutuion 1920x1080, >> and my laptop has only 1366x768. >> The problem is, I have a LOT of fields on that window I need to see. >> Regards, >> Dag >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > To Bruce, > I generate the form, and the size of it (height) depends on the amount of > fields in a SQL-table. Till now I have only one annoying me :-) I can > consider to make more columns. > > To Gianluigi, > I will for sure look into that. > > Thank you both, > regards Dag > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Mar 16 04:08:26 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 15 Mar 2021 23:08:26 -0400 Subject: [Gambas-user] gitlab gambas is down In-Reply-To: <5e82bc13-8391-ac29-0e44-00b4295b4e77@gmail.com> References: <72ba9523-ef58-e49b-0509-3bc92b189b56@gmail.com> <6b6aa388-6b81-7dc4-a9f9-192177e0ada5@web.de> <45104d86-2ed9-210c-a28d-83f94cb5624e@deganius.de> <42a0ba7a-f5b8-319d-af02-9706636d7fdc@gmail.com> <31bbbdcc-9dde-569d-5648-f5c6ebc45896@gmail.com> <5e82bc13-8391-ac29-0e44-00b4295b4e77@gmail.com> Message-ID: i am searching about similar problems and found some .. but no exact matches .. https://gitlab.com/gitlab-org/gitlab/-/issues?scope=all&utf8=%E2%9C%93&state=closed&search=private+group i was in a similar situation some days ago.. El dom, 14 de mar. de 2021 a la(s) 13:47, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > > Le 14/03/2021 ? 18:37, Beno?t Minisini a ?crit : > > Le 14/03/2021 ? 17:33, Bruce Steers a ?crit : > >> I looked up what i could, seems there's a few bugs in gitlab. > >> 2 of note were instances of people setting their repos to private but > >> then not being able to set them to public again. > >> > >> and instances of a fork getting set to private that pushed the setting > >> the wrong way back to the main repo. > >> Most issues i read about claimed the "api" could fix it where the web > >> interface does not, but some claimed that didn't even work. > >> > >> > > > > But I never changed the status of the project. It was public not so long > > ago. When you was still able to pull I guess... > > > > OK, the problem should be fixed now, the repository is now public again. > > The group of the project (named 'Gambas' too) was 'private', and hence > all its projects. I switched the group to 'public', and was able then to > switch the project to 'public' again. > > I have still no idea what happened... > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From adamnt42 at gmail.com Tue Mar 16 06:12:35 2021 From: adamnt42 at gmail.com (Bruce) Date: Tue, 16 Mar 2021 15:42:35 +1030 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: On 16/3/21 11:40 am, Bruce Steers wrote: > What i would do is make a ScrollView > Set it to Arrange.Vertical or Arrange.Column > then add all your objects to the scrollview > > and possibly Don't set autoresize on the scrollview just the objects inside > it > BruceS > > > On Mon, 15 Mar 2021 at 18:13, Dag Jarle Nerland Johansen - Gambas < > gambas at cd-bahia.com> wrote: > >> >> >> Am 15.03.21 um 12:14 schrieb Bruce Steers: >> >> No to window scrollbars , windows do not have that they must be added. >> ScrollView can be a pain when just how AutoResize, Expand and Arrangemenet >> work and effect objects isn't FULLY understood. >> (I do not claim to fully understand this either and often have problems >> making a whole window scroll) >> It's probably a case of playing with the AutoResize/Expand/Arrangement >> properties of the ScrollView/Window/Objects. >> >> Personally I think you need an alternative layout. >> Having so many controls it's bigger than your screen isn't really ideal. >> >> My suggestions would be one of the following.... >> * Make all the controls smaller. >> * Handle all your fields in a GridView or something else with a built in >> scrollbar. >> * make a TabPanel and split the fields into 2 pages >> >> BruceS >> >> On Mon, 15 Mar 2021 at 09:22, Dag Jarle Nerland Johansen - Gambas < >> gambas at cd-bahia.com> wrote: >> >>> >>> >>> Am 15.03.21 um 09:41 schrieb Gianluigi: >>> >>> >>> >>> Il giorno lun 15 mar 2021 alle ore 08:57 Dag Jarle Nerland Johansen - >>> Gambas ha scritto: >>> >>>> Hi, >>>> what do I do wrong: >>>> I make a window bigger than the monitor size, works fine with >>>> scrollbars, set AutoResize to True. >>>> But it does not fit the content to the window, also when I set >>>> Arrangement to Fill. >>>> Twist in my brain? >>>> I normally program on a PC with a bigger monitor, but then get surprised >>>> when I see the result on a laptop - doesn't fit. >>>> Grateful for any help, >>>> Dag >>>> >>> >>> you have some possibilities or start with some small size and then bring >>> the window to: >>> >>> Me.Maximized = True >>> >>> Or: >>> >>> Private $iWidth As Integer = Screen.AvailableWidth >>> Private $iHeight As Integer = Screen.AvailableHeight >>> >>> Public Sub Form_Activate() >>> >>> Me.w = ($iWidth - 100) >>> Me.h = ($iHeight - 100) >>> Me.Center >>> >>> End >>> >>> or ... >>> >>> Regards >>> Gianluigi >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> Hi again, >>> sorry doesn't change anything. >>> Is there any possibility to set scrollbars on the window? >>> I can see only a part of the window I programmed on a monitor with higher >>> resolutuion 1920x1080, >>> and my laptop has only 1366x768. >>> The problem is, I have a LOT of fields on that window I need to see. >>> Regards, >>> Dag >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> To Bruce, >> I generate the form, and the size of it (height) depends on the amount of >> fields in a SQL-table. Till now I have only one annoying me :-) I can >> consider to make more columns. >> >> To Gianluigi, >> I will for sure look into that. >> >> Thank you both, >> regards Dag >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > and while your at it... Can you fit 14 eggs inot an eggbox designed for 12? :-) (ThT'S about LL I CAN TYPE)] B From kicking177 at gmail.com Tue Mar 16 09:08:07 2021 From: kicking177 at gmail.com (KKing) Date: Tue, 16 Mar 2021 08:08:07 +0000 Subject: [Gambas-user] Question about thunderbird Message-ID: <5c1f968c-3935-0297-297f-04b63a0a940e@gmail.com> I see max of 0.3% sporadically when "idle"? presumably when checking for email and 0.0% rest of time with TB 78.8.0 on Bullseye From isafiur at gmail.com Tue Mar 16 09:59:18 2021 From: isafiur at gmail.com (Safiur Rahman) Date: Tue, 16 Mar 2021 14:44:18 +0545 Subject: [Gambas-user] Using Autocomplete in gb.web.gui Message-ID: Hi I want to show and sort from a list while typing on a WebTextBox using Pixabay Javascript-Autocomplete (https://github.com/Pixabay/JavaScript-autoComplete). This JS has already been added to WebTextBox "Completion" Event. Please can you provide me an example how to use it in gambas. -- Regards Safiur Rahman From rwe-sse at osnanet.de Tue Mar 16 16:13:05 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 16 Mar 2021 16:13:05 +0100 Subject: [Gambas-user] Replacement for TextEdit or a RichText conversion Message-ID: <6d6d6d21-fa20-4b8d-0632-60528120b0dd@osnanet.de> When I do not have gb.qt4.ext, there is no TextEdit control anymore, showing and producing RichText strings. I can use TextArea instead (in my case), but if I want to show the pure text contents of existing strings, is there a conversion function somewhere? Or was TextEdit replaced by a new version I don't know of? Thanks for any advice! Rolf From bagonergi at gmail.com Tue Mar 16 16:25:58 2021 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 16 Mar 2021 16:25:58 +0100 Subject: [Gambas-user] Replacement for TextEdit or a RichText conversion In-Reply-To: <6d6d6d21-fa20-4b8d-0632-60528120b0dd@osnanet.de> References: <6d6d6d21-fa20-4b8d-0632-60528120b0dd@osnanet.de> Message-ID: Il giorno mar 16 mar 2021 alle ore 16:20 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > When I do not have gb.qt4.ext, there is no TextEdit control anymore, > showing and producing RichText strings. > > I can use TextArea instead (in my case), but if I want to show the pure > text contents of existing strings, is there a conversion function > somewhere? > > Or was TextEdit replaced by a new version I don't know of? > > Thanks for any advice! > > Rolf > > gb.qt5.ext cobntains TextEdit Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Tue Mar 16 18:31:02 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 16 Mar 2021 18:31:02 +0100 Subject: [Gambas-user] Replacement for TextEdit or a RichText conversion In-Reply-To: References: <6d6d6d21-fa20-4b8d-0632-60528120b0dd@osnanet.de> Message-ID: Am 16.03.21 um 16:25 schrieb Gianluigi: > > > Il giorno mar 16 mar 2021 alle ore 16:20 Rolf-Werner Eilert > > ha scritto: > > When I do not have gb.qt4.ext, there is no TextEdit control anymore, > showing and producing RichText strings. > > I can use TextArea instead (in my case), but if I want to show the pure > text contents of existing strings, is there a conversion function > somewhere? > > Or was TextEdit replaced by a new version I don't know of? > > Thanks for any advice! > > Rolf > > > gb.qt5.ext cobntains TextEdit > > Regards > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Oh of course - that would be the easiest way. How do I obtain it - what is the package name? I installed Gambas from the team repo on both Ubuntus I have in use (18 and 20), but it hasn't been installed automagically. Regards Rolf From bagonergi at gmail.com Tue Mar 16 18:47:12 2021 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 16 Mar 2021 18:47:12 +0100 Subject: [Gambas-user] Replacement for TextEdit or a RichText conversion In-Reply-To: References: <6d6d6d21-fa20-4b8d-0632-60528120b0dd@osnanet.de> Message-ID: Il giorno mar 16 mar 2021 alle ore 18:32 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > > > Oh of course - that would be the easiest way. > > How do I obtain it - what is the package name? I installed Gambas from > the team repo on both Ubuntus I have in use (18 and 20), but it hasn't > been installed automagically. > > Regards > Rolf > Sorry, I always forget that I have the master version (again) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Mar 16 20:04:23 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 16 Mar 2021 19:04:23 +0000 Subject: [Gambas-user] Replacement for TextEdit or a RichText conversion In-Reply-To: References: <6d6d6d21-fa20-4b8d-0632-60528120b0dd@osnanet.de> Message-ID: # sudo apt-get install gambas3-gb-qt5-ext On Tue, 16 Mar 2021 at 17:32, Rolf-Werner Eilert wrote: > Am 16.03.21 um 16:25 schrieb Gianluigi: > > > > > > Il giorno mar 16 mar 2021 alle ore 16:20 Rolf-Werner Eilert > > > ha scritto: > > > > When I do not have gb.qt4.ext, there is no TextEdit control anymore, > > showing and producing RichText strings. > > > > I can use TextArea instead (in my case), but if I want to show the > pure > > text contents of existing strings, is there a conversion function > > somewhere? > > > > Or was TextEdit replaced by a new version I don't know of? > > > > Thanks for any advice! > > > > Rolf > > > > > > gb.qt5.ext cobntains TextEdit > > > > Regards > > Gianluigi > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > Oh of course - that would be the easiest way. > > How do I obtain it - what is the package name? I installed Gambas from > the team repo on both Ubuntus I have in use (18 and 20), but it hasn't > been installed automagically. > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Wed Mar 17 13:11:32 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 17 Mar 2021 13:11:32 +0100 Subject: [Gambas-user] Replacement for TextEdit or a RichText conversion In-Reply-To: References: <6d6d6d21-fa20-4b8d-0632-60528120b0dd@osnanet.de> Message-ID: <6d148308-52bc-0136-8104-ec93aa9b58f9@osnanet.de> Thank you Bruce, that did it, at least on my Kubuntu 20 laptop at home. It installed couple more libraries with it, and it runs flawlessly. On the Ubuntu Mate 18 PC in the office, after installing gb.qt5.ext, the Gambas IDE wouldn't start. It said, gb.qt5.webkit was missing, so I installed that too. Now it runs, but in the IDE, Panels are shown with a black background, not transparent/gray. Programs are running fine, however, from the IDE and as binaries. And I tried to change the libraries to qt4 and to gb.gui etc., but the IDE stays ugly. In another program in the office, I used the Editor, and it seems it isn't included in gb.qt5.ext. So I switched back to qt4 and qt4.ext because it is essential in that project. Is it somewhere else now? Regards Rolf Am 16.03.21 um 20:04 schrieb Bruce Steers: > # sudo apt-get install gambas3-gb-qt5-ext > > > On Tue, 16 Mar 2021 at 17:32, Rolf-Werner Eilert > wrote: > > Am 16.03.21 um 16:25 schrieb Gianluigi: > > > > > > Il giorno mar 16 mar 2021 alle ore 16:20 Rolf-Werner Eilert > > > >> ha scritto: > > > >? ? ?When I do not have gb.qt4.ext, there is no TextEdit control > anymore, > >? ? ?showing and producing RichText strings. > > > >? ? ?I can use TextArea instead (in my case), but if I want to > show the pure > >? ? ?text contents of existing strings, is there a conversion function > >? ? ?somewhere? > > > >? ? ?Or was TextEdit replaced by a new version I don't know of? > > > >? ? ?Thanks for any advice! > > > >? ? ?Rolf > > > > > > gb.qt5.ext cobntains TextEdit > > > > Regards > > Gianluigi > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > Oh of course - that would be the easiest way. > > How do I obtain it - what is the package name? I installed Gambas from > the team repo on both Ubuntus I have in use (18 and 20), but it hasn't > been installed automagically. > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From bsteers4 at gmail.com Wed Mar 17 13:25:15 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 17 Mar 2021 12:25:15 +0000 Subject: [Gambas-user] Replacement for TextEdit or a RichText conversion In-Reply-To: <6d148308-52bc-0136-8104-ec93aa9b58f9@osnanet.de> References: <6d6d6d21-fa20-4b8d-0632-60528120b0dd@osnanet.de> <6d148308-52bc-0136-8104-ec93aa9b58f9@osnanet.de> Message-ID: Is compositing enabled? Transparency only shows on a desktop who's window manager is using compositing. So either Marco + compositing or Metacity + compositing or Compiz (I find Compiz the best) Also are you using latest gambas? there were some glitches in some qt objects backgrounds showing black that have now been fixed, Ie' just setting a raised border would show a qt object as black (but only in the IDE not when program was run.) If that's the problem then I would suggest using gambas in GTK mode not QT then the objects might look better in the IDE Or upgrading to latest gambas daily build BruceS On Wed, 17 Mar 2021 at 12:12, Rolf-Werner Eilert wrote: > Thank you Bruce, that did it, at least on my Kubuntu 20 laptop at home. > It installed couple more libraries with it, and it runs flawlessly. > > On the Ubuntu Mate 18 PC in the office, after installing gb.qt5.ext, the > Gambas IDE wouldn't start. It said, gb.qt5.webkit was missing, so I > installed that too. > > Now it runs, but in the IDE, Panels are shown with a black background, > not transparent/gray. Programs are running fine, however, from the IDE > and as binaries. And I tried to change the libraries to qt4 and to > gb.gui etc., but the IDE stays ugly. > > In another program in the office, I used the Editor, and it seems it > isn't included in gb.qt5.ext. So I switched back to qt4 and qt4.ext > because it is essential in that project. Is it somewhere else now? > > Regards > Rolf > > > Am 16.03.21 um 20:04 schrieb Bruce Steers: > > # sudo apt-get install gambas3-gb-qt5-ext > > > > > > On Tue, 16 Mar 2021 at 17:32, Rolf-Werner Eilert > > wrote: > > > > Am 16.03.21 um 16:25 schrieb Gianluigi: > > > > > > > > > Il giorno mar 16 mar 2021 alle ore 16:20 Rolf-Werner Eilert > > > > > >> ha scritto: > > > > > > When I do not have gb.qt4.ext, there is no TextEdit control > > anymore, > > > showing and producing RichText strings. > > > > > > I can use TextArea instead (in my case), but if I want to > > show the pure > > > text contents of existing strings, is there a conversion > function > > > somewhere? > > > > > > Or was TextEdit replaced by a new version I don't know of? > > > > > > Thanks for any advice! > > > > > > Rolf > > > > > > > > > gb.qt5.ext cobntains TextEdit > > > > > > Regards > > > Gianluigi > > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > Oh of course - that would be the easiest way. > > > > How do I obtain it - what is the package name? I installed Gambas > from > > the team repo on both Ubuntus I have in use (18 and 20), but it > hasn't > > been installed automagically. > > > > Regards > > Rolf > > > > ----[ 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 at cd-bahia.com Wed Mar 17 17:31:19 2021 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Wed, 17 Mar 2021 17:31:19 +0100 Subject: [Gambas-user] Window size fitting In-Reply-To: References: <8978bd43-c900-8c4e-6412-6b1e769b3811@cd-bahia.com> Message-ID: <8db16d86-a0f0-0516-f5ed-66818a6d8043@cd-bahia.com> Hi all, yes ScrollView seems to be the best way. Thanks to all, consider as solved. Regards, Dag Am 16.03.21 um 06:12 schrieb Bruce: > On 16/3/21 11:40 am, Bruce Steers wrote: >> What i would do is make a ScrollView >> Set it to Arrange.Vertical or Arrange.Column >> then add all your objects to the scrollview >> >> and possibly Don't set autoresize on the scrollview just the objects >> inside >> it >> BruceS >> >> >> On Mon, 15 Mar 2021 at 18:13, Dag Jarle Nerland Johansen - Gambas < >> gambas at cd-bahia.com> wrote: >> >>> >>> >>> Am 15.03.21 um 12:14 schrieb Bruce Steers: >>> >>> No to window scrollbars , windows do not have that they must be added. >>> ScrollView can be a pain when just how AutoResize, Expand and >>> Arrangemenet >>> work and effect objects isn't FULLY understood. >>> (I do not claim to fully understand this either and often have problems >>> making a whole window scroll) >>> It's probably a case of playing with the AutoResize/Expand/Arrangement >>> properties of the ScrollView/Window/Objects. >>> >>> Personally I think you need an alternative layout. >>> Having so many controls it's bigger than your screen isn't really >>> ideal. >>> >>> My suggestions would be one of the following.... >>> * Make all the controls smaller. >>> * Handle all your fields in a GridView or something else with a >>> built in >>> scrollbar. >>> * make a TabPanel and split the fields into 2 pages >>> >>> BruceS >>> >>> On Mon, 15 Mar 2021 at 09:22, Dag Jarle Nerland Johansen - Gambas < >>> gambas at cd-bahia.com> wrote: >>> >>>> >>>> >>>> Am 15.03.21 um 09:41 schrieb Gianluigi: >>>> >>>> >>>> >>>> Il giorno lun 15 mar 2021 alle ore 08:57 Dag Jarle Nerland Johansen - >>>> Gambas ha scritto: >>>> >>>>> Hi, >>>>> what do I do wrong: >>>>> I make a window bigger than the monitor size, works fine with >>>>> scrollbars, set AutoResize to True. >>>>> But it does not fit the content to the window, also when I set >>>>> Arrangement to Fill. >>>>> Twist in my brain? >>>>> I normally program on a PC with a bigger monitor, but then get >>>>> surprised >>>>> when I see the result on a laptop - doesn't fit. >>>>> Grateful for any help, >>>>> Dag >>>>> >>>> >>>> you have some possibilities or start with some small size and then >>>> bring >>>> the window to: >>>> >>>> Me.Maximized = True >>>> >>>> Or: >>>> >>>> Private $iWidth As Integer = Screen.AvailableWidth >>>> Private $iHeight As Integer = Screen.AvailableHeight >>>> >>>> Public Sub Form_Activate() >>>> >>>> ?? Me.w = ($iWidth - 100) >>>> ?? Me.h = ($iHeight - 100) >>>> ?? Me.Center >>>> >>>> End >>>> >>>> or ... >>>> >>>> Regards >>>> Gianluigi >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> >>>> Hi again, >>>> sorry doesn't change anything. >>>> Is there any possibility to set scrollbars on the window? >>>> I can see only a part of the window I programmed on a monitor with >>>> higher >>>> resolutuion 1920x1080, >>>> and my laptop has only 1366x768. >>>> The problem is, I have a LOT of fields on that window I need to see. >>>> Regards, >>>> Dag >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> To Bruce, >>> I generate the form, and the size of it (height) depends on the >>> amount of >>> fields in a SQL-table. Till now I have only one annoying me :-) I can >>> consider to make more columns. >>> >>> To Gianluigi, >>> I will for sure look into that. >>> >>> Thank you both, >>> regards Dag >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > and while your at it... Can you fit 14 eggs inot an eggbox designed > for 12? :-) > > (ThT'S???? about LL I CAN TYPE)] > > B > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From chrisml at deganius.de Wed Mar 17 22:08:27 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 17 Mar 2021 22:08:27 +0100 Subject: [Gambas-user] Crash with latest version In-Reply-To: References: <37e7afed-04ff-05f6-192a-2f3c3e815584@deganius.de> <11096ca2-d86d-84a2-fbe4-838e82ad270b@deganius.de> <1057354d-4fa3-3412-0c12-679fce97f750@gmail.com> <72591c78-3a0f-2f9d-89f8-bd1120ef4d70@deganius.de> <978feacc-a99c-f33f-4d43-3fc232df5a62@deganius.de> Message-ID: <4841b8c9-378e-bf81-ab94-320840028bf2@deganius.de> Am 15.03.21 um 21:43 schrieb Christof Thalhofer: > Am 15.03.21 um 19:35 schrieb Beno?t Minisini: > >> Is that script actually needed? The two tests can be executed directly >> from the 'Makefile.am' files during installation. > > No, it was just an idea. Feel free to integrate the tests into the > makefile. We just need to stop the installation if the tests fails. Sorry that I cannot do this, but I'm not familiar with automake. 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 Thu Mar 18 12:44:09 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 18 Mar 2021 12:44:09 +0100 Subject: [Gambas-user] Replacement for TextEdit or a RichText conversion In-Reply-To: References: <6d6d6d21-fa20-4b8d-0632-60528120b0dd@osnanet.de> <6d148308-52bc-0136-8104-ec93aa9b58f9@osnanet.de> Message-ID: <8eed4e2d-ec44-9004-23bd-f453ec79904e@osnanet.de> Thank you very much for your advice, Bruce! Am 17.03.21 um 13:25 schrieb Bruce Steers: > Is compositing enabled? > Transparency only shows on a desktop who's window manager is using > compositing. > So either Marco + compositing or Metacity + compositing or Compiz > (I find Compiz the best) Yes it is, Marco is enabled. I haven't tested the other ones yet. > > Also are you using latest gambas? It says 3.15.2, and as far as I understand the Gambas website, this is the latest stable. > there were some glitches in some qt objects backgrounds showing black > that have now been fixed, Ie' just setting a raised border would show a > qt object as black (but only in the IDE not when program was run.) This is exactly what it looks like. > > If that's the problem then I would suggest using gambas in GTK mode not > QT then the objects might look better in the IDE > Or upgrading to latest gambas daily build How can I start Gambas IDE in GTK mode? Looking around the menues, I haven't found any hint. Do you know where the Editor from gb.qt4.ext has gone? Just in case I want to use gb.qt5.ext... Regards Rolf From rwe-sse at osnanet.de Thu Mar 18 12:47:31 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 18 Mar 2021 12:47:31 +0100 Subject: [Gambas-user] Replacement for TextEdit or a RichText conversion In-Reply-To: References: <6d6d6d21-fa20-4b8d-0632-60528120b0dd@osnanet.de> <6d148308-52bc-0136-8104-ec93aa9b58f9@osnanet.de> Message-ID: <96505d6e-1bd3-eeb1-da7f-a4908092cd7e@osnanet.de> Ah, I found it Editor is deprecated, it is TextEditor now and comes with gb.form.editor. Certainly worth looking at. Just hope I do not have to change too much of my code to keep the functionality for my special case. Regards Rolf Am 17.03.21 um 13:25 schrieb Bruce Steers: > Is compositing enabled? > Transparency only shows on a desktop who's window manager is using > compositing. > So either Marco + compositing or Metacity + compositing or Compiz > (I find Compiz the best) > > Also are you using latest gambas? > there were some glitches in some qt objects backgrounds showing black > that have now been fixed, Ie' just setting a raised border would show a > qt object as black (but only in the IDE not when program was run.) > > If that's the problem then I would suggest using gambas in GTK mode not > QT then the objects might look better in the IDE > Or upgrading to latest gambas daily build > > BruceS > > On Wed, 17 Mar 2021 at 12:12, Rolf-Werner Eilert > wrote: > > Thank you Bruce, that did it, at least on my Kubuntu 20 laptop at home. > It installed couple more libraries with it, and it runs flawlessly. > > On the Ubuntu Mate 18 PC in the office, after installing gb.qt5.ext, > the > Gambas IDE wouldn't start. It said, gb.qt5.webkit was missing, so I > installed that too. > > Now it runs, but in the IDE, Panels are shown with a black background, > not transparent/gray. Programs are running fine, however, from the IDE > and as binaries. And I tried to change the libraries to qt4 and to > gb.gui etc., but the IDE stays ugly. > > In another program in the office, I used the Editor, and it seems it > isn't included in gb.qt5.ext. So I switched back to qt4 and qt4.ext > because it is essential in that project. Is it somewhere else now? > > Regards > Rolf > > > Am 16.03.21 um 20:04 schrieb Bruce Steers: > > # sudo apt-get install gambas3-gb-qt5-ext > > > > > > On Tue, 16 Mar 2021 at 17:32, Rolf-Werner Eilert > > > >> wrote: > > > >? ? ?Am 16.03.21 um 16:25 schrieb Gianluigi: > >? ? ? > > >? ? ? > > >? ? ? > Il giorno mar 16 mar 2021 alle ore 16:20 Rolf-Werner Eilert > >? ? ? > > > > >? ? ? > >>> ha scritto: > >? ? ? > > >? ? ? >? ? ?When I do not have gb.qt4.ext, there is no TextEdit > control > >? ? ?anymore, > >? ? ? >? ? ?showing and producing RichText strings. > >? ? ? > > >? ? ? >? ? ?I can use TextArea instead (in my case), but if I want to > >? ? ?show the pure > >? ? ? >? ? ?text contents of existing strings, is there a > conversion function > >? ? ? >? ? ?somewhere? > >? ? ? > > >? ? ? >? ? ?Or was TextEdit replaced by a new version I don't know of? > >? ? ? > > >? ? ? >? ? ?Thanks for any advice! > >? ? ? > > >? ? ? >? ? ?Rolf > >? ? ? > > >? ? ? > > >? ? ? > gb.qt5.ext cobntains TextEdit > >? ? ? > > >? ? ? > Regards > >? ? ? > Gianluigi > >? ? ? > > >? ? ? > > >? ? ? > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >? ? ? > > > > >? ? ?Oh of course - that would be the easiest way. > > > >? ? ?How do I obtain it - what is the package name? I installed > Gambas from > >? ? ?the team repo on both Ubuntus I have in use (18 and 20), but > it hasn't > >? ? ?been installed automagically. > > > >? ? ?Regards > >? ? ?Rolf > > > >? ? ?----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From bsteers4 at gmail.com Thu Mar 18 13:09:09 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 18 Mar 2021 12:09:09 +0000 Subject: [Gambas-user] Replacement for TextEdit or a RichText conversion In-Reply-To: <96505d6e-1bd3-eeb1-da7f-a4908092cd7e@osnanet.de> References: <6d6d6d21-fa20-4b8d-0632-60528120b0dd@osnanet.de> <6d148308-52bc-0136-8104-ec93aa9b58f9@osnanet.de> <96505d6e-1bd3-eeb1-da7f-a4908092cd7e@osnanet.de> Message-ID: TextEditor is amazing, very fully feature rich :) I have written my own script editor around it for editing bash and gambas script files. It's got lots of those funky features that the gambas IDE has by default :) But just for plain text editing id just use a TextArea BruceS On Thu, 18 Mar 2021 at 11:48, Rolf-Werner Eilert wrote: > Ah, I found it > > Editor is deprecated, it is TextEditor now and comes with > gb.form.editor. Certainly worth looking at. > > Just hope I do not have to change too much of my code to keep the > functionality for my special case. > > Regards > Rolf > > Am 17.03.21 um 13:25 schrieb Bruce Steers: > > Is compositing enabled? > > Transparency only shows on a desktop who's window manager is using > > compositing. > > So either Marco + compositing or Metacity + compositing or Compiz > > (I find Compiz the best) > > > > Also are you using latest gambas? > > there were some glitches in some qt objects backgrounds showing black > > that have now been fixed, Ie' just setting a raised border would show a > > qt object as black (but only in the IDE not when program was run.) > > > > If that's the problem then I would suggest using gambas in GTK mode not > > QT then the objects might look better in the IDE > > Or upgrading to latest gambas daily build > > > > BruceS > > > > On Wed, 17 Mar 2021 at 12:12, Rolf-Werner Eilert > > wrote: > > > > Thank you Bruce, that did it, at least on my Kubuntu 20 laptop at > home. > > It installed couple more libraries with it, and it runs flawlessly. > > > > On the Ubuntu Mate 18 PC in the office, after installing gb.qt5.ext, > > the > > Gambas IDE wouldn't start. It said, gb.qt5.webkit was missing, so I > > installed that too. > > > > Now it runs, but in the IDE, Panels are shown with a black > background, > > not transparent/gray. Programs are running fine, however, from the > IDE > > and as binaries. And I tried to change the libraries to qt4 and to > > gb.gui etc., but the IDE stays ugly. > > > > In another program in the office, I used the Editor, and it seems it > > isn't included in gb.qt5.ext. So I switched back to qt4 and qt4.ext > > because it is essential in that project. Is it somewhere else now? > > > > Regards > > Rolf > > > > > > Am 16.03.21 um 20:04 schrieb Bruce Steers: > > > # sudo apt-get install gambas3-gb-qt5-ext > > > > > > > > > On Tue, 16 Mar 2021 at 17:32, Rolf-Werner Eilert > > > > > >> wrote: > > > > > > Am 16.03.21 um 16:25 schrieb Gianluigi: > > > > > > > > > > > > Il giorno mar 16 mar 2021 alle ore 16:20 Rolf-Werner Eilert > > > > > > > > > > > > >>> ha > scritto: > > > > > > > > When I do not have gb.qt4.ext, there is no TextEdit > > control > > > anymore, > > > > showing and producing RichText strings. > > > > > > > > I can use TextArea instead (in my case), but if I want > to > > > show the pure > > > > text contents of existing strings, is there a > > conversion function > > > > somewhere? > > > > > > > > Or was TextEdit replaced by a new version I don't know > of? > > > > > > > > Thanks for any advice! > > > > > > > > Rolf > > > > > > > > > > > > gb.qt5.ext cobntains TextEdit > > > > > > > > Regards > > > > Gianluigi > > > > > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > > > > Oh of course - that would be the easiest way. > > > > > > How do I obtain it - what is the package name? I installed > > Gambas from > > > the team repo on both Ubuntus I have in use (18 and 20), but > > it hasn't > > > been installed automagically. > > > > > > Regards > > > Rolf > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > > > ----[ 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 detlef.eberhardt at gmail.com Thu Mar 18 13:33:58 2021 From: detlef.eberhardt at gmail.com (Detlef Eberhardt) Date: Thu, 18 Mar 2021 13:33:58 +0100 Subject: [Gambas-user] FileView does not preview images Message-ID: <90175327c31a1a7af883a132ff0d0f664c4d75e6.camel@gmail.com> Nautilus and Dolphin filemanager both are able to preview raw photo images (e.g. .DNG) ... I noticed that FileView doesn't preview photos in raw format, just jpg, png and maybe some other lossy image formats. Is there any chance to persuade the FileView class to preview raw images? Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Mar 18 15:07:46 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 18 Mar 2021 15:07:46 +0100 Subject: [Gambas-user] FileView does not preview images In-Reply-To: <90175327c31a1a7af883a132ff0d0f664c4d75e6.camel@gmail.com> References: <90175327c31a1a7af883a132ff0d0f664c4d75e6.camel@gmail.com> Message-ID: Le 18/03/2021 ? 13:33, Detlef Eberhardt a ?crit?: > Nautilus and Dolphin filemanager both are able to preview raw photo > images (e.g. .DNG) ... I noticed that FileView doesn't preview photos in > raw format, just jpg, png and maybe some other lossy image formats. Is > there any chance to persuade the FileView class to preview raw images? > Cheers > It can only preview the formats supported by the underlying toolkits. -- Beno?t Minisini From buster6seven at gmail.com Fri Mar 19 07:39:58 2021 From: buster6seven at gmail.com (Shane) Date: Fri, 19 Mar 2021 17:39:58 +1100 Subject: [Gambas-user] Sqlite Message-ID: <1aba5f62-9f86-fd24-6b34-8674c4e86be0@gmail.com> HI Group I have this code ? ??? ??? ?? Try Con.Close() ?????????????? ??? Con.Type = "sqlite3" ??????????????? ?? Con.Host = "./" ??????????????? ?? Con.Name = "voc.sqlite3" ??????????????? ?? Con.Open() ??????????????? ??? Print "Connected : " & Con.Opened this works fine in the editor but when i make a Deb of this and run it tells me it can not find the file any ideas cheers shane From mbelmonte at belmotek.net Fri Mar 19 09:33:42 2021 From: mbelmonte at belmotek.net (Martin) Date: Fri, 19 Mar 2021 09:33:42 +0100 Subject: [Gambas-user] Sqlite In-Reply-To: <1aba5f62-9f86-fd24-6b34-8674c4e86be0@gmail.com> References: <1aba5f62-9f86-fd24-6b34-8674c4e86be0@gmail.com> Message-ID: <19715d2a-1936-78ea-5c2d-29785ee84b4b@belmotek.net> You must put the database file in User.Home in the first start then point to: Copy "./voc.sqlite3" To User.Home &/ "voc.sqlite3" ... Con.Host = User.Home Con.Name = "voc.sqlite3" ... Regards Mart?n. El 19/3/21 a las 7:39, Shane escribi?: > HI Group I have this code > > ? ??? ??? ?? Try Con.Close() > ?????????????? ??? Con.Type = "sqlite3" > ??????????????? ?? Con.Host = "./" > ??????????????? ?? Con.Name = "voc.sqlite3" > ??????????????? ?? Con.Open() > ??????????????? ??? Print "Connected : " & Con.Opened > > this works fine in the editor but when i make a Deb of this and run it > tells me it can not find the file > > any ideas > > cheers shane > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bagonergi at gmail.com Fri Mar 19 09:33:57 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 19 Mar 2021 09:33:57 +0100 Subject: [Gambas-user] Sqlite In-Reply-To: <1aba5f62-9f86-fd24-6b34-8674c4e86be0@gmail.com> References: <1aba5f62-9f86-fd24-6b34-8674c4e86be0@gmail.com> Message-ID: Il giorno ven 19 mar 2021 alle ore 07:41 Shane ha scritto: > HI Group I have this code > > Try Con.Close() > Con.Type = "sqlite3" > Con.Host = "./" > Con.Name = "voc.sqlite3" > Con.Open() > Print "Connected : " & Con.Opened > > this works fine in the editor but when i make a Deb of this and run it > tells me it can not find the file > > any ideas > > cheers shane > > You can read here: http://gambaswiki.org/wiki/cat/path Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Fri Mar 19 22:03:16 2021 From: mbelmonte at belmotek.net (Martin) Date: Fri, 19 Mar 2021 22:03:16 +0100 Subject: [Gambas-user] Enhance image for OCR pure gambas code. Message-ID: Hi Some gambas code there to enhance a image (readed from a pdf) in order to made an OCR with tesseract ? I use this: img = xpdf[p].Render() then over the img. what to do??? Regards. From ujlain at gmail.com Sat Mar 20 06:45:29 2021 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Sat, 20 Mar 2021 11:15:29 +0530 Subject: [Gambas-user] How to capture /dev/null to a string ? Message-ID: <8788c812-81f3-ea84-323f-38d4efe24a26@gmail.com> |How do I capture the output of this command line (using shell/exec) to a string for further REGEX parsing ?| |ffmpeg -i audo.mp3 -af "volumedetect" -f null /dev/null| Warm Regards - UZI ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Mar 20 11:51:25 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 20 Mar 2021 10:51:25 +0000 Subject: [Gambas-user] How to capture /dev/null to a string ? In-Reply-To: <8788c812-81f3-ea84-323f-38d4efe24a26@gmail.com> References: <8788c812-81f3-ea84-323f-38d4efe24a26@gmail.com> Message-ID: not sure you can. you would not use >/dev/null and capture the output. I believe ffmpeg uses stderr to output some info So try it with ">2&1" Dim myString As String Shell "ffmpeg -i audo.mp3 -af \"volumedetect\" -f null /dev/null 2>&1" To myString that redirects stderr to stdout and sends any output text to the myString variable BruceS On Sat, 20 Mar 2021 at 05:46, Vinode Singh Ujlain wrote: > How do I capture the output of this command line (using shell/exec) to a > string for further REGEX parsing ? > ffmpeg -i audo.mp3 -af "volumedetect" -f null /dev/null > > Warm Regards - UZI > ------------------------------ > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat Mar 20 12:10:37 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 20 Mar 2021 07:10:37 -0400 Subject: [Gambas-user] Sqlite In-Reply-To: <19715d2a-1936-78ea-5c2d-29785ee84b4b@belmotek.net> References: <1aba5f62-9f86-fd24-6b34-8674c4e86be0@gmail.com> <19715d2a-1936-78ea-5c2d-29785ee84b4b@belmotek.net> Message-ID: http://gambaswiki.org/wiki/howto/databasesqlite#t4 path mus be absolute or representation.. so if you do "/" database must be in root of the linux install that is nonsense.. as said in http://gambaswiki.org/wiki/comp/gb.db/connection Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com El vie, 19 de mar. de 2021 a la(s) 04:34, Martin (mbelmonte at belmotek.net) escribi?: > > You must put the database file in User.Home in the first start then > point to: > > Copy "./voc.sqlite3" To User.Home &/ "voc.sqlite3" > > ... > > Con.Host = User.Home > > Con.Name = "voc.sqlite3" > > ... > > Regards > > Mart?n. > > El 19/3/21 a las 7:39, Shane escribi?: > > HI Group I have this code > > > > Try Con.Close() > > Con.Type = "sqlite3" > > Con.Host = "./" > > Con.Name = "voc.sqlite3" > > Con.Open() > > Print "Connected : " & Con.Opened > > > > this works fine in the editor but when i make a Deb of this and run it > > tells me it can not find the file > > > > any ideas > > > > cheers shane > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From mckaygerhard at gmail.com Sat Mar 20 12:14:33 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 20 Mar 2021 07:14:33 -0400 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: References: <7ff01662-ec2e-e830-5a0d-886f5cd5730f@gmail.com> Message-ID: anything new here? the annoying thing is that it was working before perfectly... i posted the commit i try to fix the code and collaborate .. but i also have a work too like you guys.. and something was changed in the connection mode and over stream and then it didn't work. is a shame that for things like this people cant trust in free software cos "some day will change and support will gone" could you please have more vision... gambas without ODBC is fan made programing.. not for big enterprise.. please can have more Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com El dom, 21 de feb. de 2021 a la(s) 11:48, PICCORO McKAY Lenz (mckaygerhard at gmail.com) escribi?: > > hey zxMarce any new about odbc working? > > > > > El vie, 22 de ene. de 2021 a la(s) 22:17, escribi?: >> >> (hope I'm replying to the right address, and sorry for top-posting: writing from phone) >> >> I did download at home Northwind.Mdb, MS's test Access database, and -sure enough- got the same issue. >> Now, thanks to the pandemic, my dev machine is not easily reachable for me as it is at the office. >> >> I will try to make some time as soon as possible to get a dev environment and check why MDB data fetch fails. If I do get to the actual issue, I'll try to fix it, but can't really promise anything. >> >> I got to fix Firebird in the past, but this sounds a little trickier. >> >> Regards, >> zxMarce. >> On Jan 22, 2021, at 11:18, "Beno?t Minisini" wrote: >>> >>> Le 22/01/2021 ? 15:13, KKing a ?crit : >>>> >>>> So my original issue may be related to mdbtools and debian in that most >>>> doco suggests the odbc.ini Driver setting should relate to the section >>>> name in /etc/odbcinst.ini in Debian mdbtools standard install would be >>>> [MDBTools] but this fails with isql and only works if the odbc.ini >>>> Driver setting points to the actual driver file in >>>> /usr/lib/..../libmdbodbc.so >>>> I am guessing the Gambas odbc component is not coping with this... will >>>> try to look into the gb.db.odbc code. >>>> >>>> But I also have a another odbc question. While trying to test out if it >>>> is more mdbtools and or debian I have setup a test to point to a sqlite >>>> db via odbc (yes I know gambas can go direct) >>>> isql select * from sampleTable returns 1,000 records ... but the >>>> following Gambas code only returns the first record? >>>>> >>>>> Dim $con As New Connection >>>>> Dim intCount As Integer >>>>> Dim rs As Result >>>>> Dim $ExecCmd As String >>>>> >>>>> Try $con.Close() >>>>> $con.Type = "odbc" >>>>> $con.Host = "mysqlitedb" >>>>> $con.Open() >>>>> >>>>> $ExecCmd = "SELECT * FROM sampleTable " >>>>> >>>>> rs = $con.Exec($ExecCmd) >>>>> >>>>> intCount = rs.Count >>>>> >>>>> While (rs.Available) >>>>> Print "s_seq:" & rs!s_seq >>>>> rs.MoveNext >>>>> Wend >>>> >>>> >>>> >>> >>> >>> It's hard for me to help, as I don't know ODBC and didn't write the driver. >>> >>> But I know that the ODBC driver exposes many ways of browsing the result >>> of a query, and I guess the failure is related to that. Maybe failing to >>> use the accurate request browsing method, and/or detecting the end of >>> the query result list... ? >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bsteers4 at gmail.com Sat Mar 20 12:34:11 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 20 Mar 2021 11:34:11 +0000 Subject: [Gambas-user] How to capture /dev/null to a string ? In-Reply-To: References: <8788c812-81f3-ea84-323f-38d4efe24a26@gmail.com> Message-ID: Correction.. That command you posted does not look right. I would thought it would be this... Dim myString As String Shell "ffmpeg -i audo.mp3 -af \"volumedetect\" -f null >/dev/null 2>&1" To myString Note >/dev/null using the > redirects the standard output to null (where it cannot be retrieved) Using 2> redirects standard error output. Using 2>&1 redirects error output to standard output. (do not confuse error output for meaning output only if an error. ffmpeg uses standard out to output some info and error out to output other info.) You will have to experiment or get advice on an ffmpeg forum to best understand the ffmpeg command methods. But the important bits of info you need is using *Shell "command" To myString* that's how to capture shell output in gambas. And use... *Shell "ffmpeg args 2>&1" To myString* To capture all output. Or.. *Shell "ffmpeg args >/dev/null 2>&1" To myString* Might give the result you want. BruceS On Sat, 20 Mar 2021 at 10:51, Bruce Steers wrote: > not sure you can. > you would not use >/dev/null and capture the output. > > I believe ffmpeg uses stderr to output some info > > So try it with ">2&1" > > Dim myString As String > Shell "ffmpeg -i audo.mp3 -af \"volumedetect\" -f null /dev/null 2>&1" To > myString > > that redirects stderr to stdout and sends any output text to the myString > variable > > BruceS > > On Sat, 20 Mar 2021 at 05:46, Vinode Singh Ujlain > wrote: > >> How do I capture the output of this command line (using shell/exec) to a >> string for further REGEX parsing ? >> ffmpeg -i audo.mp3 -af "volumedetect" -f null /dev/null >> >> Warm Regards - UZI >> ------------------------------ >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Mar 20 17:11:05 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Mar 2021 17:11:05 +0100 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: References: <7ff01662-ec2e-e830-5a0d-886f5cd5730f@gmail.com> Message-ID: <6d98f018-f08d-1482-1532-91246714003f@gmail.com> Le 20/03/2021 ? 12:14, PICCORO McKAY Lenz a ?crit?: > anything new here? > > the annoying thing is that it was working before perfectly... i posted > the commit i try to fix the code and collaborate .. You posted references to two commits that have nothing to do with the problem. In these two commits, the only changes in the ODBC component and the database component are: white space changes in the source code ; and one more database API that does nothing in the ODBC module. How did you find that these commits broke the gb.db.odbc driver? The problem is elsewhere, but I cannot guess as I didn't write the code and does not know how ODBC works. For which database do you need ODBC? -- Beno?t Minisini From g4mba5 at gmail.com Sat Mar 20 17:17:33 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 20 Mar 2021 17:17:33 +0100 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: <6d98f018-f08d-1482-1532-91246714003f@gmail.com> References: <7ff01662-ec2e-e830-5a0d-886f5cd5730f@gmail.com> <6d98f018-f08d-1482-1532-91246714003f@gmail.com> Message-ID: Le 20/03/2021 ? 17:11, Beno?t Minisini a ?crit : > Le 20/03/2021 ? 12:14, PICCORO McKAY Lenz a ?crit : >> anything new here? >> >> the annoying thing is that it was working before perfectly... i >> posted the commit i try to fix the code and collaborate .. > > You posted references to two commits that have nothing to do with > the problem. > Would not it be the commit just before? https://gitlab.com/gambas/gambas/commit/9f8ab72 -- Beno?t Minisini From adamnt42 at gmail.com Sat Mar 20 17:26:02 2021 From: adamnt42 at gmail.com (Bruce) Date: Sun, 21 Mar 2021 02:56:02 +1030 Subject: [Gambas-user] Sqlite In-Reply-To: References: <1aba5f62-9f86-fd24-6b34-8674c4e86be0@gmail.com> <19715d2a-1936-78ea-5c2d-29785ee84b4b@belmotek.net> Message-ID: <1f8259d2-612a-061c-ee46-4fbd46400d47@gmail.com> >> El 19/3/21 a las 7:39, Shane escribi?: >>> HI Group I have this code >>> >>> Try Con.Close() >>> Con.Type = "sqlite3" >>> Con.Host = "./" >>> Con.Name = "voc.sqlite3" >>> Con.Open() >>> Print "Connected : " & Con.Opened >>> >>> this works fine in the editor but when i make a Deb of this and run it >>> tells me it can not find the file >>> >>> any ideas >>> >>> cheers shane >>> shane, What the well meaning people are trying to tell you is that you are using a "relative" path when you absolutely should not be. See http://gambaswiki.org/wiki/cat/path in the Language Overviews part of the wiki. Inside the IDE ./ is pointing to the project directory. Where, of course, your voc.sqlite3 file exists. However at runtime this points "inside" the compressed executable archive. Your voc.sqlite "file" does exist in that archive but only at a stretch of munged bytes. The runtime and therfore your program can access that chunk of data, interpret it as a file and store it somewhere using normal Gambas file handling commands. So you can copy that sqlite file out of your program and then access THAT file via the Gambas DB component. But the sqlite "server/driver" library, libsqlite3 or whatever cannot see inside your executable. Thus error "File does not exist" occurs, Now, you need also to consider this, By placing the database file inside the executable, you have made it read only. As obviously it cannot be written back inside the executable file.If you want it to be updateable then you will need to set it up in SOME persistent writeable directory somewhere (not necessarily the User.Home directory. If it IS read-only data then I suggest that it it copied out of the executable into the /tmp/gambbas.uid area using the Gambas Temp functions. That way you get automatic cleanup and a few other benefits. rgrds bruce From adamnt42 at gmail.com Sat Mar 20 17:43:12 2021 From: adamnt42 at gmail.com (Bruce) Date: Sun, 21 Mar 2021 03:13:12 +1030 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: References: <7ff01662-ec2e-e830-5a0d-886f5cd5730f@gmail.com> Message-ID: <6cc25e16-59fb-eacd-e6f4-ed733684c594@gmail.com> On 20/3/21 9:44 pm, PICCORO McKAY Lenz wrote: > anything new here? > > the annoying thing is that it was working before perfectly... i posted > the commit i try to fix the code and collaborate .. but i also have a > work too like you guys.. and something was changed in the connection > mode and over stream and then it didn't work. is a shame that for > things like this people cant trust in free software cos "some day will > change and support will gone" > > could you please have more vision... gambas without ODBC is fan made > programing.. not for big enterprise.. please can have more There are three places that changes could have happened: a) the Gambas DB components. As Benoit pointed out - noy liktly. b) the ODBC client library you have installed c( the underlying interfaces between you ODBC client and the physical database server software. Have you checked for changes or version mismatches in the latter two? Finally, I suggest that you should not make inflammatory statements, it won't win you any friends. regards bruce From brian at westwoodsvcs.com Sun Mar 21 05:14:10 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 20 Mar 2021 21:14:10 -0700 (PDT) Subject: [Gambas-user] Scripter some Updates Message-ID: <1934477990.14778.1616300050975.JavaMail.zimbra@westwoodsvcs.com> Added --convert-script which will create a project from a script gbs3 --convert-script