Re: [Gambas-user] Switching between forms in tabstrip
Dimitris, thanks for the tip. I can get the Keypress event from the form and get the combination for Ctrl + Tab. However, since I have a Workspace, I don't know how to access the Tabstrip control or how to index the forms in it. Any thoughts? Thanks Dimitris Anogiatis wrote: If I may add my 2 cents worth, -- View this message in context: http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p3618.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 First, you must set the System.Language property, which reload the translation file. But it does not change the text in already opened windows. So you must do that by hand. 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] Switching between forms in tabstrip
Dimitris, thanks for the tip. I can get the Keypress event from the form and get the combination for Ctrl + Tab. However, since I have a Workspace, I don't know how to access the Tabstrip control or how to index the forms in it. You don't. You must use the Workspace.Children property to get an array of all child windows, choose your window, and then set the Workspace.ActiveWindow property. 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] 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 The reason why ByRef must be specified both in function declaration and in function call is explained in the documentation wiki there: http://gambasdoc.org/help/doc/byref 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] What's the Margin property of vertical box Do
?? Never noticed it there before, and no help available. REgards richard If set, the Margin property adds Desktop.Scale to the Padding property. -- 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] baloon size
Is there any way to get a balloon to resize to what I need? I'm using aballoon to display about 12 lines of text (each line about 70 characters long) Is there any way to make the baloon resize to fit such a thing? Using Gambas2-2.11.1 Mmm. It seems there is a bug in gb.gtk, as with gb.qt the balloon displays 12 lines of text without problems. 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] Switching between forms in tabstrip
After reading Benoît 's guidelines and going through my previous example I came up with this. PUBLIC SUB Form_KeyPress() IF Key.Control SELECT CASE Workspace1.Children.Find(Workspace1.ActiveWindow) CASE 0 TO Workspace1.Children.Count - 2 Workspace1.ActiveWindow = Workspace1.Children[Workspace1.Children.Find(Workspace1.ActiveWindow) + 1] CASE Workspace1.Children.Count - 1 Workspace1.ActiveWindow = Workspace1.Children[0] CASE ELSE END SELECT ENDIF END Add this to the code of the form that has the workspace it should have the desired effect. Hopefully this will bring you closer to what you want to do. Regards Dimitris On Thu, Feb 26, 2009 at 6:20 AM, Benoît Minisini gam...@users.sourceforge.net wrote: Dimitris, thanks for the tip. I can get the Keypress event from the form and get the combination for Ctrl + Tab. However, since I have a Workspace, I don't know how to access the Tabstrip control or how to index the forms in it. You don't. You must use the Workspace.Children property to get an array of all child windows, choose your window, and then set the Workspace.ActiveWindow property. 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 -- 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
I tried this last example and it worked like a charm. Thanks. Marcel -- View this message in context: http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22233025.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
Thanks Benoît and M0E, it works. But as you said, I must reload the main form after this command. No problem anyway, because at the moment I'm using it only for debugging purposes. Cheers Jesús Guardón Benoît Minisini escribió: First, you must set the System.Language property, which reload the translation file. But it does not change the text in already opened windows. So you must do that by hand. Regards, -- 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] Missing gambas2-gb-settings in OpenSuse
Hello I'm trying to test my application (which uses gb.settings) into a virtualized OpenSuse. All dependencies are found, except gambas2-gb-settings. I've browsed repositories manually and also had no luck. Even if I install the whole Gambas IDE into OpenSuSe, debugging the application or making an executable runs fine, but creating a RPM package and trying to install it, gives the same error. Am I missing something, or is there a reason for so? Thanks Jesus -- 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
Glad I could help Marcel :) On Thu, Feb 26, 2009 at 1:33 PM, Vackoy marcel.duf...@gmail.com wrote: I tried this last example and it worked like a charm. Thanks. Marcel -- View this message in context: http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22233025.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
[Gambas-user] help with data import into postgres - funny characters import fails
Hi , I'm trying to import the hl7 from a local radiology provider: It's got funny characters in the file and postgres baulks when I go to save the line with the message attatched, but it basically says - invalid byte sequence for encoding UTF8. My postgres database is created with UTF8 encoding CREATE DATABASE 27Feb09 WITH OWNER = richard ENCODING = 'UTF8'; snipped is the offending bit: with a maximum AP diameter\.br\of 1.0cm and a less than 50% stenosis in its proximal segment. \.br\\.br\Continued�/2\.br\In the mid superficial femoral artery there is staccato flow and an I've imported thousands and thousands of lines from a pathology provider and never encountered these characters. Thanks in anticipation. -- 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] help with data import into postgres - funny characters import fails
Is the error a Gambas error or a Postgres error? It might be they are using a charset with special keys spefic to their industry, which might indicate more data, or, more likely, the data is errorenous and got bit-shifted, and now, the high-order bit might be too large to be part of the UTF-8 charset. I would see if you can get the binary/hex of those keys, and shift the bits each way by one, (try two also), and then if one of them makes sense, you know its a communication error (that got uncorrected??? doesn't sound like TCP). Since you've never encountered these characters, the most likely scenario is data corruption. Try to correct it with a bitshift, and if that works, write code to search for high-order bits that are incorrect, and shift the sequence appropriately. Let me know what you think ^_^ -Robert On Thu, Feb 26, 2009 at 5:57 PM, richard terry rte...@pacific.net.auwrote: Hi , I'm trying to import the hl7 from a local radiology provider: It's got funny characters in the file and postgres baulks when I go to save the line with the message attatched, but it basically says - invalid byte sequence for encoding UTF8. My postgres database is created with UTF8 encoding CREATE DATABASE 27Feb09 WITH OWNER = richard ENCODING = 'UTF8'; snipped is the offending bit: with a maximum AP diameter\.br\of 1.0cm and a less than 50% stenosis in its proximal segment. \.br\\.br\Continued�/2\.br\In the mid superficial femoral artery there is staccato flow and an I've imported thousands and thousands of lines from a pathology provider and never encountered these characters. Thanks in anticipation. -- 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] help with data import into postgres - funny characters import fails
Sorry to post two messages, but I just thought of something. Maybe they are nulls, and maybe postgres has a problem importing nulls into a string datatype. Just a thought to look into. DEFINITELY look at the hex representation (ideally next to the character representation) and see if you can identify what the characters are. UTF characters often take this form (on little-endian[first], hi-order 2nd) 24 04 | 52 04nulls obviously: 00 00, and bitshifted: 40 45 | 20 42. On Thu, Feb 26, 2009 at 8:11 PM, Robert Moss the.at.rob...@gmail.comwrote: Is the error a Gambas error or a Postgres error? It might be they are using a charset with special keys spefic to their industry, which might indicate more data, or, more likely, the data is errorenous and got bit-shifted, and now, the high-order bit might be too large to be part of the UTF-8 charset. I would see if you can get the binary/hex of those keys, and shift the bits each way by one, (try two also), and then if one of them makes sense, you know its a communication error (that got uncorrected??? doesn't sound like TCP). Since you've never encountered these characters, the most likely scenario is data corruption. Try to correct it with a bitshift, and if that works, write code to search for high-order bits that are incorrect, and shift the sequence appropriately. Let me know what you think ^_^ -Robert On Thu, Feb 26, 2009 at 5:57 PM, richard terry rte...@pacific.net.auwrote: Hi , I'm trying to import the hl7 from a local radiology provider: It's got funny characters in the file and postgres baulks when I go to save the line with the message attatched, but it basically says - invalid byte sequence for encoding UTF8. My postgres database is created with UTF8 encoding CREATE DATABASE 27Feb09 WITH OWNER = richard ENCODING = 'UTF8'; snipped is the offending bit: with a maximum AP diameter\.br\of 1.0cm and a less than 50% stenosis in its proximal segment. \.br\\.br\Continued�/2\.br\In the mid superficial femoral artery there is staccato flow and an I've imported thousands and thousands of lines from a pathology provider and never encountered these characters. Thanks in anticipation. -- 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] baloon size
when can I expect to see this fixed? On Thu, Feb 26, 2009 at 7:31 AM, Benoît Minisini gam...@users.sourceforge.net wrote: Is there any way to get a balloon to resize to what I need? I'm using aballoon to display about 12 lines of text (each line about 70 characters long) Is there any way to make the baloon resize to fit such a thing? Using Gambas2-2.11.1 Mmm. It seems there is a bug in gb.gtk, as with gb.qt the balloon displays 12 lines of text without problems. 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 -- 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