From yaco at ...181... Thu Mar 1 07:07:52 2007 From: yaco at ...181... (Franco Iacomella) Date: Thu, 1 Mar 2007 03:07:52 -0300 Subject: [Gambas-user] Gambas runtime Message-ID: <4aaa42cc0702282207q199b6cfcx235797c4ba226f14@...627...> Hi, i want to know how should i distribute my gambas applications. Gambas is required to run them in other computer? is there any runtime or something so it shouldn't be necessary to install Gambas IDE and tools and just the minimal to run it in any system? I have seen some gambas-runtime for Debian and n RPM package, but nothing in the official site. Any idea? Regards, -- Franco Iacomella [ GNU Project ] From gambas at ...1... Thu Mar 1 07:23:39 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 Mar 2007 07:23:39 +0100 Subject: [Gambas-user] Umm... a little help here? In-Reply-To: <45E465BC.8070007@...981...> References: <45E45EA9.10200@...981...> <45E465BC.8070007@...981...> Message-ID: <200703010723.39407.gambas@...1...> On mardi 27 f?vrier 2007, sbungay wrote: > OK. I figured it out... (and now I'm talking to myself on-line). > The last thing I had done was copy a png file to a folder called Icons > within the Questware folder. This png file was the problem. It was > copied from use/share/icons and was zero bytes long. In addition it was > owned by root. Removed the file and copied it in again. This time it was > not zero bytes in length and owned by me. > So it appears (and I'm guessing at this) that if the IDE can't > iterate through all of the files within it's scope that rather than skip > the file in question, it refuses to load the project and produces the > error message given below. > The project once again loads properly. :) > > Steve. > > sbungay wrote: > > Just saved a project and closed Gambas. Came back to work on the > > project, opened Gambas and clicked on the project name and it all wen't > > horribly wrong... > > > > "Cannot open project file : > > /home/Ubungayst/QuestWare > > > > File or directory does not exist > > Project.GetFileIcon.433" > > > > The directory does exist, and there is a .project file in it. I did a > > 'cat' on the .project file and it appears OK. > > > > > > All of the class files are present so I could create the project from > > scratch.... but then I'd not get to learn anything and that's just a > > whole lot of no-fun. :) > > > > Environment: > > Gambas 2-1.9.47 > > Fedora Core 5 > > > > > > Steve. > > I think this bug has been fixed in trunk. Regards, -- Benoit Minisini From leonardo at ...1237... Thu Mar 1 10:42:26 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 01 Mar 2007 10:42:26 +0100 Subject: [Gambas-user] Gambas runtime In-Reply-To: <4aaa42cc0702282207q199b6cfcx235797c4ba226f14@...627...> References: <4aaa42cc0702282207q199b6cfcx235797c4ba226f14@...627...> Message-ID: <45E6A002.4070501@...1237...> Franco Iacomella ha scritto: > Hi, > i want to know how should i distribute my gambas applications. Gambas is > required to run them in other computer? is there any runtime or something so > it shouldn't be necessary to install Gambas IDE and tools and just the > minimal to run it in any system? > > I have seen some gambas-runtime for Debian and n RPM package, but nothing in > the official site. > > Any idea? > > Regards, > Here http://gambasdoc.org/help/howto/package you should find anwsers for your questions :-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From msdarmawan at ...396... Thu Mar 1 12:15:28 2007 From: msdarmawan at ...396... (M Sulchan Darmawan) Date: Thu, 1 Mar 2007 18:15:28 +0700 Subject: [Gambas-user] upgrade gambas on ubuntu edgy Message-ID: <964448306.20070301181528@...396...> Dear all, I have install gambas version 1.0.15 from Ubuntu Alternate CD, using add/remove applications. I have download gambas tarball latest version and wanted to upgrade the existing installation. Since I am a newbie in upgrading. Do I have to remove old gambas first, or just do ./configure make make install right away ? Thanks for the information. Best regards, -- M Sulchan Darmawan Every generation has a legend. Every journey has a first step. Every saga has a beginning. --Star Wars Episode I: The Phantom Menace (1999) From jayme.staggs at ...626... Thu Mar 1 14:13:01 2007 From: jayme.staggs at ...626... (Jayme Staggs) Date: Thu, 1 Mar 2007 08:13:01 -0500 Subject: [Gambas-user] Gambas runtime In-Reply-To: <45E6A002.4070501@...1237...> References: <4aaa42cc0702282207q199b6cfcx235797c4ba226f14@...627...> <45E6A002.4070501@...1237...> Message-ID: So, am i right in the assumption that wanting to run Gambas-Based Executables on Windows Machines is just Wishful thinking at this point? I was hoping that there would be some scope for cross-compatibility between Windows and Linux (Where Gambas is concerned)... On 3/1/07, Leonardo Miliani wrote: > > Franco Iacomella ha scritto: > > Hi, > > i want to know how should i distribute my gambas applications. Gambas is > > required to run them in other computer? is there any runtime or > something so > > it shouldn't be necessary to install Gambas IDE and tools and just the > > minimal to run it in any system? > > > > I have seen some gambas-runtime for Debian and n RPM package, but > nothing in > > the official site. > > > > Any idea? > > > > Regards, > > > > Here > http://gambasdoc.org/help/howto/package > > you should find anwsers for your questions :-) > > -- > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > Scegli software opensource - Choose opensource software > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leonardo at ...1237... Thu Mar 1 16:51:05 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 01 Mar 2007 16:51:05 +0100 Subject: [Gambas-user] Gambas runtime In-Reply-To: References: <4aaa42cc0702282207q199b6cfcx235797c4ba226f14@...627...> <45E6A002.4070501@...1237...> Message-ID: <45E6F669.4010300@...1237...> Jayme Staggs ha scritto: > So, am i right in the assumption that wanting to run Gambas-Based > Executables on Windows Machines is just Wishful thinking at this point? > > I was hoping that there would be some scope for cross-compatibility between > Windows and Linux (Where Gambas is concerned)... Benoit lets undestand that he will never create a Windows version of Gambas because Gambas is born under Linux. If you just want to run your Gambas program under Windows he suggests a method: http://gambasdoc.org/help/howto/windows If you want something that is cross-portable you have to look to other programming languages: Mono is a good choise; Python is another good cross-platform language. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From sourceforge-raindog2 at ...94... Thu Mar 1 16:57:15 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 1 Mar 2007 10:57:15 -0500 Subject: [Gambas-user] Gambas runtime In-Reply-To: References: <4aaa42cc0702282207q199b6cfcx235797c4ba226f14@...627...> <45E6A002.4070501@...1237...> Message-ID: <200703011057.15200.sourceforge-raindog2@...94...> On Thursday 01 March 2007 08:13, Jayme Staggs wrote: > So, am i right in the assumption that wanting to run > Gambas-Based Executables on Windows Machines is just Wishful > thinking at this point? It's more than wishful thinking, but there's no fully working port yet or anything. > I was hoping that there would be some scope for > cross-compatibility between Windows and Linux (Where Gambas is > concerned)... Unfortunately, the only cross-platform VB-style BASIC I know of at the moment is RealBasic, and that costs money. I'm sure sooner or later Gambas will get there, though. Rob From Karl.Reinl at ...9... Thu Mar 1 17:15:49 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 01 Mar 2007 17:15:49 +0100 Subject: [Gambas-user] upgrade gambas on ubuntu edgy In-Reply-To: <964448306.20070301181528@...396...> References: <964448306.20070301181528@...396...> Message-ID: <1172765749.8045.11.camel@...40...> Am Donnerstag, den 01.03.2007, 18:15 +0700 schrieb M Sulchan Darmawan: > Dear all, > > I have install gambas version 1.0.15 from Ubuntu Alternate CD, using > add/remove applications. > I have download gambas tarball latest version and wanted to upgrade > the existing installation. In both case, for gambas 1.0.17 and gambas2-1.9.47, you don't need, and can't use the Version which came with your Ubuntu. So if you want to use gambas 1.0.17 remove it. for gambas2-1.9.47 you can let it and use both. For compiling the tarball you need the dev-lib's for all the components you'll use, some of them you need like qt. One month ago I made the same for gambas2-1.9.47, and some one has posted that: sudo apt-get install build-essential libsdl-gfx1.2-dev libsdl-ttf2.0-dev libomniorb4-dev libldap2-dev libcurl3-gnutls-dev libpq-dev libgtkhtml2-dev kdepim-dev unixodbc-dev libdbd-sqlite libsqlite0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsqlite3-dev libmysqlclient15-dev put that in a term , and after you can build your gambas2-1.9.47. > Since I am a newbie in upgrading. Do I have to remove old gambas > first, or just do ./configure make make install right away ? > > Thanks for the information. > Best regards, From sbungay at ...981... Fri Mar 2 00:25:50 2007 From: sbungay at ...981... (sbungay) Date: Thu, 01 Mar 2007 18:25:50 -0500 Subject: [Gambas-user] Embedder example... Message-ID: <45E760FE.3010007@...981...> I had been lookiung for a code example for using the embedder and came up with lots of people telling others to read the Wiki but no solid examples. I also suggest you read the Wiki but then couple that with this little example to get a handle (sic) on it. In this example I started a VNCViewer on my system. The Viewer window had title of "VNC: LocalHost". The following code puts the VNC Viewer window inside the embedder control of a form. DIM iWindowInfoArray AS Intger[] iWindowInfoArray = Desktop.Find("VNC: LocalHost") Embedder1.embed(iWindowInfoArray[0] Steve. From sbungay at ...981... Sun Mar 4 02:40:11 2007 From: sbungay at ...981... (sbungay) Date: Sat, 03 Mar 2007 20:40:11 -0500 Subject: [Gambas-user] Treeview HELL... Message-ID: <45EA237B.4040108@...981...> I'm trying to iterate through a treeview, the goal is to store the treeview structure to a table (thats the easy part), the question is 'HOW can I traverse all nodes of a treeview using it's own methods?' The sample treeview control has a total of 5 nodes. One root node which has two children and each child has a child (5 nodes in all) Treeview1.Count returns a value of one (I expected 5) Treeview1.movenext seems to do.. umm.. nothing at all. .MoveChild also seems to do nothing. For example, the following code; WITH TreeView1 .MoveFirst message.info (.Item.Key & ", " & .Item.text) .MoveNext message.info (.Item.Key & ", " & .Item.text) END WITH yields two messages with exactly the same information in them. Steve. --You are in a maze of twisty little passages all alike. From timothy.marshal-nichols at ...247... Sun Mar 4 09:24:39 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Sun, 4 Mar 2007 08:24:39 -0000 Subject: [Gambas-user] Treeview HELL... In-Reply-To: <45EA237B.4040108@...981...> Message-ID: <000001c75e36$9136ef90$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of sbungay > Sent: Sunday, 04 March 2007 01:40 AM > To: GambasList > Subject: [Gambas-user] Treeview HELL... > > I'm trying to iterate through a treeview, the goal is to store the > treeview structure to a table (thats the easy part), the question is > 'HOW can I traverse all nodes of a treeview using it's own methods?' > > The sample treeview control has a total of 5 nodes. One root node > which has two children and each child has a child (5 nodes in all) > > Treeview1.Count returns a value of one (I expected 5) > > Treeview1.movenext seems to do.. umm.. nothing at all. > > .MoveChild also seems to do nothing. > > For example, the following code; > > WITH TreeView1 > .MoveFirst > message.info (.Item.Key & ", " & .Item.text) > .MoveNext > message.info (.Item.Key & ", " & .Item.text) > END WITH > > yields two messages with exactly the same information in them. > > > Steve. > > --You are in a maze of twisty little passages all alike. > > This example saves the content of a treeview to a file. Thought it takes no account of the hierarchy in the treeview: ' Save the TreeView content to a csv text file PUBLIC SUB ToolButtonSave_Click() DIM csvFile AS File IF TreeViewItems.Count = 0 THEN Message.Info("There are no items to save") RETURN END IF Dialog.Filter = ["*.csv", "Comma Separated Variable", "*.txt", "Text Files", "*", "All Files"] IF Dialog.SaveFile() THEN RETURN ' Open the file as CREATE for writing to. ' If the file does not exist it will be created and opened. ' If the file does exist then the file is cleared and opened. OPEN Dialog.Path FOR CREATE AS #csvFile ' For each item in the TreeView TreeViewItems.MoveFirst() REPEAT PRINT #csvFile, Quote(TreeViewItems.Item.Key) & "," & Quote(TreeViewItems.Item.Text) UNTIL TreeViewItems.MoveBelow() CLOSE #csvFile CATCH Message.Info("Cannot save items:
" & Dialog.Path & "
" & Error.Text) ' Make sure the file is closed. If the file is already closed ' or a null object then TRY will make sure we do not raise an error. TRY CLOSE #csvFile END Thanks 8-{)} Timothy Marshal-Nichols From leonardo at ...1237... Sun Mar 4 11:20:23 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 04 Mar 2007 11:20:23 +0100 Subject: [Gambas-user] Maybe some bugs in the Timer properties? Message-ID: <45EA9D67.40508@...1237...> I think there should be a couple of bugs in the Timer component properties... Let's suppose the you want to create a Timer that has a delay of 5000 ms (5 secs.). So you follow these steps: - create a new form - place anywhere on the form a Timer component - go into the properties table of the Timer component and try to write into the 'Delay' field the value 5000 but you can't. The field only accepts values that have no more then 3 digits. - so you push the 'up' button and try to set the value 5000: but the maximum value that you can set is 3600. You could think that this is the maximum value allowed by the component but this is not true because from code you can set values biggers than 3600 (i.e. 5000). -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas at ...1... Sun Mar 4 11:52:13 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 4 Mar 2007 11:52:13 +0100 Subject: [Gambas-user] Maybe some bugs in the Timer properties? In-Reply-To: <45EA9D67.40508@...1237...> References: <45EA9D67.40508@...1237...> Message-ID: <200703041152.13805.gambas@...1...> On dimanche 4 mars 2007, Leonardo Miliani wrote: > I think there should be a couple of bugs in the Timer component > properties... > > Let's suppose the you want to create a Timer that has a delay of 5000 ms > (5 secs.). So you follow these steps: > > - create a new form > - place anywhere on the form a Timer component > - go into the properties table of the Timer component and try to write > into the 'Delay' field the value 5000 but you can't. The field only > accepts values that have no more then 3 digits. > - so you push the 'up' button and try to set the value 5000: but the > maximum value that you can set is 3600. > > You could think that this is the maximum value allowed by the component > but this is not true because from code you can set values biggers than > 3600 (i.e. 5000). Oops. Fixed in trunk... -- Benoit Minisini From sbungay at ...981... Sun Mar 4 14:42:29 2007 From: sbungay at ...981... (sbungay) Date: Sun, 04 Mar 2007 08:42:29 -0500 Subject: [Gambas-user] Treeview HELL... In-Reply-To: <000001c75e36$9136ef90$6401a8c0@...1587...> References: <000001c75e36$9136ef90$6401a8c0@...1587...> Message-ID: <45EACCC5.5050200@...981...> Thank you Timothy. The last attempt I made before heading off to sleep on it was as follows; WITH TreeViewQuest .MoveFirst REPEAT message.info(.Item.Key & ", " & .Item.Text) .MoveNext message.info(.Item.Key & ", " & .Item.Text) UNTIL TreeViewQuest.MoveBelow() END WITH I was on the right track but being close doesn't count. Now what we need is for the virtual TreeItem class to have a ParentKey property in it. Since it doesen't have this I'll make up a collection that uses the tree node keys as it's own keys and store the node parent info in the collection. A little extra overhead but it should work just fine. Once again, my sincere thanks Timothy. Steve. timothy wrote: >>-----Original Message----- >>From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- >>bounces at lists.sourceforge.net] On Behalf Of sbungay >>Sent: Sunday, 04 March 2007 01:40 AM >>To: GambasList >>Subject: [Gambas-user] Treeview HELL... >> >> I'm trying to iterate through a treeview, the goal is to store the >>treeview structure to a table (thats the easy part), the question is >>'HOW can I traverse all nodes of a treeview using it's own methods?' >> >> The sample treeview control has a total of 5 nodes. One root node >>which has two children and each child has a child (5 nodes in all) >> >> Treeview1.Count returns a value of one (I expected 5) >> >> Treeview1.movenext seems to do.. umm.. nothing at all. >> >> .MoveChild also seems to do nothing. >> >>For example, the following code; >> >>WITH TreeView1 >> .MoveFirst >> message.info (.Item.Key & ", " & .Item.text) >> .MoveNext >> message.info (.Item.Key & ", " & .Item.text) >>END WITH >> >> yields two messages with exactly the same information in them. >> >> >>Steve. >> >>--You are in a maze of twisty little passages all alike. >> >> > > > > This example saves the content of a treeview to a file. Thought it takes > no account of the hierarchy in the treeview: > > ' Save the TreeView content to a csv text file > PUBLIC SUB ToolButtonSave_Click() > DIM csvFile AS File > IF TreeViewItems.Count = 0 THEN > Message.Info("There are no items to save") > RETURN > END IF > Dialog.Filter = ["*.csv", "Comma Separated Variable", "*.txt", "Text > Files", "*", "All Files"] > IF Dialog.SaveFile() THEN RETURN > ' Open the file as CREATE for writing to. > ' If the file does not exist it will be created and opened. > ' If the file does exist then the file is cleared and opened. > OPEN Dialog.Path FOR CREATE AS #csvFile > ' For each item in the TreeView > TreeViewItems.MoveFirst() > REPEAT > PRINT #csvFile, Quote(TreeViewItems.Item.Key) & "," & > Quote(TreeViewItems.Item.Text) > UNTIL TreeViewItems.MoveBelow() > CLOSE #csvFile > CATCH > Message.Info("Cannot save items:
" & Dialog.Path & "
" & > Error.Text) > ' Make sure the file is closed. If the file is already closed > ' or a null object then TRY will make sure we do not raise an error. > TRY CLOSE #csvFile > END > > > > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Mar 4 15:28:02 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 4 Mar 2007 15:28:02 +0100 Subject: [Gambas-user] Treeview HELL... In-Reply-To: <45EACCC5.5050200@...981...> References: <000001c75e36$9136ef90$6401a8c0@...1587...> <45EACCC5.5050200@...981...> Message-ID: <200703041528.02756.gambas@...1...> On dimanche 4 mars 2007, sbungay wrote: > Thank you Timothy. > The last attempt I made before heading off to sleep on it was as > follows; > > WITH TreeViewQuest > .MoveFirst > REPEAT > message.info(.Item.Key & ", " & .Item.Text) > .MoveNext > message.info(.Item.Key & ", " & .Item.Text) > UNTIL TreeViewQuest.MoveBelow() > END WITH > > I was on the right track but being close doesn't count. > Now what we need is for the virtual TreeItem class to have a > ParentKey property in it. You have the Item.Parent.Key. I'm not sure that using MoveBelow() and MoveAbove() work in all cases (they are just a direct interface to the corresponding Qt methods). Maybe they do not return items that are not visible. I think you must use MoveFirst(), MoveNext(), and MoveChild() in a recursive function to browse all the treeview nodes. Regards, -- Benoit Minisini From sbungay at ...981... Sun Mar 4 16:30:06 2007 From: sbungay at ...981... (sbungay) Date: Sun, 04 Mar 2007 10:30:06 -0500 Subject: [Gambas-user] Treeview HELL... In-Reply-To: <200703041528.02756.gambas@...1...> References: <000001c75e36$9136ef90$6401a8c0@...1587...> <45EACCC5.5050200@...981...> <200703041528.02756.gambas@...1...> Message-ID: <45EAE5FE.9060604@...981...> > You have the Item.Parent.Key. Umm.. no I don't. See attached PNG. The list is sorted alphabetically and there is no 'parent' property available. The documentation for the treeviewitem virtual class agrees with what we see in the attached PNG, there is no Parent property. Was there ever a version that did not have the parent property in the treeviewitem class? > I think you must use MoveFirst(), MoveNext(), and MoveChild() in a > recursive function to browse all the treeview nodes. I agree that this should require a recursive function to traverse the tree... as yet I have met with zero succcess using the methods available... I'll give it another whirl (what the heck.. I still have some hair left). The MoveBelow documentation does state it moves the internal cursor one 'visible' item below. So using this would require all nodes be expanded (just to be safe). Steve. Benoit Minisini wrote: > On dimanche 4 mars 2007, sbungay wrote: > >> Thank you Timothy. >> The last attempt I made before heading off to sleep on it was as >>follows; >> >>WITH TreeViewQuest >> .MoveFirst >> REPEAT >> message.info(.Item.Key & ", " & .Item.Text) >> .MoveNext >> message.info(.Item.Key & ", " & .Item.Text) >> UNTIL TreeViewQuest.MoveBelow() >>END WITH >> >> I was on the right track but being close doesn't count. >> Now what we need is for the virtual TreeItem class to have a >>ParentKey property in it. > > > You have the Item.Parent.Key. > > I'm not sure that using MoveBelow() and MoveAbove() work in all cases (they > are just a direct interface to the corresponding Qt methods). Maybe they do > not return items that are not visible. > > I think you must use MoveFirst(), MoveNext(), and MoveChild() in a recursive > function to browse all the treeview nodes. > > Regards, > From sbungay at ...981... Sun Mar 4 16:33:25 2007 From: sbungay at ...981... (sbungay) Date: Sun, 04 Mar 2007 10:33:25 -0500 Subject: [Gambas-user] Treeview HELL...(file attachment) In-Reply-To: <200703041528.02756.gambas@...1...> References: <000001c75e36$9136ef90$6401a8c0@...1587...> <45EACCC5.5050200@...981...> <200703041528.02756.gambas@...1...> Message-ID: <45EAE6C5.90608@...981...> Forgot to attatch the file.... Steve. -------------- next part -------------- A non-text attachment was scrubbed... Name: TreeView_No_item.parent.png Type: image/png Size: 17803 bytes Desc: not available URL: From sbungay at ...981... Tue Mar 6 06:34:36 2007 From: sbungay at ...981... (sbungay) Date: Tue, 06 Mar 2007 00:34:36 -0500 Subject: [Gambas-user] Save Treeview Structure to table... mission accomplished... Message-ID: <45ECFD6C.6000206@...981...> I did not use recursion as I would have liked to. I even tore apart an old VB6 app I wrote years ago that did this same job (traversing the tree) using recursion but the code wouldn't port, the treeviews differ too much in their properties and methods. Since the treeview does not present itself as a doubly linked list I set up a class and collection to do the job. This makes things a little clumsy but it works. The class file "ClassTreeView" PUBLIC NodeKey AS String PUBLIC ParentKey AS String Each time a node is added to the treeview the class gets populated with the key that was added and the key that it was added to (child/parent). That class then gets added to the collection. The Collection is indexed using the same key as the treenode that was just added. Once you have any treenode key you can get parentkey information from the collection. I could have done away with the collection but thought there might be additional information to preserve in the future, and expanding the class to hold more data is relatively easy, adding the additional data to the collection requires minimal code changes. The tree structure is preserved in the collection, you can walk the collection and persist the structure to the table, or you can use the little loop that Timothy sent in; REPEAT TreeView.Item.Expanded = TRUE ' Ensure all items are visible. UNTIL TreeView.MoveBelow() and combine that with the information in the collection to save the structure. Job done. Steve. From steven at ...1652... Tue Mar 6 13:55:06 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Tue, 6 Mar 2007 13:55:06 +0100 Subject: [Gambas-user] installing Suse 10.2 + several versions of gambas2 Message-ID: <200703061355.06895.steven@...1652...> HI, I must be doing something wrong. I tried to install gambas2 on opensuse 10.2, and cannot get it to work. I tried all versions, up until the CVS. Everything compiles well. But when I start gambas2 i allways get : ERROR: #2: Cannot load class 'Stock': Unable to load class file I don't get it, any help will be largely appriciated, Steven From simonart.dominique at ...11... Tue Mar 6 14:03:19 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Tue, 06 Mar 2007 14:03:19 +0100 Subject: [Gambas-user] installing Suse 10.2 + several versions of gambas2 In-Reply-To: <200703061355.06895.steven@...1652...> References: <200703061355.06895.steven@...1652...> Message-ID: <45ED6697.4020106@...11...> Hi Stephen, Steven Lobbezoo a ?crit : > HI, > > I must be doing something wrong. > I tried to install gambas2 on opensuse 10.2, and cannot get it to work. > I tried all versions, up until the CVS. > Everything compiles well. > But when I start gambas2 i allways get : > > ERROR: #2: Cannot load class 'Stock': Unable to load class file > > I don't get it, any help will be largely appriciated, > > Steven > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I had the same problem! Uninstall the versin of Gambas provided with SuSe 10.2 and then the new one will install and start normally. That worked for me Dominique Simonart From steven at ...1652... Tue Mar 6 14:59:41 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Tue, 6 Mar 2007 14:59:41 +0100 Subject: [Gambas-user] installing Suse 10.2 + several versions of gambas2 In-Reply-To: <45ED6697.4020106@...11...> References: <200703061355.06895.steven@...1652...> <45ED6697.4020106@...11...> Message-ID: <200703061459.41782.steven@...1652...> Hi Dominique, Thanks a lot, that helped immidiatly. One can ask why opensuse is doing such a bad job. Had -and still have - the same problem with rekall. This is not a good pub for gambas ! I'll go now and try it out. It's great to find basic un linux systems. Thanks again, Steven Le mardi 6 mars 2007 14:03, Dominique Simonart a ?crit?: > Hi Stephen, > > Steven Lobbezoo a ?crit : > > HI, > > > > I must be doing something wrong. > > I tried to install gambas2 on opensuse 10.2, and cannot get it to work. > > I tried all versions, up until the CVS. > > Everything compiles well. > > But when I start gambas2 i allways get : > > > > ERROR: #2: Cannot load class 'Stock': Unable to load class file > > > > I don't get it, any help will be largely appriciated, > > > > Steven > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I had the same problem! Uninstall the versin of Gambas provided with > SuSe 10.2 and then the new one will install and start normally. > That worked for me > > Dominique Simonart > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Thu Mar 8 09:45:33 2007 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 08 Mar 2007 09:45:33 +0100 Subject: [Gambas-user] Temporary files in /tmp Message-ID: <45EFCD2D.1040704@...221...> Good morning, I just found that there are lots of temporary files in newly created subdirs by Gambas in my /tmp. What are they good for, and can they be deleted without side effects? Thanks for your advice. Rolf From Karl.Reinl at ...9... Thu Mar 8 13:41:44 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 08 Mar 2007 13:41:44 +0100 Subject: [Gambas-user] Temporary files in /tmp In-Reply-To: <45EFCD2D.1040704@...221...> References: <45EFCD2D.1040704@...221...> Message-ID: <1173357704.5460.3.camel@...40...> Yes you can delete the /tmp/gambas. /tmp means what it is temporary. My box cleans up /tmp at every start up. Amicalment Charlie Am Donnerstag, den 08.03.2007, 09:45 +0100 schrieb Rolf-Werner Eilert: > Good morning, > > I just found that there are lots of temporary files in newly created > subdirs by Gambas in my /tmp. What are they good for, and can they be > deleted without side effects? > > Thanks for your advice. > > Rolf > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Thu Mar 8 15:04:07 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 8 Mar 2007 15:04:07 +0100 Subject: [Gambas-user] Images / Pictures and DB's In-Reply-To: <1173357704.5460.3.camel@...40...> References: <45EFCD2D.1040704@...221...> <1173357704.5460.3.camel@...40...> Message-ID: <200703081504.07465.steven@...1652...> Hi, I'm just starting up using gambas. It seems to be a freat solution for RAD, but ...... the problems are allways in the details. I have a few questions : 1. Is it really obligatory to save a blob i get from the MySQL database as a file first, and then read it into some unit (a flield in a gridview in this case). If I just assign them, gambas says: expected a picture, got a blob instead !. I try to do this : GridView1.data.Picture = .rs1[arrtable[Column]] Seems very combersume and slow. 2. Why cannot I use the data-aware controles from Qt, and just set their properties to table so and so ...., would be much easyer. 3. Is there a way I can use Ajunta or Qt designer to make my windows, and than use their output in Gambas ? Thanks in advance, Steven From tapayer at ...1541... Thu Mar 8 19:18:40 2007 From: tapayer at ...1541... (Nopan Pirsa) Date: Fri, 9 Mar 2007 01:18:40 +0700 (ICT) Subject: [Gambas-user] controling port paralel (DB25) Message-ID: <90151.78554.qm@...1654...> i have trouble to control paralel port (DB25) with gambas. Such as controling a LED,MOTOR Stepper and etc. Please give me a example program. :D --------------------------------- Sekarang dengan penyimpanan 1GB http://id.mail.yahoo.com/ From gambas at ...1... Thu Mar 8 20:01:13 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 8 Mar 2007 20:01:13 +0100 Subject: [Gambas-user] Temporary files in /tmp In-Reply-To: <45EFCD2D.1040704@...221...> References: <45EFCD2D.1040704@...221...> Message-ID: <200703082001.13551.gambas@...1...> On jeudi 8 mars 2007, Rolf-Werner Eilert wrote: > Good morning, > > I just found that there are lots of temporary files in newly created > subdirs by Gambas in my /tmp. What are they good for, and can they be > deleted without side effects? > > Thanks for your advice. > > Rolf > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user There was a bug that prevented these files to be automatically deleted at program's end - if it does not crash. But with the current dev. version, temporary files should be automatically deleted. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Fri Mar 9 13:42:14 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 9 Mar 2007 04:42:14 -0800 (PST) Subject: [Gambas-user] PRINTER Message-ID: <637828.38234.qm@...1655...> Hi, I?m new in Gambas, beside, I?m from Costa Rica and my english is not good at all, but my question is, does somebody know if there is another way to create/print database reports whitout have to create and html file. Regards, David Villalobos. ____________________________________________________________________________________ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 From leonardo at ...1237... Fri Mar 9 18:36:28 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 09 Mar 2007 18:36:28 +0100 Subject: [Gambas-user] PRINTER In-Reply-To: <637828.38234.qm@...1655...> References: <637828.38234.qm@...1655...> Message-ID: <45F19B1C.7050909@...1237...> David Villalobos Cambronero ha scritto: > Hi, I?m new in Gambas, beside, I?m from Costa Rica and my english is not good at all, but my question is, does somebody know if there is another way to create/print database reports whitout have to create and html file. > > Regards, > > David Villalobos. I've used the printing functions a lot because a project of mine needed to create several documents. You have to use the draw method, creating your document as an image (with line, squares, and textlines) and then print it. So, your code could be like this: PRIVATE SUB Print_Text(Text_Report as string) 'this is needed to let the user to choose the printer IF Printer.SetUp() = TRUE THEN RETURN 'the user clicked on the Cancel button END IF 'but you could do using the code below 'Printer.Name = "" <-- here you can put the system printer name Printer.Copies = Number_of_copies 'don't select the number of copies from the Setup panel 'because it is an unsupported feature Draw.Begin(Printer) 'you just begin creating your page 'i.e. you can create a squared text Draw.Rect (500,500,1000,1000) Draw.Text (Text_Report,600,600) Draw.End 'this command closes the document and prints it END But I can tell you some extra words.... I'm unhappy to say that the printing functions don't work very well under my system (Suse 10.2): I don't know if this is a problem of the system or a bug in Gambas but in my program I needed to print some copies of a document and a lot of times I didn't get any result using the above procedure... I saw that a document was created but a lot of times it contained no pages.... Very very strange... So I solved in this way: - I first choosed a file name, then I set up the document using the code Printer.Copies = xxx Printer.Name = "" 'tell the component to not use a real printer Printer.File = name_of_file 'so Gambas created for me a PostScript document Draw.Begin(Printer) .... .... .... Draw.End At the end of this process, I printed the document using this method: hPrint = SHELL ("lpr " & Application.Path & "/name_file.ps") WAIT or, if I needed a video preview before: hPrint = SHELL ("kghostview " & Application.Path & "/namefile.ps" & " &") (hPrint is a Process declared with DIM hPrint as PROCESS) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From david_villalobos_c at ...43... Fri Mar 9 20:08:19 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 9 Mar 2007 11:08:19 -0800 (PST) Subject: [Gambas-user] PRINTER In-Reply-To: <45F19B1C.7050909@...1237...> Message-ID: <181290.59019.qm@...1656...> thanks Leo, it seems to solve my problem, i?ll try and tell you... but any way... thanks a lot... David Leonardo Miliani wrote: David Villalobos Cambronero ha scritto: > Hi, I?m new in Gambas, beside, I?m from Costa Rica and my english is not good at all, but my question is, does somebody know if there is another way to create/print database reports whitout have to create and html file. > > Regards, > > David Villalobos. I've used the printing functions a lot because a project of mine needed to create several documents. You have to use the draw method, creating your document as an image (with line, squares, and textlines) and then print it. So, your code could be like this: PRIVATE SUB Print_Text(Text_Report as string) 'this is needed to let the user to choose the printer IF Printer.SetUp() = TRUE THEN RETURN 'the user clicked on the Cancel button END IF 'but you could do using the code below 'Printer.Name = "" <-- here you can put the system printer name Printer.Copies = Number_of_copies 'don't select the number of copies from the Setup panel 'because it is an unsupported feature Draw.Begin(Printer) 'you just begin creating your page 'i.e. you can create a squared text Draw.Rect (500,500,1000,1000) Draw.Text (Text_Report,600,600) Draw.End 'this command closes the document and prints it END But I can tell you some extra words.... I'm unhappy to say that the printing functions don't work very well under my system (Suse 10.2): I don't know if this is a problem of the system or a bug in Gambas but in my program I needed to print some copies of a document and a lot of times I didn't get any result using the above procedure... I saw that a document was created but a lot of times it contained no pages.... Very very strange... So I solved in this way: - I first choosed a file name, then I set up the document using the code Printer.Copies = xxx Printer.Name = "" 'tell the component to not use a real printer Printer.File = name_of_file 'so Gambas created for me a PostScript document Draw.Begin(Printer) .... .... .... Draw.End At the end of this process, I printed the document using this method: hPrint = SHELL ("lpr " & Application.Path & "/name_file.ps") WAIT or, if I needed a video preview before: hPrint = SHELL ("kghostview " & Application.Path & "/namefile.ps" & " &") (hPrint is a Process declared with DIM hPrint as PROCESS) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------- Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. From pmathijssen at ...626... Sat Mar 10 07:22:51 2007 From: pmathijssen at ...626... (Peter Mathijssen) Date: Sat, 10 Mar 2007 07:22:51 +0100 Subject: [Gambas-user] Listbox move items Message-ID: Hi, I want to move items in a listbox up and down with the help of two buttons. Has anyone an idea to do this? I searched the internet, other basic languages for example code, but can not find anything. TIA Peter From steven at ...1652... Sat Mar 10 08:05:41 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 10 Mar 2007 08:05:41 +0100 Subject: [Gambas-user] Database update In-Reply-To: <637828.38234.qm@...1655...> References: <637828.38234.qm@...1655...> Message-ID: <200703100805.41783.steven@...1652...> Hi, I'm setting up my first app with a database. All works just fine, but i'm stuck with the update : I do : DIM rsD as result PUBLIC SUB Button1_Click() DIM rfield AS ResultField DIM ctrl AS Control DIM Lbox AS ComboBox DIM MySw AS Integer = FALSE 'let's see if we want to update FOR EACH ctrl IN ME.Controls IF Object.Type(ctrl) = "TextBox" THEN IF Object.GetProperty(ctrl, "Text") THEN IF Object.GetProperty(ctrl, "Text") <> Object.GetProperty(ctrl, "Tag") THEN MySw = TRUE message.Info(rsD[Object.GetProperty(ctrl, "Name")]) rsD[Object.GetProperty(ctrl, "Name")] = Object.GetProperty(ctrl, "Text") ' move it in END IF END IF END IF NEXT IF MySw = TRUE THEN IF rsD THEN 'we have red something rsD.update() ELSE ' we migth want to add something END IF END IF ME.Close END --------------------------------- Whatever, gambas tells me that "Result is read-only". In the doc is says that Result is read/write How comes ? Thanks, Steven From Karl.Reinl at ...9... Sat Mar 10 11:47:52 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 10 Mar 2007 11:47:52 +0100 Subject: [Gambas-user] Database update In-Reply-To: <200703100805.41783.steven@...1652...> References: <637828.38234.qm@...1655...> <200703100805.41783.steven@...1652...> Message-ID: <1173523672.5407.9.camel@...40...> Salut Steven, your rsD have be prepared by a create for an new or a edit when Working with an existing resultset. ex: rsD = myConnection.Create("myTable") or rsD = myConnection.Edit("myTable", "ID = &1", iId) ' here you change the fields values 'then you fire rsD.update() -- Amicalment Charlie Am Samstag, den 10.03.2007, 08:05 +0100 schrieb Steven Lobbezoo: > Hi, > > I'm setting up my first app with a database. > All works just fine, but i'm stuck with the update : > > I do : > DIM rsD as result > > PUBLIC SUB Button1_Click() > DIM rfield AS ResultField > DIM ctrl AS Control > DIM Lbox AS ComboBox > DIM MySw AS Integer = FALSE > > 'let's see if we want to update > FOR EACH ctrl IN ME.Controls > IF Object.Type(ctrl) = "TextBox" THEN > IF Object.GetProperty(ctrl, "Text") THEN > IF Object.GetProperty(ctrl, "Text") <> > Object.GetProperty(ctrl, "Tag") THEN > MySw = TRUE > message.Info(rsD[Object.GetProperty(ctrl, "Name")]) > > rsD[Object.GetProperty(ctrl, "Name")] = > Object.GetProperty(ctrl, "Text") ' move it in > > END IF > END IF > END IF > NEXT > IF MySw = TRUE THEN > IF rsD THEN 'we have red something > rsD.update() > ELSE ' we migth want to add something > > END IF > END IF > ME.Close > END > > --------------------------------- > Whatever, gambas tells me that "Result is read-only". > In the doc is says that Result is read/write > > How comes ? > > Thanks, Steven > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Sat Mar 10 12:12:58 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 10 Mar 2007 12:12:58 +0100 Subject: [Gambas-user] Database update In-Reply-To: <1173523672.5407.9.camel@...40...> References: <637828.38234.qm@...1655...> <200703100805.41783.steven@...1652...> <1173523672.5407.9.camel@...40...> Message-ID: <200703101212.58879.steven@...1652...> Great ! Got it, again just a question of not good reading the docs. Thanks a lot. Sch?ne Gr?ssen (?) Steven Le samedi 10 mars 2007 11:47, Charlie Reinl a ?crit?: > Salut Steven, > > your rsD have be prepared by a create for an new or a edit when > Working with an existing resultset. > > ex: > > rsD = myConnection.Create("myTable") > or > rsD = myConnection.Edit("myTable", "ID = &1", iId) > > ' here you change the fields values > > 'then you fire > rsD.update() From Karl.Reinl at ...9... Sat Mar 10 15:08:14 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 10 Mar 2007 15:08:14 +0100 Subject: [Gambas-user] Database update In-Reply-To: <200703101212.58879.steven@...1652...> References: <637828.38234.qm@...1655...> <200703100805.41783.steven@...1652...> <1173523672.5407.9.camel@...40...> <200703101212.58879.steven@...1652...> Message-ID: <1173535694.5407.11.camel@...40...> Am Samstag, den 10.03.2007, 12:12 +0100 schrieb Steven Lobbezoo: > Great ! > Got it, again just a question of not good reading the docs. > Thanks a lot. > > Sch?ne Gr?ssen (?) Sch?ne Gr?sse > Steven > > Le samedi 10 mars 2007 11:47, Charlie Reinl a ?crit : > > Salut Steven, > > > > your rsD have be prepared by a create for an new or a edit when > > Working with an existing resultset. > > > > ex: > > > > rsD = myConnection.Create("myTable") > > or > > rsD = myConnection.Edit("myTable", "ID = &1", iId) > > > > ' here you change the fields values > > > > 'then you fire > > rsD.update() > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From david_villalobos_c at ...43... Sat Mar 10 18:35:23 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Sat, 10 Mar 2007 09:35:23 -0800 (PST) Subject: [Gambas-user] PRINTER Message-ID: <999154.16294.qm@...1657...> Hi, I used it and works but how do I print a new page, I mean, if my report has tow pages, what do I do? Thanks a lot... David ----- Original Message ---- From: Leonardo Miliani To: mailing list for gambas users Sent: Friday, March 9, 2007 11:36:28 AM Subject: Re: [Gambas-user] PRINTER David Villalobos Cambronero ha scritto: > Hi, I?m new in Gambas, beside, I?m from Costa Rica and my english is not good at all, but my question is, does somebody know if there is another way to create/print database reports whitout have to create and html file. > > Regards, > > David Villalobos. I've used the printing functions a lot because a project of mine needed to create several documents. You have to use the draw method, creating your document as an image (with line, squares, and textlines) and then print it. So, your code could be like this: PRIVATE SUB Print_Text(Text_Report as string) 'this is needed to let the user to choose the printer IF Printer.SetUp() = TRUE THEN RETURN 'the user clicked on the Cancel button END IF 'but you could do using the code below 'Printer.Name = "" <-- here you can put the system printer name Printer.Copies = Number_of_copies 'don't select the number of copies from the Setup panel 'because it is an unsupported feature Draw.Begin(Printer) 'you just begin creating your page 'i.e. you can create a squared text Draw.Rect (500,500,1000,1000) Draw.Text (Text_Report,600,600) Draw.End 'this command closes the document and prints it END But I can tell you some extra words.... I'm unhappy to say that the printing functions don't work very well under my system (Suse 10.2): I don't know if this is a problem of the system or a bug in Gambas but in my program I needed to print some copies of a document and a lot of times I didn't get any result using the above procedure... I saw that a document was created but a lot of times it contained no pages.... Very very strange... So I solved in this way: - I first choosed a file name, then I set up the document using the code Printer.Copies = xxx Printer.Name = "" 'tell the component to not use a real printer Printer.File = name_of_file 'so Gambas created for me a PostScript document Draw.Begin(Printer) .... .... .... Draw.End At the end of this process, I printed the document using this method: hPrint = SHELL ("lpr " & Application.Path & "/name_file.ps") WAIT or, if I needed a video preview before: hPrint = SHELL ("kghostview " & Application.Path & "/namefile.ps" & " &") (hPrint is a Process declared with DIM hPrint as PROCESS) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html From leonardo at ...1237... Sat Mar 10 18:42:16 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 10 Mar 2007 18:42:16 +0100 Subject: [Gambas-user] PRINTER In-Reply-To: <999154.16294.qm@...1657...> References: <999154.16294.qm@...1657...> Message-ID: <45F2EDF8.3060301@...1237...> David Villalobos Cambronero ha scritto: > Hi, I used it and works but how do I print a new page, I mean, if my report has tow pages, what do I do? > > Thanks a lot... > > David Add the following code: Printer.NewPage() in the point where you need to create a new page. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From leonardo at ...1237... Sat Mar 10 18:48:49 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 10 Mar 2007 18:48:49 +0100 Subject: [Gambas-user] Listbox move items In-Reply-To: References: Message-ID: <45F2EF81.9060900@...1237...> Peter Mathijssen ha scritto: > Hi, > > I want to move items in a listbox up and down with the help of two buttons. > Has anyone an idea to do this? > I searched the internet, other basic languages for example code, but can not > find anything. Uhm... maybe you could try to use the ListView widget, that is more flexible than ListBox. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From david_villalobos_c at ...43... Sat Mar 10 18:59:43 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Sat, 10 Mar 2007 09:59:43 -0800 (PST) Subject: [Gambas-user] PRINTER Message-ID: <965418.115.qm@...1658...> ok, thanks, I`ll try slds David ----- Original Message ---- From: Leonardo Miliani To: mailing list for gambas users Sent: Saturday, March 10, 2007 11:42:16 AM Subject: Re: [Gambas-user] PRINTER David Villalobos Cambronero ha scritto: > Hi, I used it and works but how do I print a new page, I mean, if my report has tow pages, what do I do? > > Thanks a lot... > > David Add the following code: Printer.NewPage() in the point where you need to create a new page. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html From pmathijssen at ...626... Sat Mar 10 19:32:42 2007 From: pmathijssen at ...626... (Peter Mathijssen) Date: Sat, 10 Mar 2007 19:32:42 +0100 Subject: [Gambas-user] Listbox move items In-Reply-To: <45F2EF81.9060900@...1237...> References: <45F2EF81.9060900@...1237...> Message-ID: Hi Leonardo, Thanks for your answer. How would this work with the listview control? Peter 2007/3/10, Leonardo Miliani : > > Peter Mathijssen ha scritto: > > Hi, > > > > I want to move items in a listbox up and down with the help of two > buttons. > > Has anyone an idea to do this? > > I searched the internet, other basic languages for example code, but can > not > > find anything. > > Uhm... maybe you could try to use the ListView widget, that is more > flexible than ListBox. > > -- > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > Scegli software opensource - Choose opensource software > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leonardo at ...1237... Sat Mar 10 22:46:55 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 10 Mar 2007 22:46:55 +0100 Subject: [Gambas-user] Listbox move items In-Reply-To: References: <45F2EF81.9060900@...1237...> Message-ID: <45F3274F.8060905@...1237...> Peter Mathijssen ha scritto: > Hi Leonardo, > > Thanks for your answer. How would this work with the listview control? > What do you have to do with a listbox control in your program? I mean that if we know what you are trying to do with the control, we can suggest you a better one or a better way to use it ;-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From fidojones at ...805... Sun Mar 11 01:22:43 2007 From: fidojones at ...805... (Lorenzo Tejera) Date: Sun, 11 Mar 2007 01:22:43 +0100 Subject: [Gambas-user] Please an example to use Application_KeyPress Message-ID: <19cca6e50703101622v406d5e38vf3891dd0c46cf09e@...627...> Please an example to use Application_KeyPress, I can't understand the help......How can I catch a global key event? regards lorenzo From gambas at ...1... Sun Mar 11 12:33:04 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Mar 2007 12:33:04 +0100 Subject: [Gambas-user] Please an example to use Application_KeyPress In-Reply-To: <19cca6e50703101622v406d5e38vf3891dd0c46cf09e@...627...> References: <19cca6e50703101622v406d5e38vf3891dd0c46cf09e@...627...> Message-ID: <200703111233.05110.gambas@...1...> On dimanche 11 mars 2007, Lorenzo Tejera wrote: > Please an example to use Application_KeyPress, I can't > understand the help......How can I catch a global key event? > > > regards > > lorenzo Implements a STATIC PUBLIC SUB Application_KeyPress() in your startup class. It should work. :-) -- Benoit Minisini From gambas at ...1... Sun Mar 11 12:40:09 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Mar 2007 12:40:09 +0100 Subject: [Gambas-user] Web browser component... In-Reply-To: <45E5F0F9.1000405@...981...> References: <45E5F0F9.1000405@...981...> Message-ID: <200703111240.09219.gambas@...1...> On mercredi 28 f?vrier 2007, sbungay wrote: > I am wondering if this component can use the same plugins as, oh, > lets say, Konqueror. Thereby enabeling it to present things like > ShockWave Flash files, PDFs etc. > Anyone know if this is possible? > > Steve. > The component is not a Web browser actually, but an HTML widget. But it can display an HTML object that embeds, for example, a PDF file by using the markup. Regards, -- Benoit Minisini From fidojones at ...805... Sun Mar 11 13:23:17 2007 From: fidojones at ...805... (Lorenzo Tejera) Date: Sun, 11 Mar 2007 13:23:17 +0100 Subject: [Gambas-user] Please an example to use Application_KeyPress In-Reply-To: <200703111233.05110.gambas@...1...> References: <19cca6e50703101622v406d5e38vf3891dd0c46cf09e@...627...> <200703111233.05110.gambas@...1...> Message-ID: <19cca6e50703110523t7b597e79p2cbc203b11916b41@...627...> Err.... this exactly what I was doing STATIC PUBLIC SUB Application_KeyPress() message.info(key.Code) END In the initial class but not generate any event......and I hitting my keyboard, and nothing occurs buuaaaaaaaaaaaaaaaa 2007/3/11, Benoit Minisini : > > On dimanche 11 mars 2007, Lorenzo Tejera wrote: > > Please an example to use Application_KeyPress, I can't > > understand the help......How can I catch a global key event? > > > > > > regards > > > > lorenzo > > Implements a STATIC PUBLIC SUB Application_KeyPress() in your startup > class. > It should work. :-) > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From timothy.marshal-nichols at ...247... Mon Mar 12 08:18:12 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Mon, 12 Mar 2007 07:18:12 -0000 Subject: [Gambas-user] Listbox move items In-Reply-To: <45F2EF81.9060900@...1237...> Message-ID: <000001c76476$99c7dfc0$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Leonardo Miliani > Sent: Saturday, 10 March 2007 05:49 PM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Listbox move items > > Peter Mathijssen ha scritto: > > Hi, > > > > I want to move items in a listbox up and down with the help of two > buttons. > > Has anyone an idea to do this? > > I searched the internet, other basic languages for example code, but can > not > > find anything. > > Uhm... maybe you could try to use the ListView widget, that is more > flexible than ListBox. > > -- > Ciao. > Leo. > Moving items up and down a list box is not that complex. You simply remove the item and then insert it in the required location. The ListBox Add method has an optional index parameter you can use for this. Some things you need to watch for are: Make sure there is something in the list box to move Not moving the first item up Not moving the last item down Make sure an item is selected (i.e. its index is not -1) So here is the code you could place in a couple of buttons for a list box called ListBoxSelected: ' Move a selected item up PUBLIC SUB ButtonUp_Click() DIM tmp AS String DIM i AS Integer IF ListBoxSelected.Count <= 1 THEN RETURN IF ListBoxSelected.Index > 0 THEN tmp = ListBoxSelected.Text i = ListBoxSelected.Index ListBoxSelected.Remove(i) ListBoxSelected.Add(tmp, i - 1) ListBoxSelected[i - 1].Selected = TRUE END IF END ' Move a selected item down PUBLIC SUB ButtonDown_Click() DIM tmp AS String DIM i AS Integer IF ListBoxSelected.Count <= 1 OR ListBoxSelected.Index < 0 THEN RETURN IF ListBoxSelected.Index < (ListBoxSelected.Count - 1) THEN tmp = ListBoxSelected.Text i = ListBoxSelected.Index ListBoxSelected.Remove(i) ListBoxSelected.Add(tmp, i + 1) ListBoxSelected[i + 1].Selected = TRUE END IF END Moving items up and down a ListView is if anything slightly more complex. This is because a ListView uses a key (not an index). Again remove the item and store its info. Then add the item using the setting the After optional parameter to the Add method. Here some code that will do the job called ListViewselected: PUBLIC SUB ButtonUp_Click() DIM itemKey AS String DIM itemText AS String DIM itemPicture AS Picture IF ListViewSelected.Current = NULL THEN RETURN IF NOT ListViewSelected.MovePrevious() THEN itemKey = ListViewSelected.Item.Key itemText = ListViewSelected.Item.Text itemPicture = ListViewSelected.Item.Picture ListViewSelected.Remove(itemKey) ListViewSelected.Add(itemKey, itemText, itemPicture, ListViewSelected.Current.Key) END IF END PUBLIC SUB ButtonDown_Click() DIM itemCurrent AS String DIM itemBelow AS String DIM itemText AS String DIM itemPicture AS Picture IF ListViewSelected.Current = NULL THEN RETURN IF NOT ListViewSelected.MoveNext() THEN itemBelow = ListViewSelected.Item.Key itemCurrent = ListViewSelected.Current.Key itemText = ListViewSelected.Current.Text itemPicture = ListViewSelected.Current.Picture ListViewSelected.Remove(itemCurrent) ListViewSelected.Add(itemCurrent, itemText, itemPicture, itemBelow) ListViewSelected[itemCurrent].Selected = TRUE END IF END This same kind of logic will work for things like a ColumnView. In all cases your list cannot be sorted as items would then spring back to there original order ;-) Thanks 8-{)} Timothy Marshal-Nichols From gael.le-hech at ...357... Mon Mar 12 09:20:04 2007 From: gael.le-hech at ...357... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec=27H?=) Date: Mon, 12 Mar 2007 09:20:04 +0100 Subject: [Gambas-user] Test des adresses ! Message-ID: <45F50D34.9010101@...357...> A non-text attachment was scrubbed... Name: flower.gif Type: image/gif Size: 261 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: skypeme_btn_white.gif Type: image/gif Size: 2166 bytes Desc: not available URL: From vince.scott at ...770... Wed Mar 14 15:46:49 2007 From: vince.scott at ...770... (Vince Scott (SBC)) Date: Wed, 14 Mar 2007 08:46:49 -0600 Subject: [Gambas-user] Gambas EVENT - RAISE Message-ID: Hello, I'm using Gambas version 1.9.46 and cannot get the EVENT - RAISE event to work. I need my classes to be able to generate an event. Can anyone help me? I try accessing the archives on the web site but the page seems to be broken. Vince From leonardo at ...1237... Wed Mar 14 15:25:09 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 14 Mar 2007 15:25:09 +0100 Subject: [Gambas-user] Please an example to use Application_KeyPress In-Reply-To: <19cca6e50703110523t7b597e79p2cbc203b11916b41@...627...> References: <19cca6e50703101622v406d5e38vf3891dd0c46cf09e@...627...> <200703111233.05110.gambas@...1...> <19cca6e50703110523t7b597e79p2cbc203b11916b41@...627...> Message-ID: <45F805C5.4070606@...1237...> Lorenzo Tejera ha scritto: > Err.... this exactly what I was doing > > STATIC PUBLIC SUB Application_KeyPress() > message.info(key.Code) > END > > In the initial class but not generate any event......and I hitting my > keyboard, and nothing occurs buuaaaaaaaaaaaaaaaa Same for me. I don't get any key with this method. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas at ...1... Wed Mar 14 19:40:42 2007 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Mar 2007 19:40:42 +0100 Subject: [Gambas-user] Please an example to use Application_KeyPress In-Reply-To: <45F805C5.4070606@...1237...> References: <19cca6e50703101622v406d5e38vf3891dd0c46cf09e@...627...> <19cca6e50703110523t7b597e79p2cbc203b11916b41@...627...> <45F805C5.4070606@...1237...> Message-ID: <200703141940.42869.gambas@...1...> On mercredi 14 mars 2007, Leonardo Miliani wrote: > Lorenzo Tejera ha scritto: > > Err.... this exactly what I was doing > > > > STATIC PUBLIC SUB Application_KeyPress() > > message.info(key.Code) > > END > > > > In the initial class but not generate any event......and I hitting my > > keyboard, and nothing occurs buuaaaaaaaaaaaaaaaa > > Same for me. I don't get any key with this method. Effectively, it didn't work. I just fixed it in the SVN trunk. Regards, -- Benoit Minisini From vince.scott at ...770... Wed Mar 14 20:55:28 2007 From: vince.scott at ...770... (Vince Scott (SBC)) Date: Wed, 14 Mar 2007 13:55:28 -0600 Subject: [Gambas-user] Please an example to use Application_KeyPress In-Reply-To: <200703141940.42869.gambas@...1...> Message-ID: What is the SVN Trunk? Thanks, Vince -----Original Message----- From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Benoit Minisini Sent: Wednesday, March 14, 2007 12:41 PM To: mailing list for gambas users Subject: Re: [Gambas-user] Please an example to use Application_KeyPress On mercredi 14 mars 2007, Leonardo Miliani wrote: > Lorenzo Tejera ha scritto: > > Err.... this exactly what I was doing > > > > STATIC PUBLIC SUB Application_KeyPress() > > message.info(key.Code) > > END > > > > In the initial class but not generate any event......and I hitting my > > keyboard, and nothing occurs buuaaaaaaaaaaaaaaaa > > Same for me. I don't get any key with this method. Effectively, it didn't work. I just fixed it in the SVN trunk. Regards, -- Benoit Minisini ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jayme.staggs at ...626... Wed Mar 14 20:11:22 2007 From: jayme.staggs at ...626... (Jayme Staggs) Date: Wed, 14 Mar 2007 15:11:22 -0400 Subject: [Gambas-user] Please an example to use Application_KeyPress In-Reply-To: References: <200703141940.42869.gambas@...1...> Message-ID: I've neThe Main Section of the SubVersion host. On 3/14/07, Vince Scott (SBC) wrote: > > What is the SVN Trunk? > > Thanks, > Vince > > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Benoit > Minisini > Sent: Wednesday, March 14, 2007 12:41 PM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Please an example to use Application_KeyPress > > On mercredi 14 mars 2007, Leonardo Miliani wrote: > > Lorenzo Tejera ha scritto: > > > Err.... this exactly what I was doing > > > > > > STATIC PUBLIC SUB Application_KeyPress() > > > message.info(key.Code) > > > END > > > > > > In the initial class but not generate any event......and I hitting my > > > keyboard, and nothing occurs buuaaaaaaaaaaaaaaaa > > > > Same for me. I don't get any key with this method. > > Effectively, it didn't work. I just fixed it in the SVN trunk. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Jayme Staggs From jayme.staggs at ...626... Wed Mar 14 20:14:50 2007 From: jayme.staggs at ...626... (Jayme Staggs) Date: Wed, 14 Mar 2007 15:14:50 -0400 Subject: [Gambas-user] Please an example to use Application_KeyPress In-Reply-To: References: <200703141940.42869.gambas@...1...> Message-ID: Wow. I hate my touchpad. Somehow, it always gets in the way and screws up whatever i'm typing. Anyway, The Trunk is the main section of a SVN Repository. SVN is a version control system used for Keeping code up-to-date. (I preferr mercury though) On 3/14/07, Jayme Staggs wrote: > > I've neThe Main Section of the SubVersion host. > > > > On 3/14/07, Vince Scott (SBC) wrote: > > > > What is the SVN Trunk? > > > > Thanks, > > Vince > > > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net > > [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Benoit > > Minisini > > Sent: Wednesday, March 14, 2007 12:41 PM > > To: mailing list for gambas users > > Subject: Re: [Gambas-user] Please an example to use Application_KeyPress > > > > On mercredi 14 mars 2007, Leonardo Miliani wrote: > > > Lorenzo Tejera ha scritto: > > > > Err.... this exactly what I was doing > > > > > > > > STATIC PUBLIC SUB Application_KeyPress() > > > > message.info(key.Code) > > > > END > > > > > > > > In the initial class but not generate any event......and I hitting > > my > > > > keyboard, and nothing occurs buuaaaaaaaaaaaaaaaa > > > > > > Same for me. I don't get any key with this method. > > > > Effectively, it didn't work. I just fixed it in the SVN trunk. > > > > Regards, > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Jayme Staggs -- Jayme Staggs From vince.scott at ...770... Wed Mar 14 21:16:32 2007 From: vince.scott at ...770... (Vince Scott (SBC)) Date: Wed, 14 Mar 2007 14:16:32 -0600 Subject: [Gambas-user] Please an example to use Application_KeyPress In-Reply-To: Message-ID: I'm not familiar with what you are speaking of. I am trying to use the EVENT func1 (parameter) and Raising the event in the class so the object will generate an event that can be captured. Where or what version is this fixed in? I am using 1.9.46 and I'm getting ready to move to 1.9.47. Thanks, Vince -----Original Message----- From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Jayme Staggs Sent: Wednesday, March 14, 2007 1:11 PM To: mailing list for gambas users Subject: Re: [Gambas-user] Please an example to use Application_KeyPress I've neThe Main Section of the SubVersion host. On 3/14/07, Vince Scott (SBC) wrote: > > What is the SVN Trunk? > > Thanks, > Vince > > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Benoit > Minisini > Sent: Wednesday, March 14, 2007 12:41 PM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Please an example to use Application_KeyPress > > On mercredi 14 mars 2007, Leonardo Miliani wrote: > > Lorenzo Tejera ha scritto: > > > Err.... this exactly what I was doing > > > > > > STATIC PUBLIC SUB Application_KeyPress() > > > message.info(key.Code) > > > END > > > > > > In the initial class but not generate any event......and I hitting my > > > keyboard, and nothing occurs buuaaaaaaaaaaaaaaaa > > > > Same for me. I don't get any key with this method. > > Effectively, it didn't work. I just fixed it in the SVN trunk. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Jayme Staggs ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vince.scott at ...770... Wed Mar 14 21:19:09 2007 From: vince.scott at ...770... (Vince Scott (SBC)) Date: Wed, 14 Mar 2007 14:19:09 -0600 Subject: [Gambas-user] Please an example to use Application_KeyPress In-Reply-To: Message-ID: I know exactly what you are saying...my laptop does that ALL the time. -----Original Message----- From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Jayme Staggs Sent: Wednesday, March 14, 2007 1:15 PM To: mailing list for gambas users Subject: Re: [Gambas-user] Please an example to use Application_KeyPress Wow. I hate my touchpad. Somehow, it always gets in the way and screws up whatever i'm typing. Anyway, The Trunk is the main section of a SVN Repository. SVN is a version control system used for Keeping code up-to-date. (I preferr mercury though) On 3/14/07, Jayme Staggs wrote: > > I've neThe Main Section of the SubVersion host. > > > > On 3/14/07, Vince Scott (SBC) wrote: > > > > What is the SVN Trunk? > > > > Thanks, > > Vince > > > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net > > [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Benoit > > Minisini > > Sent: Wednesday, March 14, 2007 12:41 PM > > To: mailing list for gambas users > > Subject: Re: [Gambas-user] Please an example to use Application_KeyPress > > > > On mercredi 14 mars 2007, Leonardo Miliani wrote: > > > Lorenzo Tejera ha scritto: > > > > Err.... this exactly what I was doing > > > > > > > > STATIC PUBLIC SUB Application_KeyPress() > > > > message.info(key.Code) > > > > END > > > > > > > > In the initial class but not generate any event......and I hitting > > my > > > > keyboard, and nothing occurs buuaaaaaaaaaaaaaaaa > > > > > > Same for me. I don't get any key with this method. > > > > Effectively, it didn't work. I just fixed it in the SVN trunk. > > > > Regards, > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Jayme Staggs -- Jayme Staggs ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From timothy.marshal-nichols at ...247... Wed Mar 14 20:36:23 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Wed, 14 Mar 2007 19:36:23 -0000 Subject: [Gambas-user] Gambas EVENT - RAISE In-Reply-To: Message-ID: <000001c76670$10e657d0$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Vince Scott (SBC) > Sent: Wednesday, 14 March 2007 02:47 PM > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Gambas EVENT - RAISE > > Hello, > > > > I'm using Gambas version 1.9.46 and cannot get the EVENT - RAISE event to > work. I need my classes to be able to generate an event. Can anyone help > me? > I try accessing the archives on the web site but the page seems to be > broken. > > > > Vince > Create a new class and place this code in it PRIVATE Ten AS Timer PUBLIC SUB _new() Ten = NEW Timer AS "Ten" Ten.Delay = 5000 Ten.Enabled = TRUE END EVENT Pulse(t AS Date) PUBLIC SUB Ten_Timer() RAISE Pulse(Now) END Now put this code in your startup form: PRIVATE Pulse AS Every5Seconds PUBLIC SUB Form_Open() Pulse = NEW Every5Seconds AS "Pulse" END PUBLIC SUB Pulse_Pulse(t AS Date) PRINT t END You should see the time printed every 5 seconds. Thanks 8-{)} Timothy Marshal-Nichols From vince.scott at ...770... Wed Mar 14 22:26:26 2007 From: vince.scott at ...770... (Vince Scott (SBC)) Date: Wed, 14 Mar 2007 15:26:26 -0600 Subject: [Gambas-user] Gambas EVENT - RAISE In-Reply-To: <000001c76670$10e657d0$6401a8c0@...1587...> Message-ID: Thanks, I think I am doing the same thing you are... Here is what I did: Inside cKeyboard class '*** Defined Outside Methods EVENT SendKey(p_Key AS String) as Boolean '*** Group Click Event From Button Group Public SUB grpKeys_Click() Dim Ret as Boolean Ret = RAISE SendKey(LAST.Tag) END '*** Inside FORM or an Encapsulated Class module Dim oKeyboard as New cKeyboard '*** Setup to Capture Event PUBLIC SUB oKeyboard_SendKey(p_Key AS String) 'NEVER GET THIS EVENT END -----Original Message----- From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of timothy Sent: Wednesday, March 14, 2007 1:36 PM To: 'mailing list for gambas users' Subject: Re: [Gambas-user] Gambas EVENT - RAISE > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Vince Scott (SBC) > Sent: Wednesday, 14 March 2007 02:47 PM > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Gambas EVENT - RAISE > > Hello, > > > > I'm using Gambas version 1.9.46 and cannot get the EVENT - RAISE event to > work. I need my classes to be able to generate an event. Can anyone help > me? > I try accessing the archives on the web site but the page seems to be > broken. > > > > Vince > Create a new class and place this code in it PRIVATE Ten AS Timer PUBLIC SUB _new() Ten = NEW Timer AS "Ten" Ten.Delay = 5000 Ten.Enabled = TRUE END EVENT Pulse(t AS Date) PUBLIC SUB Ten_Timer() RAISE Pulse(Now) END Now put this code in your startup form: PRIVATE Pulse AS Every5Seconds PUBLIC SUB Form_Open() Pulse = NEW Every5Seconds AS "Pulse" END PUBLIC SUB Pulse_Pulse(t AS Date) PRINT t END You should see the time printed every 5 seconds. Thanks 8-{)} Timothy Marshal-Nichols ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From lordheavy at ...512... Wed Mar 14 21:30:54 2007 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 14 Mar 2007 21:30:54 +0100 Subject: [Gambas-user] Gambas EVENT - RAISE In-Reply-To: References: Message-ID: <200703142130.54117.lordheavy@...512...> Le Wednesday 14 March 2007 22:26:26 Vince Scott (SBC), vous avez ?crit?: > Thanks, I think I am doing the same thing you are... > > Here is what I did: > > Inside cKeyboard class > > '*** Defined Outside Methods > > EVENT SendKey(p_Key AS String) as Boolean > > '*** Group Click Event From Button Group > > Public SUB grpKeys_Click() > > Dim Ret as Boolean > > Ret = RAISE SendKey(LAST.Tag) > > END > > > '*** Inside FORM or an Encapsulated Class module > > Dim oKeyboard as New cKeyboard > > '*** Setup to Capture Event > > PUBLIC SUB oKeyboard_SendKey(p_Key AS String) > > 'NEVER GET THIS EVENT > > END > > -> Dim oKeyboard as New cKeyboard AS "oKeyboard" You must define a name for the event handler. ++ From vince.scott at ...770... Wed Mar 14 22:51:25 2007 From: vince.scott at ...770... (Vince Scott (SBC)) Date: Wed, 14 Mar 2007 15:51:25 -0600 Subject: [Gambas-user] Gambas EVENT - RAISE In-Reply-To: <200703142130.54117.lordheavy@...512...> Message-ID: Nope. That didn't work for me. It compiled and ran but the event doesn't seem to fire or I am not capturing it correct. Not sure what is wrong. What if you had more than one event within a class? Using this syntax 'PRIVATE oKeyboard as New cKeyboard AS "oKeyboard"' Does this capture all of them? Does the AS name on the end have to be the name of the object or can it be anything? -----Original Message----- From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Laurent Carlier Sent: Wednesday, March 14, 2007 2:31 PM To: mailing list for gambas users Subject: Re: [Gambas-user] Gambas EVENT - RAISE Le Wednesday 14 March 2007 22:26:26 Vince Scott (SBC), vous avez ?crit?: > Thanks, I think I am doing the same thing you are... > > Here is what I did: > > Inside cKeyboard class > > '*** Defined Outside Methods > > EVENT SendKey(p_Key AS String) as Boolean > > '*** Group Click Event From Button Group > > Public SUB grpKeys_Click() > > Dim Ret as Boolean > > Ret = RAISE SendKey(LAST.Tag) > > END > > > '*** Inside FORM or an Encapsulated Class module > > Dim oKeyboard as New cKeyboard > > '*** Setup to Capture Event > > PUBLIC SUB oKeyboard_SendKey(p_Key AS String) > > 'NEVER GET THIS EVENT > > END > > -> Dim oKeyboard as New cKeyboard AS "oKeyboard" You must define a name for the event handler. ++ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From lordheavy at ...512... Wed Mar 14 22:09:46 2007 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 14 Mar 2007 22:09:46 +0100 Subject: [Gambas-user] Gambas EVENT - RAISE In-Reply-To: References: Message-ID: <200703142209.46654.lordheavy@...512...> Le Wednesday 14 March 2007 22:51:25 Vince Scott (SBC), vous avez ?crit?: > Nope. That didn't work for me. It compiled and ran but the event doesn't > seem to fire or I am not capturing it correct. Not sure what is wrong. What > if you had more than one event within a class? Using this syntax 'PRIVATE > oKeyboard as New cKeyboard AS "oKeyboard"' Does this capture all of them? > Does the AS name on the end have to be the name of the object or can it be > anything? > > Test the attached project ++ -------------- next part -------------- A non-text attachment was scrubbed... Name: test-0.0.1.tar.gz Type: application/x-tgz Size: 4219 bytes Desc: not available URL: From vince.scott at ...770... Wed Mar 14 23:34:37 2007 From: vince.scott at ...770... (Vince Scott (SBC)) Date: Wed, 14 Mar 2007 16:34:37 -0600 Subject: [Gambas-user] Gambas EVENT - RAISE In-Reply-To: <200703142209.46654.lordheavy@...512...> Message-ID: Thanks! I'll let you know. One question. Does it matter if I am using the object within a class or a form? -----Original Message----- From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Laurent Carlier Sent: Wednesday, March 14, 2007 3:10 PM To: mailing list for gambas users Subject: Re: [Gambas-user] Gambas EVENT - RAISE Le Wednesday 14 March 2007 22:51:25 Vince Scott (SBC), vous avez ?crit?: > Nope. That didn't work for me. It compiled and ran but the event doesn't > seem to fire or I am not capturing it correct. Not sure what is wrong. What > if you had more than one event within a class? Using this syntax 'PRIVATE > oKeyboard as New cKeyboard AS "oKeyboard"' Does this capture all of them? > Does the AS name on the end have to be the name of the object or can it be > anything? > > Test the attached project ++ From lordheavy at ...512... Wed Mar 14 22:50:35 2007 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 14 Mar 2007 22:50:35 +0100 Subject: [Gambas-user] Gambas EVENT - RAISE In-Reply-To: References: Message-ID: <200703142250.35273.lordheavy@...512...> Le Wednesday 14 March 2007 23:34:37 Vince Scott (SBC), vous avez ?crit?: > Thanks! > > I'll let you know. > > One question. Does it matter if I am using the object within a class or a > form? > it's the same ;-) ++ From vince.scott at ...770... Wed Mar 14 23:51:33 2007 From: vince.scott at ...770... (Vince Scott (SBC)) Date: Wed, 14 Mar 2007 16:51:33 -0600 Subject: [Gambas-user] Gambas EVENT - RAISE In-Reply-To: <200703142209.46654.lordheavy@...512...> Message-ID: Okay your example works. So...mine seems to be the same code structure. I will study this and see what I am over looking. The only thing I am doing different is that I have one class encapsulated inside another...something small I am over looking. Thanks for the help! -----Original Message----- From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Laurent Carlier Sent: Wednesday, March 14, 2007 3:10 PM To: mailing list for gambas users Subject: Re: [Gambas-user] Gambas EVENT - RAISE Le Wednesday 14 March 2007 22:51:25 Vince Scott (SBC), vous avez ?crit?: > Nope. That didn't work for me. It compiled and ran but the event doesn't > seem to fire or I am not capturing it correct. Not sure what is wrong. What > if you had more than one event within a class? Using this syntax 'PRIVATE > oKeyboard as New cKeyboard AS "oKeyboard"' Does this capture all of them? > Does the AS name on the end have to be the name of the object or can it be > anything? > > Test the attached project ++ From vince.scott at ...770... Thu Mar 15 00:00:19 2007 From: vince.scott at ...770... (Vince Scott (SBC)) Date: Wed, 14 Mar 2007 17:00:19 -0600 Subject: [Gambas-user] Gambas EVENT - RAISE In-Reply-To: <200703142250.35273.lordheavy@...512...> Message-ID: Hey...I got it to work. Thanks! -----Original Message----- From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] On Behalf Of Laurent Carlier Sent: Wednesday, March 14, 2007 3:51 PM To: mailing list for gambas users Subject: Re: [Gambas-user] Gambas EVENT - RAISE Le Wednesday 14 March 2007 23:34:37 Vince Scott (SBC), vous avez ?crit?: > Thanks! > > I'll let you know. > > One question. Does it matter if I am using the object within a class or a > form? > it's the same ;-) ++ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From fidojones at ...805... Thu Mar 15 11:40:23 2007 From: fidojones at ...805... (Lorenzo Tejera) Date: Thu, 15 Mar 2007 11:40:23 +0100 Subject: [Gambas-user] Application_KeyPress in SVN another bug Message-ID: <19cca6e50703150340g6119ef3ey133b37d9c4acb552@...627...> I test Application_KeyPress in SVN, it works but it has a bug I think, If I activate qb.qt.kde it not works If I deactivate qb.qt.kde it works very well Fully tested....... I also think Application_KeyPress that first event caucth delay some seconds, then works fast.... From simonart.dominique at ...11... Thu Mar 15 17:05:46 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Thu, 15 Mar 2007 17:05:46 +0100 Subject: [Gambas-user] EVENT Transparency? Message-ID: <45F96EDA.9080502@...11...> Hi, For cosmetic reason, I wish to display a picturebox over a gridview (or what you want). But, when I click on this picturebox, I wish the event fire in the gridview below, not in the picturebox. This is what I call "EVENT transparency" from the picturebox point of view Is this possible? Gambas 1.9.47 / SuSE 10.2 Dominique Simonart From steven at ...1652... Thu Mar 15 17:55:01 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 15 Mar 2007 17:55:01 +0100 Subject: [Gambas-user] EVENT Transparency? In-Reply-To: <45F96EDA.9080502@...11...> References: <45F96EDA.9080502@...11...> Message-ID: <200703151755.01703.steven@...1652...> Just call the click event of the grid control (i.e. Mygrid_click ) from the click event of your picturebox. Le jeudi 15 mars 2007 17:05, Dominique Simonart a ?crit?: > Hi, > > For cosmetic reason, I wish to display a picturebox over a gridview (or > what you want). But, when I click on this picturebox, I wish the event > fire in the gridview below, not in the picturebox. This is what I call > "EVENT transparency" from the picturebox point of view > Is this possible? > > Gambas 1.9.47 / SuSE 10.2 > Dominique Simonart > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Mar 15 20:22:36 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Mar 2007 20:22:36 +0100 Subject: [Gambas-user] Problems with my spam filters Message-ID: <200703152022.36291.gambas@...1...> I have problems with spamassassin, that became recently too much aggressive on mails. Consequently, some gambas-related mails were incorrectly marked as spam, and I didn't see them. Sorry for the people I didn't answer. I will get these mails back, and will try to answer them as soon as possible. Regards, -- Benoit Minisini From simonart.dominique at ...11... Thu Mar 15 22:23:14 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Thu, 15 Mar 2007 22:23:14 +0100 Subject: [Gambas-user] EVENT Transparency? In-Reply-To: <200703151755.01703.steven@...1652...> References: <45F96EDA.9080502@...11...> <200703151755.01703.steven@...1652...> Message-ID: <45F9B942.9010402@...11...> Steven Lobbezoo a ?crit : > Just call the click event of the grid control (i.e. Mygrid_click ) > from the click event of your picturebox. > Thanks Lorenzo! That's not so simple alas because the Mygrid.Column and Mygrid.Row would not be updated (hum.. I've not checked that however!) > Le jeudi 15 mars 2007 17:05, Dominique Simonart a ?crit : > >> Hi, >> >> For cosmetic reason, I wish to display a picturebox over a gridview (or >> what you want). But, when I click on this picturebox, I wish the event >> fire in the gridview below, not in the picturebox. This is what I call >> "EVENT transparency" from the picturebox point of view >> Is this possible? >> >> Gambas 1.9.47 / SuSE 10.2 >> Dominique Simonart >> From steven at ...1652... Fri Mar 16 10:30:48 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 16 Mar 2007 10:30:48 +0100 Subject: [Gambas-user] EVENT Transparency? In-Reply-To: <45F9B942.9010402@...11...> References: <45F96EDA.9080502@...11...> <200703151755.01703.steven@...1652...> <45F9B942.9010402@...11...> Message-ID: <200703161030.49026.steven@...1652...> Well, i suppose you can calculate the row and column from the x,y coordinates you have from the picturebox click. However that supposes that you have a fixed position, or at least you know the position at the time of click of the pictuire box. Anyway, I would be interested to hear a solution, i'll have a similar problem soon with an app i'm writing. I want to simulate pictures in a grid, and i suppose i'll know the row clicked from the picturebox array. Steven Le jeudi 15 mars 2007 22:23, Dominique Simonart a ?crit?: > Steven Lobbezoo a ?crit : > > Just call the click event of the grid control (i.e. Mygrid_click ) > > from the click event of your picturebox. > > Thanks Lorenzo! > That's not so simple alas because the Mygrid.Column and Mygrid.Row would > not be updated (hum.. I've not checked that however!) > > > Le jeudi 15 mars 2007 17:05, Dominique Simonart a ?crit : > >> Hi, > >> > >> For cosmetic reason, I wish to display a picturebox over a gridview (or > >> what you want). But, when I click on this picturebox, I wish the event > >> fire in the gridview below, not in the picturebox. This is what I call > >> "EVENT transparency" from the picturebox point of view > >> Is this possible? > >> > >> Gambas 1.9.47 / SuSE 10.2 > >> Dominique Simonart > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From vince.scott at ...770... Fri Mar 16 13:29:33 2007 From: vince.scott at ...770... (Vince Scott (SBC)) Date: Fri, 16 Mar 2007 06:29:33 -0600 Subject: [Gambas-user] Passing Pointers Message-ID: I have an Extern 'C' method that I am calling from a shared library that I have created. I need to pass in a char* and I am having issues figuring out how to do this successfully. I figured out that if I initial the String that I am passing from Gambas by using the Space method (kind of like you do in Visual Basic when you pass a string to a 'C' method) that I can pass a String and have it return a value. BUT this is limiting. What I need to do is pass in a string and have the 'C' method allocate the memory space. Has anyone done this or have any ideas how this can be accomplished? Thanks, Vince Scott From simonart.dominique at ...11... Fri Mar 16 16:21:23 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Fri, 16 Mar 2007 16:21:23 +0100 Subject: [Gambas-user] EVENT Transparency? In-Reply-To: <200703161030.49026.steven@...1652...> References: <45F96EDA.9080502@...11...> <200703151755.01703.steven@...1652...> <45F9B942.9010402@...11...> <200703161030.49026.steven@...1652...> Message-ID: <45FAB5F3.3060801@...11...> Hi Lorenzo, Sure you're right, I could do it myself, but Gambas knows exactly where are all my objects too, so my wish is that all this work would be made by Gambas (my so-called Event Transparency!). Actually the 'disposition' attribute (design mode only) define the priority of object's overlapping from the graphical AND the event managment point of view. It woud be a good thing to dissociate these 2 aspects in 2 separate attributes! Something like GraphicDisposition and EventDisposition? Steven Lobbezoo a ?crit : > Well, i suppose you can calculate the row and column from > the x,y coordinates you have from the picturebox click. > However that supposes that you have a fixed position, or > at least you know the position at the time of click of the pictuire box. > > Anyway, I would be interested to hear a solution, i'll have a similar > problem soon with an app i'm writing. I want to simulate pictures in a grid, > and i suppose i'll know the row clicked from the picturebox array. > > Steven > > > Le jeudi 15 mars 2007 22:23, Dominique Simonart a ?crit : > >> Steven Lobbezoo a ?crit : >> >>> Just call the click event of the grid control (i.e. Mygrid_click ) >>> from the click event of your picturebox. >>> >> Thanks Lorenzo! >> That's not so simple alas because the Mygrid.Column and Mygrid.Row would >> not be updated (hum.. I've not checked that however!) >> >> >>> Le jeudi 15 mars 2007 17:05, Dominique Simonart a ?crit : >>> >>>> Hi, >>>> >>>> For cosmetic reason, I wish to display a picturebox over a gridview (or >>>> what you want). But, when I click on this picturebox, I wish the event >>>> fire in the gridview below, not in the picturebox. This is what I call >>>> "EVENT transparency" from the picturebox point of view >>>> Is this possible? >>>> >>>> Gambas 1.9.47 / SuSE 10.2 >>>> Dominique Simonart From simonart.dominique at ...11... Fri Mar 16 18:50:59 2007 From: simonart.dominique at ...11... (Dominique Simonart) Date: Fri, 16 Mar 2007 18:50:59 +0100 Subject: [Gambas-user] EVENT Transparency? In-Reply-To: <45FAB5F3.3060801@...11...> References: <45F96EDA.9080502@...11...> <200703151755.01703.steven@...1652...> <45F9B942.9010402@...11...> <200703161030.49026.steven@...1652...> <45FAB5F3.3060801@...11...> Message-ID: <45FAD903.7060007@...11...> me again, Dominique Simonart a ?crit : > Hi Lorenzo, > Oups, sorry for the mistake STEVEN :) From el.carly at ...626... Sat Mar 17 01:14:50 2007 From: el.carly at ...626... (Carlos Cuello) Date: Sat, 17 Mar 2007 00:14:50 +0000 Subject: [Gambas-user] A question about toggle button Message-ID: Hi you all! I'm currently trying to do a small aplication that has a form wtih a picture which is a map of my country (Argentina) and every province has a toggle button in the position of the capital city. This button will open another form with the main information, and some main words will show more information (I try to follow the model of the wikipedia, information that leads to more information). The problems that I'm having are, on design view I see the toggle buttons with rounded corners, but when I execute the program I get sharped corners that make the buttons look like rectangles, and I have sized the height and width of the buttons on 6, but when I save and close Gambas2, and then open the project again, even though the width and height fields says 6 the buttons are more larger than that on design view, but has the correct size on execution view. By the way I get this error on the console when I execute my program... (cAtlas:5577): Gtk-CRITICAL **: gtk_cell_renderer_set_fixed_size: assertion `width >= -1 && height >= -1' failed Any help, would be appreciated. Best regards Carlos Cuello From steven at ...1652... Tue Mar 20 23:08:20 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Tue, 20 Mar 2007 23:08:20 +0100 Subject: [Gambas-user] EVENT Transparency? In-Reply-To: <45FAD903.7060007@...11...> References: <45F96EDA.9080502@...11...> <45FAB5F3.3060801@...11...> <45FAD903.7060007@...11...> Message-ID: <200703202308.20960.steven@...1652...> Hi, I'm STILL messing around with blobs and images. It's working allright, but .... I think it's rediculous that i have to do it like this : 1. Read BLOB from MYSQL 2. Write it as a STRING to a file 3. Make a new picture 4. Read the file into this picture 5. Transfer the picture into a picturebox. or 1. Read a fileinto a string 2. Write the string into a blob field TO read blobs, why cannot I just read the blobdata into the string, and then move it somehow directly into the picture control ??? Whats more : I want to have thumbnails in a column of a grid control. Do I have to generate a picture on top of the line/column pair with the thumb in it, or is there a way to write either the picturecontrol, or the picture directly into the cells. Any ideas on this ? Steven From timothy.marshal-nichols at ...247... Wed Mar 21 09:35:17 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Wed, 21 Mar 2007 08:35:17 -0000 Subject: [Gambas-user] EVENT Transparency? In-Reply-To: <200703202308.20960.steven@...1652...> Message-ID: <000001c76b93$dc5f8300$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Steven Lobbezoo > Sent: Tuesday, 20 March 2007 10:08 PM > To: mailing list for gambas users > Subject: Re: [Gambas-user] EVENT Transparency? > > Hi, > > I'm STILL messing around with blobs and images. > It's working allright, but .... > I think it's rediculous that i have to do it like this : > > 1. Read BLOB from MYSQL > 2. Write it as a STRING to a file > 3. Make a new picture > 4. Read the file into this picture > 5. Transfer the picture into a picturebox. > > or > > 1. Read a fileinto a string > 2. Write the string into a blob field > > TO read blobs, why cannot I just read the blobdata into the string, and > then > move it somehow directly into the picture control ??? > Whats more : I want to have thumbnails in a column of a grid control. > Do I have to generate a picture on top of the line/column pair with the > thumb > in it, or is there a way to write either the picturecontrol, or the > picture > directly into the cells. > > > Any ideas on this ? > Steven > > This example shows how you can use a GridView to show thumbs of an image and then display the selected image in a PictureBox. In fact placing pictures in a cell is simple: GridView[r, c].Picture = Picture["path/image.png"] The only real niggle is that this tends to reset the height of all rows. So you need a line like after adding the picture: GridView.Rows.Height = myRowHeight This example gets its images from file - so someone else will have to answer the database bit. But there is a function in the code which can be used to create the thumbs. Note that this example uses Gambas 1.9.47 with Benoit's updated GridView. You may have to change a few things if you use an older version of Gambas. EVENT Transparency? It's not required. Thanks 8-{)} Timothy Marshal-Nichols -------------- next part -------------- A non-text attachment was scrubbed... Name: ImageViewer-0.0.1.tar.gz Type: application/x-gzip Size: 89258 bytes Desc: not available URL: From david_villalobos_c at ...43... Wed Mar 21 13:17:31 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 21 Mar 2007 05:17:31 -0700 (PDT) Subject: [Gambas-user] Views Message-ID: <887918.65459.qm@...1667...> Hi all, I'm trying to do an application that has something silimar like Calc (openoffice), I mean an area that you can: enter, delete and edit data, then, I want to save these data in a database. I'm not sure if dataview, tableview or gridview will work, does someone has any idea? Best regards, David ____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ From david_villalobos_c at ...43... Wed Mar 21 13:22:58 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 21 Mar 2007 05:22:58 -0700 (PDT) Subject: [Gambas-user] Sales & Inventory Message-ID: <701063.97430.qm@...1668...> Hi all, me again, Some days ago I finished an applicacion than can control sales and inventories, it can be used in a store or something like that. The problem is that the application is in spanish, I'm trying to comment the code and translate it, by I don't have time because of work. My question is: Is somebody interested in that application? I mean you can use to learn, :-) or as an example.... slds David ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367 From gambas at ...1... Wed Mar 21 19:48:30 2007 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Mar 2007 19:48:30 +0100 Subject: [Gambas-user] Passing Pointers In-Reply-To: References: Message-ID: <200703211948.30510.gambas@...1...> On vendredi 16 mars 2007, Vince Scott (SBC) wrote: > I have an Extern 'C' method that I am calling from a shared library that I > have created. I need to pass in a char* and I am having issues figuring out > how to do this successfully. I figured out that if I initial the String > that I am passing from Gambas by using the Space method (kind of like you > do in Visual Basic when you pass a string to a 'C' method) that I can pass > a String and have it return a value. BUT this is limiting. What I need to > do is pass in a string and have the 'C' method allocate the memory space. > Has anyone done this or have any ideas how this can be accomplished? > > > > Thanks, > > Vince Scott > To pass a string to a extern 'C' function, there are two ways: 1) If the string will not be modified by the 'C' function, then you can use the Gambas String datatype safely. Logically, the corresponding 'C' argument must be declared as 'const char *'. 2) If the string will be modified by the 'C' function, then you cannot use the String datatype. You must use the Pointer datatype, and allocate the space by using the Alloc() function. Don't forget to free it with Free() when you have done with it. Please give the full 'C' function declaration so that I can be more precise. You can read the wiki documentation about external function management too. Regards, -- Benoit Minisini From 7ukwn at ...402... Thu Mar 22 23:06:30 2007 From: 7ukwn at ...402... (Jean-Yves F. Barbier) Date: Thu, 22 Mar 2007 23:06:30 +0100 Subject: [Gambas-user] Sales & Inventory In-Reply-To: <701063.97430.qm@...1668...> References: <701063.97430.qm@...1668...> Message-ID: <4602FDE6.6060602@...402...> YES, I'm interested :) JY David Villalobos Cambronero a ?crit : > Hi all, > me again, > > Some days ago I finished an applicacion than can control sales and inventories, it can be used in a store or something like that. The problem is that the application is in spanish, I'm trying to comment the code and translate it, by I don't have time because of work. > > My question is: Is somebody interested in that application? I mean you can use to learn, :-) or as an example.... > > slds > > David > > > > > > ____________________________________________________________________________________ > Food fight? Enjoy some healthy debate > in the Yahoo! Answers Food & Drink Q&A. > http://answers.yahoo.com/dir/?link=list&sid=396545367 > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tapayer at ...1541... Fri Mar 23 06:14:23 2007 From: tapayer at ...1541... (Nopan Pirsa) Date: Fri, 23 Mar 2007 12:14:23 +0700 (ICT) Subject: [Gambas-user] assembler Message-ID: <968800.77527.qm@...1669...> Hi all. I have problem with my program. i want to use assembler in my program. But i don't know how to use assembler in my program. Can any one help me? Thanks. --------------------------------- Lelah menerima spam? Surat Yahoo! mempunyai perlindungan terbaik terhadap spam. http://id.mail.yahoo.com/ From david_villalobos_c at ...43... Fri Mar 23 13:16:31 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 23 Mar 2007 05:16:31 -0700 (PDT) Subject: [Gambas-user] Sales & Inventory Message-ID: <895730.2498.qm@...1670...> ok, i'll send it tomorow or maybe on monday... regards ----- Original Message ---- From: Jean-Yves F. Barbier <7ukwn at ...402...> To: mailing list for gambas users Sent: Thursday, March 22, 2007 4:06:30 PM Subject: Re: [Gambas-user] Sales & Inventory YES, I'm interested :) JY David Villalobos Cambronero a ?crit : > Hi all, > me again, > > Some days ago I finished an applicacion than can control sales and inventories, it can be used in a store or something like that. The problem is that the application is in spanish, I'm trying to comment the code and translate it, by I don't have time because of work. > > My question is: Is somebody interested in that application? I mean you can use to learn, :-) or as an example.... > > slds > > David > > > > > > ____________________________________________________________________________________ > Food fight? Enjoy some healthy debate > in the Yahoo! Answers Food & Drink Q&A. > http://answers.yahoo.com/dir/?link=list&sid=396545367 > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ From henrique.ulbrich at ...626... Fri Mar 23 21:55:07 2007 From: henrique.ulbrich at ...626... (Henrique Cesar Ulbrich) Date: Fri, 23 Mar 2007 17:55:07 -0300 Subject: [Gambas-user] assembler In-Reply-To: <968800.77527.qm@...1669...> References: <968800.77527.qm@...1669...> Message-ID: <200703231755.16776.henrique.ulbrich@...626...> Historiadores acreditam que, em Sex 23 Mar 2007, Nopan Pirsa disse: > ? i want to use assembler in my program. But i don't know how to use > assembler in my program. Exactly, what do you want to do? You can, for instance, compile the assembly program with NASM and make it a stand-alone executable. The, call this executable from within the Gambas program. Read the docs, they teach how to do that. -- Henrique Cesar Ulbrich henrique.ulbrich at ...626... 83 - Chuck Norris n?o segue tend?ncias. As tend?ncias seguem Chuck Norris. A? ent?o, as tend?ncias acabam. Afinal, ningu?m segue Chuck Norris impunemente. Este email est? assinado digitalmente (PGP). From ariefbayu at ...626... Sun Mar 25 11:42:45 2007 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Sun, 25 Mar 2007 16:42:45 +0700 Subject: [Gambas-user] get the color from a pixel in DrawingArea control Message-ID: <976ad9050703250242r3e9bcde0j24fc8907d9b2d893@...627...> Dear member, I'm trying to create a paint application. Right now I'm encounter a problem when I want to aplly a photo bucket tool. Because It's need current color of a pixel to do the job. I'm searching around the help document, but found nothing. Could someone in this forum help me out? or give me proper search query in google so that I can find a heading. or is it possible to do this? Btw, I'm using gambas from ubuntu edgy repository. -- -- Yahoo!ID : ar1ef_310 -- http://bayu.freelancer.web.id/ From tapayer at ...1541... Sun Mar 25 22:05:51 2007 From: tapayer at ...1541... (Nopan Pirsa) Date: Mon, 26 Mar 2007 03:05:51 +0700 (ICT) Subject: [Gambas-user] can use assembler instructions Message-ID: <410791.99118.qm@...1669...> hi.. i'am want make a program to control a paralel port (DB25), but i don't know how? can i use assembler intrustuctions in gambas? if can what should i do? thanks --------------------------------- Kunjungi halaman depan Yahoo! Indonesia yang baru! From timothy.marshal-nichols at ...247... Mon Mar 26 09:14:37 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Mon, 26 Mar 2007 08:14:37 +0100 Subject: [Gambas-user] get the color from a pixel in DrawingArea control In-Reply-To: <976ad9050703250242r3e9bcde0j24fc8907d9b2d893@...627...> Message-ID: <000001c76f76$6e68bb50$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Arief Bayu Purwanto > Sent: Sunday, 25 March 2007 10:43 AM > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] get the color from a pixel in DrawingArea control > > Dear member, > > I'm trying to create a paint application. Right now I'm encounter a > problem when I want to aplly a photo bucket tool. Because It's need > current color of a pixel to do the job. I'm searching around the help > document, but found nothing. Could someone in this forum help me out? > or give me proper search query in google so that I can find a heading. > or is it possible to do this? > Btw, I'm using gambas from ubuntu edgy repository. > > -- > -- Yahoo!ID : ar1ef_310 > -- http://bayu.freelancer.web.id/ > Suppose you want to get the color of a point on a DrawingArea then: PUBLIC SUB DrawingArea_MouseMove() DIM c AS Integer c = DrawingArea.Grab().Image[Mouse.X, Mouse.Y] ' Use color END Note two things. (1) Here color is an integer. (2) You might want to set the Tracking property of a DrawingArea to TRUE so you get mouse events without a button being pressed. In general to get the color of a point on a Image c = MyImage[X, Y] and to get the color of a point on a Picture: c = MyPicture.Image[X, Y] You can extend this idea to get the color of any point on the screen: c = Desktop.Grab().Image[Mouse.ScreenX, Mouse.ScreenY] Thanks 8-{)} Timothy Marshal-Nichols From ariefbayu at ...626... Mon Mar 26 10:38:56 2007 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 26 Mar 2007 15:38:56 +0700 Subject: [Gambas-user] get the color from a pixel in DrawingArea control In-Reply-To: <000001c76f76$6e68bb50$6401a8c0@...1587...> References: <976ad9050703250242r3e9bcde0j24fc8907d9b2d893@...627...> <000001c76f76$6e68bb50$6401a8c0@...1587...> Message-ID: <976ad9050703260138v53bfaab5ude25cc626cfd4642@...627...> Thank you for your solution, I'll check it out once I back home and give report ASAP. On 3/26/07, timothy wrote: > > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > > bounces at lists.sourceforge.net] On Behalf Of Arief Bayu Purwanto > > Sent: Sunday, 25 March 2007 10:43 AM > > To: gambas-user at lists.sourceforge.net > > Subject: [Gambas-user] get the color from a pixel in DrawingArea > control > > > > Dear member, > > > > I'm trying to create a paint application. Right now I'm encounter a > > problem when I want to aplly a photo bucket tool. Because It's need > > current color of a pixel to do the job. I'm searching around the help > > document, but found nothing. Could someone in this forum help me out? > > or give me proper search query in google so that I can find a heading. > > or is it possible to do this? > > Btw, I'm using gambas from ubuntu edgy repository. > > > > -- > > -- Yahoo!ID : ar1ef_310 > > -- http://bayu.freelancer.web.id/ > > > > > Suppose you want to get the color of a point on a DrawingArea then: > > PUBLIC SUB DrawingArea_MouseMove() > DIM c AS Integer > c = DrawingArea.Grab().Image[Mouse.X, Mouse.Y] > > ' Use color > END > > Note two things. (1) Here color is an integer. (2) You might want to set > the Tracking property of a DrawingArea to TRUE so you get mouse events > without a button being pressed. > > In general to get the color of a point on a Image > > c = MyImage[X, Y] > > and to get the color of a point on a Picture: > > c = MyPicture.Image[X, Y] > > You can extend this idea to get the color of any point on the screen: > > c = Desktop.Grab().Image[Mouse.ScreenX, Mouse.ScreenY] > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- -- Yahoo!ID : ar1ef_310 -- http://bayu.freelancer.web.id/ <= moving... -- http://www.blogshares.com/?referer=28353 From sourceforge-raindog2 at ...94... Mon Mar 26 16:26:09 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 26 Mar 2007 10:26:09 -0400 Subject: [Gambas-user] can use assembler instructions In-Reply-To: <410791.99118.qm@...1669...> References: <410791.99118.qm@...1669...> Message-ID: <200703261026.09278.sourceforge-raindog2@...94...> On Sunday 25 March 2007 16:05, Nopan Pirsa wrote: > hi.. i'am want make a program to control a paralel port > (DB25), but i don't know how? can i use assembler > intrustuctions in gambas? if can what should i do? thanks There are C APIs for controlling the parallel port under Linux, so you shouldn't be writing assembler for that. I don't know where to find that documentation, but the kernel header file you would need to reference would be parport.h. Rob From david_villalobos_c at ...43... Mon Mar 26 17:27:49 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 26 Mar 2007 08:27:49 -0700 (PDT) Subject: [Gambas-user] DataSource Message-ID: <867697.93804.qm@...1671...> Hi All, I want to know if someone has any example or documents about the: DataSource DataControl DataCombo DataView Databrowser If try to find something in the web but I couldn't Regards David ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html From david_villalobos_c at ...43... Mon Mar 26 17:56:44 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 26 Mar 2007 08:56:44 -0700 (PDT) Subject: [Gambas-user] Allocations Message-ID: <732376.74563.qm@...1672...> Hi, me again Sometimes when I compile and run my programs, in the console appears a message: there are 5 allocation non freed or some like that, how can I resolve that error???? ____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 From handriolijr at ...626... Mon Mar 26 18:16:12 2007 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Mon, 26 Mar 2007 13:16:12 -0300 Subject: [Gambas-user] Sales & Inventory In-Reply-To: <4602FDE6.6060602@...402...> References: <701063.97430.qm@...1668...> <4602FDE6.6060602@...402...> Message-ID: please, send it to me! if you like, i have a ftp account with anonymous access... i can upload it for all. thanks 2007/3/22, Jean-Yves F. Barbier <7ukwn at ...402...>: > > YES, I'm interested :) > > JY > > David Villalobos Cambronero a ?crit : > > Hi all, > > me again, > > > > Some days ago I finished an applicacion than can control sales and > inventories, it can be used in a store or something like that. The problem > is that the application is in spanish, I'm trying to comment the code and > translate it, by I don't have time because of work. > > > > My question is: Is somebody interested in that application? I mean > you can use to learn, :-) or as an example.... > > > > slds > > > > David > > > > > > > > > > > > > ____________________________________________________________________________________ > > Food fight? Enjoy some healthy debate > > in the Yahoo! Answers Food & Drink Q&A. > > http://answers.yahoo.com/dir/?link=list&sid=396545367 > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From handriolijr at ...626... Mon Mar 26 18:18:15 2007 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Mon, 26 Mar 2007 13:18:15 -0300 Subject: [Gambas-user] pictures inside a DB Message-ID: Please, i have to put some pictures inside a mysql database. How can i save and retrieve those? Anyone can help me? thanks. Hamilton From steven at ...1652... Mon Mar 26 17:54:32 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Mon, 26 Mar 2007 17:54:32 +0200 Subject: [Gambas-user] pictures inside a DB In-Reply-To: References: Message-ID: <200703261754.33120.steven@...1652...> rsK = db.Exec("select Thumb, Id from Photos where prop_num = " & Str(Id)) IF rsK.available = TRUE THEN FOR EACH rsK sData = rsK!Thumb.Data ' write the photo to local file File.Save("~/TempPhot" & Str(rsK!Id) & ".jpg", sData) ' Fill with the image AddImage("~/TempPhot" & Str(rsK!Id) & ".jpg", Str(rsK!Id)) KILL "~/TempPhot" & Str(rsK!Id) & ".jpg" AND ' TO put a file inside a blob field: ' DIM sData AS String ' sData = File.Load("/file/path") ' MyResult!MyBlobField = sData Well, I only got a lot of help, and adapted it a bit. Still looking for a possibility to read blobs without writinig them to files ! Steven Le lundi 26 mars 2007 18:18, Hamilton Geminiano Andrioli Junior a ?crit?: > Please, i have to put some pictures inside a mysql database. > How can i save and retrieve those? > > Anyone can help me? > > thanks. > > Hamilton > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From steven at ...1652... Mon Mar 26 18:21:51 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Mon, 26 Mar 2007 18:21:51 +0200 Subject: [Gambas-user] Use of Dialog.Paths In-Reply-To: <200703261754.33120.steven@...1652...> References: <200703261754.33120.steven@...1652...> Message-ID: <200703261821.51413.steven@...1652...> Hi, I must be oing something wrong (again ;-)) : ---------------------------------------------------------------- DIM Mpath AS String Dialog.Title = "Selection d'une fichier image" Dialog.Filter = ["*.png;*.jpg;*.jpeg;*.bmp;*.gif;*.xpm", "Images", "*.*", "Tous les fichiers"] Dialog.Path = User.Home IF Dialog.OpenFile(TRUE) THEN RETURN FOR EACH Mpath IN Dialog.Paths -------------------------------------------------------------------- But Dialog.Paths is allways NULL ?????? I get files in if I work with PATH only (just one file) The dialog box let me select several files, but i'm not getting anything in. Anybody ? Steven From sourceforge-raindog2 at ...94... Mon Mar 26 19:22:28 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 26 Mar 2007 13:22:28 -0400 Subject: [Gambas-user] pictures inside a DB In-Reply-To: <200703261754.33120.steven@...1652...> References: <200703261754.33120.steven@...1652...> Message-ID: <200703261322.29115.sourceforge-raindog2@...94...> On Monday 26 March 2007 11:54, Steven Lobbezoo wrote: > Well, I only got a lot of help, and adapted it a bit. > Still looking for a possibility to read blobs without > writinig them to files ! I think the problem with not being able to read blobs into images isn't a problem with gb.db, but with the Image and Picture types. Qt and Gtk can both take chunks of data and use them as image objects without being written to disk, but I don't think those methods are exposed in Gambas due to the tricky nature of handling raw data in a string. Maybe the ImageMagick component will make that possible whenever it gets written. Rob From leonardo at ...1237... Mon Mar 26 22:25:00 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 26 Mar 2007 22:25:00 +0200 Subject: [Gambas-user] Allocations In-Reply-To: <732376.74563.qm@...1672...> References: <732376.74563.qm@...1672...> Message-ID: <46082C1C.8020709@...1237...> David Villalobos Cambronero ha scritto: > Hi, me again > > Sometimes when I compile and run my programs, in the console appears a message: there are 5 allocation non freed or some like that, how can I resolve that error???? > I usually write Qt applications and never get those messages. I only get them when I use GTK. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From wspinto at ...1405... Tue Mar 27 00:31:53 2007 From: wspinto at ...1405... (wspinto at ...1405...) Date: Mon, 26 Mar 2007 19:31:53 -0300 Subject: [Gambas-user] image track In-Reply-To: References: Message-ID: <1174948313.460849d9f2702@...1547...> Hi! Is possible create with gambas image components, application for track image and detect motion? Send me any sample. Reguards, Wellington Souza ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From dev_kpp at ...43... Tue Mar 27 03:47:11 2007 From: dev_kpp at ...43... (develop kpp) Date: Mon, 26 Mar 2007 18:47:11 -0700 (PDT) Subject: [Gambas-user] Sales & Inventory In-Reply-To: Message-ID: <741322.62037.qm@...1673...> please, send it to me! --- Hamilton Geminiano Andrioli Junior wrote: > please, send it to me! > if you like, i have a ftp account with anonymous > access... > i can upload it for all. > > thanks > > > 2007/3/22, Jean-Yves F. Barbier <7ukwn at ...402...>: > > > > YES, I'm interested :) > > > > JY > > > > David Villalobos Cambronero a ?crit : > > > Hi all, > > > me again, > > > > > > Some days ago I finished an applicacion than > can control sales and > > inventories, it can be used in a store or > something like that. The problem > > is that the application is in spanish, I'm trying > to comment the code and > > translate it, by I don't have time because of > work. > > > > > > My question is: Is somebody interested in > that application? I mean > > you can use to learn, :-) or as an example.... > > > > > > slds > > > > > > David > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > Food fight? Enjoy some healthy debate > > > in the Yahoo! Answers Food & Drink Q&A. > > > > http://answers.yahoo.com/dir/?link=list&sid=396545367 > > > > > > ------------------------------------------------------------------------- > > > Take Surveys. Earn Cash. Influence the Future of > IT > > > Join SourceForge.net's Techsay panel and you'll > get the chance to share > > your > > > opinions on IT & business topics through brief > surveys-and earn cash > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of > IT > > Join SourceForge.net's Techsay panel and you'll > get the chance to share > > your > > opinions on IT & business topics through brief > surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ____________________________________________________________________________________ Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front From steven at ...1652... Tue Mar 27 08:29:41 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Tue, 27 Mar 2007 08:29:41 +0200 Subject: [Gambas-user] More dialog boxes, selecting qt or kde In-Reply-To: <741322.62037.qm@...1673...> References: <741322.62037.qm@...1673...> Message-ID: <200703270829.41333.steven@...1652...> Hi, Still wrestlng with dialog boxes for file(s) selection. I'll probably write my own, since the one from the qt / kde toolset does not work, but : How do I select which dialog to use ? There's one in the standard qt set and one (better ?) in the qt-kde set. Is there a way to force gambas to use the one or the other ? Steven From o.s.p at ...69... Tue Mar 27 12:29:09 2007 From: o.s.p at ...69... (o.s.p) Date: Tue, 27 Mar 2007 12:29:09 +0200 Subject: [Gambas-user] Sales & Inventory In-Reply-To: <741322.62037.qm@...1673...> References: <741322.62037.qm@...1673...> Message-ID: <4608F1F5.7020904@...69...> you can upload at gambasforge ;) > please, send it to me! > --- Hamilton Geminiano Andrioli Junior > wrote: > > >> please, send it to me! >> if you like, i have a ftp account with anonymous >> access... >> i can upload it for all. >> >> thanks >> >> >> 2007/3/22, Jean-Yves F. Barbier <7ukwn at ...402...>: >> >>> YES, I'm interested :) >>> >>> JY >>> >>> David Villalobos Cambronero a ?crit : >>> >>>> Hi all, >>>> me again, >>>> >>>> Some days ago I finished an applicacion than >>>> >> can control sales and >> >>> inventories, it can be used in a store or >>> >> something like that. The problem >> >>> is that the application is in spanish, I'm trying >>> >> to comment the code and >> >>> translate it, by I don't have time because of >>> >> work. >> >>>> My question is: Is somebody interested in >>>> >> that application? I mean >> >>> you can use to learn, :-) or as an example.... >>> >>>> slds >>>> >>>> David >>>> >>>> >>>> >>>> >>>> >>>> >>>> > ____________________________________________________________________________________ > >>>> Food fight? Enjoy some healthy debate >>>> in the Yahoo! Answers Food & Drink Q&A. >>>> >>>> > http://answers.yahoo.com/dir/?link=list&sid=396545367 > > ------------------------------------------------------------------------- > >>>> Take Surveys. Earn Cash. Influence the Future of >>>> >> IT >> >>>> Join SourceForge.net's Techsay panel and you'll >>>> >> get the chance to share >> >>> your >>> >>>> opinions on IT & business topics through brief >>>> >> surveys-and earn cash >> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> >>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> >>> > ------------------------------------------------------------------------- > >>> Take Surveys. Earn Cash. Influence the Future of >>> >> IT >> >>> Join SourceForge.net's Techsay panel and you'll >>> >> get the chance to share >> >>> your >>> opinions on IT & business topics through brief >>> >> surveys-and earn cash >> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get >> the chance to share your >> opinions on IT & business topics through brief >> surveys-and earn cash >> >> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ____________________________________________________________________________________ > Bored stiff? Loosen up... > Download and play hundreds of games for free on Yahoo! Games. > http://games.yahoo.com/games/front > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > . > > From juanibaz at ...626... Tue Mar 27 15:25:05 2007 From: juanibaz at ...626... (Juan Ibaceta) Date: Tue, 27 Mar 2007 09:25:05 -0400 Subject: [Gambas-user] Sales & Inventor In-Reply-To: <741322.62037.qm@...1673...> References: <741322.62037.qm@...1673...> Message-ID: Hello I would like to have it. if I have time during week-ends I can try to translate it also and post it later here on in another place. Thanks in advance. Juan On 3/26/07, develop kpp wrote: > > please, send it to me! > --- Hamilton Geminiano Andrioli Junior > wrote: > > > please, send it to me! > > if you like, i have a ftp account with anonymous > > access... > > i can upload it for all. > > > > thanks > > > > > > 2007/3/22, Jean-Yves F. Barbier <7ukwn at ...402...>: > > > > > > YES, I'm interested :) > > > > > > JY > > > > > > David Villalobos Cambronero a ?crit : > > > > Hi all, > > > > me again, > > > > > > > > Some days ago I finished an applicacion than > > can control sales and > > > inventories, it can be used in a store or > > something like that. The problem > > > is that the application is in spanish, I'm trying > > to comment the code and > > > translate it, by I don't have time because of > > work. > > > > > > > > My question is: Is somebody interested in > > that application? I mean > > > you can use to learn, :-) or as an example.... > > > > > > > > slds > > > > > > > > David > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > Food fight? Enjoy some healthy debate > > > > in the Yahoo! Answers Food & Drink Q&A. > > > > > > > http://answers.yahoo.com/dir/?link=list&sid=396545367 > > > > > > > > > > ------------------------------------------------------------------------- > > > > Take Surveys. Earn Cash. Influence the Future of > > IT > > > > Join SourceForge.net's Techsay panel and you'll > > get the chance to share > > > your > > > > opinions on IT & business topics through brief > > surveys-and earn cash > > > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Take Surveys. Earn Cash. Influence the Future of > > IT > > > Join SourceForge.net's Techsay panel and you'll > > get the chance to share > > > your > > > opinions on IT & business topics through brief > > surveys-and earn cash > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get > > the chance to share your > > opinions on IT & business topics through brief > > surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ____________________________________________________________________________________ > Bored stiff? Loosen up... > Download and play hundreds of games for free on Yahoo! Games. > http://games.yahoo.com/games/front > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- http://juan_pictures.blogspot.com From dcamposf at ...626... Tue Mar 27 15:30:30 2007 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 27 Mar 2007 15:30:30 +0200 Subject: [Gambas-user] Sales & Inventor In-Reply-To: References: <741322.62037.qm@...1673...> Message-ID: <7259b5ae0703270630h727ed4c6h331bb631122c0b91@...627...> Hi: May be you can try http://forja.linex.org , there you can obtain resources for CVS and file storage, as well as a Wiki and some other features. This would make easy for the people to help in translating the app and other programming tasks. Daniel 2007/3/27, Juan Ibaceta : > Hello > I would like to have it. if I have time during week-ends I can try to > translate it also and post it later here on in another place. > > Thanks in advance. > Juan > > > On 3/26/07, develop kpp wrote: > > > > please, send it to me! > > --- Hamilton Geminiano Andrioli Junior > > wrote: > > > > > please, send it to me! > > > if you like, i have a ftp account with anonymous > > > access... > > > i can upload it for all. > > > > > > thanks > > > > > > > > > 2007/3/22, Jean-Yves F. Barbier <7ukwn at ...402...>: > > > > > > > > YES, I'm interested :) > > > > > > > > JY > > > > > > > > David Villalobos Cambronero a ?crit : > > > > > Hi all, > > > > > me again, > > > > > > > > > > Some days ago I finished an applicacion than > > > can control sales and > > > > inventories, it can be used in a store or > > > something like that. The problem > > > > is that the application is in spanish, I'm trying > > > to comment the code and > > > > translate it, by I don't have time because of > > > work. > > > > > > > > > > My question is: Is somebody interested in > > > that application? I mean > > > > you can use to learn, :-) or as an example.... > > > > > > > > > > slds > > > > > > > > > > David > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > > Food fight? Enjoy some healthy debate > > > > > in the Yahoo! Answers Food & Drink Q&A. > > > > > > > > > > http://answers.yahoo.com/dir/?link=list&sid=396545367 > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > Take Surveys. Earn Cash. Influence the Future of > > > IT > > > > > Join SourceForge.net's Techsay panel and you'll > > > get the chance to share > > > > your > > > > > opinions on IT & business topics through brief > > > surveys-and earn cash > > > > > > > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > Take Surveys. Earn Cash. Influence the Future of > > > IT > > > > Join SourceForge.net's Techsay panel and you'll > > > get the chance to share > > > > your > > > > opinions on IT & business topics through brief > > > surveys-and earn cash > > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------------------------- > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get > > > the chance to share your > > > opinions on IT & business topics through brief > > > surveys-and earn cash > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > Bored stiff? Loosen up... > > Download and play hundreds of games for free on Yahoo! Games. > > http://games.yahoo.com/games/front > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > http://juan_pictures.blogspot.com > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From drmad at ...1302... Tue Mar 27 17:43:09 2007 From: drmad at ...1302... (Oliver Etchebarne Bejarano) Date: Tue, 27 Mar 2007 10:43:09 -0500 Subject: [Gambas-user] More stock image problems (I think) Message-ID: <46093B8D.9090404@...1302...> Hello again. I compiled gambas 1.9.47 on a LFS with XFCE (installed in /opt/xfce) Now gambas even run :( Fails with: ----8<--- [drmad at ...1596... ~]$ gambas2 Stock._get.230: Cannot find: flag Project.RefreshBreakpointPicture.3385: #13: Null object ----8<--- and a message: ----8<--- This application has raised an unexpeted error and must abort. [13] Null object. Project.RefreshBreakpointPicture.3385 ----8<--- Thank you for help! -- Oliver Etchebarne Bejarano drmad/paperclip http://www.paperclip.com.pe/ From gambas at ...1... Tue Mar 27 18:29:46 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Mar 2007 18:29:46 +0200 Subject: [Gambas-user] get the color from a pixel in DrawingArea control In-Reply-To: <976ad9050703260138v53bfaab5ude25cc626cfd4642@...627...> References: <976ad9050703250242r3e9bcde0j24fc8907d9b2d893@...627...> <000001c76f76$6e68bb50$6401a8c0@...1587...> <976ad9050703260138v53bfaab5ude25cc626cfd4642@...627...> Message-ID: <200703271829.46483.gambas@...1...> On lundi 26 mars 2007, Arief Bayu Purwanto wrote: > Thank you for your solution, I'll check it out once I back home and > give report ASAP. > > On 3/26/07, timothy wrote: > > > -----Original Message----- > > > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > > > bounces at lists.sourceforge.net] On Behalf Of Arief Bayu Purwanto > > > Sent: Sunday, 25 March 2007 10:43 AM > > > To: gambas-user at lists.sourceforge.net > > > Subject: [Gambas-user] get the color from a pixel in DrawingArea > > > > control > > > > > Dear member, > > > > > > I'm trying to create a paint application. Right now I'm encounter a > > > problem when I want to aplly a photo bucket tool. Because It's need > > > current color of a pixel to do the job. I'm searching around the help > > > document, but found nothing. Could someone in this forum help me out? > > > or give me proper search query in google so that I can find a heading. > > > or is it possible to do this? > > > Btw, I'm using gambas from ubuntu edgy repository. > > > > > > -- > > > -- Yahoo!ID : ar1ef_310 > > > -- http://bayu.freelancer.web.id/ > > > > Suppose you want to get the color of a point on a DrawingArea then: > > > > PUBLIC SUB DrawingArea_MouseMove() > > DIM c AS Integer > > c = DrawingArea.Grab().Image[Mouse.X, Mouse.Y] > > > > ' Use color > > END > > > > Note two things. (1) Here color is an integer. (2) You might want to set > > the Tracking property of a DrawingArea to TRUE so you get mouse events > > without a button being pressed. > > > > In general to get the color of a point on a Image > > > > c = MyImage[X, Y] > > > > and to get the color of a point on a Picture: > > > > c = MyPicture.Image[X, Y] > > > > You can extend this idea to get the color of any point on the screen: > > > > c = Desktop.Grab().Image[Mouse.ScreenX, Mouse.ScreenY] > > > > Thanks > > > > 8-{)} Timothy Marshal-Nichols > > > > This is not a good solution. Actually, as an X server does not provide enough control to its pixmaps (the images stored on the server, i.e. the Picture class), you must keep the image in the client side, by using the Image class. The Image class provides an access to the pixel data. The only problem is that there is no real drawing method in the Image class. You must do them by hand. This will change in the future, as in Qt 4, you have the same drawing method in the QImage class (Image in Gambas) and the QPixmap class (Picture in Gambas). Regards, -- Benoit Minisini From gambas at ...1... Tue Mar 27 18:37:56 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Mar 2007 18:37:56 +0200 Subject: [Gambas-user] can use assembler instructions In-Reply-To: <410791.99118.qm@...1669...> References: <410791.99118.qm@...1669...> Message-ID: <200703271837.56718.gambas@...1...> On dimanche 25 mars 2007, Nopan Pirsa wrote: > hi.. i'am want make a program to control a paralel port (DB25), but i don't > know how? can i use assembler intrustuctions in gambas? if can what should > i do? thanks > It may help you: http://gambasdoc.org/help/howto/parport -- Benoit Minisini From david_villalobos_c at ...43... Tue Mar 27 19:43:31 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 27 Mar 2007 10:43:31 -0700 (PDT) Subject: [Gambas-user] Sales & Inventory Message-ID: <393380.11732.qm@...1670...> the problem is in the components, I think you need gb.ext.qt what is the number of version of your gambas?? ----- Original Message ---- From: Jean-Yves F. Barbier <7ukwn at ...402...> To: David Villalobos Cambronero Sent: Monday, March 26, 2007 12:40:43 PM Subject: Re: [Gambas-user] Sales & Inventory Hi David, Unfortunately, I must miss some files/forms; trying to start gives: Uknown Identifier: DatePicker in form definition JY David Villalobos Cambronero a ?crit : > > > ----- Original Message ---- > From: Jean-Yves F. Barbier <7ukwn at ...402...> > To: mailing list for gambas users > Sent: Thursday, March 22, 2007 4:06:30 PM > Subject: Re: [Gambas-user] Sales & Inventory > > YES, I'm interested :) > > JY > > David Villalobos Cambronero a ?crit : >> Hi all, >> me again, >> >> Some days ago I finished an applicacion than can control sales and > inventories, it can be used in a store or something like that. The > problem is that the application is in spanish, I'm trying to comment the > code and translate it, by I don't have time because of work. >> >> My question is: Is somebody interested in that application? I mean > you can use to learn, :-) or as an example.... >> >> slds >> >> David ____________________________________________________________________________________ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html From david_villalobos_c at ...43... Tue Mar 27 19:46:15 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 27 Mar 2007 10:46:15 -0700 (PDT) Subject: [Gambas-user] Fw: Sales & Inventory Message-ID: <888424.69070.qm@...1674...> ok, I will, but how??? jeje ----- Forwarded Message ---- From: o.s.p To: mailing list for gambas users Sent: Tuesday, March 27, 2007 4:29:09 AM Subject: Re: [Gambas-user] Sales & Inventory you can upload at gambasforge ;) > please, send it to me! > --- Hamilton Geminiano Andrioli Junior > wrote: > > >> please, send it to me! >> if you like, i have a ftp account with anonymous >> access... >> i can upload it for all. >> >> thanks >> >> >> 2007/3/22, Jean-Yves F. Barbier <7ukwn at ...402...>: >> >>> YES, I'm interested :) >>> >>> JY >>> >>> David Villalobos Cambronero a ?crit : >>> >>>> Hi all, >>>> me again, >>>> >>>> Some days ago I finished an applicacion than >>>> >> can control sales and >> >>> inventories, it can be used in a store or >>> >> something like that. The problem >> >>> is that the application is in spanish, I'm trying >>> >> to comment the code and >> >>> translate it, by I don't have time because of >>> >> work. >> >>>> My question is: Is somebody interested in >>>> >> that application? I mean >> >>> you can use to learn, :-) or as an example.... >>> >>>> slds >>>> >>>> David >>>> >>>> >>>> >>>> >>>> >>>> >>>> > ____________________________________________________________________________________ > >>>> Food fight? Enjoy some healthy debate >>>> in the Yahoo! Answers Food & Drink Q&A. >>>> >>>> > http://answers.yahoo.com/dir/?link=list&sid=396545367 > > ------------------------------------------------------------------------- > >>>> Take Surveys. Earn Cash. Influence the Future of >>>> >> IT >> >>>> Join SourceForge.net's Techsay panel and you'll >>>> >> get the chance to share >> >>> your >>> >>>> opinions on IT & business topics through brief >>>> >> surveys-and earn cash >> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> >>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> >>> > ------------------------------------------------------------------------- > >>> Take Surveys. Earn Cash. Influence the Future of >>> >> IT >> >>> Join SourceForge.net's Techsay panel and you'll >>> >> get the chance to share >> >>> your >>> opinions on IT & business topics through brief >>> >> surveys-and earn cash >> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get >> the chance to share your >> opinions on IT & business topics through brief >> surveys-and earn cash >> >> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ____________________________________________________________________________________ > Bored stiff? Loosen up... > Download and play hundreds of games for free on Yahoo! Games. > http://games.yahoo.com/games/front > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > . > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php From gambas at ...1... Tue Mar 27 20:01:05 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Mar 2007 20:01:05 +0200 Subject: [Gambas-user] More stock image problems (I think) In-Reply-To: <46093B8D.9090404@...1302...> References: <46093B8D.9090404@...1302...> Message-ID: <200703272001.05375.gambas@...1...> On mardi 27 mars 2007, Oliver Etchebarne Bejarano wrote: > Hello again. > > I compiled gambas 1.9.47 on a LFS with XFCE (installed in /opt/xfce) Now > gambas even run :( > > Fails with: > > > ----8<--- > [drmad at ...1596... ~]$ gambas2 > Stock._get.230: Cannot find: flag > Project.RefreshBreakpointPicture.3385: #13: Null object > ----8<--- > > and a message: > > ----8<--- > This application has raised an unexpeted error and must abort. > > [13] Null object. > Project.RefreshBreakpointPicture.3385 > ----8<--- > > > Thank you for help! Can you try the latest development version ? -- Benoit Minisini From 7ukwn at ...402... Tue Mar 27 20:02:36 2007 From: 7ukwn at ...402... (Jean-Yves F. Barbier) Date: Tue, 27 Mar 2007 20:02:36 +0200 Subject: [Gambas-user] Sales & Inventory In-Reply-To: <393380.11732.qm@...1670...> References: <393380.11732.qm@...1670...> Message-ID: <46095C3C.9090307@...402...> I use ver. 1.9.47-1 under Debian Sid (all components installed) David Villalobos Cambronero a ?crit : > the problem is in the components, I think you need gb.ext.qt > > what is the number of version of your gambas?? > > ----- Original Message ---- > From: Jean-Yves F. Barbier <7ukwn at ...402...> > To: David Villalobos Cambronero > Sent: Monday, March 26, 2007 12:40:43 PM > Subject: Re: [Gambas-user] Sales & Inventory > > Hi David, > > Unfortunately, I must miss some files/forms; trying to start gives: > > Uknown Identifier: DatePicker in form definition > > JY From drmad at ...1302... Tue Mar 27 21:10:18 2007 From: drmad at ...1302... (Oliver Etchebarne Bejarano) Date: Tue, 27 Mar 2007 14:10:18 -0500 Subject: [Gambas-user] More stock image problems (I think) In-Reply-To: <200703272001.05375.gambas@...1...> References: <46093B8D.9090404@...1302...> <200703272001.05375.gambas@...1...> Message-ID: <46096C1A.8040908@...1302...> > Can you try the latest development version ? > 1.9.47 is not the latest development version??? -- Oliver Etchebarne Bejarano drmad/paperclip http://www.paperclip.com.pe/ From gambas at ...1... Wed Mar 28 10:20:05 2007 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Mar 2007 10:20:05 +0200 Subject: [Gambas-user] More stock image problems (I think) In-Reply-To: <46096C1A.8040908@...1302...> References: <46093B8D.9090404@...1302...> <200703272001.05375.gambas@...1...> <46096C1A.8040908@...1302...> Message-ID: <200703281020.05711.gambas@...1...> On mardi 27 mars 2007, Oliver Etchebarne Bejarano wrote: > > Can you try the latest development version ? > > 1.9.47 is not the latest development version??? Now the latest development version is actually what you find in the subversion trunk. As I didn't make a numbered version for a while, you should go there to get a more recent codebase. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Wed Mar 28 15:06:35 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 28 Mar 2007 06:06:35 -0700 (PDT) Subject: [Gambas-user] Sophia Message-ID: <455297.35411.qm@...1672...> Hi all, As you know I made an application to control sales & inventories, its name is Sophia, I tried to send it to you by mail, but the moderador says NO, so I posted the program in gambasforge.org. Any way if you want I can send a mail to you. Regards David ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ From sw at ...1675... Wed Mar 28 16:46:00 2007 From: sw at ...1675... (Sebastian Wild) Date: Wed, 28 Mar 2007 16:46:00 +0200 Subject: [Gambas-user] mysql db connection issue Message-ID: <460A7FA8.3000805@...1675...> hi list, I got the following issue: I wrote a gambas2 app which connects to a local mysql database and selects from its tables or inserts into them etc. - this worked fine Now I tried to change this to connecting to a non local mysql database (i.e. remote mysql server) by changing the "host" attribute of the connection object to the external mysql server's ip. Now when I start the app afterwards and the app tries to connect to the db it just raises an "cannot connect to local mysql server through socket /var/run/mysqld/mysqld.sock". Now why does it try to connect the local mysql server if set up to connect an external mysql server?! some tech data: using gambas 1.9.7 on SuSE 10.0 the local mysqld aswell as the external one are mysql v5. I can connect to the local as well as to the external mysqld via mysql client on a shell successfully so that is not a mysql issue. So my question is: am I doing something wrong? Or is this an error in gb.db? Does anyhone have any suggestion to this? thanx in advance Sebastian -- -- Mit freundlichen Gruessen, Sebastian Wild Administrator/Technik ------------------------------------------------------------------------------------ Telefon: + 49 (0)941 - 56 71 23 95 Telefax: + 49 (0)941 - 59 57 91 64 E-Mail: sw at ...1675... Website: http://www.cronon.org ------------------------------------------------------------------------------------ Cronon AG Niederlassung Regensburg Oberm?nsterstra?e 9 93047 Regensburg ------------------------------------------------------------------------------------ Vorsitzender des Aufsichtsrates: Damian Schmidt Vorstand: Florian Heinz, Viktor Hinterleitner, Christian Mueller, Wolfgang von Hardenberg Amtsgericht Berlin-Charlottenburg HRB 77957 From gambas at ...1... Wed Mar 28 16:17:20 2007 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Mar 2007 16:17:20 +0200 Subject: [Gambas-user] Use of Dialog.Paths In-Reply-To: <200703261821.51413.steven@...1652...> References: <200703261754.33120.steven@...1652...> <200703261821.51413.steven@...1652...> Message-ID: <200703281617.20870.gambas@...1...> On lundi 26 mars 2007, Steven Lobbezoo wrote: > Hi, > > I must be oing something wrong (again ;-)) : > ---------------------------------------------------------------- > DIM Mpath AS String > > Dialog.Title = "Selection d'une fichier image" > Dialog.Filter = > ["*.png;*.jpg;*.jpeg;*.bmp;*.gif;*.xpm", "Images", "*.*", "Tous les > fichiers"] > Dialog.Path = User.Home > IF Dialog.OpenFile(TRUE) THEN RETURN > FOR EACH Mpath IN Dialog.Paths > -------------------------------------------------------------------- > But Dialog.Paths is allways NULL ?????? > I get files in if I work with PATH only (just one file) > The dialog box let me select several files, but i'm not getting anything > in. > > Anybody ? > > Steven > Which version of gambas do you use? Which components do you use in the project? -- Benoit Minisini From steven at ...1652... Wed Mar 28 15:36:54 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Wed, 28 Mar 2007 15:36:54 +0200 Subject: [Gambas-user] Use of Dialog.Paths In-Reply-To: <200703281617.20870.gambas@...1...> References: <200703261821.51413.steven@...1652...> <200703281617.20870.gambas@...1...> Message-ID: <200703281536.55397.steven@...1652...> I use Gambas 1.9.47 In the project I use gb.qt, gb.qt.ext, gb.qt.kde, gb.frm and others, Part of my .projectfile : Startup=FMain Version=0.0.8 Library=gb.db Library=gb.qt Library=gb.db.form Library=gb.form Library=gb.image Library=gb.qt.ext Library=gb.qt.kde Library=gb.qt.kde.html Library=gb.report Library=gb.web In the mean time, I strat using the native filedialog, that is working quite well. My be not so nice graphics, but it works ok. Steven Le mercredi 28 mars 2007 16:17, Benoit Minisini a ?crit?: > On lundi 26 mars 2007, Steven Lobbezoo wrote: > > Hi, > > > > I must be oing something wrong (again ;-)) : > > ---------------------------------------------------------------- > > DIM Mpath AS String > > > > Dialog.Title = "Selection d'une fichier image" > > Dialog.Filter = > > ["*.png;*.jpg;*.jpeg;*.bmp;*.gif;*.xpm", "Images", "*.*", "Tous les > > fichiers"] > > Dialog.Path = User.Home > > IF Dialog.OpenFile(TRUE) THEN RETURN > > FOR EACH Mpath IN Dialog.Paths > > -------------------------------------------------------------------- > > But Dialog.Paths is allways NULL ?????? > > I get files in if I work with PATH only (just one file) > > The dialog box let me select several files, but i'm not getting anything > > in. > > > > Anybody ? > > > > Steven > > Which version of gambas do you use? Which components do you use in the > project? From sw at ...1675... Wed Mar 28 18:06:01 2007 From: sw at ...1675... (Sebastian Wild) Date: Wed, 28 Mar 2007 18:06:01 +0200 Subject: [Gambas-user] [solved] mysql db connection issue Message-ID: <460A9269.60006@...1675...> the problem was not the app but the one who wrote it *g* Fatal developer error that means :) Maltype in the ipaddress made the ip invalid and this results in gb.db trying localhost instead. Plus I forgot to create a new executable... Shame on me ..... sorry for bothering you :) cheers Sebastian -- -- Mit freundlichen Gruessen, Sebastian Wild Administrator/Technik ------------------------------------------------------------------------------------ Telefon: + 49 (0)941 - 56 71 23 95 Telefax: + 49 (0)941 - 59 57 91 64 E-Mail: sw at ...1675... Website: http://www.cronon.org ------------------------------------------------------------------------------------ Cronon AG Niederlassung Regensburg Oberm?nsterstra?e 9 93047 Regensburg ------------------------------------------------------------------------------------ Vorsitzender des Aufsichtsrates: Damian Schmidt Vorstand: Florian Heinz, Viktor Hinterleitner, Christian Mueller, Wolfgang von Hardenberg Amtsgericht Berlin-Charlottenburg HRB 77957 From linuxhamuser at ...626... Thu Mar 29 04:32:01 2007 From: linuxhamuser at ...626... (Johnny) Date: Wed, 28 Mar 2007 21:32:01 -0500 Subject: [Gambas-user] Look for Gambas tutorials Message-ID: <460B2521.1040909@...626...> Hi I am new to Gambas I am looking for some tutorials Johnny -- ******************************* ******************************* Ubuntu Dapper 6.06 Ubuntu User number is # 11285 Registed Linux user #310190 Registed Machine #250193 ******************************* ******************************* From ariefbayu at ...626... Thu Mar 29 04:38:38 2007 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Thu, 29 Mar 2007 09:38:38 +0700 Subject: [Gambas-user] get the color from a pixel in DrawingArea control In-Reply-To: <200703271829.46483.gambas@...1...> References: <976ad9050703250242r3e9bcde0j24fc8907d9b2d893@...627...> <000001c76f76$6e68bb50$6401a8c0@...1587...> <976ad9050703260138v53bfaab5ude25cc626cfd4642@...627...> <200703271829.46483.gambas@...1...> Message-ID: <976ad9050703281938i520380dasca4e3b71bcb8b93b@...627...> Mmm, Benoit, I have another question regarding draw event. When I draw something on DrawingArea and move my form outside the screen and bring back to it's previous position, the image I draw on DrawingArea is dissapeared. Is it because of the information you provide us (manual draw)? On 3/27/07, Benoit Minisini wrote: > > On lundi 26 mars 2007, Arief Bayu Purwanto wrote: > > Thank you for your solution, I'll check it out once I back home and > > give report ASAP. > > > > On 3/26/07, timothy wrote: > > > > -----Original Message----- > > > > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > > > > bounces at lists.sourceforge.net] On Behalf Of Arief Bayu Purwanto > > > > Sent: Sunday, 25 March 2007 10:43 AM > > > > To: gambas-user at lists.sourceforge.net > > > > Subject: [Gambas-user] get the color from a pixel in DrawingArea > > > > > > control > > > > > > > Dear member, > > > > > > > > I'm trying to create a paint application. Right now I'm encounter a > > > > problem when I want to aplly a photo bucket tool. Because It's need > > > > current color of a pixel to do the job. I'm searching around the > help > > > > document, but found nothing. Could someone in this forum help me > out? > > > > or give me proper search query in google so that I can find a > heading. > > > > or is it possible to do this? > > > > Btw, I'm using gambas from ubuntu edgy repository. > > > > > > > > -- > > > > -- Yahoo!ID : ar1ef_310 > > > > -- http://bayu.freelancer.web.id/ > > > > > > Suppose you want to get the color of a point on a DrawingArea then: > > > > > > PUBLIC SUB DrawingArea_MouseMove() > > > DIM c AS Integer > > > c = DrawingArea.Grab().Image[Mouse.X, Mouse.Y] > > > > > > ' Use color > > > END > > > > > > Note two things. (1) Here color is an integer. (2) You might want to > set > > > the Tracking property of a DrawingArea to TRUE so you get mouse events > > > without a button being pressed. > > > > > > In general to get the color of a point on a Image > > > > > > c = MyImage[X, Y] > > > > > > and to get the color of a point on a Picture: > > > > > > c = MyPicture.Image[X, Y] > > > > > > You can extend this idea to get the color of any point on the screen: > > > > > > c = Desktop.Grab().Image[Mouse.ScreenX, Mouse.ScreenY] > > > > > > Thanks > > > > > > 8-{)} Timothy Marshal-Nichols > > > > > > > > This is not a good solution. > > Actually, as an X server does not provide enough control to its pixmaps > (the > images stored on the server, i.e. the Picture class), you must keep the > image > in the client side, by using the Image class. > > The Image class provides an access to the pixel data. The only problem is > that > there is no real drawing method in the Image class. You must do them by > hand. > > This will change in the future, as in Qt 4, you have the same drawing > method > in the QImage class (Image in Gambas) and the QPixmap class (Picture in > Gambas). > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- -- Yahoo!ID : ar1ef_310 -- http://bayu.freelancer.web.id/ <= moving... -- http://www.blogshares.com/?referer=28353 From steven at ...1652... Thu Mar 29 12:39:27 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 29 Mar 2007 12:39:27 +0200 Subject: [Gambas-user] Bug in update arrays ? Message-ID: <200703291239.28040.steven@...1652...> Hi, I don't get it, i did the following : VSel AS String = "1" extras AS String[] = ["0", "0", "0", "0", "0", "0", "0"] extrastag AS String[] = ["0", "0", "0", "0", "0", "0", "0"] PUBLIC SUB Extra_Click() DIM i AS Integer i = Val(LAST.Name) IF LAST.Value THEN extras[i - 1] = "1" ELSE extras[i - 1] = "0" END IF END as the routine Extra_Click gets executed, extras and extrastag are both updated. I suppose this is wrong. Latest Gambas, latest suse Steven From sw at ...1675... Thu Mar 29 13:46:09 2007 From: sw at ...1675... (Sebastian Wild) Date: Thu, 29 Mar 2007 13:46:09 +0200 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <460B2521.1040909@...626...> References: <460B2521.1040909@...626...> Message-ID: <460BA701.3020803@...1675...> Well look for some Tutorials for the Programming language BASIC since gambas is a BASIC compiler. Then you have the syntax and the most of it. The rest is to find in the gambas included help. I used to code in BASIC in times i was a kid and when i bumped into gambas i got a major dejavue :) cheers Sebastian Johnny wrote: > Hi > I am new to Gambas I am looking for some tutorials > > Johnny > > -- -- Mit freundlichen Gruessen, Sebastian Wild Administrator/Technik ------------------------------------------------------------------------------------ Telefon: + 49 (0)941 - 56 71 23 95 Telefax: + 49 (0)941 - 59 57 91 64 E-Mail: sw at ...1675... Website: http://www.cronon.org ------------------------------------------------------------------------------------ Cronon AG Niederlassung Regensburg Oberm?nsterstra?e 9 93047 Regensburg ------------------------------------------------------------------------------------ Vorsitzender des Aufsichtsrates: Damian Schmidt Vorstand: Florian Heinz, Viktor Hinterleitner, Christian Mueller, Wolfgang von Hardenberg Amtsgericht Berlin-Charlottenburg HRB 77957 From steven at ...1652... Thu Mar 29 12:50:15 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 29 Mar 2007 12:50:15 +0200 Subject: [Gambas-user] Bug in update arrays ? In-Reply-To: <200703291239.28040.steven@...1652...> References: <200703291239.28040.steven@...1652...> Message-ID: <200703291250.15127.steven@...1652...> Found it : I had an asignment in an other routine as follows extrastag = extras After that the assigment stays (it redefines extrastag) stange behavour !!! Steven Le jeudi 29 mars 2007 12:39, Steven Lobbezoo a ?crit?: > Hi, > > I don't get it, i did the following : > > VSel AS String = "1" > extras AS String[] = ["0", "0", "0", "0", "0", "0", "0"] > extrastag AS String[] = ["0", "0", "0", "0", "0", "0", "0"] > > > PUBLIC SUB Extra_Click() > DIM i AS Integer > > i = Val(LAST.Name) > IF LAST.Value THEN > extras[i - 1] = "1" > ELSE > extras[i - 1] = "0" > END IF > END > > as the routine Extra_Click gets executed, extras and extrastag are both > updated. > > I suppose this is wrong. > > Latest Gambas, latest suse > > Steven > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Mar 29 13:53:16 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Mar 2007 13:53:16 +0200 Subject: [Gambas-user] Bug in update arrays ? In-Reply-To: <200703291239.28040.steven@...1652...> References: <200703291239.28040.steven@...1652...> Message-ID: <200703291353.17132.gambas@...1...> On jeudi 29 mars 2007, Steven Lobbezoo wrote: > VSel AS String = "1" > extras AS String[] = ["0", "0", "0", "0", "0", "0", "0"] > extrastag AS String[] = ["0", "0", "0", "0", "0", "0", "0"] > > > PUBLIC SUB Extra_Click() > DIM i AS Integer > > ? i = Val(LAST.Name) > ? IF LAST.Value THEN > ? ? extras[i - 1] = "1" > ? ELSE > ? ? extras[i - 1] = "0" > ? END IF > END Please post a full project and not a piece of code, otherwise I can't understand what happens. Regards, -- Benoit Minisini From gambas at ...1... Thu Mar 29 13:58:11 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Mar 2007 13:58:11 +0200 Subject: [Gambas-user] Bug in update arrays ? In-Reply-To: <200703291250.15127.steven@...1652...> References: <200703291239.28040.steven@...1652...> <200703291250.15127.steven@...1652...> Message-ID: <200703291358.12061.gambas@...1...> On jeudi 29 mars 2007, Steven Lobbezoo wrote: > Found it : > > I had an asignment in an other routine as follows > > extrastag = extras > OK. > After that the assigment stays (it redefines extrastag) > stange behavour !!! Not really. This is the behaviour of all object programming languages. Regards, -- Benoit Minisini From gambas at ...1... Thu Mar 29 14:09:56 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Mar 2007 14:09:56 +0200 Subject: [Gambas-user] Use of Dialog.Paths In-Reply-To: <200703261821.51413.steven@...1652...> References: <200703261754.33120.steven@...1652...> <200703261821.51413.steven@...1652...> Message-ID: <200703291409.56225.gambas@...1...> On lundi 26 mars 2007, Steven Lobbezoo wrote: > Hi, > > I must be oing something wrong (again ;-)) : > ---------------------------------------------------------------- > DIM Mpath AS String > > Dialog.Title = "Selection d'une fichier image" > Dialog.Filter = > ["*.png;*.jpg;*.jpeg;*.bmp;*.gif;*.xpm", "Images", "*.*", "Tous les > fichiers"] > Dialog.Path = User.Home > IF Dialog.OpenFile(TRUE) THEN RETURN > FOR EACH Mpath IN Dialog.Paths > -------------------------------------------------------------------- > But Dialog.Paths is allways NULL ?????? > I get files in if I work with PATH only (just one file) > The dialog box let me select several files, but i'm not getting anything > in. > > Anybody ? > > Steven > This was a bug in the gb.form component. I just fixed it in the svn trunk. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Thu Mar 29 14:14:09 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 29 Mar 2007 05:14:09 -0700 (PDT) Subject: [Gambas-user] Look for Gambas tutorials Message-ID: <215901.81437.qm@...1670...> I think we should work in a documentation project, I mean Gambas is GREAT!!!! but some times is very dificult to find examples and tutorials.... If somebody have any idea.... I'll help... Regards... David ----- Original Message ---- From: Sebastian Wild To: mailing list for gambas users Sent: Thursday, March 29, 2007 5:46:09 AM Subject: Re: [Gambas-user] Look for Gambas tutorials Well look for some Tutorials for the Programming language BASIC since gambas is a BASIC compiler. Then you have the syntax and the most of it. The rest is to find in the gambas included help. I used to code in BASIC in times i was a kid and when i bumped into gambas i got a major dejavue :) cheers Sebastian Johnny wrote: > Hi > I am new to Gambas I am looking for some tutorials > > Johnny > > -- -- Mit freundlichen Gruessen, Sebastian Wild Administrator/Technik ------------------------------------------------------------------------------------ Telefon: + 49 (0)941 - 56 71 23 95 Telefax: + 49 (0)941 - 59 57 91 64 E-Mail: sw at ...1675... Website: http://www.cronon.org ------------------------------------------------------------------------------------ Cronon AG Niederlassung Regensburg Oberm?nsterstra?e 9 93047 Regensburg ------------------------------------------------------------------------------------ Vorsitzender des Aufsichtsrates: Damian Schmidt Vorstand: Florian Heinz, Viktor Hinterleitner, Christian Mueller, Wolfgang von Hardenberg Amtsgericht Berlin-Charlottenburg HRB 77957 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Don't get soaked. Take a quick peek at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather From gambas at ...1... Thu Mar 29 14:16:52 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Mar 2007 14:16:52 +0200 Subject: [Gambas-user] [SPAM] Problem with Gambas: Stop and send signal #11 In-Reply-To: References: Message-ID: <200703291416.52182.gambas@...1...> On samedi 24 mars 2007, Antonio Alfonso Moreno Razo wrote: > Hello there! > I'm using Gambas 1.9.46 with a SQLite db. When I'm using the db.Edit > function the program stops and a message appears saying that the program > stops returning signal # 11, any light? > Thanks! > Can you give more details? Can you send your project? -- Benoit Minisini From steven at ...1652... Thu Mar 29 13:23:48 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 29 Mar 2007 13:23:48 +0200 Subject: [Gambas-user] Bug in update arrays ? In-Reply-To: <200703291358.12061.gambas@...1...> References: <200703291239.28040.steven@...1652...> <200703291250.15127.steven@...1652...> <200703291358.12061.gambas@...1...> Message-ID: <200703291323.48769.steven@...1652...> Le jeudi 29 mars 2007 13:58, Benoit Minisini a ?crit?: > On jeudi 29 mars 2007, Steven Lobbezoo wrote: > > Found it : > > > > I had an asignment in an other routine as follows > > > > extrastag = extras > > OK. > > > After that the assigment stays (it redefines extrastag) > > stange behavour !!! > > Not really. This is the behaviour of all object programming languages. Yes, I still have to get used to the combination of Basic with OO Was spoiled at the time of VB3 by microsoft, I suppose. I'll adapt Regards, Steven > > Regards, From gambas at ...1... Thu Mar 29 14:20:29 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Mar 2007 14:20:29 +0200 Subject: [Gambas-user] DataSource In-Reply-To: <867697.93804.qm@...1671...> References: <867697.93804.qm@...1671...> Message-ID: <200703291420.30018.gambas@...1...> On lundi 26 mars 2007, David Villalobos Cambronero wrote: > Hi All, > I want to know if someone has any example or documents about the: > DataSource > DataControl > DataCombo > DataView > Databrowser > > If try to find something in the web but I couldn't > > Regards > > David > Click on the 'Bound controls example' button in the 'Database' example to get a demo. Then read the source code :-) Regards, -- Benoit Minisini From david_villalobos_c at ...43... Thu Mar 29 14:25:19 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 29 Mar 2007 05:25:19 -0700 (PDT) Subject: [Gambas-user] gb.db.from Message-ID: <745741.85510.qm@...1676...> Hi all, I need some examples of the component: gb.db.from, I mean: DataSource DataControl DataCombo DataView Databrowser Please help me... I'm tired to find documentation... Regards, David ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ From gambas at ...1... Thu Mar 29 14:46:34 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Mar 2007 14:46:34 +0200 Subject: [Gambas-user] Bug or bad use of gb.net.curl? In-Reply-To: <19cca6e50702210703u7ed5bf48r403850400825eb0f@...627...> References: <19cca6e50702210703u7ed5bf48r403850400825eb0f@...627...> Message-ID: <200703291446.34303.gambas@...1...> On mercredi 21 f?vrier 2007, Lorenzo Tejera wrote: > I'm using the net.curl componente, but I have a problem that I can't > resolv. I'm doing an application that retreive some .wma files from a > specific web, but when I stored the file appears two bytes more that not > belong to the file in the head of the file. But I did some probes and only > occurs when I use the funcion Lof to define the size of the buffer I must > to read. If lof is not use the head of file is saved perfect, but I not get > all the buffer and the file is incompleted. > > For example: > > This is what I obtiain: > > ??GIF89a > > But it should be: > > GIF89a > > The rest of file is saved perfect. > > This is the lines of code I used to read httpclient and write to a file in > hard disk. > > IF Lof(HttpDescarga) THEN > READ #HttpDescarga, Buffer, Lof(HttpDescarga) I think I understand: Lof() returns the number of bytes you can read from the stream. So after this line, Lof(HttpDescarga) will return 0. > WRITE #gFichero, Buffer, Lof(HttpDescarga) And so in this line, the third argument of WRITE is zero, and so Gambas will write the length of the string before writing its contents (this is the two bytes before 'GIF89a'). You should do something like that: DO HttpLen = Lof(HttpDescarga) IF HttpLen THEN READ #HttpDescarga, Buffer, HttpLen WRITE #gFichero, Buffer, HttpLen ELSE BREAK ENDIF LOOP > END IF Regards, -- Benoit Minisini From leonardo at ...1237... Thu Mar 29 14:58:54 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 29 Mar 2007 14:58:54 +0200 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <215901.81437.qm@...1670...> References: <215901.81437.qm@...1670...> Message-ID: <460BB80E.3080504@...1237...> David Villalobos Cambronero ha scritto: > I think we should work in a documentation project, I mean Gambas is GREAT!!!! but some times is very dificult to find examples and tutorials.... > > If somebody have any idea.... I'll help... > > Regards... > > David > > ----- Original Message ---- > From: Sebastian Wild > To: mailing list for gambas users > Sent: Thursday, March 29, 2007 5:46:09 AM > Subject: Re: [Gambas-user] Look for Gambas tutorials > > Well look for some Tutorials for the Programming language BASIC since > gambas is a BASIC compiler. > Then you have the syntax and the most of it. The rest is to find in the > gambas included help. > I used to code in BASIC in times i was a kid and when i bumped into > gambas i got a major dejavue :) > > cheers > Sebastian > > Johnny wrote: >> Hi >> I am new to Gambas I am looking for some tutorials >> >> Johnny >> >> > > Same for me. The Gambas documentations laks in a lot of parts: sometimes some parts miss, sometimes some parts are very generic and without explaing examples, sometimes else some parts are too out-of-date. This is the only bad thing about this great language. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From samuel.derous at ...27... Thu Mar 29 15:11:57 2007 From: samuel.derous at ...27... (samuel Derous) Date: Thu, 29 Mar 2007 15:11:57 +0200 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <460B2521.1040909@...626...> Message-ID: <200703291312.l2TDBweh006120@...1677...> Hi Johnny, Some time ago somebody of this mailing list gave me information about a book called A beginner's guide to Gambas . You can buy it, but it is also available on the net. Bon courage, Samuel -----Oorspronkelijk bericht----- Van: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] Namens Johnny Verzonden: donderdag 29 maart 2007 4:32 Aan: gambas-user at lists.sourceforge.net Onderwerp: [Gambas-user] Look for Gambas tutorials Hi I am new to Gambas I am looking for some tutorials Johnny -- ******************************* ******************************* Ubuntu Dapper 6.06 Ubuntu User number is # 11285 Registed Linux user #310190 Registed Machine #250193 ******************************* ******************************* ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Thu Mar 29 15:48:55 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 29 Mar 2007 09:48:55 -0400 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <460BB80E.3080504@...1237...> References: <215901.81437.qm@...1670...> <460BB80E.3080504@...1237...> Message-ID: <200703290948.55363.sourceforge-raindog2@...94...> On Thursday 29 March 2007 08:58, Leonardo Miliani wrote: > David Villalobos Cambronero ha scritto: > > I think we should work in a documentation project, I mean > > Gambas is GREAT!!!! but some times is very dificult to find > > examples and tutorials.... > The Gambas documentations laks in a lot of parts: sometimes > some parts miss, sometimes some parts are very generic and > without explaing examples, sometimes else some parts are too > out-of-date. This is the only bad thing about this great > language. Yeah, we tried to take care of that years ago with the wiki, but it got out of control (between the version update process and the many security holes with Twiki constantly letting spammers in) so Benoit had to write the current documentation system from scratch. But there's no reason that people who find flaws in the documentation can't either correct those flaws, or at least mark the page as wrong or out of date. If we could come up with a convention to mark pages that way, then it would be a lot easier to search for the "out of date" marker for someone looking to help update the documentation. Last I looked, there were still Gambas tutorials on the web from like version 0.40, so I hope someone with some free time will either update them or write new ones. Rob From david_villalobos_c at ...43... Thu Mar 29 16:11:37 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 29 Mar 2007 07:11:37 -0700 (PDT) Subject: [Gambas-user] DataSource Message-ID: <213406.38029.qm@...1678...> mmm I don't remenber if that example use these objects, but any way I'll check Regards ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Thursday, March 29, 2007 6:20:29 AM Subject: Re: [Gambas-user] DataSource On lundi 26 mars 2007, David Villalobos Cambronero wrote: > Hi All, > I want to know if someone has any example or documents about the: > DataSource > DataControl > DataCombo > DataView > Databrowser > > If try to find something in the web but I couldn't > > Regards > > David > Click on the 'Bound controls example' button in the 'Database' example to get a demo. Then read the source code :-) Regards, -- Benoit Minisini ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front From handriolijr at ...626... Thu Mar 29 18:32:44 2007 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Thu, 29 Mar 2007 13:32:44 -0300 Subject: [Gambas-user] Problem with gb.report In-Reply-To: <46095C3C.9090307@...402...> References: <393380.11732.qm@...1670...> <46095C3C.9090307@...402...> Message-ID: <460BEA2C.1050300@...626...> Is gb.report working? I've tried to use it at Ubuntu 6.10, but each time i select this, the Gambas stop working, and i have to kill the process. Any Ideia? Regards Hamilton From steven at ...1652... Thu Mar 29 17:51:02 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 29 Mar 2007 17:51:02 +0200 Subject: [Gambas-user] Aahhhggrr Databasemanager Message-ID: <200703291751.02215.steven@...1652...> Hi, I small bug with HUGE consequences : If you use the "Gestionaire de base de donn?es" from Gambas, and you change a field (string -> blob, since Gambas refuses to handle blob data in a string databse field) or add a field, ALL capitals in the field names of ALL fields are changed to small letters! SO, either I change it back, or have to change all other programs Steven (still like gambas anyway) From leonardo at ...1237... Thu Mar 29 18:58:56 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 29 Mar 2007 18:58:56 +0200 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <200703290948.55363.sourceforge-raindog2@...94...> References: <215901.81437.qm@...1670...> <460BB80E.3080504@...1237...> <200703290948.55363.sourceforge-raindog2@...94...> Message-ID: <460BF050.4070609@...1237...> Rob ha scritto: > Yeah, we tried to take care of that years ago with the wiki, but > it got out of control (between the version update process and > the many security holes with Twiki constantly letting spammers > in) so Benoit had to write the current documentation system from > scratch. > > But there's no reason that people who find flaws in the > documentation can't either correct those flaws, or at least mark > the page as wrong or out of date. If we could come up with a > convention to mark pages that way, then it would be a lot easier > to search for the "out of date" marker for someone looking to > help update the documentation. > > Last I looked, there were still Gambas tutorials on the web from > like version 0.40, so I hope someone with some free time will > either update them or write new ones. > I would like to suggest to set up a wiki site, where documentation can be written from anyone, so users that want to collaborate can finnaly do it. I.E.: Benoit has no time to post a page regarding IF-THEN-ELSE condition? I could write it myself. I think this could be very helpful. The only doubt I have if this system is easy to transfer offline, i.e. on a standalone computer to set an inline documentation. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From steven at ...1652... Thu Mar 29 18:07:39 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 29 Mar 2007 18:07:39 +0200 Subject: [Gambas-user] BLOBS revisited Message-ID: <200703291807.40371.steven@...1652...> Hi An other problem (it is still difficult with blobs) if I do : sData = rsD!photo (a blob field) Gambas says : Wanted string, got blob (which, of course is right ;-)) What to do ? Steven From gambas at ...1... Thu Mar 29 19:06:00 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Mar 2007 19:06:00 +0200 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <460BF050.4070609@...1237...> References: <215901.81437.qm@...1670...> <200703290948.55363.sourceforge-raindog2@...94...> <460BF050.4070609@...1237...> Message-ID: <200703291906.01318.gambas@...1...> On jeudi 29 mars 2007, Leonardo Miliani wrote: > Rob ha scritto: > > Yeah, we tried to take care of that years ago with the wiki, but > > it got out of control (between the version update process and > > the many security holes with Twiki constantly letting spammers > > in) so Benoit had to write the current documentation system from > > scratch. > > > > But there's no reason that people who find flaws in the > > documentation can't either correct those flaws, or at least mark > > the page as wrong or out of date. If we could come up with a > > convention to mark pages that way, then it would be a lot easier > > to search for the "out of date" marker for someone looking to > > help update the documentation. > > > > Last I looked, there were still Gambas tutorials on the web from > > like version 0.40, so I hope someone with some free time will > > either update them or write new ones. > > I would like to suggest to set up a wiki site, where documentation can > be written from anyone, so users that want to collaborate can finnaly do > it. I.E.: Benoit has no time to post a page regarding IF-THEN-ELSE > condition? I could write it myself. > I think this could be very helpful. > > The only doubt I have if this system is easy to transfer offline, i.e. > on a standalone computer to set an inline documentation. http://gambasdoc.org ? -- Benoit Minisini From sourceforge-raindog2 at ...94... Thu Mar 29 19:14:05 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 29 Mar 2007 13:14:05 -0400 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <460BF050.4070609@...1237...> References: <215901.81437.qm@...1670...> <200703290948.55363.sourceforge-raindog2@...94...> <460BF050.4070609@...1237...> Message-ID: <200703291314.05582.sourceforge-raindog2@...94...> On Thursday 29 March 2007 12:58, Leonardo Miliani wrote: > I would like to suggest to set up a wiki site, where > documentation can be written from anyone, so users that want > to collaborate can finnaly do it. I.E.: Benoit has no time to > post a page regarding IF-THEN-ELSE condition? I could write it > myself. Well, the current documentation system IS a wiki, just a more structured wiki than the old one. For example, if you find flaws in the help available for if/then/else, go here and add to it: http://www.gambasdoc.org/help/lang/if This will have the additional benefit of being integrated with the documentation included in future releases of Gambas. Rob From steven at ...1652... Thu Mar 29 19:02:35 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 29 Mar 2007 19:02:35 +0200 Subject: [Gambas-user] BLOB Message-ID: <200703291902.35228.steven@...1652...> Sorry, i made a mistake it should have been : sData = Rset!Photo.Data however, that changes nothing, it still does not work. I get only 4 bytes in (RSet!Photo.Length = 4) Steven From steven at ...1652... Thu Mar 29 19:48:44 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 29 Mar 2007 19:48:44 +0200 Subject: [Gambas-user] BLOB and Database manager Message-ID: <200703291948.44434.steven@...1652...> Is it possible that i donnot get any data anymore from my blob fieldss because it was erased ? I cannot get this data (from the fields I changed from variable text to blob) with other programs (php) either. Just a blue stripe is returned? From gambas at ...1... Thu Mar 29 21:30:20 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Mar 2007 21:30:20 +0200 Subject: [Gambas-user] Aahhhggrr Databasemanager In-Reply-To: <200703291751.02215.steven@...1652...> References: <200703291751.02215.steven@...1652...> Message-ID: <200703292130.21367.gambas@...1...> On jeudi 29 mars 2007, Steven Lobbezoo wrote: > Hi, > > I small bug with HUGE consequences : > If you use the "Gestionaire de base de donn?es" from Gambas, and you change > a field (string -> blob, since Gambas refuses to handle blob data in a > string databse field) or add a field, ALL capitals in the field names of > ALL fields are changed to small letters! > SO, either I change it back, or have to change all other programs > > Steven (still like gambas anyway) > The gambas database driver force every field name to lower case so that it can be sure that field names are not case sensitive. The reason was that some databases are case sensitive with field names, some are not. Regards, -- Benoit Minisini From steven at ...1652... Thu Mar 29 21:27:26 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 29 Mar 2007 21:27:26 +0200 Subject: [Gambas-user] Aahhhggrr Databasemanager In-Reply-To: <200703292130.21367.gambas@...1...> References: <200703291751.02215.steven@...1652...> <200703292130.21367.gambas@...1...> Message-ID: <200703292127.26239.steven@...1652...> OK, But that is NOT good behavour ! I work with mysql, and it's sensitive to the case of field-names. A reason to NOT change them to lower case (or at least warn the user) The conversion should then be done in the individual drivers, not in the user part! I admit it's difficult if you consider someone using the same field-names with upper- and lower-case letters in f.i. MySQL, than switching to a non-sensitive systems could couse porblems. However, I think that the case is much more exeptionel as the simple re-genaration of an existing database. Steven Le jeudi 29 mars 2007 21:30, Benoit Minisini a ?crit?: > On jeudi 29 mars 2007, Steven Lobbezoo wrote: > > Hi, > > > > I small bug with HUGE consequences : > > If you use the "Gestionaire de base de donn?es" from Gambas, and you > > change a field (string -> blob, since Gambas refuses to handle blob data > > in a string databse field) or add a field, ALL capitals in the field > > names of ALL fields are changed to small letters! > > SO, either I change it back, or have to change all other programs > > > > Steven (still like gambas anyway) > > The gambas database driver force every field name to lower case so that it > can be sure that field names are not case sensitive. The reason was that > some databases are case sensitive with field names, some are not. > > Regards, From rolf.frogs at ...221... Thu Mar 29 22:28:28 2007 From: rolf.frogs at ...221... (rolf) Date: Thu, 29 Mar 2007 22:28:28 +0200 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <200703291906.01318.gambas@...1...> References: <215901.81437.qm@...1670...> <460BF050.4070609@...1237...> <200703291906.01318.gambas@...1...> Message-ID: <200703292228.29168.rolf.frogs@...221...> Hi Benoit, hi everybody else > http://gambasdoc.org ? The most missing feature in gambasdoc is a search function. So you have to know to which group a function belongs to, to find it. If possible should also a search in the description of functions be possible to serve requests like "what function has the searched properties - not only in the sense of the module properties, but in the sense of functionallity. If needed, i may help writting parts of a documentation - even if my english is not perfect. Perhaps we should generate a list of needed documents or documentation of functions or objects/elements. Than it needs to be coordinated, who works on which part. Fine regards Rolf From horus at ...1679... Fri Mar 30 00:42:59 2007 From: horus at ...1679... (David Reese) Date: Thu, 29 Mar 2007 17:42:59 -0500 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <460BA701.3020803@...1675...> References: <460B2521.1040909@...626...> <460BA701.3020803@...1675...> Message-ID: <460C40F3.8080905@...1679...> Sebastian Wild wrote: > Well look for some Tutorials for the Programming language BASIC since > gambas is a BASIC compiler. > Um... let me take exception to that. Gambas is to BASIC as whale is to dolphin. Sure, Gambas is a more advanced form of BASIC language, but it has peculiarities (read: it's Object-based) which make it much unlike any of the BASIC dialects which are pre - Visual Basic. I've programmed in MBASIC, GW-BASIC, QuickBasic, XBasic, and several industrial dialects of BASIC which are procedurally-oriented. It's a whole different way of thinking about program design. I still have yet to program a working original piece of code in Gambas, even though I'm able to do what I want in the BASICs already mentioned, as well as being a 20-year FORTRAN and FORTH programmer, and a recent convert to the C programming language. (Yes, that's right, C, not C++.) Of course, if Gambas is the first environment in which you are attempting to learn to program, it might actually be easier to get your head around it, so don't let my experiences deter you. I probably have a lot to un-learn before visual programming tools will make a lot of sense to me. Here's some help: http://gambas.sourceforge.net/ is a good place to start looking for information. http://gambasdoc.org/help is available from there, and has most of what you're looking for. http://users.telenet.be/UglyMike/Gambas/Fractal%20Gambas%20Tutorial1.html is a link to a tutorial for a fractal generator created in Gambas. http://programacion-codigoabierto.blogspot.com/2006/01/tutorial-and-example-made-with-gambas.html is a link to another tutorial. That ought to get you started. Later On, Dave From sourceforge-raindog2 at ...94... Fri Mar 30 01:47:12 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 29 Mar 2007 19:47:12 -0400 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <460C40F3.8080905@...1679...> References: <460B2521.1040909@...626...> <460BA701.3020803@...1675...> <460C40F3.8080905@...1679...> Message-ID: <200703291947.13245.sourceforge-raindog2@...94...> On Thursday 29 March 2007 18:42, David Reese wrote: > Sure, Gambas is a more advanced form of BASIC language, but it > has peculiarities (read: it's Object-based) which make it much > unlike any of the BASIC dialects which are pre - Visual Basic. Since Visual Basic is the most common BASIC dialect in history by at least an order of magnitude, I think it's kind of a moot point. But yes, people who have been using non-object-oriented BASIC dialects before coming to Gambas will have a learning curve, just as they would if they tried to use VB, Realbasic, RapidQ or any other modern incarnation of it. Or, for that matter, Java or Javascript or Actionscript or Python or any .NET-hosted language. In fact, unless you're doing C, Perl or COBOL, chances are you're going to have to gain a grasp on object oriented programming to do anything in the computing environments that are en vogue right now, and even those languages have all kinds of object extensions bolted on to them (sure, Gtk may be C-based, but it's certainly object oriented.) Apart from a few legacy apps, procedural BASIC is really only used for embedded applications anymore, and what we now call "BASIC" is more like VB or Gambas than 10 PRINT "I am overflowing the stack now" : GOSUB 10 And I'm thinking that if you search for BASIC tutorials, you'll find mostly stuff that starts with "Sub Main" or "Sub Form_Open" than something that looks like the above. So it wasn't out of line for Sebastian to recommend general BASIC tutorials to Johnny, though I personally would not have done so. Rob From iwanpc at ...626... Fri Mar 30 05:03:24 2007 From: iwanpc at ...626... (Iwan Prasetyo) Date: Fri, 30 Mar 2007 10:03:24 +0700 Subject: [Gambas-user] Report System WYSWYG In-Reply-To: References: Message-ID: <003a01c77278$03b4efe0$0b1ecfa0$@com> Dear milis, Accessing database both read and write is perfect using Gambas. But does anyone here know how to create a report for printing purpose? Just like VB (sorry), we can have a nice and simple report control for designing report. Thx:) Regards, -Iwan P- From vince.scott at ...770... Fri Mar 30 05:29:16 2007 From: vince.scott at ...770... (Vince Scott (SBC)) Date: Thu, 29 Mar 2007 21:29:16 -0600 Subject: [Gambas-user] TRY/CANCEL Message-ID: Hi All, I need some information on the TRY/CATCH error trapping in Gambas. How do I TRY/CATCH a block of code? I don't need to use a TRY and CATCH on each line do I? Any information would be appreciated. Vince Scott From horus at ...1679... Fri Mar 30 06:04:24 2007 From: horus at ...1679... (David Reese) Date: Thu, 29 Mar 2007 23:04:24 -0500 Subject: [Gambas-user] BASIC Legacy [WAS: Look for Gambas tutorials] In-Reply-To: <200703291947.13245.sourceforge-raindog2@...94...> References: <460B2521.1040909@...626...> <460BA701.3020803@...1675...> <460C40F3.8080905@...1679...> <200703291947.13245.sourceforge-raindog2@...94...> Message-ID: <460C8C48.9070803@...1679...> Rob wrote: > Since Visual Basic is the most common BASIC dialect in history by at > least an order of magnitude, I think it's kind of a moot point. But > yes, people who have been using non-object-oriented BASIC dialects > before coming to Gambas will have a learning curve, just as they would > if they tried to use VB, Realbasic, RapidQ or any other modern > incarnation of it. Or, for that matter, Java or Javascript or > Actionscript or Python or any .NET-hosted language. Yeah, I'm showin' my age, I guess. Of all the procedural BASIC dialects, I actually liked QuickBasic best. It was a compilable language which could also be executed immediately - gave me lots of room to play around with the code. The QB help facilities were killer, too. BASIC had been the one thing Microsoft had consistently done well in my limited experience. (Applesoft BASIC made Bill Gates his first million dollars.) > In fact, unless you're doing C, Perl or COBOL, chances are you're > going to have to gain a grasp on object oriented programming to > do anything in the computing environments that are en vogue > right now, and even those languages have all kinds of object > extensions bolted on to them (sure, Gtk may be C-based, but it's > certainly object oriented.) I'm finding that out, but a lot of the Linux kernel is still maintained in C, as is a large body of GNU software. Knowing C will be valuable to me if I am going to stick with a Linux environment. I'll probably keep trying to learn Ruby and Gambas, too - each language out there has its place. As for OOP: I'll probably bash my head against a stone wall until I look up bloodied and bruised one day and go, "Aha!". Until then, my grasp of the demarcations of objects in a program looms before me as that wall. I can code from hell to breakfast, I just can't design OO programs worth beans, and good programs are all about good fundamental designs. I have read (and continue to read) everything I can get my hands on about OOP and OOD, but, with my time constraints being what they presently are, I don't know that I will ever learn enough to be a truly good programmer in an OO language. > > Apart from a few legacy apps, procedural BASIC is really only > used for embedded applications anymore, and what we now > call "BASIC" is more like VB or Gambas than > > 10 PRINT "I am overflowing the stack now" : GOSUB 10 > > And I'm thinking that if you search for BASIC tutorials, you'll > find mostly stuff that starts with "Sub Main" or "Sub Form_Open" > than something that looks like the above. So it wasn't out of > line for Sebastian to recommend general BASIC tutorials to > Johnny, though I personally would not have done so. > You're quite right. QuickBasic and QBasic (it's interpreted cousin which shipped with MS-DOS 5[?] and later) had gotten away from the line numbers and gone to a more structured approach, with great emphasis on proper use of subroutines to implement cleaner and more maintainable code. I didn't mean to imply that Sebastian was out of line recommending "general BASIC tutorials". I just wanted Johnny to know that not all BASICs are created equal, and that the best resources for learning Gambas are going to be those which are specific to it. That is why I tried to provide a few of the more introductory links to the documentation and to the tutorials I have worked through so far. (It's been a long week for me, and I might not have come across properly. I didn't mean to give offense, really.) Tomorrow's another day. I'll go back to lurking again now, while I learn. Later On, Dave From handriolijr at ...626... Fri Mar 30 14:55:03 2007 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Fri, 30 Mar 2007 09:55:03 -0300 Subject: [Gambas-user] pictures inside a DB In-Reply-To: <200703261754.33120.steven@...1652...> References: <200703261754.33120.steven@...1652...> Message-ID: <460D08A7.5040901@...626...> Steven, i didn't understand your code. see: ' DIM sData AS String ' sData = File.Load("/file/path") ' MyResult!MyBlobField = sData How can i make a database connection. I said that, because i work only with SQL, and to update a database i use "update customers set picture='" & Sdata & "' where id=xx" If i make what you said, Gambas returns me: Result is read-only. What i'm doing wrong? []'s Hamilton From Brazil! Steven Lobbezoo escreveu: > rsK = db.Exec("select Thumb, Id from Photos where prop_num = " & Str(Id)) > IF rsK.available = TRUE THEN > FOR EACH rsK > sData = rsK!Thumb.Data > ' write the photo to local file > File.Save("~/TempPhot" & Str(rsK!Id) & ".jpg", sData) > ' Fill with the image > AddImage("~/TempPhot" & Str(rsK!Id) & ".jpg", Str(rsK!Id)) > KILL "~/TempPhot" & Str(rsK!Id) & ".jpg" > > AND > > ' TO put a file inside a blob field: > > ' DIM sData AS String > ' sData = File.Load("/file/path") > ' MyResult!MyBlobField = sData > > > Well, I only got a lot of help, and adapted it a bit. > Still looking for a possibility to read blobs without > writinig them to files ! > > Steven > > > > Le lundi 26 mars 2007 18:18, Hamilton Geminiano Andrioli Junior a ?crit : > >> Please, i have to put some pictures inside a mysql database. >> How can i save and retrieve those? >> >> Anyone can help me? >> >> thanks. >> >> Hamilton >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From steven at ...1652... Fri Mar 30 14:12:14 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 30 Mar 2007 14:12:14 +0200 Subject: [Gambas-user] pictures inside a DB In-Reply-To: <460D08A7.5040901@...626...> References: <200703261754.33120.steven@...1652...> <460D08A7.5040901@...626...> Message-ID: <200703301412.14223.steven@...1652...> Hamilton, If You use direct SQL statements with exec (i.e; SResult = MyDb.Exec("Select ..........................") then the rsulting resultset is read-only. In this case you have to update yourself like in : SREsult = MyDb.Exec("Update TableX .............................;") If You want gambas to do this for you, You have to use it's sql layer, and open a table for update. I use both, since the layer is not very sophisticated, and verry fast you will run into sql statements that cannot be represented by it. Steven Le vendredi 30 mars 2007 14:55, Hamilton Geminiano Andrioli Junior a ?crit?: > Steven, i didn't understand your code. > see: > > ' DIM sData AS String > ' sData = File.Load("/file/path") > ' MyResult!MyBlobField = sData > > > How can i make a database connection. I said that, because i work only > with SQL, and to update a database i use "update customers set > picture='" & Sdata & "' where id=xx" > If i make what you said, Gambas returns me: Result is read-only. > > What i'm doing wrong? > > []'s > Hamilton From Brazil! > > Steven Lobbezoo escreveu: > > rsK = db.Exec("select Thumb, Id from Photos where prop_num = " & > > Str(Id)) IF rsK.available = TRUE THEN > > FOR EACH rsK > > sData = rsK!Thumb.Data > > ' write the photo to local file > > File.Save("~/TempPhot" & Str(rsK!Id) & ".jpg", sData) > > ' Fill with the image > > AddImage("~/TempPhot" & Str(rsK!Id) & ".jpg", Str(rsK!Id)) > > KILL "~/TempPhot" & Str(rsK!Id) & ".jpg" > > > > AND > > > > ' TO put a file inside a blob field: > > > > ' DIM sData AS String > > ' sData = File.Load("/file/path") > > ' MyResult!MyBlobField = sData > > > > > > Well, I only got a lot of help, and adapted it a bit. > > Still looking for a possibility to read blobs without > > writinig them to files ! > > > > Steven > > > > Le lundi 26 mars 2007 18:18, Hamilton Geminiano Andrioli Junior a ?crit : > >> Please, i have to put some pictures inside a mysql database. > >> How can i save and retrieve those? > >> > >> Anyone can help me? > >> > >> thanks. > >> > >> Hamilton > >> ------------------------------------------------------------------------ > >>- Take Surveys. Earn Cash. Influence the Future of IT > >> Join SourceForge.net's Techsay panel and you'll get the chance to share > >> your opinions on IT & business topics through brief surveys-and earn > >> cash > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > >>V _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From steven at ...1652... Fri Mar 30 14:19:33 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 30 Mar 2007 14:19:33 +0200 Subject: [Gambas-user] pictures inside a DB In-Reply-To: <460D08A7.5040901@...626...> References: <200703261754.33120.steven@...1652...> <460D08A7.5040901@...626...> Message-ID: <200703301419.33383.steven@...1652...> Let me send you some examples, it's work in progress, but i hope it will help you. Steven (see attachement) Le vendredi 30 mars 2007 14:55, Hamilton Geminiano Andrioli Junior a ?crit?: > Steven, i didn't understand your code. > see: > > ' DIM sData AS String > ' sData = File.Load("/file/path") > ' MyResult!MyBlobField = sData > > > How can i make a database connection. I said that, because i work only > with SQL, and to update a database i use "update customers set > picture='" & Sdata & "' where id=xx" > If i make what you said, Gambas returns me: Result is read-only. > > What i'm doing wrong? > > []'s > Hamilton From Brazil! > > Steven Lobbezoo escreveu: > > rsK = db.Exec("select Thumb, Id from Photos where prop_num = " & > > Str(Id)) IF rsK.available = TRUE THEN > > FOR EACH rsK > > sData = rsK!Thumb.Data > > ' write the photo to local file > > File.Save("~/TempPhot" & Str(rsK!Id) & ".jpg", sData) > > ' Fill with the image > > AddImage("~/TempPhot" & Str(rsK!Id) & ".jpg", Str(rsK!Id)) > > KILL "~/TempPhot" & Str(rsK!Id) & ".jpg" > > > > AND > > > > ' TO put a file inside a blob field: > > > > ' DIM sData AS String > > ' sData = File.Load("/file/path") > > ' MyResult!MyBlobField = sData > > > > > > Well, I only got a lot of help, and adapted it a bit. > > Still looking for a possibility to read blobs without > > writinig them to files ! > > > > Steven > > > > Le lundi 26 mars 2007 18:18, Hamilton Geminiano Andrioli Junior a ?crit : > >> Please, i have to put some pictures inside a mysql database. > >> How can i save and retrieve those? > >> > >> Anyone can help me? > >> > >> thanks. > >> > >> Hamilton > >> ------------------------------------------------------------------------ > >>- Take Surveys. Earn Cash. Influence the Future of IT > >> Join SourceForge.net's Techsay panel and you'll get the chance to share > >> your opinions on IT & business topics through brief surveys-and earn > >> cash > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > >>V _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- # Gambas Form File 1.0 { Form Form MoveScaled(0,0,96,83) 'Move(0,0,672,581) Background = &HFFFFBF& Expand = True Text = ("") Icon = Picture["icon:/16/color"] AutoResize = True { ToolButton1 ToolButton TBs Name = "ToolButton1" MoveScaled(1,1,6,3) 'Move(7,7,42,21) Background = &HFFFFBF& Tag = "No|DESC" ToolTip = ("Clique moi pour faire\nune tri sur la colonne") Text = ("No") Picture = Picture["icon:/16/redo"] } { ToolButton2 ToolButton TBs Name = "ToolButton2" MoveScaled(9,1,11,3) 'Move(63,7,77,21) Background = &HFFFFBF& Tag = "Prenom|DESC" ToolTip = ("Clique moi pour faire\nune tri sur la colonne") Text = ("Prenom") Picture = Picture["icon:/16/redo"] } { ToolButton3 ToolButton TBs Name = "ToolButton3" MoveScaled(23,1,10,3) 'Move(161,7,70,21) Background = &HFFFFBF& Tag = "Nom|DESC" ToolTip = ("Clique moi pour faire\nune tri sur la colonne") Text = ("Nom") Picture = Picture["icon:/16/redo"] } { ToolButton4 ToolButton TBs Name = "ToolButton4" MoveScaled(41,1,12,3) 'Move(287,7,84,21) Background = &HFFFFBF& Tag = "Adresse|DESC" ToolTip = ("Clique moi pour faire\nune tri sur la colonne") Text = ("Adresse") Picture = Picture["icon:/16/redo"] } { ToolButton5 ToolButton TBs Name = "ToolButton5" MoveScaled(63,1,10,3) 'Move(441,7,70,21) Background = &HFFFFBF& Tag = "Ville|DESC" ToolTip = ("Clique moi pour faire\nune tri sur la colonne") Text = ("Ville") Picture = Picture["icon:/16/redo"] } { ToolButton6 ToolButton TBs Name = "ToolButton6" MoveScaled(82,1,9,3) 'Move(574,7,63,21) Background = &HFFFFBF& Tag = "Pays|DESC" ToolTip = ("Clique moi pour faire\nune tri sur la colonne") Text = ("Pays") Picture = Picture["icon:/16/redo"] } { VSplit1 VSplit MoveScaled(0,4,96,79) 'Move(0,28,672,553) Expand = True { VPanel1 VPanel MoveScaled(1,1,94,42) 'Move(7,7,658,294) Expand = True AutoResize = True { GridView2 GridView MoveScaled(-1,-1,94,43) 'Move(-7,-7,658,301) Background = &HFFFFBF& Foreground = &H404040& ToolTip = ("Clique une propri??taire\npour voir / changer les\nd??tails de celle si") Expand = True Scrollbar = Scroll.Vertical AutoResize = True } } { Panel1 Panel MoveScaled(1,44,93,34) 'Move(7,308,651,238) { Prenom TextBox MoveScaled(10,0,35,3) 'Move(70,0,245,21) Background = &HFFFFBF& Text = ("") } { Nom TextBox MoveScaled(10,4,35,3) 'Move(70,28,245,21) Background = &HFFFFBF& Text = ("") } { TextLabel1 TextLabel MoveScaled(0,4,5,3) 'Move(0,28,35,21) Text = ("Nom :") } { TextLabel3 TextLabel MoveScaled(0,8,10,3) 'Move(0,56,70,21) Text = ("T??l??phone :") } { Telephone TextBox MoveScaled(10,8,35,3) 'Move(70,56,245,21) Background = &HFFFFBF& Text = ("") } { Fax TextBox MoveScaled(10,12,35,3) 'Move(70,84,245,21) Background = &HFFFFBF& Text = ("") } { TextLabel4 TextLabel MoveScaled(0,12,10,3) 'Move(0,84,70,21) Text = ("Fax :") } { TextLabel5 TextLabel MoveScaled(0,16,10,3) 'Move(0,112,70,21) Text = ("Portable :") } { Portable TextBox MoveScaled(10,16,35,3) 'Move(70,112,245,21) Background = &HFFFFBF& Text = ("") } { TextLabel2 TextLabel MoveScaled(0,0,7,3) 'Move(0,0,49,21) Text = ("Prenom :") } { Button1 Button MoveScaled(79,30,13,3) 'Move(553,210,91,21) Background = &H800000& Foreground = &HFFFFBF& ToolTip = ("Appuyer pour quitter le programme") Text = ("Sortir") } { TextLabel6 TextLabel MoveScaled(0,20,10,3) 'Move(0,140,70,21) Text = ("Travail :") } { Travail TextBox MoveScaled(10,20,35,3) 'Move(70,140,245,21) Background = &HFFFFBF& Text = ("") } { Email TextBox MoveScaled(10,25,35,3) 'Move(70,175,245,21) Background = &HFFFFBF& Text = ("") } { TextLabel7 TextLabel MoveScaled(0,25,8,3) 'Move(0,175,56,21) Text = ("E-Mail :") } { Adresse TextArea MoveScaled(57,12,36,7) 'Move(399,84,252,49) Background = &HFFFFBF& Text = ("") } { TextLabel8 TextLabel MoveScaled(47,12,9,3) 'Move(329,84,63,21) Text = ("Adresse :") } { TextLabel9 TextLabel MoveScaled(47,20,8,5) 'Move(329,140,56,35) Text = ("Code P- Ville") } { TextLabel10 TextLabel MoveScaled(47,25,10,3) 'Move(329,175,70,21) Text = ("Pays :") } { TextLabel11 TextLabel MoveScaled(47,0,13,3) 'Move(329,0,91,21) Text = ("Observations:") } { Observations TextArea MoveScaled(47,3,46,8) 'Move(329,21,322,56) Background = &HFFFFBF& Text = ("") } { Code_Postal TextBox MoveScaled(57,20,7,3) 'Move(399,140,49,21) Background = &HFFFFBF& Text = ("") } { Ville TextBox MoveScaled(66,20,27,3) 'Move(462,140,189,21) Background = &HFFFFBF& Text = ("") } { Pays TextBox MoveScaled(57,25,36,3) 'Move(399,175,252,21) Background = &HFFFFBF& Text = ("") } { Detail Button MoveScaled(4,30,12,3) 'Move(28,210,84,21) Background = &H4E8036& Foreground = &HFFFFBF& ToolTip = ("Appuyer pour voir des\nd??tails supplementaires") Text = ("+ D??tails") } { Mandat Button MoveScaled(34,30,12,3) 'Move(238,210,84,21) Background = &H4E8036& Foreground = &HFFFFBF& ToolTip = ("Appuyer pour voir le(s)\nmandat(s) du \npropri??taire") Text = ("Mandat(s)") } { Delete Button MoveScaled(64,30,12,3) 'Move(448,210,84,21) Background = &H800000& Foreground = &HFFFFBF& ToolTip = ("Appuyer pour supprimer\nle client selectionn??(e) ?") Text = ("Supprimer") } { Nouveau Button MoveScaled(49,30,12,3) 'Move(343,210,84,21) Background = &H323C80& Foreground = &HFFFFBF& ToolTip = ("Appuyer pour nettoyer\net entrer une nouveau\n---------Client------------\nApr??s avoir remplit les\nchamps, une 2i??me\nclique sauvegarde les\ndonn??es !") Text = ("Nouveau") } { Chercher Button MoveScaled(19,30,12,3) 'Move(133,210,84,21) Background = &H4E8036& Foreground = &HFFFFBF& ToolTip = ("Appuyer pour chercher\nune client sp??cifique") Text = ("Chercher") } } } { Details Panel MoveScaled(0,1,95,46) 'Move(0,7,665,322) Visible = False Background = &HFFFFBF& { Fermer Button MoveScaled(81,41,12,3) 'Move(567,287,84,21) Background = &H4E8036& Foreground = &HFFFFBF& ToolTip = ("Appuyer pour fermer \nle panneau 'd??tails'") Text = ("Fermer +") } { TextLabel12 TextLabel MoveScaled(27,3,13,3) 'Move(189,21,91,21) Text = ("?? Ville, Pays :") } { TextLabel13 TextLabel MoveScaled(3,3,9,3) 'Move(21,21,63,21) Text = ("N??(e) le :") } { TextLabel14 TextLabel MoveScaled(3,7,8,3) 'Move(21,49,56,21) Text = ("Metier :") } { TextLabel15 TextLabel MoveScaled(3,11,17,3) 'Move(21,77,119,21) Text = ("Quote-part proprio :") } { TextLabel16 TextLabel MoveScaled(27,11,3,3) 'Move(189,77,21,21) Text = ("%") } { TextLabel17 TextLabel MoveScaled(3,15,11,3) 'Move(21,105,77,21) Text = ("Relation :") } { TextLabel18 TextLabel MoveScaled(27,15,11,3) 'Move(189,105,77,21) Text = ("Avec qui :") } { TextLabel19 TextLabel MoveScaled(3,19,11,3) 'Move(21,133,77,21) Text = ("Depuis :") } { TextLabel20 TextLabel MoveScaled(27,19,15,3) 'Move(189,133,105,21) Text = ("Ou (Ville, Pays) :") } { TextLabel21 TextLabel MoveScaled(3,23,12,3) 'Move(21,161,84,21) Text = ("Conditions :") } { TextLabel22 TextLabel MoveScaled(75,19,5,3) 'Move(525,133,35,21) Text = ("Noce :") } { TextLabel23 TextLabel MoveScaled(3,27,31,3) 'Move(21,189,217,21) Text = ("Desciption Conditions / Observations") } { Ne TextBox MoveScaled(12,3,14,3) 'Move(84,21,98,21) Background = &HFFFFBF& Text = ("") } { NeOu TextBox MoveScaled(40,3,50,3) 'Move(280,21,350,21) Background = &HFFFFBF& Text = ("") } { Metier TextBox MoveScaled(12,7,78,3) 'Move(84,49,546,21) Background = &HFFFFBF& Text = ("") } { Quote TextBox MoveScaled(20,11,6,3) 'Move(140,77,42,21) Background = &HFFFFBF& Text = ("") } { Mariage TextBox MoveScaled(12,19,14,3) 'Move(84,133,98,21) Background = &HFFFFBF& Text = ("") } { MariageOU TextBox MoveScaled(41,19,30,3) 'Move(287,133,210,21) Background = &HFFFFBF& Text = ("") } { Noce TextBox MoveScaled(82,19,8,3) 'Move(574,133,56,21) Background = &HFFFFBF& Text = ("") } { Conditions TextBox MoveScaled(12,23,78,3) 'Move(84,161,546,21) Background = &HFFFFBF& Text = ("") } { Conddesc TextArea MoveScaled(3,30,75,14) 'Move(21,210,525,98) Background = &HFFFFBF& Text = ("") } { DateChooser2 DateChooser MoveScaled(27,18,44,20) 'Move(189,126,308,140) Visible = False Background = &H606060& Foreground = Color.Foreground ToolTip = ("Selectionnez une date") } { Relation TextBox MoveScaled(41,15,49,3) 'Move(287,105,343,21) Background = &HFFFFBF& Text = ("") } { TypeLiaison ComboBox MoveScaled(12,15,14,3) 'Move(84,105,98,21) Background = &HFFFFBF& Foreground = Color.Foreground Text = ("ComboBox1") List = [(""), ("Epouse"), ("Enfant"), ("Parent"), ("Pax??"), ("Famille"), ("Consort"), ("Associ??"), ("Copro"), ("Divers")] } { DateChooser1 DateChooser MoveScaled(27,2,44,20) 'Move(189,14,308,140) Visible = False Background = &H606060& Foreground = Color.Foreground ToolTip = ("Selectionnez une date") } { TextLabel24 TextLabel MoveScaled(28,0,33,2) 'Move(196,0,231,14) Font = Font["Bold"] Text = ("........................... les d??tails ..........................") } } { Nombre TextLabel MoveScaled(90,0,6,2) 'Move(630,0,42,14) Font = Font["-1"] ToolTip = ("Nombre des \nenregistrements") Text = ("TextLabel25") } } -------------- next part -------------- A non-text attachment was scrubbed... Name: FormB.class Type: application/x-java Size: 12336 bytes Desc: not available URL: -------------- next part -------------- # Gambas Form File 1.0 { Form Form MoveScaled(0,0,110,86) 'Move(0,0,770,602) Text = ("Revimmo - Les Agences") { GridView2 GridView MoveScaled(1,5,69,24) 'Move(7,35,483,168) ToolTip = ("Clique une agence\npour voir les d??tails") } { TextLabel1 TextLabel MoveScaled(2,31,9,3) 'Move(14,217,63,21) Text = ("Nom") } { TextLabel2 TextLabel MoveScaled(2,36,11,3) 'Move(14,252,77,21) Text = ("Addresse") } { TextLabel3 TextLabel MoveScaled(2,41,11,3) 'Move(14,287,77,21) Text = ("PCode + Ville") } { TextLabel4 TextLabel MoveScaled(2,56,11,3) 'Move(14,392,77,21) Text = ("Tcp-IP") } { TextLabel5 TextLabel MoveScaled(2,51,11,3) 'Move(14,357,77,21) Text = ("Fax") } { TextLabel6 TextLabel MoveScaled(2,46,11,3) 'Move(14,322,77,21) Text = ("T??l??phone") } { TextLabel7 TextLabel MoveScaled(58,33,4,3) 'Move(406,231,28,21) Text = ("Actif") } { TextLabel8 TextLabel MoveScaled(2,66,11,3) 'Move(14,462,77,21) Text = ("Site marie") } { TextLabel9 TextLabel MoveScaled(2,61,11,3) 'Move(14,427,77,21) Text = ("Repertoire") } { TextLabel10 TextLabel MoveScaled(39,47,11,3) 'Move(273,329,77,21) Text = ("Responsable") } { TextLabel11 TextLabel MoveScaled(39,51,11,3) 'Move(273,357,77,21) Text = ("Carte") } { photo PictureBox MoveScaled(71,5,38,24) 'Move(497,35,266,168) ToolTip = ("Cliquer double\nsur le photo pour\npouvoir le changer") Alignment = Align.Center Border = Border.Etched } { photo_ville PictureBox MoveScaled(71,32,38,24) 'Move(497,224,266,168) ToolTip = ("Cliquer double\nsur le photo pour\npouvoir le changer") Alignment = Align.Center Border = Border.Etched } { TextLabel12 TextLabel MoveScaled(71,1,11,3) 'Move(497,7,77,21) Text = ("Photo") } { TextLabel13 TextLabel MoveScaled(71,29,16,3) 'Move(497,203,112,21) Text = ("Photo Ville") } { directeur ComboBox MoveScaled(51,46,16,3) 'Move(357,322,112,21) Text = ("") } { chef_secteur ComboBox MoveScaled(51,51,16,3) 'Move(357,357,112,21) Text = ("") } { ToolButton4 ToolButton TBs Name = "ToolButton4" MoveScaled(36,1,14,3) 'Move(252,7,98,21) Background = Color.Background Tag = "tel|DESC" ToolTip = ("Clique moi pour faire\nune tri sur la colonne") Text = ("T??l??phone") Picture = Picture["icon:/16/redo"] } { ToolButton5 ToolButton TBs Name = "ToolButton5" MoveScaled(56,1,10,3) 'Move(392,7,70,21) Background = Color.Background Tag = "fax|DESC" ToolTip = ("Clique moi pour faire\nune tri sur la colonne") Text = ("Fax") Picture = Picture["icon:/16/redo"] } { ToolButton3 ToolButton TBs Name = "ToolButton3" MoveScaled(3,1,10,3) 'Move(21,7,70,21) Background = Color.Background Tag = "nom|DESC" ToolTip = ("Clique moi pour faire\nune tri sur la colonne") Text = ("Nom") Picture = Picture["icon:/16/redo"] } { nom TextBox Stxt Name = "nom" MoveScaled(14,31,37,3) 'Move(98,217,259,21) Text = ("") } { rue TextBox Stxt Name = "rue" MoveScaled(14,36,37,3) 'Move(98,252,259,21) Text = ("") } { plz TextBox Stxt Name = "plz" MoveScaled(14,41,11,3) 'Move(98,287,77,21) Text = ("") } { ville TextBox Stxt Name = "ville" MoveScaled(26,41,25,3) 'Move(182,287,175,21) Text = ("") } { tel TextBox Stxt Name = "tel" MoveScaled(14,46,18,3) 'Move(98,322,126,21) Text = ("") } { fax TextBox Stxt Name = "fax" MoveScaled(14,51,18,3) 'Move(98,357,126,21) Text = ("") } { tcpip TextBox Stxt Name = "tcpip" MoveScaled(14,56,18,3) 'Move(98,392,126,21) Text = ("") } { repertoire TextBox Stxt Name = "repertoire" MoveScaled(14,61,31,3) 'Move(98,427,217,21) Text = ("") } { site_marie TextBox Stxt Name = "site_marie" MoveScaled(14,66,31,3) 'Move(98,462,217,21) Text = ("") } { actif CheckBox MoveScaled(59,36,2,3) 'Move(413,252,14,21) Text = ("CheckBox1") } { Button1 Button MoveScaled(97,81,11,3) 'Move(679,567,77,21) Background = &H800000& Foreground = &HFFFFBF& ToolTip = ("Appuyer pour quitter le programme") Text = ("Sortir") } { Separator1 Separator MoveScaled(36,46,1,13) 'Move(252,322,7,91) } { TextLabel14 TextLabel MoveScaled(2,71,10,9) 'Move(14,497,70,63) Text = ("Territoire \n(Villes secteur \nagence)") } { villes ListBox MoveScaled(14,71,31,9) 'Move(98,497,217,63) } { TextLabel15 TextLabel MoveScaled(51,59,29,3) 'Move(357,413,203,21) Text = ("Texte commerciale de l'agence") } { textecom TextArea Stxt Name = "textecom" MoveScaled(51,62,58,18) 'Move(357,434,406,126) Text = ("") } { Nouveau Button MoveScaled(51,81,12,3) 'Move(357,567,84,21) Background = &H323C80& Foreground = &HFFFFBF& ToolTip = ("Vous pouvez enregistr??e\nune nouvelle agence ici->") Text = ("Nouveau") } { SelVilles ToolButton MoveScaled(33,81,12,3) 'Move(231,567,84,21) Background = &HFFFF5F& ToolTip = ("Cliquer pour ajouter\nau supprimer des\nvillages du territoir\nde cette agence") Text = ("Changer") Picture = Picture["Images/go-up.png"] Border = True } } -------------- next part -------------- A non-text attachment was scrubbed... Name: FormAgencesList.class Type: application/x-java Size: 9454 bytes Desc: not available URL: From steven at ...1652... Fri Mar 30 14:50:08 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 30 Mar 2007 14:50:08 +0200 Subject: [Gambas-user] Aahhhggrr Databasemanager In-Reply-To: <200703292127.26239.steven@...1652...> References: <200703291751.02215.steven@...1652...> <200703292130.21367.gambas@...1...> <200703292127.26239.steven@...1652...> Message-ID: <200703301450.09052.steven@...1652...> What's more it suppresses the autoincrement in the columns. Really ......................... Steven From timothy.marshal-nichols at ...247... Fri Mar 30 16:30:54 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Fri, 30 Mar 2007 15:30:54 +0100 Subject: [Gambas-user] get the color from a pixel in DrawingArea control In-Reply-To: <976ad9050703281938i520380dasca4e3b71bcb8b93b@...627...> Message-ID: <000001c772d8$0b81b220$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Arief Bayu Purwanto > Sent: Thursday, 29 March 2007 03:39 AM > To: mailing list for gambas users > Subject: Re: [Gambas-user] get the color from a pixel in DrawingArea > control > > Mmm, Benoit, I have another question regarding draw event. When I draw > something on DrawingArea and move my form outside the screen and bring > back > to it's previous position, the image I draw on DrawingArea is dissapeared. > Is it because of the information you provide us (manual draw)? > Set the DrawingArea Cashed property to TRUE to prevent the drawing being erased. You will then have to use the Clear() method when you want to erase your drawing. Thanks 8-{)} Timothy Marshal-Nichols From david_villalobos_c at ...43... Fri Mar 30 18:13:40 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 30 Mar 2007 09:13:40 -0700 (PDT) Subject: [Gambas-user] Report System WYSWYG Message-ID: <453180.58493.qm@...1658...> Hi Iwan, I think a easy way to create is by means of HTML, I post a program in http://www.gambasforge.net/ called Sophia, it has many reports. Hope it help you Regards David ----- Original Message ---- From: Iwan Prasetyo To: gambas-user at lists.sourceforge.net Sent: Thursday, March 29, 2007 9:03:24 PM Subject: [Gambas-user] Report System WYSWYG Dear milis, Accessing database both read and write is perfect using Gambas. But does anyone here know how to create a report for printing purpose? Just like VB (sorry), we can have a nice and simple report control for designing report. Thx:) Regards, -Iwan P- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php From handriolijr at ...626... Fri Mar 30 19:35:22 2007 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Fri, 30 Mar 2007 14:35:22 -0300 Subject: [Gambas-user] pictures inside a DB In-Reply-To: <200703301419.33383.steven@...1652...> References: <200703261754.33120.steven@...1652...> <460D08A7.5040901@...626...> <200703301419.33383.steven@...1652...> Message-ID: <460D4A5A.3060404@...626...> Steven, i did what you said, but: 1. The first time was ok! My 33,6Kb picture was in DB 2. The second time, when i updated to a 56,8KB, there were just 8kb. Why? 3. I have to put 4 pictures inside this DB: Sales_man, Finan_man, Costumer_place, Costumer_job, every one has a 8kb picture... Problems? Please, help me. Here is my code: PUBLIC SUB Button5_Click() Mfunc.sData = file.load(label30.Text) mfunc.rs1 = mfunc.db.edit("clientes", "idclientes=&1", textbox3.text) mfunc.rs1!foto_compras = MFunc.sData mfunc.rs1.Update mfunc.db.Commit END PUBLIC SUB Button6_Click() Mfunc.sData = file.load(label31.Text) mfunc.rs2 = mfunc.db.edit("clientes", "idclientes=&1", textbox3.text) mfunc.rs2!foto_finan = MFunc.sData mfunc.rs2.Update mfunc.db.Commit END PUBLIC SUB Button9_Click() Mfunc.sData = file.load(label32.Text) mfunc.rs3 = mfunc.db.edit("clientes", "idclientes=&1", textbox3.text) mfunc.rs3!foto_fachada = MFunc.sData mfunc.rs3.Update mfunc.db.Commit END PUBLIC SUB Button11_Click() Mfunc.sData = file.load(label33.Text) mfunc.rs4 = mfunc.db.edit("clientes", "idclientes=&1", textbox3.text) mfunc.rs4!foto_socios = MFunc.sData mfunc.rs4.Update mfunc.db.Commit END Some thing wrong?????? Steven Lobbezoo escreveu: > Let me send you some examples, > it's work in progress, but i hope > it will help you. > Steven > (see attachement) > > Le vendredi 30 mars 2007 14:55, Hamilton Geminiano Andrioli Junior a ?crit : > >> Steven, i didn't understand your code. >> see: >> >> ' DIM sData AS String >> ' sData = File.Load("/file/path") >> ' MyResult!MyBlobField = sData >> >> >> How can i make a database connection. I said that, because i work only >> with SQL, and to update a database i use "update customers set >> picture='" & Sdata & "' where id=xx" >> If i make what you said, Gambas returns me: Result is read-only. >> >> What i'm doing wrong? >> >> []'s >> Hamilton From Brazil! >> >> Steven Lobbezoo escreveu: >> >>> rsK = db.Exec("select Thumb, Id from Photos where prop_num = " & >>> Str(Id)) IF rsK.available = TRUE THEN >>> FOR EACH rsK >>> sData = rsK!Thumb.Data >>> ' write the photo to local file >>> File.Save("~/TempPhot" & Str(rsK!Id) & ".jpg", sData) >>> ' Fill with the image >>> AddImage("~/TempPhot" & Str(rsK!Id) & ".jpg", Str(rsK!Id)) >>> KILL "~/TempPhot" & Str(rsK!Id) & ".jpg" >>> >>> AND >>> >>> ' TO put a file inside a blob field: >>> >>> ' DIM sData AS String >>> ' sData = File.Load("/file/path") >>> ' MyResult!MyBlobField = sData >>> >>> >>> Well, I only got a lot of help, and adapted it a bit. >>> Still looking for a possibility to read blobs without >>> writinig them to files ! >>> >>> Steven >>> >>> Le lundi 26 mars 2007 18:18, Hamilton Geminiano Andrioli Junior a ?crit : >>> >>>> Please, i have to put some pictures inside a mysql database. >>>> How can i save and retrieve those? >>>> >>>> Anyone can help me? >>>> >>>> thanks. >>>> >>>> Hamilton >>>> ------------------------------------------------------------------------ >>>> - Take Surveys. Earn Cash. Influence the Future of IT >>>> Join SourceForge.net's Techsay panel and you'll get the chance to share >>>> your opinions on IT & business topics through brief surveys-and earn >>>> cash >>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE >>>> V _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> ------------------------------------------------------------------------- >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to share >>> your opinions on IT & business topics through brief surveys-and earn cash >>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------------------ >> >> # Gambas Form File 1.0 >> >> { Form Form >> MoveScaled(0,0,96,83) >> 'Move(0,0,672,581) >> Background = &HFFFFBF& >> Expand = True >> Text = ("") >> Icon = Picture["icon:/16/color"] >> AutoResize = True >> { ToolButton1 ToolButton TBs >> Name = "ToolButton1" >> MoveScaled(1,1,6,3) >> 'Move(7,7,42,21) >> Background = &HFFFFBF& >> Tag = "No|DESC" >> ToolTip = ("Clique moi pour faire\nune tri sur la colonne") >> Text = ("No") >> Picture = Picture["icon:/16/redo"] >> } >> { ToolButton2 ToolButton TBs >> Name = "ToolButton2" >> MoveScaled(9,1,11,3) >> 'Move(63,7,77,21) >> Background = &HFFFFBF& >> Tag = "Prenom|DESC" >> ToolTip = ("Clique moi pour faire\nune tri sur la colonne") >> Text = ("Prenom") >> Picture = Picture["icon:/16/redo"] >> } >> { ToolButton3 ToolButton TBs >> Name = "ToolButton3" >> MoveScaled(23,1,10,3) >> 'Move(161,7,70,21) >> Background = &HFFFFBF& >> Tag = "Nom|DESC" >> ToolTip = ("Clique moi pour faire\nune tri sur la colonne") >> Text = ("Nom") >> Picture = Picture["icon:/16/redo"] >> } >> { ToolButton4 ToolButton TBs >> Name = "ToolButton4" >> MoveScaled(41,1,12,3) >> 'Move(287,7,84,21) >> Background = &HFFFFBF& >> Tag = "Adresse|DESC" >> ToolTip = ("Clique moi pour faire\nune tri sur la colonne") >> Text = ("Adresse") >> Picture = Picture["icon:/16/redo"] >> } >> { ToolButton5 ToolButton TBs >> Name = "ToolButton5" >> MoveScaled(63,1,10,3) >> 'Move(441,7,70,21) >> Background = &HFFFFBF& >> Tag = "Ville|DESC" >> ToolTip = ("Clique moi pour faire\nune tri sur la colonne") >> Text = ("Ville") >> Picture = Picture["icon:/16/redo"] >> } >> { ToolButton6 ToolButton TBs >> Name = "ToolButton6" >> MoveScaled(82,1,9,3) >> 'Move(574,7,63,21) >> Background = &HFFFFBF& >> Tag = "Pays|DESC" >> ToolTip = ("Clique moi pour faire\nune tri sur la colonne") >> Text = ("Pays") >> Picture = Picture["icon:/16/redo"] >> } >> { VSplit1 VSplit >> MoveScaled(0,4,96,79) >> 'Move(0,28,672,553) >> Expand = True >> { VPanel1 VPanel >> MoveScaled(1,1,94,42) >> 'Move(7,7,658,294) >> Expand = True >> AutoResize = True >> { GridView2 GridView >> MoveScaled(-1,-1,94,43) >> 'Move(-7,-7,658,301) >> Background = &HFFFFBF& >> Foreground = &H404040& >> ToolTip = ("Clique une propri??taire\npour voir / changer les\nd??tails de celle si") >> Expand = True >> Scrollbar = Scroll.Vertical >> AutoResize = True >> } >> } >> { Panel1 Panel >> MoveScaled(1,44,93,34) >> 'Move(7,308,651,238) >> { Prenom TextBox >> MoveScaled(10,0,35,3) >> 'Move(70,0,245,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Nom TextBox >> MoveScaled(10,4,35,3) >> 'Move(70,28,245,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { TextLabel1 TextLabel >> MoveScaled(0,4,5,3) >> 'Move(0,28,35,21) >> Text = ("Nom :") >> } >> { TextLabel3 TextLabel >> MoveScaled(0,8,10,3) >> 'Move(0,56,70,21) >> Text = ("T??l??phone :") >> } >> { Telephone TextBox >> MoveScaled(10,8,35,3) >> 'Move(70,56,245,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Fax TextBox >> MoveScaled(10,12,35,3) >> 'Move(70,84,245,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { TextLabel4 TextLabel >> MoveScaled(0,12,10,3) >> 'Move(0,84,70,21) >> Text = ("Fax :") >> } >> { TextLabel5 TextLabel >> MoveScaled(0,16,10,3) >> 'Move(0,112,70,21) >> Text = ("Portable :") >> } >> { Portable TextBox >> MoveScaled(10,16,35,3) >> 'Move(70,112,245,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { TextLabel2 TextLabel >> MoveScaled(0,0,7,3) >> 'Move(0,0,49,21) >> Text = ("Prenom :") >> } >> { Button1 Button >> MoveScaled(79,30,13,3) >> 'Move(553,210,91,21) >> Background = &H800000& >> Foreground = &HFFFFBF& >> ToolTip = ("Appuyer pour quitter le programme") >> Text = ("Sortir") >> } >> { TextLabel6 TextLabel >> MoveScaled(0,20,10,3) >> 'Move(0,140,70,21) >> Text = ("Travail :") >> } >> { Travail TextBox >> MoveScaled(10,20,35,3) >> 'Move(70,140,245,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Email TextBox >> MoveScaled(10,25,35,3) >> 'Move(70,175,245,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { TextLabel7 TextLabel >> MoveScaled(0,25,8,3) >> 'Move(0,175,56,21) >> Text = ("E-Mail :") >> } >> { Adresse TextArea >> MoveScaled(57,12,36,7) >> 'Move(399,84,252,49) >> Background = &HFFFFBF& >> Text = ("") >> } >> { TextLabel8 TextLabel >> MoveScaled(47,12,9,3) >> 'Move(329,84,63,21) >> Text = ("Adresse :") >> } >> { TextLabel9 TextLabel >> MoveScaled(47,20,8,5) >> 'Move(329,140,56,35) >> Text = ("Code P- Ville") >> } >> { TextLabel10 TextLabel >> MoveScaled(47,25,10,3) >> 'Move(329,175,70,21) >> Text = ("Pays :") >> } >> { TextLabel11 TextLabel >> MoveScaled(47,0,13,3) >> 'Move(329,0,91,21) >> Text = ("Observations:") >> } >> { Observations TextArea >> MoveScaled(47,3,46,8) >> 'Move(329,21,322,56) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Code_Postal TextBox >> MoveScaled(57,20,7,3) >> 'Move(399,140,49,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Ville TextBox >> MoveScaled(66,20,27,3) >> 'Move(462,140,189,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Pays TextBox >> MoveScaled(57,25,36,3) >> 'Move(399,175,252,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Detail Button >> MoveScaled(4,30,12,3) >> 'Move(28,210,84,21) >> Background = &H4E8036& >> Foreground = &HFFFFBF& >> ToolTip = ("Appuyer pour voir des\nd??tails supplementaires") >> Text = ("+ D??tails") >> } >> { Mandat Button >> MoveScaled(34,30,12,3) >> 'Move(238,210,84,21) >> Background = &H4E8036& >> Foreground = &HFFFFBF& >> ToolTip = ("Appuyer pour voir le(s)\nmandat(s) du \npropri??taire") >> Text = ("Mandat(s)") >> } >> { Delete Button >> MoveScaled(64,30,12,3) >> 'Move(448,210,84,21) >> Background = &H800000& >> Foreground = &HFFFFBF& >> ToolTip = ("Appuyer pour supprimer\nle client selectionn??(e) ?") >> Text = ("Supprimer") >> } >> { Nouveau Button >> MoveScaled(49,30,12,3) >> 'Move(343,210,84,21) >> Background = &H323C80& >> Foreground = &HFFFFBF& >> ToolTip = ("Appuyer pour nettoyer\net entrer une nouveau\n---------Client------------\nApr??s avoir remplit les\nchamps, une 2i??me\nclique sauvegarde les\ndonn??es !") >> Text = ("Nouveau") >> } >> { Chercher Button >> MoveScaled(19,30,12,3) >> 'Move(133,210,84,21) >> Background = &H4E8036& >> Foreground = &HFFFFBF& >> ToolTip = ("Appuyer pour chercher\nune client sp??cifique") >> Text = ("Chercher") >> } >> } >> } >> { Details Panel >> MoveScaled(0,1,95,46) >> 'Move(0,7,665,322) >> Visible = False >> Background = &HFFFFBF& >> { Fermer Button >> MoveScaled(81,41,12,3) >> 'Move(567,287,84,21) >> Background = &H4E8036& >> Foreground = &HFFFFBF& >> ToolTip = ("Appuyer pour fermer \nle panneau 'd??tails'") >> Text = ("Fermer +") >> } >> { TextLabel12 TextLabel >> MoveScaled(27,3,13,3) >> 'Move(189,21,91,21) >> Text = ("? Ville, Pays :") >> } >> { TextLabel13 TextLabel >> MoveScaled(3,3,9,3) >> 'Move(21,21,63,21) >> Text = ("N??(e) le :") >> } >> { TextLabel14 TextLabel >> MoveScaled(3,7,8,3) >> 'Move(21,49,56,21) >> Text = ("Metier :") >> } >> { TextLabel15 TextLabel >> MoveScaled(3,11,17,3) >> 'Move(21,77,119,21) >> Text = ("Quote-part proprio :") >> } >> { TextLabel16 TextLabel >> MoveScaled(27,11,3,3) >> 'Move(189,77,21,21) >> Text = ("%") >> } >> { TextLabel17 TextLabel >> MoveScaled(3,15,11,3) >> 'Move(21,105,77,21) >> Text = ("Relation :") >> } >> { TextLabel18 TextLabel >> MoveScaled(27,15,11,3) >> 'Move(189,105,77,21) >> Text = ("Avec qui :") >> } >> { TextLabel19 TextLabel >> MoveScaled(3,19,11,3) >> 'Move(21,133,77,21) >> Text = ("Depuis :") >> } >> { TextLabel20 TextLabel >> MoveScaled(27,19,15,3) >> 'Move(189,133,105,21) >> Text = ("Ou (Ville, Pays) :") >> } >> { TextLabel21 TextLabel >> MoveScaled(3,23,12,3) >> 'Move(21,161,84,21) >> Text = ("Conditions :") >> } >> { TextLabel22 TextLabel >> MoveScaled(75,19,5,3) >> 'Move(525,133,35,21) >> Text = ("Noce :") >> } >> { TextLabel23 TextLabel >> MoveScaled(3,27,31,3) >> 'Move(21,189,217,21) >> Text = ("Desciption Conditions / Observations") >> } >> { Ne TextBox >> MoveScaled(12,3,14,3) >> 'Move(84,21,98,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { NeOu TextBox >> MoveScaled(40,3,50,3) >> 'Move(280,21,350,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Metier TextBox >> MoveScaled(12,7,78,3) >> 'Move(84,49,546,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Quote TextBox >> MoveScaled(20,11,6,3) >> 'Move(140,77,42,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Mariage TextBox >> MoveScaled(12,19,14,3) >> 'Move(84,133,98,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { MariageOU TextBox >> MoveScaled(41,19,30,3) >> 'Move(287,133,210,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Noce TextBox >> MoveScaled(82,19,8,3) >> 'Move(574,133,56,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Conditions TextBox >> MoveScaled(12,23,78,3) >> 'Move(84,161,546,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { Conddesc TextArea >> MoveScaled(3,30,75,14) >> 'Move(21,210,525,98) >> Background = &HFFFFBF& >> Text = ("") >> } >> { DateChooser2 DateChooser >> MoveScaled(27,18,44,20) >> 'Move(189,126,308,140) >> Visible = False >> Background = &H606060& >> Foreground = Color.Foreground >> ToolTip = ("Selectionnez une date") >> } >> { Relation TextBox >> MoveScaled(41,15,49,3) >> 'Move(287,105,343,21) >> Background = &HFFFFBF& >> Text = ("") >> } >> { TypeLiaison ComboBox >> MoveScaled(12,15,14,3) >> 'Move(84,105,98,21) >> Background = &HFFFFBF& >> Foreground = Color.Foreground >> Text = ("ComboBox1") >> List = [(""), ("Epouse"), ("Enfant"), ("Parent"), ("Pax??"), ("Famille"), ("Consort"), ("Associ??"), ("Copro"), ("Divers")] >> } >> { DateChooser1 DateChooser >> MoveScaled(27,2,44,20) >> 'Move(189,14,308,140) >> Visible = False >> Background = &H606060& >> Foreground = Color.Foreground >> ToolTip = ("Selectionnez une date") >> } >> { TextLabel24 TextLabel >> MoveScaled(28,0,33,2) >> 'Move(196,0,231,14) >> Font = Font["Bold"] >> Text = ("........................... les d??tails ..........................") >> } >> } >> { Nombre TextLabel >> MoveScaled(90,0,6,2) >> 'Move(630,0,42,14) >> Font = Font["-1"] >> ToolTip = ("Nombre des \nenregistrements") >> Text = ("TextLabel25") >> } >> } >> >> ------------------------------------------------------------------------ >> >> # Gambas Form File 1.0 >> >> { Form Form >> MoveScaled(0,0,110,86) >> 'Move(0,0,770,602) >> Text = ("Revimmo - Les Agences") >> { GridView2 GridView >> MoveScaled(1,5,69,24) >> 'Move(7,35,483,168) >> ToolTip = ("Clique une agence\npour voir les d??tails") >> } >> { TextLabel1 TextLabel >> MoveScaled(2,31,9,3) >> 'Move(14,217,63,21) >> Text = ("Nom") >> } >> { TextLabel2 TextLabel >> MoveScaled(2,36,11,3) >> 'Move(14,252,77,21) >> Text = ("Addresse") >> } >> { TextLabel3 TextLabel >> MoveScaled(2,41,11,3) >> 'Move(14,287,77,21) >> Text = ("PCode + Ville") >> } >> { TextLabel4 TextLabel >> MoveScaled(2,56,11,3) >> 'Move(14,392,77,21) >> Text = ("Tcp-IP") >> } >> { TextLabel5 TextLabel >> MoveScaled(2,51,11,3) >> 'Move(14,357,77,21) >> Text = ("Fax") >> } >> { TextLabel6 TextLabel >> MoveScaled(2,46,11,3) >> 'Move(14,322,77,21) >> Text = ("T??l??phone") >> } >> { TextLabel7 TextLabel >> MoveScaled(58,33,4,3) >> 'Move(406,231,28,21) >> Text = ("Actif") >> } >> { TextLabel8 TextLabel >> MoveScaled(2,66,11,3) >> 'Move(14,462,77,21) >> Text = ("Site marie") >> } >> { TextLabel9 TextLabel >> MoveScaled(2,61,11,3) >> 'Move(14,427,77,21) >> Text = ("Repertoire") >> } >> { TextLabel10 TextLabel >> MoveScaled(39,47,11,3) >> 'Move(273,329,77,21) >> Text = ("Responsable") >> } >> { TextLabel11 TextLabel >> MoveScaled(39,51,11,3) >> 'Move(273,357,77,21) >> Text = ("Carte") >> } >> { photo PictureBox >> MoveScaled(71,5,38,24) >> 'Move(497,35,266,168) >> ToolTip = ("Cliquer double\nsur le photo pour\npouvoir le changer") >> Alignment = Align.Center >> Border = Border.Etched >> } >> { photo_ville PictureBox >> MoveScaled(71,32,38,24) >> 'Move(497,224,266,168) >> ToolTip = ("Cliquer double\nsur le photo pour\npouvoir le changer") >> Alignment = Align.Center >> Border = Border.Etched >> } >> { TextLabel12 TextLabel >> MoveScaled(71,1,11,3) >> 'Move(497,7,77,21) >> Text = ("Photo") >> } >> { TextLabel13 TextLabel >> MoveScaled(71,29,16,3) >> 'Move(497,203,112,21) >> Text = ("Photo Ville") >> } >> { directeur ComboBox >> MoveScaled(51,46,16,3) >> 'Move(357,322,112,21) >> Text = ("") >> } >> { chef_secteur ComboBox >> MoveScaled(51,51,16,3) >> 'Move(357,357,112,21) >> Text = ("") >> } >> { ToolButton4 ToolButton TBs >> Name = "ToolButton4" >> MoveScaled(36,1,14,3) >> 'Move(252,7,98,21) >> Background = Color.Background >> Tag = "tel|DESC" >> ToolTip = ("Clique moi pour faire\nune tri sur la colonne") >> Text = ("T??l??phone") >> Picture = Picture["icon:/16/redo"] >> } >> { ToolButton5 ToolButton TBs >> Name = "ToolButton5" >> MoveScaled(56,1,10,3) >> 'Move(392,7,70,21) >> Background = Color.Background >> Tag = "fax|DESC" >> ToolTip = ("Clique moi pour faire\nune tri sur la colonne") >> Text = ("Fax") >> Picture = Picture["icon:/16/redo"] >> } >> { ToolButton3 ToolButton TBs >> Name = "ToolButton3" >> MoveScaled(3,1,10,3) >> 'Move(21,7,70,21) >> Background = Color.Background >> Tag = "nom|DESC" >> ToolTip = ("Clique moi pour faire\nune tri sur la colonne") >> Text = ("Nom") >> Picture = Picture["icon:/16/redo"] >> } >> { nom TextBox Stxt >> Name = "nom" >> MoveScaled(14,31,37,3) >> 'Move(98,217,259,21) >> Text = ("") >> } >> { rue TextBox Stxt >> Name = "rue" >> MoveScaled(14,36,37,3) >> 'Move(98,252,259,21) >> Text = ("") >> } >> { plz TextBox Stxt >> Name = "plz" >> MoveScaled(14,41,11,3) >> 'Move(98,287,77,21) >> Text = ("") >> } >> { ville TextBox Stxt >> Name = "ville" >> MoveScaled(26,41,25,3) >> 'Move(182,287,175,21) >> Text = ("") >> } >> { tel TextBox Stxt >> Name = "tel" >> MoveScaled(14,46,18,3) >> 'Move(98,322,126,21) >> Text = ("") >> } >> { fax TextBox Stxt >> Name = "fax" >> MoveScaled(14,51,18,3) >> 'Move(98,357,126,21) >> Text = ("") >> } >> { tcpip TextBox Stxt >> Name = "tcpip" >> MoveScaled(14,56,18,3) >> 'Move(98,392,126,21) >> Text = ("") >> } >> { repertoire TextBox Stxt >> Name = "repertoire" >> MoveScaled(14,61,31,3) >> 'Move(98,427,217,21) >> Text = ("") >> } >> { site_marie TextBox Stxt >> Name = "site_marie" >> MoveScaled(14,66,31,3) >> 'Move(98,462,217,21) >> Text = ("") >> } >> { actif CheckBox >> MoveScaled(59,36,2,3) >> 'Move(413,252,14,21) >> Text = ("CheckBox1") >> } >> { Button1 Button >> MoveScaled(97,81,11,3) >> 'Move(679,567,77,21) >> Background = &H800000& >> Foreground = &HFFFFBF& >> ToolTip = ("Appuyer pour quitter le programme") >> Text = ("Sortir") >> } >> { Separator1 Separator >> MoveScaled(36,46,1,13) >> 'Move(252,322,7,91) >> } >> { TextLabel14 TextLabel >> MoveScaled(2,71,10,9) >> 'Move(14,497,70,63) >> Text = ("Territoire \n(Villes secteur \nagence)") >> } >> { villes ListBox >> MoveScaled(14,71,31,9) >> 'Move(98,497,217,63) >> } >> { TextLabel15 TextLabel >> MoveScaled(51,59,29,3) >> 'Move(357,413,203,21) >> Text = ("Texte commerciale de l'agence") >> } >> { textecom TextArea Stxt >> Name = "textecom" >> MoveScaled(51,62,58,18) >> 'Move(357,434,406,126) >> Text = ("") >> } >> { Nouveau Button >> MoveScaled(51,81,12,3) >> 'Move(357,567,84,21) >> Background = &H323C80& >> Foreground = &HFFFFBF& >> ToolTip = ("Vous pouvez enregistr??e\nune nouvelle agence ici->") >> Text = ("Nouveau") >> } >> { SelVilles ToolButton >> MoveScaled(33,81,12,3) >> 'Move(231,567,84,21) >> Background = &HFFFF5F& >> ToolTip = ("Cliquer pour ajouter\nau supprimer des\nvillages du territoir\nde cette agence") >> Text = ("Changer") >> Picture = Picture["Images/go-up.png"] >> Border = True >> } >> } >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> From leonardo at ...1237... Fri Mar 30 22:36:46 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 30 Mar 2007 22:36:46 +0200 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <200703291906.01318.gambas@...1...> References: <215901.81437.qm@...1670...> <200703290948.55363.sourceforge-raindog2@...94...> <460BF050.4070609@...1237...> <200703291906.01318.gambas@...1...> Message-ID: <460D74DE.8050208@...1237...> Benoit Minisini ha scritto: > http://gambasdoc.org ? > Yeah, I know that. But it's not near to my concept of a wiki :-) Let me know if I'm wrong, but I cannot sign me to write or modify any piece of documentation. It always asks me for an username and password that I don't know how to get them. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas.fr at ...626... Fri Mar 30 22:49:51 2007 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 30 Mar 2007 22:49:51 +0200 Subject: [Gambas-user] Look for Gambas tutorials In-Reply-To: <460D74DE.8050208@...1237...> References: <215901.81437.qm@...1670...> <200703290948.55363.sourceforge-raindog2@...94...> <460BF050.4070609@...1237...> <200703291906.01318.gambas@...1...> <460D74DE.8050208@...1237...> Message-ID: <6324a42a0703301349l128c2d56na6a5b8861d8b5787@...627...> 2007/3/30, Leonardo Miliani : > > Benoit Minisini ha scritto: > > > http://gambasdoc.org ? > > > > Yeah, I know that. > But it's not near to my concept of a wiki :-) > Let me know if I'm wrong, but I cannot sign me to write or modify any > piece of documentation. It always asks me for an username and password > that I don't know how to get them. You might to query it to Benoit Minisini, simply. Tel him the user name : firstname.name and the password you want regards, Fabien Bodard From leonardo at ...1237... Fri Mar 30 22:51:52 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 30 Mar 2007 22:51:52 +0200 Subject: [Gambas-user] TRY/CANCEL In-Reply-To: References: Message-ID: <460D7868.8060506@...1237...> Vince Scott (SBC) ha scritto: > Hi All, > > > > I need some information on the TRY/CATCH error trapping in Gambas. How do I > TRY/CATCH a block of code? I don't need to use a TRY and CATCH on each line > do I? > > > > Any information would be appreciated. > > > > Vince Scott > It should work like belows: --------------------------- Public Function Test() as String Dim A as integer A="ooooo" RETURN A CATCH: Message.Error("An error is occured while assigning string to variable.") END ---------------------------- Gambas will "try" to execute the specified instruction: if an error occurs, then the CATCH instance is executed. You can also add the FINALLY instruction before CATCH: in this case, the code betweem FINALLY and CATCH will be ever excecuted: ----------------------- Public Function Test() as String Dim A as integer Dim B as string A="ooooo" B="ppppp" FINALLY RETURN B CATCH: Message.Error("An error is occured while assigning string to variable.") END ------------------------ In this function, an error will occur then Gambas will try to assign a string to the variable A that can only contains integers. But, after the error message, the function will return "ppppp" in both the cases because of the FINALLY istruction. The last case is the use of TRY instruction. With TRY you can tell the Gambas interpreter not to raise an error but manage it. Here an example: ---------------------- [..code..] TRY OPEN Filename FOR INPUT AS #hFile IF ERROR THEN Message.Error("File does not exist") [..code..] --------------------- Gambas will "try" to execute the instruction or command after the TRY: if it can't, ERROR will be true and you'll be able to manage the error using the Error class. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas at ...1... Fri Mar 30 22:57:51 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 30 Mar 2007 22:57:51 +0200 Subject: [Gambas-user] TRY/CANCEL In-Reply-To: <460D7868.8060506@...1237...> References: <460D7868.8060506@...1237...> Message-ID: <200703302257.51868.gambas@...1...> On vendredi 30 mars 2007, Leonardo Miliani wrote: > Vince Scott (SBC) ha scritto: > > Hi All, > > > > > > > > I need some information on the TRY/CATCH error trapping in Gambas. How do > > I TRY/CATCH a block of code? I don't need to use a TRY and CATCH on each > > line do I? > > > > > > > > Any information would be appreciated. > > > > > > > > Vince Scott > > It should work like belows: > > --------------------------- > Public Function Test() as String > Dim A as integer > > A="ooooo" > RETURN A > > CATCH: > Message.Error("An error is occured while assigning string to variable.") > END > ---------------------------- > > Gambas will "try" to execute the specified instruction: if an error > occurs, then the CATCH instance is executed. > You can also add the FINALLY instruction before CATCH: in this case, the > code betweem FINALLY and CATCH will be ever excecuted: > > ----------------------- > Public Function Test() as String > Dim A as integer > Dim B as string > > A="ooooo" > B="ppppp" > FINALLY > RETURN B > > CATCH: > Message.Error("An error is occured while assigning string to variable.") > END > ------------------------ > > In this function, an error will occur then Gambas will try to assign a > string to the variable A that can only contains integers. But, after the > error message, the function will return "ppppp" in both the cases > because of the FINALLY istruction. > > The last case is the use of TRY instruction. With TRY you can tell the > Gambas interpreter not to raise an error but manage it. > Here an example: > > ---------------------- > [..code..] > TRY OPEN Filename FOR INPUT AS #hFile > IF ERROR THEN Message.Error("File does not exist") > [..code..] > --------------------- > > Gambas will "try" to execute the instruction or command after the TRY: > if it can't, ERROR will be true and you'll be able to manage the error > using the Error class. A few remarks: - This is 'CATCH', not 'CATCH:' - The FINALLY section is executed before the CATCH section. So do not use RETURN in it, otherwise the CATCH section is not executed. Regards, -- Benoit Minisini From gambas at ...1... Sat Mar 31 01:13:36 2007 From: gambas at ...1... (Benoit Minisini) Date: Sat, 31 Mar 2007 01:13:36 +0200 Subject: [Gambas-user] Problem with gb.report In-Reply-To: <460BEA2C.1050300@...626...> References: <393380.11732.qm@...1670...> <46095C3C.9090307@...402...> <460BEA2C.1050300@...626...> Message-ID: <200703310113.36462.gambas@...1...> On jeudi 29 mars 2007, Hamilton Geminiano Andrioli Junior wrote: > Is gb.report working? > I've tried to use it at Ubuntu 6.10, but each time i select this, the > Gambas stop working, and i have to kill the process. > > Any Ideia? > Regards > Hamilton > It's a bug in the IDE that is fixed in the svn trunk. Regards, -- Benoit Minisini From rolf.frogs at ...221... Sat Mar 31 09:30:02 2007 From: rolf.frogs at ...221... (rolf) Date: Sat, 31 Mar 2007 09:30:02 +0200 Subject: [Gambas-user] pictures inside a DB In-Reply-To: <460D4A5A.3060404@...626...> References: <200703301419.33383.steven@...1652...> <460D4A5A.3060404@...626...> Message-ID: <200703310930.02826.rolf.frogs@...221...> Hi Hamilton > 1. The first time was ok! My 33,6Kb picture was in DB > 2. The second time, when i updated to a 56,8KB, there were just 8kb. Why? Did you quote the picture data. Especially the char ' or " might terminat the input data if they occure in the picture - which has binary data with any possible characters. Greetings from Rolf From gambas at ...1... Sat Mar 31 11:45:22 2007 From: gambas at ...1... (Benoit Minisini) Date: Sat, 31 Mar 2007 11:45:22 +0200 Subject: [Gambas-user] pictures inside a DB In-Reply-To: <460D4A5A.3060404@...626...> References: <200703301419.33383.steven@...1652...> <460D4A5A.3060404@...626...> Message-ID: <200703311145.23085.gambas@...1...> On vendredi 30 mars 2007, Hamilton Geminiano Andrioli Junior wrote: > Steven, i did what you said, but: > 1. The first time was ok! My 33,6Kb picture was in DB > 2. The second time, when i updated to a 56,8KB, there were just 8kb. Why? > 3. I have to put 4 pictures inside this DB: Sales_man, Finan_man, > Costumer_place, Costumer_job, every one has a 8kb picture... > > Problems? > Please, help me. Here is my code: > > > > PUBLIC SUB Button5_Click() > Mfunc.sData = file.load(label30.Text) > mfunc.rs1 = mfunc.db.edit("clientes", "idclientes=&1", textbox3.text) > mfunc.rs1!foto_compras = MFunc.sData > mfunc.rs1.Update > mfunc.db.Commit > END > > PUBLIC SUB Button6_Click() > Mfunc.sData = file.load(label31.Text) > mfunc.rs2 = mfunc.db.edit("clientes", "idclientes=&1", textbox3.text) > mfunc.rs2!foto_finan = MFunc.sData > mfunc.rs2.Update > mfunc.db.Commit > END > > PUBLIC SUB Button9_Click() > Mfunc.sData = file.load(label32.Text) > mfunc.rs3 = mfunc.db.edit("clientes", "idclientes=&1", textbox3.text) > mfunc.rs3!foto_fachada = MFunc.sData > mfunc.rs3.Update > mfunc.db.Commit > END > > PUBLIC SUB Button11_Click() > Mfunc.sData = file.load(label33.Text) > mfunc.rs4 = mfunc.db.edit("clientes", "idclientes=&1", textbox3.text) > mfunc.rs4!foto_socios = MFunc.sData > mfunc.rs4.Update > mfunc.db.Commit > END > > Some thing wrong?????? > > Steven Lobbezoo escreveu: Which database drive do you use? A remark: the Commit is useless, are you did not begin a transaction. Regards, -- Benoit Minisini From leonardo at ...1237... Sat Mar 31 18:08:05 2007 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 31 Mar 2007 18:08:05 +0200 Subject: [Gambas-user] TRY/CANCEL In-Reply-To: <200703302257.51868.gambas@...1...> References: <460D7868.8060506@...1237...> <200703302257.51868.gambas@...1...> Message-ID: <460E8765.7010005@...1237...> Benoit Minisini ha scritto: > A few remarks: > > - This is 'CATCH', not 'CATCH:' > > - The FINALLY section is executed before the CATCH section. So do not use > RETURN in it, otherwise the CATCH section is not executed. > > Regards, > Thanks for your corrections :-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas.fr at ...626... Sat Mar 31 18:37:41 2007 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 31 Mar 2007 18:37:41 +0200 Subject: [Gambas-user] Problem with gb.report In-Reply-To: <200703310113.36462.gambas@...1...> References: <393380.11732.qm@...1670...> <46095C3C.9090307@...402...> <460BEA2C.1050300@...626...> <200703310113.36462.gambas@...1...> Message-ID: <6324a42a0703310937g1df5ed4cqb3be7be1ecacf01c@...627...> i will send an exemple this evening to allow people to understand how it work, and Benoit to understand what is the repetor (i now the name is bad). Fabien Bodard 2007/3/31, Benoit Minisini : > > On jeudi 29 mars 2007, Hamilton Geminiano Andrioli Junior wrote: > > Is gb.report working? > > I've tried to use it at Ubuntu 6.10, but each time i select this, the > > Gambas stop working, and i have to kill the process. > > > > Any Ideia? > > Regards > > Hamilton > > > > It's a bug in the IDE that is fixed in the svn trunk. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Sat Mar 31 20:49:52 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 31 Mar 2007 20:49:52 +0200 Subject: [Gambas-user] Database Date fields Message-ID: <200703312049.52811.steven@...1652...> Hi all, I have some date type fields in an MySQL database table. If I Update the directly (with db.exec) I can write them directly from a text control in a form. As long as the format entered is somewhat like date it's acceptable (12/2/2007 or 2.3.07 or ... whatever). Now, I started using gambas db.edit method, with db.update. Date fields are not accepted anymore. Whatever I do, gambas says : expected date, got string instead! Is this a bug, or what do I do with my textfield to convert it to an acceptable date (I did nout find any functions to do that , of course it's possible to write such a function, but why re-inventing the wheel ?) Steven From steven at ...1652... Sat Mar 31 20:56:47 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 31 Mar 2007 20:56:47 +0200 Subject: [Gambas-user] Control event Message-ID: <200703312056.47601.steven@...1652...> HI all, I found out that the change event is raised, vene if the control is update from program. Would it not be a good idea to seperate events : 1. Change : changed by the user 2. Updates (or whatever : Changed by the program I could try to do this in the trunk source (it's a long time ago that I programmed in C, but I suppose i couild try) , but what's the procedure, how can i submit changes to it, how do you dispatch tasks in the gambas project (if you do that) ;-)) Steven From gambas at ...1... Sat Mar 31 22:03:16 2007 From: gambas at ...1... (Benoit Minisini) Date: Sat, 31 Mar 2007 22:03:16 +0200 Subject: [Gambas-user] Control event In-Reply-To: <200703312056.47601.steven@...1652...> References: <200703312056.47601.steven@...1652...> Message-ID: <200703312203.16604.gambas@...1...> On samedi 31 mars 2007, Steven Lobbezoo wrote: > HI all, > > I found out that the change event is raised, vene if the control is update > from program. > Would it not be a good idea to seperate events : > 1. Change : changed by the user > 2. Updates (or whatever : Changed by the program > > I could try to do this in the trunk source (it's a long time ago that I > programmed in C, but I suppose i couild try) , but what's the procedure, > how can i submit changes to it, how do you dispatch tasks in the gambas > project (if you do that) ;-)) > > Steven > What are you talking about? -- Benoit Minisini From steven at ...1652... Sat Mar 31 21:15:33 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 31 Mar 2007 21:15:33 +0200 Subject: [Gambas-user] Control event In-Reply-To: <200703312203.16604.gambas@...1...> References: <200703312056.47601.steven@...1652...> <200703312203.16604.gambas@...1...> Message-ID: <200703312115.33834.steven@...1652...> PUBLIC SUB Stxt_Change() 'simple text changes, no check required DIM tmp AS String[] IF Dbu = 0 THEN ' where not updating from program IF rsD THEN IF rsD.available THEN rsD[LAST.Name] = LAST.Text END IF END IF END IF END As you can see, i've build my own check (Dbu) variable, that I set to 1 during reading / filling the text control from the database. After filling all, I set it to 0, so that, when the above event is fired (now the user has changed the text in the control), it transfers the .text part to the database field. The problem was, that this event allso got fired, when I fill the text of the control from the database. Steven Le samedi 31 mars 2007 22:03, Benoit Minisini a ?crit?: > On samedi 31 mars 2007, Steven Lobbezoo wrote: > > HI all, > > > > I found out that the change event is raised, vene if the control is > > update from program. > > Would it not be a good idea to seperate events : > > 1. Change : changed by the user > > 2. Updates (or whatever : Changed by the program > > > > I could try to do this in the trunk source (it's a long time ago that I > > programmed in C, but I suppose i couild try) , but what's the procedure, > > how can i submit changes to it, how do you dispatch tasks in the gambas > > project (if you do that) ;-)) > > > > Steven > > What are you talking about? From steven at ...1652... Sat Mar 31 21:18:53 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 31 Mar 2007 21:18:53 +0200 Subject: [Gambas-user] Database Date fields In-Reply-To: <200703312049.52811.steven@...1652...> References: <200703312049.52811.steven@...1652...> Message-ID: <200703312118.53705.steven@...1652...> Sorry, just found it. I suppose I should think better before I write. (Just used Val(Datestring), and all is well.) I would verry much support the idea from an other mail to this list, to construct an index to the documentation, sometimes it's hard to find an item. Steven Le samedi 31 mars 2007 20:49, Steven Lobbezoo a ?crit?: > Hi all, > > I have some date type fields in an MySQL database table. > If I Update the directly (with db.exec) I can write them directly from a > text control in a form. As long as the format entered is somewhat like date > it's acceptable (12/2/2007 or 2.3.07 or ... whatever). > > Now, I started using gambas db.edit method, with db.update. > Date fields are not accepted anymore. > Whatever I do, gambas says : expected date, got string instead! > > Is this a bug, or what do I do with my textfield to convert it to an > acceptable date (I did nout find any functions to do that , of course it's > possible to write such a function, but why re-inventing the wheel ?) > > Steven > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Sat Mar 31 23:32:48 2007 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 31 Mar 2007 23:32:48 +0200 Subject: [Gambas-user] Gambas Report example Message-ID: <6324a42a0703311432q4a2885ebs46a54d01a7f6277e@...627...> Hi to all the gambas users, This is an example of the use of gb.report. gb.report is not totally ready for use but now i need users feedbacks. To test this example you need to have the test exemple set in your db and the last svn version installed. I'm waiting for your suggest. Fabien Bodard PS: It's not a standard report desing system but a system that look like the gambas forms arrangement. -------------- next part -------------- A non-text attachment was scrubbed... Name: ReportExample-0.0.1.tar.gz Type: application/x-gzip Size: 5480 bytes Desc: not available URL: