Re: [Gambas-user] Gambas-Documentation

2017-06-06 Thread Dimitris Anogiatis
While Google translate and other online transaction tools are not perfect we could try a few of them to see which combination of such tools makes more sense for both the English side and the non-English side. Keep in mind that the way we put words to our thoughts is also affected​ by different pat

Re: [Gambas-user] Gambas-user Digest, Vol 132, Issue 29

2017-05-23 Thread Dimitris Anogiatis
Does the same behavior occur with a wired keyboard (not your wireless Logitech K330)? On Tue, May 16, 2017 at 3:48 AM, Glaucio Araujo wrote: > Hi, Jussi > > > My Xorg.0.log is in ~/.local/share/xorg/ > > Log attached. > > My Xinput: > > > gda@acer:~$ xinput list > ⎡ Virtual core pointer

Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-23 Thread Dimitris Anogiatis
Ok.. Gambas3 run as root? Not a good idea. I realize it's a much needed workaround but not the recommended one. I would go with what Cris suggested. I've run Gambas3 3.9.2 on a Virtualbox VM of Ubuntu Budgie 17.04 and as a normal user I've never had problems with the keyboard locking. Is there som

[Gambas-user] Support for new Packaging systems (Snappy and Flatpak)

2016-06-17 Thread Dimitris Anogiatis
Hey guys, This is by no means urgent, I'm just asking mainly out of curiosity. There's been a lot of talk lately about new packaging systems mainly Snappy (from Canonical - http://snapcraft.io/) and Flatpak (from Red-Hat/Fedora but I also think they GNOME Foundation is behind them too - http://fl

Re: [Gambas-user] qt5

2016-06-14 Thread Dimitris Anogiatis
Are the qt4 webkit and qt5 webkit too different that we can't use a symlink for qt4's webkit to point to qt5's webkit? That way we could (theoretically) bridge the gap temporarily until qt5 becomes more stable. Ian, what are your thoughts on that? I mean I know its hacky but could it possibly wor

Re: [Gambas-user] new web page at gambas.sourgeforce.net has "fake" links

2015-12-05 Thread Dimitris Anogiatis
Just as an FYI there's a couple of typos on the title of the email. It was reported that gambas.sourgeforce.net had fake links when it should have been gambas.sourceforge.net The first URL only has a generic landing page (thus the "fake" links) On Fri, Dec 4, 2015 at 1:00 PM, Benoît Minisini <

Re: [Gambas-user] annoying glitch

2015-03-07 Thread Dimitris Anogiatis
Hey Gary, I assume you're using the two for loops to find which item on the source listbox is selected and then removed after the addition to the second listbox is done. Gambas listboxes are a bit more flexible. You can get the index of the selected item with lstInCar.Index. If there is no item s

Re: [Gambas-user] A couple of questions about building web / cgi applications

2015-02-13 Thread Dimitris Anogiatis
Hey Bruce, In addition to all the good suggestions everyone is throwing in the problem, you could use a CouchDB database on a different server and just connect to it with a normal http connection if you're worried about file hits on the sd card. Gambas supports JSON and the httpclient component sho

Re: [Gambas-user] A couple of questions about building web / cgi applications

2015-02-12 Thread Dimitris Anogiatis
Hey Bruce, Here's an example of a CGI app that I just made. I hope it helps and doesn't confuse you more. I havent run it on an actual web server yet (just on the embedded web server that the IDE has) but I guess it won't be hard to plug it in to either Apache, Lighttpd or Nginx (whichever you wan

Re: [Gambas-user] Quickie on SELECT

2015-02-07 Thread Dimitris Anogiatis
Hey Bruce, You could try SELECT CASE EVAL(hSomething.SomeArray.Exists(hSomething.Value)) CASE True Print "Yes, value exists in hSomething" CASE False Print "No, value does not exist in hSomething" CASE Else END SELECT Putting CASE EVAL (if it's possible) to make SELECT check agains

[Gambas-user] Self-Signed SSL certificate in Gambas3 3.5.4 Webview

2015-02-04 Thread Dimitris Anogiatis
Hey guys, I'm using Gambas3 3.5.4 on Debian Jessie. I want to login to a web app I'm working on with a self signed SSL certificate. I try to load the app on a webview component using a url starting with https but it doesn't show me anything, no error messages no nothing. 1) Is there a debug pro

Re: [Gambas-user] Install from Ubuntu repo - several issues

2014-12-12 Thread Dimitris Anogiatis
Dave, The examples stored are in a folder with different permissions. You need to save the example you're trying to a different location, ie to your home directory. After you do that the example will compile and run properly. I hope this helps Dimitris On Fri, Dec 12, 2014 at 7:22 AM, Willy Ra

Re: [Gambas-user] Wrong link in Gambaswiki Dbus section

2014-11-10 Thread Dimitris Anogiatis
Thank you for looking into this so quickly Benoit :) On Sun, Nov 9, 2014 at 2:44 AM, Benoît Minisini < gam...@users.sourceforge.net> wrote: > Le 07/11/2014 02:20, Dimitris Anogiatis a écrit : > > Hey guys, > > > > I was looking for information on the gb.dbus componen

Re: [Gambas-user] Problems installing Gambas 3.5.4

2014-11-05 Thread Dimitris Anogiatis
Hey Simon, Re: Issue 2, I've found that if you load an example and save it to another location you won't have to fiddle with permissions. That way you also keep the original examples just in case you want to revisit them. Hope this helps On Wed, Nov 5, 2014 at 1:59 AM, ep...@skellner.de wrote:

Re: [Gambas-user] Installation package(s)

2014-09-22 Thread Dimitris Anogiatis
I think that those 13 files are mostly all that's needed to put your program into a repository including the source code. If you just want to get the binary into your target system or on a website without going through a repository... then you only need one. On Mon, Sep 22, 2014 at 9:57 AM, Charli

Re: [Gambas-user] Building /trunk, deprecated documentation

2014-09-18 Thread Dimitris Anogiatis
/me scratches head... Ubuntu 12.04LTS with metacity and gnome2? I thought Ubuntu switched to Unity a LOOONG time ago or am I missing something here? On Thu, Sep 18, 2014 at 3:51 AM, John Leake wrote: > >>> Some of the symptoms > >>> > >>> > >>> (1) System wide keyboard short

Re: [Gambas-user] Issue 548 in gambas: complete code of htttp post example

2014-08-12 Thread Dimitris Anogiatis
I'm not sure there is a need for a re-write. Just some comments to explain what the code does. For example on the button_click event you send the parameters for the webservice POST and the actual message you are sending is contained in the sCad string and the message target is set in the URL prop

Re: [Gambas-user] How can I detect left or right click on TrayIcon

2014-01-21 Thread Dimitris Anogiatis
gam...@users.sourceforge.net> wrote: > Le 21/01/2014 12:44, Dimitris Anogiatis a écrit : > > Hey guys, > > > > I'm using Gambas 3.5.1 on Debian jessie (Gnome 3.8.4) and I was wondering > > how can one > > detect a left or right click on the TrayIcon control. > >

[Gambas-user] How can I detect left or right click on TrayIcon

2014-01-21 Thread Dimitris Anogiatis
Hey guys, I'm using Gambas 3.5.1 on Debian jessie (Gnome 3.8.4) and I was wondering how can one detect a left or right click on the TrayIcon control. What do I need to do that? Can anyone give me some pointers? Thanks in Advance Sincerely Dimitris ---

Re: [Gambas-user] Key code constant wrong?

2013-11-10 Thread Dimitris Anogiatis
Perhaps its a remnand from the typewriter days...where the separation between line feed and carriage return was more visible due to its mechanical nature. On Sun, Nov 10, 2013 at 2:10 AM, Benoît Minisini < gam...@users.sourceforge.net> wrote: > Le 10/11/2013 06:05, Alain Baudrez a écrit : > > >

Re: [Gambas-user] Obtain my IP with Gambas

2013-10-29 Thread Dimitris Anogiatis
you don't need a root account or root priviledges to get the IP address: just do a Shell "ip -4 addr show eth0 | grep inet" TO ipaddr and just parse the IP from that line. Note that eth0 is the name of your network interface. Hope this helps to simplify things in your code. Dimitris On Mon,

Re: [Gambas-user] Gambas self-extracting installer (3)

2013-10-26 Thread Dimitris Anogiatis
Hey Benoit, When I try the self extracting executable on my laptop it gives me the following error message: Verifying archive integrity... All good. Uncompressing Gambas installer test. STARTDIR=/tmp/selfgz25001 Unsupported architecture: i686 Distribution: Debian Wheezy (7.2)

Re: [Gambas-user] gb.report without a database connection

2013-09-13 Thread Dimitris Anogiatis
Thanks for your quick reply Fabien, I also saw the report example and noticed that Report2 is covering that case. On Thu, Sep 12, 2013 at 2:47 PM, Fabien Bodard wrote: > yes > > > 2013/9/12 Dimitris Anogiatis > > > Hey guys, > > > > Is it possible to use

[Gambas-user] gb.report without a database connection

2013-09-11 Thread Dimitris Anogiatis
Hey guys, Is it possible to use the gb.report component without a database connection? What I'm basically asking is if the report component can take data from an array (or from multiple arrays). Thanks in advance Dimitris --

Re: [Gambas-user] Controls with colorated background

2013-05-16 Thread Dimitris Anogiatis
Antonio, It could be the theme you're using. Change themes and see if you still get the same behaviour. If the colour on the control changes regardless of the theme you might have to specify a white background on the gridview Regards, Dimitris On Thu, May 16, 2013 at 6:14 AM, Antonio Sánchez wro

Re: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses

2013-05-05 Thread Dimitris Anogiatis
Creating a report from a non-graphical method might prove difficult. If you are planning on using something like report from an HTML template on a PDF File you either need to make sure you can generate a PS or PDF file or you can use wkhtmltopdf to generate

Re: [Gambas-user] ProgressBar Change Event

2011-07-09 Thread Dimitris Anogiatis
Demosthene, Since the value of the progressbar cotnrol is just between 0 to 1 you can probably try IF ProgressBar1.Value = 1 THEN ProgressBar1.label="Process complete" You can probably do this within the ProgressBar1_Change() event assuming that the event is going to get fired when an input cha

Re: [Gambas-user] Unable to split string containing ascii characters

2011-06-05 Thread Dimitris Anogiatis
Hey Titan, Using the Split function is not the only option if you want to parse data from a string There's also Mid$, Left$, Right$ InStr, RInStr and other functions that you use to extract specific data from a string. Scan is another function that you can use to split strings into pieces but it'

[Gambas-user] Gambas daemon

2011-05-10 Thread Dimitris Anogiatis
Hey guys, I have a couple of questions... 1) How can I create a daemon in gambas2 (gambas2.21 on Debian Lenny)? Would Application.Daemon=True be enough? 2) Would my daemon be ran as root? if not is there a way for Gambas to set that when it creates the debian package? Thanks in advance Dimit

Re: [Gambas-user] using echo command within EXEC

2011-01-20 Thread Dimitris Anogiatis
Hey vikram, Try this subroutine. Make a new module and add this in it PUBLIC SUB append2log(text AS String) DIM tmpFile AS File tmpFile = OPEN User.Home &/ "Desktop/test1.txt" FOR APPEND WRITE #tmpFile, text & gb.NewLine, Len(text & gb.NewLine) CLOSE #tmpFile END if for example you call your mod

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread Dimitris Anogiatis
I use INC Application.Busy and DEC Application.Busy in my applications on Debian Lenny (with LXDE) and Gambas 2.21 and it works just fine. Regards, Dimitris On Wed, Nov 24, 2010 at 9:23 PM, vikram wrote: > > Setting FMain.Mouse and calling WAIT is useless. Application.Busy should > > alrea

Re: [Gambas-user] Print html direct?

2010-11-24 Thread Dimitris Anogiatis
Hey guys, Does htmldoc have any UTF-8 support? Regards, Dimitrios On Wed, Nov 24, 2010 at 7:36 AM, Rolf-Werner Eilert < eilert-sprac...@t-online.de> wrote: > Am 24.11.2010 13:54, schrieb charlesg: > > > > Hi > > > > > > Gregor Burck wrote: > >> > >> Can I direct print html? > >> > > > > I shel

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Dimitris Anogiatis
Demosthenes, I might be able to help out with the Greek Translation of the wiki as well. When you're done with your book, send me an email perhaps we can work on that together. Regards, Dimitris On Fri, Nov 19, 2010 at 7:40 AM, Demosthenes Koptsis wrote: > On Fri, 2010-11-19 at 15:17 +0100, Si

Re: [Gambas-user] dialog.select font & conf setting

2010-09-07 Thread Dimitris Anogiatis
Hey Daniel, Try Dialog.SelectFont() Gambas might be thinking that Dialog.SelectFont is a property so try it with a pair of parenthesis at the end Hope this helps Regards Dimitris On Tue, Sep 7, 2010 at 12:21 AM, Daniel Vanhee wrote: > Hallo everyone, > > i am new to gambas and trying some thi

Re: [Gambas-user] WebBrowser - read out the shown html document

2010-08-04 Thread Dimitris Anogiatis
Hey Andreas, >From what I've read in the documentation there's no text property or any other way to get the source code of the currently showing webpage in the webbrowser control... yet; so after a bit of googling this is what I've come up with. assuming that your webbrowser control is called Web

Re: [Gambas-user] Case statement quesiton

2010-07-18 Thread Dimitris Anogiatis
Hey Richard, Perhaps this might work for you Select Case BMI < 25 Case True Print "BMI is Less than 25" Case False Print "BMI is MORE than 25" Case Else End Select or you could also set ranges Select Case BMI Case 1 to 24 Print "BMI is Less than 25" Case 25

Re: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3'

2010-07-04 Thread Dimitris Anogiatis
e > 0: ?" or "gbr3: no project file in 'gambas3.gambas'." > > Matti > > Am 05.07.2010 07:59, schrieb Dimitris Anogiatis: > > Hey Matti > > > > try starting gambas from the terminal by typing > > > > /usr/local/bin/gambas3/gbr

Re: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3'

2010-07-04 Thread Dimitris Anogiatis
Hey Matti try starting gambas from the terminal by typing /usr/local/bin/gambas3/gbr3 /usr/local/bin/gambas3/gambas3.gambas it should run the Gambas IDE then. I hope this helps Regards Dimitris On Sun, Jul 4, 2010 at 11:21 PM, Matti wrote: > Once again, I tried to install Gambas3 on my SuSe

Re: [Gambas-user] hi all

2010-06-26 Thread Dimitris Anogiatis
Welcome to Gambas, Simone. Hopefully you'll love the language as much as we do Don't hesitate to give us a shout if you need help with anything. And above all :) Have fun :) Regards Dimitris On Sat, Jun 26, 2010 at 3:33 AM, Simone Gentili wrote: > I started today to develop with Gambas!!! > >

Re: [Gambas-user] Structure support in Gambas 3

2010-05-27 Thread Dimitris Anogiatis
Benoît, What would happen if there was a case you had program A with 3.x dependencies and Program B running 3.y dependencies? Or are you only referring to complete Gambas 3.x and 3.y installations on the same machine? Regards, Dimitris 2010/5/27 Benoît Minisini > > > To define a structure, you

Re: [Gambas-user] Gambas for windows, how?

2010-05-13 Thread Dimitris Anogiatis
Tomas, What you could do in this case, is setup a machine with Debian or Ubuntu on the customer's premises, (It doesn't have to be a top notch machine) and setup x2go and he can use the application from Windows by logging in to the debian machine using SSH and x2go which is a terminal server (kinda

Re: [Gambas-user] Too many open files error message

2010-05-04 Thread Dimitris Anogiatis
Hey Ricard, just as a quick workaround try replacing the Open - Close code with File.Save(sFilename, sHTML) You might circumvent the "Too many files open" error, which I am unsure why it comes up. Perhaps the total number of open files within your project is too much or the opening and closing

Re: [Gambas-user] "User components" replaced by "Libraries" in Gambas 3

2010-04-26 Thread Dimitris Anogiatis
Benoît, Will all the controls that are gambas written, be implemented in this fashion too? if so how will the IDE distinguish between a library and a control? Regards, Dimitris 2010/4/26 Benoît Minisini > > Ian Haywood ha scritto: > > > svitoos wrote: > > >> I think it is better to look for li

Re: [Gambas-user] EOF problem

2010-04-18 Thread Dimitris Anogiatis
Ed, if reading a text file and extracting information from it is what you're trying to do, why not just use tmp = File.Load(Fname) File.Load is documented over here http://www.gambasdoc.org/help/comp/gb/file/load after loading the contents of Fname in tmp you can do your magic, without using an

Re: [Gambas-user] EOF problem

2010-04-17 Thread Dimitris Anogiatis
Ed can you try this and tell us if it still doesn't work? PUBLIC SUB Button1_Click() DIM tfile AS File DIM Fname AS String Dim temp AS String Fname = "/home/us/Documents/testdat.txt" tfile = OPEN Fname FOR READ label1.Text = "" IF Eof(tfile) THEN label1.Text = "EOF" Pr

Re: [Gambas-user] printing issue

2010-03-04 Thread Dimitris Anogiatis
Hey Robi, As an alternative you could also get a list of the install printers by doing Dim prnList as String SHELL (lpstat -a) to prnList Hope this helps Regards, Dimitris On Thu, Mar 4, 2010 at 4:39 AM, Doriano Blengino < doriano.bleng...@fastwebnet.it> wrote: > Robert JUHASZ ha scritto: > >

Re: [Gambas-user] trouble with cgi scripting - Error 24 No Startup Method

2010-02-21 Thread Dimitris Anogiatis
Hey Joshua, Try this instead of the original cgi example. #!/usr/bin/env gbw2 <% DIM sEnv AS String PRINT "" PRINT "" PRINT "" PRINT "Test1 - check this out" PRINT "Test link" PRINT "" PRINT "" %> If this works it means that all your html tags need to be included in a Print statement I hope this

Re: [Gambas-user] automatic completion of textbox with mysql data

2010-02-13 Thread Dimitris Anogiatis
Vasilli, perhaps you want to try this one rs33 = MODMain.$Con.exec("select * from Aplianikis where " & Left$(Eponimia,1) & " = '" & Left$(tEponimia.Text, 1) & "'") ListBox1.Add = rs33!Eponimia I hope this helps Regards Dimitris On Sat, Feb 13, 2010 at 1:18 PM, Vassilis K wrote: > I'm trying

Re: [Gambas-user] How to print Greek

2010-02-12 Thread Dimitris Anogiatis
Vassili, You might have to convert the Greek Unicode characters into ANSI or ASCII (not sure how your printer works I haven't used a parallel printer in a while) in order to see some Greek characters printed out. if you can verify that the printer is setup correctly and an ascii plain text with Gr

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Dimitris Anogiatis
Ooops, Correction on the second example it should read countMyTreeItems = Treeview1.Count("item2", true) Sorry guys it's a bit late over here Regards Dimitris On Tue, Jan 26, 2010 at 12:49 AM, Dimitris Anogiatis wrote: > Benoît, > > Perhaps another approach would be

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Dimitris Anogiatis
Benoît, Perhaps another approach would be to get rid of the Count property and create a Count method that would count the children of a given root in the control (and optionally all it's branches). for example / (root) item1 item2--item3 |-item4 |-item5 |-item6 item7 The

Re: [Gambas-user] TreeView.Count value differs using qt rather than gtk

2010-01-25 Thread Dimitris Anogiatis
Benoît, Just for that you should go with the GTK+ way :P Regards, Dimitris On Mon, Jan 25, 2010 at 5:59 PM, Kadaitcha Man < nospam.nospam.nos...@gmail.com> wrote: > 2010/1/26 Benoît Minisini : > > > But now I can't decide. > > Go with the logic! Go with the logic! > > >

Re: [Gambas-user] PictureBox not refresh copied image.

2010-01-25 Thread Dimitris Anogiatis
Demosthene, The way I got my picturebox to work is this PictureBox1.Picture = Picture.Load("/usr/share/pixmaps/wicd/wicd-client.png") so if you could try changing your code to this: '

Re: [Gambas-user] gtk error when input greek letters in textbox

2010-01-21 Thread Dimitris Anogiatis
Demosthenes, I think it is because Greek letters are unicode characters and unicode characters count as double and therefore any split will be difficult to work with the usual string manipulation functions The recommended way to split a string including unicode characters according to the documen

Re: [Gambas-user] drove me crazy

2010-01-20 Thread Dimitris Anogiatis
entation mentions that a Collection acts like a read/write array so even though the workaround isn't very elegant, would it work? Regards, Dimitris On Wed, Jan 20, 2010 at 11:17 AM, Charlie Reinl wrote: > Am Mittwoch, den 20.01.2010, 17:27 +0100 schrieb Benoît Minisini: > > >

Re: [Gambas-user] drove me crazy

2010-01-19 Thread Dimitris Anogiatis
Hey Charlie, Try changing this line sKey = col1.Key to sKey = sElem.Key Hope this helps Regards, Dimitris On Tue, Jan 19, 2010 at 4:09 PM, Charlie Reinl wrote: > Salut Benoit, > > its about Collection KEY and Debug-Window on gambas2. > > If you run that project, and open col1 and

Re: [Gambas-user] sdl.sound and total length of a track

2010-01-03 Thread Dimitris Anogiatis
Alessandro, to get the length of an MP3 file (since gb.sdl.sound works primarily with mp3s) I would personally write an ID3Tag module to get the mp3's length and then load it through gb.sound.sdl afterward. or if you want you could also explore the option of using an external player for your progr

Re: [Gambas-user] gambasdoc issues

2009-12-30 Thread Dimitris Anogiatis
Ron, It works fine for me... could you provide some visual feedback so we can see what gambasdoc does on your browser? Regards, Merry Christmas (belated) and Happy New Year Dimitris On Wed, Dec 30, 2009 at 1:27 AM, Ron wrote: > > Ok. > > I know there wasn't a lot of documentation to begin wit

Re: [Gambas-user] Problem with tableview when in edit mode

2009-12-03 Thread Dimitris Anogiatis
debian.org/CD/http-ftp/#stable). Perhaps we use different repositories. Regards, Dimitris On Thu, Dec 3, 2009 at 10:47 AM, Doriano Blengino < doriano.bleng...@fastwebnet.it> wrote: > Charlie Reinl ha scritto: > > Am Donnerstag, den 03.12.2009, 18:24 +0100 schrieb Doriano Blengino: &g

Re: [Gambas-user] Problem with tableview when in edit mode

2009-12-03 Thread Dimitris Anogiatis
Doriano, from the sample project you posted, I can verify the behavior you described when you use the arrow keys. If you click on individual cells it jumps fine. But if you try and type something on one cell and then click on the next one the text you typed before disappears. So perhaps a few mor

Re: [Gambas-user] 2 forms closing at the same time. Is it a bug?

2009-11-14 Thread Dimitris Anogiatis
Hey Toni, Fmail closes because it was loaded last. If you move FMain.Show first ie FMain.Show Form1.Show Form1.closein(8) then FMain remains after Form1 closes I tried your program in Debian Lenny 5.0.3 in Gambas 2.16 It should work in 2.17 as well but give it a try I hope this helps R

Re: [Gambas-user] string conversion

2009-11-12 Thread Dimitris Anogiatis
Hey Matti, you might want to roll a string conversion function of your own. The Replace function might be of particular use to you. You can read about it over here http://www.gambasdoc.org/help/lang/replace and you can also find all the other string related functions over here http://www.gambasd

Re: [Gambas-user] Breaking processes

2009-11-04 Thread Dimitris Anogiatis
Hey M, to stop the execution of a for loop all you have to do is check for a condition then use break for example PUBLIC SUB FCopy() DIM i AS Integer Dim stopLoop as Boolean DIM filepaths AS String[] ' the array filepaths is filled with contents FOR i=0 To filepaths.Cou

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Dimitris Anogiatis
Vassili, Glad to hear that it's working for you :) Keep up the good work :) Regards, Dimitris On Sun, Oct 18, 2009 at 7:22 AM, Vassilis K wrote: > It is Solved !! > > > It works fine with: rsThesi.Count - 1 > > DO WHILE rsThesi.Index < rsThesi.Count - 1 > change_bgcolor(CInt(rsThe

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Dimitris Anogiatis
Vassili, Going back and forth through the whole thread I can also see that change_bgcolor is not as efficient as it could be simply because it's doing a loop looking through all the controls trying to match the desired control's name. for change_bgcolor I would suggest this Public SUB change_b

[Gambas-user] Classes and Modules in Gambas Server Pages

2009-10-17 Thread Dimitris Anogiatis
Hey guys, I know that in gambas server pages there's #USE that allows us to use gambas components. Is there something similar to PHPs include statement to be able to use classes and modules? and when making modules and classes for server pages are there any changes we need to make or points we n

Re: [Gambas-user] make Label background from Database field

2009-10-17 Thread Dimitris Anogiatis
Vassili, it should look something like this PUBLIC SUB Form_Open() DIM i AS Integer DIM rsThesi AS Result 'connect to the database MODMain.Connect() 'Execute the SQL QueryI hope this helps. rsThesi = MODMain.$Con.EXEC("select * from egrafes where elenchosAnax = 0 AND thesi <> 0

Re: [Gambas-user] make Label background from Database field

2009-10-17 Thread Dimitris Anogiatis
Vassili, We're close... try IF rsThesi.Index < rsThesi.Count THEN rsThesi.MoveNext() ENDIF I hope this takes you a bit further in your project Keep up the good work Regards Dimitris On Sat, Oct 17, 2009 at 12:55 PM, Vassilis K wrote: > And of cource on: > > PRINT rsThesi!thesi > PRINT "

Re: [Gambas-user] make Label background from Database field

2009-10-17 Thread Dimitris Anogiatis
Vassili, Instead of change_bgcolor("Label" & rsThesi!thesi)" do PRINT CStr(rsThesi!thesi) PRINT CStr(rsThesi.Index) to see where it stops make sure it actually prints the same results. Keep in mind that the field name has to be EXACTLY the same as the one you use in mysql. worst comes to the w

Re: [Gambas-user] make Label background from Database field

2009-10-17 Thread Dimitris Anogiatis
Vassili, Make sure there is data in the rsThesi!thesi field. Open a terminal, and login to mysql and do the Select statement from there and see if all the records have data on the thesi field. if not then you have to do something like this if isNull(rsThesi!thesi) = false then change_bgcolor("

Re: [Gambas-user] Form exit code when [X] clicked

2009-10-16 Thread Dimitris Anogiatis
Hey Bruce, Does it work for a normal form (not a Modal one)? Regards, Dimitris On Fri, Oct 16, 2009 at 6:44 PM, bbb888 wrote: > > I can get an exit code from a form shown with rtn = fm.ShowDialog() > correctly > if the user uses an in-form exit such as a exit button : > > > PUBLIC SUB btExit_C

Re: [Gambas-user] make Label background from Database field

2009-10-16 Thread Dimitris Anogiatis
Vassili, you might also want to take a look at The Gridview control http://www.gambasdoc.org/help/comp/gb.qt/gridview and the Tableview control http://www.gambasdoc.org/help/comp/gb.form/tableview perhaps one of those two is a better approach than manipulating individual labels If you still wa

Re: [Gambas-user] Gambas and cgi

2009-10-16 Thread Dimitris Anogiatis
Hey Marc, gambas2-runtime and gambas2-gb-web might be enough to run a cgi script on your webserver... however if you need to use any other libraries you need to download then before you can actually use them. You also need to set up your webserver to run gbw2 as a CGI executable (like php-cgi is

Re: [Gambas-user] make Label background from Database field

2009-10-15 Thread Dimitris Anogiatis
Vassili, I'm glad we caught 1 of the two errors now let's go for the next one :) $alblTime[iD] = NEW Label(ME) FOR iD = 1 TO rsThesi.Count - 1 $alblTime[iD].Background = Color.Red NEXT ok this has to be FOR iD = 1 TO rsThesi.Count - 1 $alblTime[iD

Re: [Gambas-user] make Label background from Database field

2009-10-15 Thread Dimitris Anogiatis
Vassili, It's not going to work #1 cause you're defining a dynamic array with no apparent bounds #2 it's going to create a synchronization problem that way because if rsThesi!AA is an autoincrement field (unless I'm guessing wrong) and if you delete and add a row then things tend to get a bit mes

Re: [Gambas-user] Normal behaviour for GTK+?

2009-10-13 Thread Dimitris Anogiatis
Ricardo, If I may express my opinion I think it was a very wise choice on Benoit's side to support both GTK+ and QT (even though it seems like it's a rat race trying to debug both components every time qt works gtk doesn't and vice versa or both don't work at the same time) I believe that both te

Re: [Gambas-user] write to folder in windows network

2009-10-09 Thread Dimitris Anogiatis
Hey Bill, I found this page, it might help you. http://www.cyberciti.biz/tips/how-to-mount-remote-windows-partition-windows-share-under-linux.html as people have suggested earlier, try opening a terminal and try the commands that are shown in the site that I gave you; make sure you can access fi

Re: [Gambas-user] write to folder in windows network

2009-10-09 Thread Dimitris Anogiatis
Doriano, With all due respect, some people are in the process of relearning key concepts that they are used to take for granted in Windows. To them Linux is still uncharted territory and since this mailing list is so helpful it's easy to veer of a tad bit off subject... I've seen workarounds invol

Re: [Gambas-user] Right-click menu

2009-10-09 Thread Dimitris Anogiatis
oops... sorry gvbackup should be gridview1 Regards Dimitris On Fri, Oct 9, 2009 at 1:03 AM, Dimitris Anogiatis wrote: > M Cs, > > try this: > create a Menu with name mnuGrid and make it hidden > then add this to the gridview's mousedown event > > PUBLIC SUB grid

Re: [Gambas-user] Right-click menu

2009-10-09 Thread Dimitris Anogiatis
M Cs, try this: create a Menu with name mnuGrid and make it hidden then add this to the gridview's mousedown event PUBLIC SUB gridview1_MouseDown() IF gridview1.Rows.Count > 0 AND gvBackup.Column = 1 SELECT Mouse.Right CASE TRUE mnuGrid.popup() CASE ELSE END SELECT ENDIF END T

Re: [Gambas-user] invalid object error on variable of database queries

2009-10-08 Thread Dimitris Anogiatis
Vasilli, You're welcome I am glad I could help :) Keep up the good work :) Regards, Dimitris On Thu, Oct 8, 2009 at 3:12 PM, Vassilis K wrote: > Thank you Dimitri > > That was it !!! > > I made so many efforts today to find out what was wrong. > But most of the times the solution is in front

Re: [Gambas-user] Trash

2009-10-08 Thread Dimitris Anogiatis
hey Matti, Ricardo was correct, almost :) the correct path is to move the files to is /home/username/.local/share/Trash/files I hope this helps Regards, Dimitris On Thu, Oct 8, 2009 at 2:58 PM, Matti wrote: > Thank you, that works. > > Just 1 question; This way, the deleted files/directories

Re: [Gambas-user] invalid object error on variable of database queries

2009-10-08 Thread Dimitris Anogiatis
Vasilis, if I'm reading your code correctly you're closing the result set before you use rsAPOD!arithmosAp you could assign the value of rsAPOD!arithmosAp in a variable and use that in the print statement or move MODMain.$Con.Close below the CLOSE hPrinter line. that way the resultset can close

Re: [Gambas-user] equivalent to python dictionaries in gambas2?

2009-10-07 Thread Dimitris Anogiatis
Hey Moe, You could use a Collection to achieve what you just described to us. Take a look at the link below for more details http://www.gambasdoc.org/help/comp/gb/collection Regards, Dimitris On Wed, Oct 7, 2009 at 2:26 PM, M0E Lnx wrote: > Hi guys, I'm trying to figure out if there is a way

Re: [Gambas-user] stop file COPY

2009-10-07 Thread Dimitris Anogiatis
Benoît, If I called COPY from a form and closed that form while the COPY command was still copying a large file would that stop the action? or would the command still copy the file in the background? Regards, Dimtiris On Mon, Sep 28, 2009 at 7:10 AM, zerkowski sur bouquiniste.biz < zerkow...@bou

Re: [Gambas-user] NNTP Class

2009-10-06 Thread Dimitris Anogiatis
ed or even a linux-related problem, since posts come from many people, it helps the conversation. Just something to consider Regards, Dimitris On Tue, Oct 6, 2009 at 4:32 AM, nospam.nospam.nos...@gmail.com < nospam.nospam.nos...@gmail.com> wrote: > On Tue, 2009-10-06 at 01:17 -0600,

Re: [Gambas-user] NNTP Class

2009-10-06 Thread Dimitris Anogiatis
Hey Anonymous, you can open a sourceforge account and place your code in there (or host it wherever else you think it might be better), and then you can upload your program's URL and a screenshot and a simple description on the gambas wiki; more details are on the gambas main page if you click on

[Gambas-user] stop file COPY

2009-09-28 Thread Dimitris Anogiatis
Hey guys, Does anyone if it's possible to cancel a file COPY of a pretty big file (a few hundred megabytes) in the middle of the action? I'm trying to add this functionality to my backup project but I can't find any parameters on the Copy command within the documentation. Regards Dimitris --

Re: [Gambas-user] Bouncing emails ?missed posts/emails

2009-09-27 Thread Dimitris Anogiatis
Hey Richard, I don't see any replies yet so I assume someone is trying to figure out a reply :) Keep up the great work :) Regards Dimitris On Mon, Sep 28, 2009 at 12:02 AM, richard terry wrote: > Hi LIst/benoit, > > My mailbox apparently overflowed and my ISP bounced all my emails for the > la

Re: [Gambas-user] Closing X in Form event?

2009-09-25 Thread Dimitris Anogiatis
.@t-online.de> wrote: > Dimitris Anogiatis schrieb: > > hey Rolf, > > > > Is it a modal form a normal form or a dialog? > > It's a modal one > > > > > I think that in normal forms Form_Unload is the event you want but I'm > not > > entir

Re: [Gambas-user] Closing X in Form event?

2009-09-25 Thread Dimitris Anogiatis
hey Rolf, Is it a modal form a normal form or a dialog? I think that in normal forms Form_Unload is the event you want but I'm not entirely sure could you give us a few more details on what you're trying to do? Regards Dimitris On Fri, Sep 25, 2009 at 3:36 AM, Rolf-Werner Eilert < eilert-sprac.

Re: [Gambas-user] chop project

2009-09-22 Thread Dimitris Anogiatis
Hey JY, One approach would be to create a main message-passing class, and link the sub-projects to that class passing messages through a common set of properties and methods Another approach is to create the sub-projects with a class of common properties and methods that pass the message from one

Re: [Gambas-user] how to start a file?

2009-09-14 Thread Dimitris Anogiatis
n I tell to Gambas to open the file with the default application (in > the example with acrobat reader). I just need the same effect as when I > double click on the icon. > > If this is what you described just confirm please. > > Thanks, > Robi > > 2009/9/14 Dimitris A

Re: [Gambas-user] What should executable open with?

2009-09-14 Thread Dimitris Anogiatis
CelticBhoy, open a folder that contains a gambas file and right click on it then click on the "Open with" tab and press the add button click on the Use a custom command section and add gbr2 when you do that select the gbr2 in the "open with" tab and click ok and next time you doubleclick on a ga

Re: [Gambas-user] how to start a file?

2009-09-13 Thread Dimitris Anogiatis
Hey Robi, one of the options is to use the gb.settings library. while you're on the IDE press CTRL and P then click on the Componets tab, find gb.settings and click on the box on the left side of the selection then press Ok now in your code you need to use this on top of your code (ie put this o

Re: [Gambas-user] question about Dialog.SelectDirectory()

2009-09-10 Thread Dimitris Anogiatis
It's not a stupid question Charlie, you can use the DirChooser control that's available in gb.form You can have a form with that control come up as modal (so you can't do anything else until you have chosen a directory and inside it you can put a dirchooser control you can get the selected path

Re: [Gambas-user] How to get listbox selection?

2009-09-08 Thread Dimitris Anogiatis
Sorry Rolf, It won't happen again, I just thought that since the question has already been answered for another user in English that it wouldn't be a problem to just repeat the same solution in a different language as a courtesy for a fellow countryman; Regards Dimitris On Tue, Sep 8, 2009 at 2:

Re: [Gambas-user] How to get listbox selection?

2009-09-07 Thread Dimitris Anogiatis
Demostheni, An katalava kala thes na vlepeis oles tis epiloges pou exeis kanei sto listbox se multiple mode, etsi? Exo ftiaxei mia synartisi pou kanei akrivos afto to pragma. ' PUBLIC FUNCTION

Re: [Gambas-user] too many operands

2009-09-07 Thread Dimitris Anogiatis
I'm glad it worked MSulchan, That's why I love gambas cause it makes things so much easier :) even more than VB6 ever would :) Keep up the good work Regards, Dimitris On Mon, Sep 7, 2009 at 3:54 AM, MSulchan Darmawan wrote: > Pada Mon, 7 Sep 2009 03:41:35 -0600 > Dimitris An

Re: [Gambas-user] ReturnValue

2009-09-07 Thread Dimitris Anogiatis
: > > Am Sonntag, den 06.09.2009, 16:10 -0600 schrieb Dimitris Anogiatis: > > > hey charlie, > > > > > > Are you talking about return values on a console-type? > > > I think all you have to do is use Print. > > > > > > It will also work on a

  1   2   >