[Gambas-user] OpenSuse 11.3 + Gambas2.21 + MP3 playback

2010-09-21 Thread M. Cs.
Hello everybody, I know that openSUSE violates the packaging convention, but did anybody managed to get the MP3 files play within a gambas2 application? I've installed libmikmod, as gambas2 could not find it after basic installation, and I know that there is no gambas2-gb-sdl-sound library for ope

[Gambas-user] Gambas2.21 crashes upon MP3 playback

2010-09-25 Thread M. Cs.
It happens when I use the provided example project of a music player, when I change the position of the slider. The same happens n my own project too. It is a bug. Signal #11 raised. -- Start uncovering the many advantages

[Gambas-user] Logical error in Gambas2.21

2010-09-27 Thread M. Cs.
PUBLIC SUB MaxFind(tomb AS String[], minta AS String) AS Integer ' A function in Archs module that finds the highest index in the array tomb which contains minta DIM supst AS String[] DIM mfind AS Integer = -1 DIM cel AS Integer supst = NEW String[] supst = tomb WHILE supst.Find(minta) <> -1 cel =

[Gambas-user] Logical error in Gambas2.21

2010-09-27 Thread M. Cs.
PUBLIC SUB MaxFind(tomb AS String[], minta AS String) AS Integer ' A function in Archs module that finds the highest index in the array tomb which contains minta DIM supst AS String[] DIM mfind AS Integer = -1 DIM cel AS Integer supst = NEW String[] supst = tomb WHILE supst.Find(minta) <> -1 cel =

[Gambas-user] Feature request: optional packages

2010-09-27 Thread M. Cs.
I'd like to see an option during packaging to add external packages as dependencies. It could be done with or without version number (only package name). -- Start uncovering the many advantages of virtual appliances and sta

Re: [Gambas-user] Feature request: optional packages

2010-09-27 Thread M. Cs.
When will be the change to version 3.00? Will the 2.xx projects be compatible with it? -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate you

Re: [Gambas-user] Feature request: optional packages

2010-09-27 Thread M. Cs.
Thanks! I hope there will be few changes with the existing code. 2010/9/27 Benoît Minisini > > When will be the change to version 3.00? > > I try to make a release candidate before the end of the year. > > > Will the 2.xx projects be > > compatible with it? > > No. You have to change things. But

[Gambas-user] Is it possible to create .DEB packages from Fedora?

2010-09-29 Thread M. Cs.
I'd like to move to Fedora, but I won't do it without knowing whether I'll be able to create gambas2 project packages for Debian based distributions. Is it solved in Fedora? Thanks! Csaba -- Start uncovering the many adva

Re: [Gambas-user] Is it possible to create .DEB packages from Fedora?

2010-09-30 Thread M. Cs.
uter installed with Debian system. > > > Le 29 sept. 2010 à 21:53, M. Cs. a écrit : > > > > > I'd like to move to Fedora, but I won't do it without knowing whether > I'll > > be able to create gambas2 project packages for Debian based

[Gambas-user] gambas2-gb-sdl-sound in version 2.21 full with bugs

2010-10-04 Thread M. Cs.
I know that everybody is fixed upon gambas3, but I'm desperately trying to say, that there are so many bugs in it. For example, it freezes the entire application upon MP3 playback if the bitrate is higher than 128 kbps which is the only accepted rate, since if the bitrate is lower, or the frequency

Re: [Gambas-user] Gambas app run as root

2010-10-05 Thread M. Cs.
1. Open your project 2. Add a new module, let's say "Sudo" 3. Paste these lines in: ' Gambas class file PUBLIC wins AS Form PUBLIC black AS Button PUBLIC szoveg1 AS TextBox PUBLIC hProcess AS Process PUBLIC SUB ReadPassword() DIM black AS Button DIM labi, labi2 AS Label wins = NEW Form wins.Width

[Gambas-user] Barcode reader

2010-10-16 Thread M. Cs.
Is it possible to use Gambas2 (or 3) together with a barcode scanner under Linux. Is there any module available for that ? Thanks! Csaba -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash

Re: [Gambas-user] Gambas2: Archlinux/Slackware packages on Ubuntu, how can I make them?

2010-10-25 Thread M. Cs.
I think that the makepkg is not available outer the Archlinux itself. For the tar-1.13: 1. Obtain it from here: http://ftp.gnu.org/gnu/tar/ 2. Extract it to a folder 3. Open terminal in the extracted folder and type: ./configure 4. When finished: make 5. When finished: sudo make install 6. When fi

Re: [Gambas-user] Gambas2: Archlinux/Slackware packages on Ubuntu, how can I make them?

2010-10-26 Thread M. Cs.
But it isn't written how to install it on Ubuntu. It looks like a description only. -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in

[Gambas-user] Requests for Gambas3

2010-11-07 Thread M. Cs.
Dear Benoit and all, I'm writing this request as serious cry for your reconsideration and help. I was using Gambas2 on various distributions, and I'm trying to maintain the GamCat project, which is written in Gambas2, but it is harder and harder to do. First I've heard that openSuse is not followin

Re: [Gambas-user] Requests for Gambas3

2010-11-08 Thread M. Cs.
"An intermediate solution is the ability of making self-contained package, like Google does with Google Earth for example." But that isn't viable, since if I wanted to package an application on a system I need to have to have everything already installed in order to have the required libraries to

[Gambas-user] No Data event with gb.gtk libraries

2010-11-11 Thread M. Cs.
I'd like to move my project from KDE based stuff to GNOME. I have grid views, and I'm getting errors when I try to fill them with Data event. Why, which components would solve the problem? Thanks! (gambas 2.21) Csaba -- Ce

Re: [Gambas-user] No Data event with gb.gtk libraries

2010-11-11 Thread M. Cs.
O.K: There's a big mess with the gb components among the different kinds of distributions. I was trying to find a good replacement solution for the KDE libraries, since at least a half of the platforms are lacking the gb-qt-kde component. My project can run without this library, but is ugly as hell

Re: [Gambas-user] No Data event with gb.gtk libraries

2010-11-11 Thread M. Cs.
> > And yes, I've tried to run my program with the same code as it worked > before: I have some search queries where the results are put into gridviewe. > With .gtk components the Data event returns an error finding no event data. Csaba > > ---

Re: [Gambas-user] CDE. An interesting packaging tool

2010-11-13 Thread M. Cs.
Although I'm not a gambas developer, I appreciate the idea. I would prefer to have all the must-haves packaged into single file, instead of fighting with unresolved package dependencies. It's better to have a myprogram.bin installer, than myprogram.rpm, myprogram.deb... Maybe Benoit would argue bec

[Gambas-user] How many is too many in GB3?

2010-12-17 Thread M. Cs.
I've installed gambas3 from ubuntu's PPAs, and the first thing I've realized is that the number of allowed constants or code rows fell dramatically. I have a FMain of 11.000 rows written in gb2. Could you give me an esteem how much I have to modulize it to become acceptable for gb3? Thanks! --

Re: [Gambas-user] How many is too many in GB3?

2010-12-17 Thread M. Cs.
2010/12/17 Fabien Bodard > 11000 rows in one class ... wh > > > Le 17 décembre 2010 13:12, Benoît Minisini > a écrit : > >> I've installed gambas3 from ubuntu's PPAs, and the first thing I've > >> realized is that the number of allowed constants or code rows fell > >> dramatically. I have a

[Gambas-user] gambas2 and gambas3 Natty

2011-06-24 Thread M. Cs.
Hello, because of a foolish error I cannot use both gambas2 and gambas3 on Natty: gambas3-script_2.99.1-1natty0_i386.deb (--install): trying to overwrite '/usr/share/icons/hicolor/64x64/mimetypes/application-x-gambasscript.png', which is also in package gambas2-script 2.21.0-1ubuntu1 Because of

Re: [Gambas-user] gambas2 and gambas3 Natty

2011-06-25 Thread M. Cs.
Yes, I've installed these packages, and had to remove gambas2, although many of my apps are written in G2. G3 just looks more complicated, so I'll need some time for the change. Thanks for your work! Csaba 2011/6/25, Ian Haywood : > On Sat, Jun 25, 2011 at 5:29 AM, M. Cs. wr

[Gambas-user] I need simple example

2011-06-25 Thread M. Cs.
Hi, I know how to print text in G2, but I'd need a simple transcription for the following G2 code to G3: PUBLIC SUB ExecutePrint(mytext) IF Printer.Setup() THEN RETURN Printer.Resolution = 300 Draw.Begin(Printer) Draw.Font.Size = 12 Draw.Text(mytext, 564, 457) Draw.End END The examples prepared

Re: [Gambas-user] gambas2 and gambas3 Natty

2011-06-25 Thread M. Cs.
Yes. I've just succeeded, Thanks! 2011/6/25, Ian Haywood : > On Sat, Jun 25, 2011 at 6:39 PM, M. Cs. wrote: >> Yes, I've installed these packages, and had to remove gambas2, >> although many of my apps are written in G2. G3 just looks more >> complicated, so I&#

[Gambas-user] Array of PictureBoxes

2011-06-25 Thread M. Cs.
I would like to have ability to create an array of PictureBoxes or Labels, so that I could add and remove them dinamically using some id or name. Something like path nodes in Gimp. Is it possible in Gambas? -- All the dat

Re: [Gambas-user] I need simple example

2011-06-25 Thread M. Cs.
>'Launch the printing >printer.print > endif > > end > > > Public sub Printer_Draw() > > Paint.Font.Size=12 > Paint.Text(myText,564,457) > 'fill the vectorialpath > Paint.Fill > > end > > > > > 2011/6/25 M. Cs.

Re: [Gambas-user] I need simple example

2011-06-25 Thread M. Cs.
ch the printing hPrinter.Print endif end Public sub hPrinter_Draw() Paint.Font.Size=12 Paint.Text(myText,564,457) 'fill the vectorialpath Paint.Fill end But it prints empty pages only! Any correction? 2011/6/25, M. Cs. : > Thanks! > > Csaba > > 2011/6/25,

Re: [Gambas-user] I need simple example

2011-06-25 Thread M. Cs.
It won't work... In your original script At line hPrinter = new Printer(me) as "Printer" it raises error too many parameters ...why should people change a synthax wich worked in G2... 2011/6/25, M. Cs. : > Well, I tried the example you gave me, but it is full of errors! >

Re: [Gambas-user] I need simple example

2011-06-25 Thread M. Cs.
If Not Printer.Configure() Then Another error Printer.Configure not static 2011/6/25, M. Cs. : > It won't work... > In your original script > At line hPrinter = new Printer(me) as "Printer" it raises error too > many parameters > > > ...why should peopl

Re: [Gambas-user] I need simple example

2011-06-25 Thread M. Cs.
inter_Draw() Paint.Font.Size = 12 Paint.Text("Nothing", 564, 457) 'fill the vectorialpath Paint.Fill End It prints empty pages only!!! 2011/6/25, M. Cs. : > If Not Printer.Configure() Then > > Another error Printer.Configure not static > > 2011/6/25, M. Cs. : >> It

[Gambas-user] ScrollView properties

2011-06-26 Thread M. Cs.
How can get the the minimum and maximum value of scrolling position of a ScrollView? The task I'd like to solve is to open a picture which is put into a PictureBox inside a ScrollView. My problem is how to get the right X and Y coordinates under the mouse pointer, but related to the (0,0) coordina

Re: [Gambas-user] ScrollView properties

2011-06-27 Thread M. Cs.
Thanks! It works. 2011/6/26, tobias : > hi, > > to be more exact. you should use: > PRINT Mouse.ScreenX - PictureBox1.ScreenX > this will give the position of the mouse relative to PictureBox1's 0,0 > which is the same as your pictures 0,0 > > regards, > tobi > > --

[Gambas-user] Create and delete labels dinamically

2011-06-27 Thread M. Cs.
I know how to create a label object with the myLabel=New Label(Fmain) sentence. But how could I create an array of labels in order to be able to remove them if needed? -- All of the data generated in your IT infrastructure

Re: [Gambas-user] Create and delete labels dinamically

2011-06-27 Thread M. Cs.
el As TextLabel > Dim idx, idy As Integer > For idx = 0 To allLabels.length - 1 > If Object.IsValid(allLabels[idx]) Then > allLabels[idx].Y = 10 + (idy * 22) > Inc idy > End If > Next > > End > > Regards, > Caveat > > On Mon, 2011-06-27 at 11:41 +

Re: [Gambas-user] Create and delete labels dinamically

2011-06-27 Thread M. Cs.
And the other remark is this is only a static solution: I need to declare the dimension of array, which is a handicap. 2011/6/27, M. Cs. : > Thanks! I wonder whether it is possible with any kind of controls to > do the same thing? > > 2011/6/27, Caveat : >> >> Privat

[Gambas-user] Menu over a control

2011-06-28 Thread M. Cs.
How can í create a flying menu over a dinamically created control? I know how can I do it for static elements, but if I have an array of let say TextLabels, how can I attach a menu to each of the elements (in order to get and use X and Y coordinates of the controls) ? Is It possible to use Object.

Re: [Gambas-user] Menu over a control

2011-06-28 Thread M. Cs.
k() > > select case Last.Tag > Case 1 >'Text1 > Case 2 >'Text2 > 'etc > end > end > > > > 2011/6/28 M. Cs. : >> How can í create a flying menu over a dinamically created control? >> I know how can I do it for stat

Re: [Gambas-user] Menu over a control

2011-06-29 Thread M. Cs.
usable? 2011/6/28, M. Cs. : > Merci Fabien! > > 2011/6/28, Fabien Bodard : >> Public sub _New() dim i as integer >> >> dim hTextLabel as TextLabel >> >> For i = 0 to 100 >> hTextLabel = new TextLabel(Me) as "MyText" >> hT

Re: [Gambas-user] Menu over a control

2011-06-29 Thread M. Cs.
e popup there's no return value(???) Really G3 is a new language! 2011/6/29, M. Cs. : > Still I have a problem: > > If I create TextLabels as you told me, I can get their tags, so I can > identify them, but cannot remove them. In other case if I create them > as a TextLabel[],

Re: [Gambas-user] Menu over a control

2011-06-29 Thread M. Cs.
will identify the correct type of object by its name of origin "MyText". > > Now you can insert > > Public SUB MyText_Click() > > When you type LAST. you will get the list of options here and can be > sure to react to the right object as it is defined by "MyTex

Re: [Gambas-user] Menu over a control

2011-06-29 Thread M. Cs.
OK. I found that I have to put PUBLIC SUB Action_Activate(key as string) AS Boolean in order to get dinamical menus to work. The As Boolean wasn't present in G2. 2011/6/29, tobias : > hi, > > i just installed kubuntu 11.04 yesterday, i couldn't compile gambas3 > with my old ubuntu... > i hope, i c

Re: [Gambas-user] External library variable

2011-06-29 Thread M. Cs.
"I really don't care about the syntax." But I do! I'm really appreciated with the work of the Gambas team, but I'd like to express that the synthax is a quite important thing: 1. Compatibility with G2 projects 2. Time, a lot of times to spend hunting to find the changes, and the solutions for the m

[Gambas-user] Dinamic lines

2011-06-29 Thread M. Cs.
Hi, I need a clear explanation how does the printing in G3 works. All I want is to have a button clicked and afterwards a grid of changeable number of lines to be drawn over a picture, like some kind of guides implemented in Inkscape. I know in G3 there are some events during the printing regardles

Re: [Gambas-user] Dinamic lines

2011-06-30 Thread M. Cs.
Let me give a detailed explanation: In example Chart there are two forms. The first one is for collecting the chart data, so it isn't very interesting. I'll list you the second class, which is reponsible for the chart-drawing: Public total As Integer Public value As Float[] Public Sub btnClose_Cl

[Gambas-user] Modules not recognized

2011-06-30 Thread M. Cs.
I've created a module called Paper, and a PUBLIC SUB DoPrint() on it, and when I try to invoke the module with PUBLIC SUB myButton_Click() Paper.DoPrint END from FMain, I'm getting error "Unknown identifier Paper on FMain..." Men, is this still Gambas??? This was the standard way of handling th

Re: [Gambas-user] Modules not recognized

2011-06-30 Thread M. Cs.
Hmmm, I see the examples have no modules. Does it mean that in G3 the modules are not working yet? 2011/6/30, M. Cs. : > I've created a module called Paper, and a PUBLIC SUB DoPrint() on it, > and when I try to invoke the module with > > PUBLIC SUB myButton_Click() >

Re: [Gambas-user] Modules not recognized

2011-06-30 Thread M. Cs.
O.K. I've discovered that the modules should be added to the sources branch of the project! 2011/6/30, M. Cs. : > Hmmm, I see the examples have no modules. Does it mean that in G3 the > modules are not working yet? > > > 2011/6/30, M. Cs. : >> I've created a module

[Gambas-user] Please help me!

2011-06-30 Thread M. Cs.
Public samsung As Printer Public Sub PrintID() samsung = New Printer If samsung.Configure() Then Return samsung.Count = 1 samsung.Print End Public Sub samsung_Begin() End Public Sub samsung_Draw() Dim i As Integer Dim tagok As String[] tagok = Split(datae[curr], ";")' gets data from a csv sheet

Re: [Gambas-user] Please help me!

2011-06-30 Thread M. Cs.
Yes, Benoit, still even if change the synthax to: Public Sub PrintID() Dim i As Integer Dim tagok As String[] samsung = New Printer As "samsung" If samsung.Configure() Then Return samsung.Count = 1 samsung.Print End Public Sub samsung_Begin() End Public Sub samsung_Draw() Dim i As Integer Dim

Re: [Gambas-user] Please help me!

2011-07-01 Thread M. Cs.
O.K. The printing started now, but it prints the texts one over another regardless to the coordinates given by CFloat(xcor[i]) and CFloat(ycor[i]). Why? 2011/6/30, Fabien Bodard : > Le 30 juin 2011 14:00, Benoît Minisini a > écrit : >>> Yes, Benoit, >>> still even if change the synthax to: >>> >>

Re: [Gambas-user] Please help me!

2011-07-03 Thread M. Cs.
the using mouse coordinates for positioning the text, to avoid the unnecessary measurement coordinate's transformation. But as it seems to me, G3 is about how to make simple things complicated :( Thanks anyway, I'll try to fix it. Csaba 2011/7/1, Fabien Bodard : > 2011/7/1 M. Cs. :

Re: [Gambas-user] Please help me!

2011-07-04 Thread M. Cs.
Thanks, these are clear words we need! I think it is very important to have clear explanations. 2011/7/3, Benoît Minisini : >> I've tried to do exactly what I've done in G2: giving coordinates in >> original pixel sizes of the image. >> Can I set the resolution to 300 dpi and to use the originally

Re: [Gambas-user] About Printer

2011-07-19 Thread M. Cs.
Please don't forget to publish your working solution. We've spent 3 days with Fabian in private investigations with the printing and at the and I have a nearly working solution for the printing. The emphasis is on the word NEARLY. There are still problems with some pixel constraints. Printing is ev

[Gambas-user] Creating database in Gambas3

2011-09-10 Thread M. Cs.
Hi! I want to port my G2 application to G3. I would like to know what are the news for database handling in G3. 1. How to check whether a sqlite database exist? 2. How to create a database? 3. Can I use DB.Exec() for table creation or is there another preferred way to do it? Thanks! Csaba --

[Gambas-user] Install gambas3 on Oneiric

2011-11-26 Thread M. Cs.
Hi, I would like to install Gambas3 on Oneiric 64bit, but using Haywood's PPA for Natty I couldn't fulfill the task. Are there packages for this release? Thanks! -- All the data continuously generated in your IT infrastru

Re: [Gambas-user] Install gambas3 on Oneiric

2011-11-26 Thread M. Cs.
" > ( ./reconf-all && ./configure -C && make && sudo make install ) > > ~/Desktop/compile.log 2>&1 > sudo -k > echo "Done!"* > > > Or look at the official help for compiling: > http://gambasdoc.org/help/install?en&view > >

[Gambas-user] Form.Screen is incorrectly overridden in class FMain

2011-11-26 Thread M. Cs.
What could that mean? I'm trying to port a G2 project to G3, but this error is shown upon program start. Thanks! Csaba -- All the data continuously generated in your IT infrastructure contains a definitive record of cust

Re: [Gambas-user] Form.Screen is incorrectly overridden in class FMain

2011-11-26 Thread M. Cs.
Thanks! Gambas 3 did really improve in the last 6 months! I've tried to port the same app then, but there were many problems which are simply solved now! 2011/11/26, Benoît Minisini : > Le 26/11/2011 20:25, M. Cs. a écrit : >> What could that mean? >> I'm trying to por

[Gambas-user] Menu icons are not displayed

2011-11-27 Thread M. Cs.
Hello all! I have a problem. While around 90% of the ported project works well on G3, my menu images are not visible. They are present in the project's root folder just as they were there in G2. Any idea? Csaba -- All the

Re: [Gambas-user] Menu icons are not displayed

2011-11-27 Thread M. Cs.
I'm using Xubuntu 11.10, and the images on startmenu items are displayed well. I'll check it under LXDE. 2011/11/27, Benoît Minisini : > Le 27/11/2011 18:04, M. Cs. a écrit : >> Hello all! >> I have a problem. While around 90% of the ported project works well on >

Re: [Gambas-user] Menu icons are not displayed

2011-11-27 Thread M. Cs.
Yes, you got it! The menu icons are displayed correctly when I use LXDE desktop. So this may be issue with XFCE style. Thanks! 2011/11/27, M. Cs. : > I'm using Xubuntu 11.10, and the images on startmenu items are displayed > well. > I'll check it under LXDE. > > 20

Re: [Gambas-user] Release of Gambas 3 RC7

2011-12-25 Thread M. Cs.
Hello Benoit! Congrats for the RC7 and a possible bug with string functions: This function should return the string in mixed case, but it won't: Public Sub TextTog2_Click() Dim intet, gig, a, b As String Dim insta As String[] Dim i As Integer gig = editTitle.Text insta = Split(gig, " ") intet = ""

Re: [Gambas-user] Release of Gambas 3 RC7

2011-12-25 Thread M. Cs.
rophe > police) when you don't use any Upper functions? > > Or is your code deliberately obscure and using some trick to make the > initial letters uppercase? > > Season's greetings! > Caveat > > On Sun, 2011-12-25 at 17:52 +0100, M. Cs. wrote: >> H

Re: [Gambas-user] Gambas 3 is out!

2011-12-31 Thread M. Cs.
Congrats Benoit! I wish you a Gambastic new year! Csaba 2011/12/31, Willy Raets : > Successful installation of Gambas 3 on Ubuntu 10.10 > > [System] > OperatingSystem=Linux > Kernel=2.6.35-31-generic > Architecture=i686 > Memory=2051628 kB > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu

[Gambas-user] Cannot close GUI application

2012-01-02 Thread M. Cs.
The command Quit() won't work in my application, so I cannot terminate the process. The GUI disappears, but the process remains. Is there any safe way to close a GUI application? Csaba -- Ridiculously easy VDI. With Citri

Re: [Gambas-user] Cannot close GUI application

2012-01-03 Thread M. Cs.
e handles, sockets, serial ports and stop > timers. > Then FMain.Close does the trick nicely. > > Regards, > Ron_2nd. > 2012/1/2 Fabien Bodard > >> Le 2 janvier 2012 19:57, Benoît Minisini >> a écrit : >> > Le 02/01/2012 17:03, M. Cs. a écrit : >> >>

[Gambas-user] File opening dialog and one more question

2012-01-05 Thread M. Cs.
Hi, in G2 we had a file opening dialog which was identical as KDE's native one. It seems to be removed, or am I wrong? I would like to have that old one. It's more convenient with the system-wide bookmarks etc. And the question: I don't understand the STATIC word's meaning. Is it given to define a

[Gambas-user] Dependencies in packages

2012-01-05 Thread M. Cs.
Another question: In the package making dialog there is a list of dependencies to be added to the package. How can I add mp3info as dependency? I've tried to add just string mp3info without min and max versions, but the installer is not pulling it as dependency. Thanks! ---

Re: [Gambas-user] File opening dialog and one more question

2012-01-05 Thread M. Cs.
change it for all instances), and the amount to > convert as non-static, non-const... hope that example made some sense! > > Regards, > Caveat > > > On Thu, 2012-01-05 at 12:35 +0100, M. Cs. wrote: >> Hi, >> in G2 we had a file opening dialog which was identical as KDE's n

[Gambas-user] The good old tar-1.13 is still an obstacle

2012-01-05 Thread M. Cs.
Hello, I simply don't know how to install tar-1.13 on Kubuntu Oneiric. The old method of creating it from sources an then making a symbolic link with ln -s /usr/local/bin/tar-1.13 /usr/bin/tar-1.13 doesn't solves the problem. Any working solution of faking it? Csaba --

Re: [Gambas-user] File opening dialog and one more question

2012-01-05 Thread M. Cs.
Yes, it was caused by porting. I've fixed it. 2012/1/5, M. Cs. : > Unfortunately the built-in file opening dialog just doesn't work for > me. The project has been ported from G2 to G3. I have a filter added > for the .tar.gz filetype but although it shows the correct files, I

Re: [Gambas-user] File opening dialog and one more question

2012-01-05 Thread M. Cs.
Thank you! 2012/1/5, Benoît Minisini : > Le 05/01/2012 12:35, M. Cs. a écrit : >> Hi, >> in G2 we had a file opening dialog which was identical as KDE's native >> one. It seems to be removed, or am I wrong? I would like to have that >> old one. It's more conv

[Gambas-user] Another basics

2012-01-06 Thread M. Cs.
Hello, before i take off with redesign, I'd like to check whether I'm right or not: 1. Modules are for functions and procedures. To split the program into building bricks 2. Classes for object construction. If I need an object, I'm using classes with private variables, private subs for the internal

Re: [Gambas-user] Another basics

2012-01-06 Thread M. Cs.
Hello Fabien, and I also think it would be nice to hear about how to keep the code clean. I have to rewrite the things in order to have a program without unfreed allocations. What I intend to do is to use more private variables on modules and well defined functions to access to them across the modu

Re: [Gambas-user] The good old tar-1.13 is still an obstacle

2012-01-06 Thread M. Cs.
Hello Benoit! Your method doesn't work on Kubuntu 11.10. I simply cannot create Slackware package with IDE. Any other solution? Csaba 2012/1/5, Benoît Minisini : > Le 05/01/2012 17:12, M. Cs. a écrit : >> Hello, >> I simply don't know how to install tar-1.13 on Kubuntu O

[Gambas-user] Difficulties using Gambas 3 IDE

2012-01-13 Thread M. Cs.
It's quite difficult to use the new IDE: I'm designing a project using panels and Hboxes and Vboxes and other expanders, but it is almost impossible to determine which element I'm editing. The Property box is messing the names of the elements, after few settings done. After 5-6 settings I cannot di

[Gambas-user] Database question

2012-01-18 Thread M. Cs.
Hi! Is there any built in function in Gambas3 which can secure the database connection from the errors caused by special characters? I have written functions for replacing the dangerous characters like ', +, . and so on, but I'd like to know whether there is a way to make queries secure from failu

Re: [Gambas-user] Database question

2012-01-18 Thread M. Cs.
2012/1/18, Benoît Minisini : > Le 18/01/2012 14:17, M. Cs. a écrit : >> Hi! >> Is there any built in function in Gambas3 which can secure the >> database connection from the errors caused by special characters? >> >> I have written functions for replacing the dange

Re: [Gambas-user] Database question

2012-01-19 Thread M. Cs.
ally fails just like that If I try to seek for the files containing certain characters which are in use by the Sqlite backend. I only need two lines of the answer. Thanks! Csaba 2012/1/18, M. Cs. : > Yes, Benoit. I'll check the documentation, since I always used the > Myconnection.

Re: [Gambas-user] Database question

2012-01-19 Thread M. Cs.
= Replace$(atmen, "'", "§") atmen = Replace$(atmen, ":", "¥") Return atmen End These were the guards for special characters. The first one did the conversion from database to GUI, the second did encode the strings for the database insertion. I suppose

Re: [Gambas-user] Database question

2012-01-19 Thread M. Cs.
If rSet Not Null Then > If rSet.Count > 0 Then > rSet.MoveFirst > Print rSet["CLEF"], rSet["NOMNL"] > Endif > Endif > > Kind regards, > Caveat > > On Thu, 2012-01-19 at 14:09 +0100, M. Cs. wrote: >> Some more c

[Gambas-user] Help! I can't find the error

2012-01-19 Thread M. Cs.
querry = "SELECT * FROM MP3;" tablak = DBconX.Exec(querry) DBconX.Begin() For Each tablak a1 = Trans(tablak!file) a2 = Trans(tablak!path) a3 = Trans(tablak!Volume) a4 = Trans(tablak!title) a5 = Trans(tablak!artist) a6 = Trans(tablak!album) a7 = Trans(tablak!genre) a8 = Trans(tablak!

Re: [Gambas-user] Fill list box with mysql query

2012-01-20 Thread M. Cs.
$Result=MyConnection.Exec("SELECT * FROM Mytable;") FOR EACH $Result MyListbox.Add($Result!fieldname) NEXT 2012/1/20, Keith Clark : > How would I go about filling a listbox with a result from a mysql > query? I know how to connect, write the query and get the result back > in say $Result. > > The

[Gambas-user] How to auto-adjust GridView column widths?

2012-01-21 Thread M. Cs.
Is there a way to force a GridView control with 4 columns to adjust the column's width to the content's width? How would it work with a control which expands or stretches itself during maximizing the FMain? Thanks! -- Tr

Re: [Gambas-user] How to auto-adjust GridView column widths?

2012-01-22 Thread M. Cs.
ust where to put, and how. I've tried many versions but always resulting with Stack overflow error. Thanks! Csaba 2012/1/22, Benoît Minisini : > Le 21/01/2012 17:48, M. Cs. a écrit : >> Is there a way to force a GridView control with 4 columns to adjust >> the column's wi

[Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-22 Thread M. Cs.
I have a dinamically created query text. I don't know the number of parameters passed to the DB.Exec, so I cannot use &1,&2,... form. I need to use the DB.Quote() My problem is: If I have a string mystring="Blackmore's Night", the DB.Quote(mystring) won't quote the ', so the query will crash. In fa

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread M. Cs.
t;SELECT * FROM CATALOGS WHERE VName LiKE &1","%'%") and the result won't fail. I wonder why? What's the advance in .Exec over .Quote? I will try Johnny's trick. Thanks! Csaba 2012/1/23, Benoît Minisini : > Le 23/01/2012 00:15, M. Cs. a écrit : >>

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread M. Cs.
I'm sorry Benoit, but I didn't realized that in "You must use DB.Subst()" the You is me. I was thinking you are answering to Johnny. I'll give a try. Csaba 2012/1/23, Benoît Minisini : > Le 23/01/2012 14:03, M. Cs. a écrit : >> Well, that was the thing I was fea

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread M. Cs.
d to DB.Exec, during the formation of search query text. Do you understand my need? I'm not the one who've invented the ' signs in English language but they are present in almost every title or sentence. Thank you! Csaba 2012/1/23, M. Cs. : > I'm sorry Benoit, but I

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread M. Cs.
I found a way to do, but I didn't understand what Benoit wanted: If I have a query, I can always do the following: Replace "SELECT * FROM CATALOGS WHERE VName=." with "SELECT * FROM CATALOGS WHERE " & DB.Subst("VName=&1",...) & "..." That can solve the problem. I'm sorry but something can be

Re: [Gambas-user] Gambas3 and ubuntu repositories

2012-01-26 Thread M. Cs.
deb http://ppa.launchpad.net/nemh/gambas3/ubuntu oneiric main 2012/1/26, Christian DaGeek247 Stephens : > *Hey, when will gambas3 be available on the ubuntu repositories? Or is > there another repository that I can add to my repo list in ubuntu to get it? > * > > -- > *If a packet hits a pocket on

Re: [Gambas-user] Gambas WebPage

2012-01-28 Thread M. Cs.
Will it be possible to display a native HTML/PHP code in it like in ... ? Why to depend on ASP? Csaba 2012/1/28, Sebastian Kulesz : > I really like this idea, it makes an application really versatile. > What I think is that before starting to code it you must define some > things. > > First, the

[Gambas-user] Disabling the window's buttons on forms

2012-01-29 Thread M. Cs.
Hello! How could I disable the Maximize, Minimize and Close buttons on a Form? If I used a borderless form, I'm losing the ability of resizing it, and If I use a form with borders, and If I start a Music on this form, it won't stop upon Close button's being pushed. Any idea? Csaba ---

[Gambas-user] I need your help with Processes

2012-02-03 Thread M. Cs.
Public $hProcess As Process Private $sText As String Private answers As New String[] Public Sub Main() Dim fajl As File Dim tovabb As Boolean Dim i As Integer $hProcess = Exec ["bash", "--noediting"] For Input Output As "Process" tovabb = Run_command("ftp") tovabb = Run_command("open")

Re: [Gambas-user] I need your help with Processes

2012-02-03 Thread M. Cs.
Thanks! I've tried to add: Repeat wait 1 Until checker=TRUE checker=FALSE After every Run_command() and Public Sub Process_Read() Dim sStr As String Read #$hProcess, sStr, -256 answers.Add(sStr) checker=TRUE End My problem is how to solve insertion of user name and password as well a

Re: [Gambas-user] I need your help with Processes

2012-02-03 Thread M. Cs.
I've managed to decrease the problem. I can create a ~/.netrc and I can place all the required data into it. So I'm able to reach the ftp server with Run_command("ftp ftp.mysite.com") , and I'm in. But how can I execute something inside that very same process? I don't understand that bubbling conce

Re: [Gambas-user] I need your help with Processes

2012-02-03 Thread M. Cs.
te Print #fajl, $sText Close (fajl) $sText = "" Run_command("quit") '$hProcess.Kill End Public Sub Process_Read() Dim sStr As String Read #$hProcess, sStr, -256 $sText = $sText & sStr End Public Sub Run_command(cmd As String) Dim sLig As String

[Gambas-user] Creating button as class element with variable function

2012-02-04 Thread M. Cs.
Is it possible to create a button with dinamically changeable action? I would like to have something like: Public Sub AddGomb2(sz As Integer, m As Integer, x As Integer, y As Integer, q As Container, szoveg As String, operation as String) Dim gomb As Button gomb = New Button(q) As "Gomb2" gom

  1   2   3   >