Re: [Gambas-user] Missing dependencies in compiled packages
I'm waiting for an answer too. I've have the same problem with the gambas2-gb-db-mysql.deb package on Ubuntu. 2009/2/24 minthaka mohar...@gmail.com What are you trying to do? Please tell us more. My question is twofold: 1. I've written a program in Gambas. It uses the sqlite3 server as backend. When I try to install my program, the package manager invokes another packages to be installed: -gambas2-gb-db -gambas2-gb-db-form -gambas2-gb-form -gambas2-gb-qt -gambas2-gb-qt-ext -gambas2-runtime. It's all right, the dependencies are well solved but: the program doesn't work until I've not installed gambas2-gb-db-sqlite3 package. I have to do it manually, nothing is telling me what is missing. I would like to have this package on the dependency list. I don't know how to do that. 2. I would also include packages unarj, unzip, unrar, unace, and add them on dependency list. If it is not possible to do from within gambas2-ide, is there possibility to crack an .rpm file, to find a file containing the dependency list, and to add some lines manually, and after to save all the changes. I don't know how to create .rpm packages manually, the descriptions are obsolete,... So can you help me? Thanks! Csaba -- View this message in context: http://www.nabble.com/Missing-dependencies-in-compiled-packages-tp22148634p22180533.html Sent from the gambas-user mailing list archive at Nabble.com. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] EOF character seems not to work
I need to write an array of lines to a file, each ending in the EOL char for MAC, I used this code, it dosn't work, it ends up with the UNIX EOL. I must have my syntax wrong somehow: Dim hfile As file hfile.EndOfLine = gb.Mac How can that line of code work? hFile is NULL, you must have got an error. -- Benoît -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Missing dependencies in compiled packages
BTW, the 3.0 development branch is said to have support for such a thing... I have yet to try it. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Missing dependencies in compiled packages
I asked this question a long time ago (08/18/08) Apparently, there are no provisions for this in the gambas2 branch. I was referred to this back then http://gambas.svn.sourceforge.net/viewvc/gambas?view=revrevision=1520 (notice the log message) In the mean time, you may need to study your .deb package structure and manually hack it to pull those dependencies. That's what I did for my application (for VectorLinux) In VectorLinux and Slackware (.tlz and .tgz) packages, there is a file called slack-required which defines package dependencies. Maybe there is something similar in .deb -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Switching between forms in tabstrip
Hi, has anyone tried this before? switching between tabs without clicking them. Doing it from code pressing Crtl + Tab or something, like Firefox does. Thanks, Marcel -- View this message in context: http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22206694.html Sent from the gambas-user mailing list archive at Nabble.com. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Missing dependencies in compiled packages
I'm facing a serious problem when compiling a project: When I'm trying to install the created package, it gives the list of required dependencies, but there are missing gambas components. For example, I cannot add the gambas2-gb-db-sqlite3 package, and I can't see it in projects properties. I've checked the gb.db component, but that doesn't affect the missing package. Off course, the program would install but also immediately crash, since it's built upon sqlite backend. How can I add these missing stuffs? Thanks! Csaba Hi, At the moment, database drivers are not checkable in the project property dialog, and so they are not added to the project dependencies list. I think making them checkable is not a problem. If I do that in a next commit, will you test it? -- Benoît -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Change translations at runtime
Hi I know that this issue has been addressed earlier in the list, but has not been answered yet. I have a translated project in English, Spanish, Catalan, etc. Thanks to an Stefano Palmeri's reply on Jun 06, 2007, I can see the program running in a different language on the console by typing export LANG=xx_XX and then run my application. This works fine, but is it possible to do so from within the running program? Ie, allow the user to switch between languages at runtime? Thanks in advance Jesús -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching between forms in tabstrip
Le mercredi 25 février 2009 18:03:29 Vackoy, vous avez écrit : Yes, but which element/object is the observer for the Keypress? I tried with Workspace.Keypress but when I open a form, the observer becomes the form and not the workspace, so no matter what key I press it doesn't raise the event... M0E Lnx wrote: Have not tried it but I imagine you can code that in the windows_Keypress() event. Should be doable As Moe told to you, you can use windows_Keypress() event EX. suppose you have two textbox named textbox1 and textbox2 declared in group tbox with tag 1 2. This procedure below show you how going textbox1 to textbox2 and textbox2 to textbox1. PUBLIC SUB Tbox_KeyPress() IF Key.code = Key.enter OR Key.code = Key.Return OR Key.code = Key.Tab THEN SELECT CASE LAST.tag CASE 1 Textbox2.SetFocus STOP EVENT CASE 2 Textbox1.SetFocus STOP EVENT endif end I hope that it is it that you want Jacky -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching between forms in tabstrip
@jacky-12 I understand that but that is not what I need. Let me see if I can explain it better. I have a workspace and add several forms to it. In each for i have different controls as textboxes, buttons, gridviews, etc. The thing is that I want to be able to switch between forms with some key combination (i.e. Ctrl + Tab) but the keypress event depends on the control that has the focus and not on the tabstrip or the workspace. So how can I get the keypress regardless the control or object that has the focus. Is there another way of doing this? Thanks. Marcel jacky-12 wrote: Le mercredi 25 février 2009 18:03:29 Vackoy, vous avez écrit : Yes, but which element/object is the observer for the Keypress? I tried with Workspace.Keypress but when I open a form, the observer becomes the form and not the workspace, so no matter what key I press it doesn't raise the event... M0E Lnx wrote: Have not tried it but I imagine you can code that in the windows_Keypress() event. Should be doable As Moe told to you, you can use windows_Keypress() event EX. suppose you have two textbox named textbox1 and textbox2 declared in group tbox with tag 1 2. This procedure below show you how going textbox1 to textbox2 and textbox2 to textbox1. PUBLIC SUB Tbox_KeyPress() IF Key.code = Key.enter OR Key.code = Key.Return OR Key.code = Key.Tab THEN SELECT CASE LAST.tag CASE 1 Textbox2.SetFocus STOP EVENT CASE 2 Textbox1.SetFocus STOP EVENT endif end I hope that it is it that you want Jacky -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- View this message in context: http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22207784.html Sent from the gambas-user mailing list archive at Nabble.com. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Change translations at runtime
I have a program that runs the same way. Unfortunately, for translations to take place, all translated objects must be destroyed and re-created under the new environment. The first time around, I created a loop to restart the application after setting the right environment. Later, I realized that I could do it without having to restart the entire application. You can do it by using a class or module as startup class, and if you are offering a language selection, of course, your first window will always show up in the language defined by LANG. Anything after that will be shown in the language selected by the user. I have seen python applications, where you click a language in a list and everything in the form translates immediately...the screen doesn't even flash. I wonder if gambas could implement someting like that some day -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching between forms in tabstrip
@jacky-12 I understand that but that is not what I need. Let me see if I can explain it better. I have a workspace and add several forms to it. In each for i have different controls as textboxes, buttons, gridviews, etc. The thing is that I want to be able to switch between forms with some key combination (i.e. Ctrl + Tab) but the keypress event depends on the control that has the focus and not on the tabstrip or the workspace. So how can I get the keypress regardless the control or object that has the focus. Is there another way of doing this? Thanks. Marcel You need a support for global shortcuts. On Gambas, the only way to do it is creating an hidden menu with one menu item for each action, each item having a shortcut. Regards, -- Benoît -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Missing dependencies in compiled packages
Yes, I would do if you explained me how to do it. I've written an aplication which is open for everyone, and I would like to make it usable from dependency part too. Greetings, Csaba -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching between forms in tabstrip
Vackoy ha scritto: @jacky-12 I understand that but that is not what I need. Let me see if I can explain it better. I have a workspace and add several forms to it. In each for i have different controls as textboxes, buttons, gridviews, etc. The thing is that I want to be able to switch between forms with some key combination (i.e. Ctrl + Tab) but the keypress event depends on the control that has the focus and not on the tabstrip or the workspace. So how can I get the keypress regardless the control or object that has the focus. Is there another way of doing this? I had the same problem some time ago. The ultimate response is, you can't. To do that, it would be needed a KeyPreview property of the form, which lets the form intercept all the keypresses before they arrive to its controls, perhaps even before they reach the Menu. I managed this situation by using a Menu item, and setting its shortcut. In the event handler of that menu, you can do whatever you want. This menu should be hidden, but it was reported that hidden Menus don't trigger events... but for me it worked (the shortcut was Enter!) - may be there are differences from GTK or QT. Regards, Doriano -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching between forms in tabstrip
If I may add my 2 cents worth, if you just use the form_keypress event you might be able to do what you want. this is my attempt; tbsettings is my tabstrip control I have 4 tabs (with index 0 to 3) add this to the form that you have the tabstrip onto PUBLIC SUB Form_KeyPress() IF Key.Control THEN SELECT CASE tbSettings.Index CASE 0 TO 2 INC tbSettings.Index CASE 3 tbSettings.index = 0 CASE ELSE END SELECT END IF END this would result in moving to the next tab when you just press the control key I haven't been able to make it to work with a combination of keys but in Gambas 2.10 it works no matter what control has the focus I only have one tabstrip control on my GUI so I am not sure if this solution would work on multiple tabstrips or other layouts Hope it helps and it's close to what you wanna do. Regards, Dimitrios On Wed, Feb 25, 2009 at 12:14 PM, Doriano Blengino doriano.bleng...@fastwebnet.it wrote: Vackoy ha scritto: Thanks everyone for your responses. I think that what Benoit and Doriano suggested are in the way of what I need. Doriano, the layout of what I have is the following: * a main form * a workspace * several forms added to the workspace by .add method Where should I add the menu, in the main form? the workspace? sorry but is beyond what I have tried before Thanks. I think you should add the menu to the main form, but I never tried workspaces; I am happy with plain tabstrips. So, I really don't know if it works well with workspaces, because inside them there can be another menu, I suppose (well, this is true for tabstrips too, they can embed other forms). It is not clear to me the path events take to go from X11 to widget system to gambas to whatever ;-) Take a try... it should be quick and easy... good luck! Regards, Doriano -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas3 byref behavior
Hi I could be wrong, but. I think that byref command should behave like this: a = 0 TestFunction(a) Print a Public Function TestFunction(Byref x as Integer) Inc x End Result: 1 And if you like to pass byref argument byval instead for some reason, you should do this: a = 0 TestFunction(Byval a) Print a Public Function TestFunction(Byref x as Integer) Inc x End Result: 0 There are reasons why one design function to take parameters byref, and so, it should be default behavior. Need to pass byref argument byval is rare exception (I think). Maybe there are some technical restrictions why this is as it is. And maybe this is not good enough reason to change syntax anymore... What do you think? Jussi -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Fwd: Gambas3 byref behavior
I forgot to mention about related bug... IDE doesn't like this; With someobject TestFunction(ByRef .x) End With it renders to; With someobject TestFunction(ByRef.x) -- Unknown identifier: ByRef End With Sorry about messy post... Jussi -- Forwarded message -- From: Jussi Lahtinen jussi.lahti...@gmail.com Date: Wed, Feb 25, 2009 at 9:41 PM Subject: Gambas3 byref behavior To: Gambas mailing list for users. Gambas-user@lists.sourceforge.net Hi I could be wrong, but. I think that byref command should behave like this: a = 0 TestFunction(a) Print a Public Function TestFunction(Byref x as Integer) Inc x End Result: 1 And if you like to pass byref argument byval instead for some reason, you should do this: a = 0 TestFunction(Byval a) Print a Public Function TestFunction(Byref x as Integer) Inc x End Result: 0 There are reasons why one design function to take parameters byref, and so, it should be default behavior. Need to pass byref argument byval is rare exception (I think). Maybe there are some technical restrictions why this is as it is. And maybe this is not good enough reason to change syntax anymore... What do you think? Jussi -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] question about gambas2-runtime
I'm assuming that installing gambas2-runtime in Ubuntu, I'd still need to install gambas2-gb-net package to work if my program uses a UDP server, for example? -- joshua higgins -- -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] What's the Margin property of vertical box Do
?? Never noticed it there before, and no help available. REgards richard -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user