Re: [Gambas-user] A question to a control
Hello Jussi, first thanks for concerning. I tried to send you the complete project, but gambas-user-listing said: too big. Yes I am using Gambas3, Rev.4128, and Ubuntu 10.04.2LTS with Gnome. I have not stored the pictrue in the DB, only path+name, and then load it with yyy.Picture[..path..]. That works perfectly with an PictureBox created in the IDE. I am not sure, if an object has the same properties as a control, but I will try it out. Are you familiar with SkyDrive? I made a folder containing the complete project, and have sent you an invitation on your gmail-adress. Thnks again, Dag-Jarle 2011/9/21 Jussi Lahtinen jussi.lahti...@gmail.com Not sure everything is set up correctly, I can't find pictures from your database. Also I get error from variable yyy which is type control, there is no property named picture! So, I declared it as object for testing. You are using Gambas 3? You didn't get errors? Jussi PS. Next time if possible send whole project folder instead of just .src, otherwise project configuration is missing! On Tue, Sep 20, 2011 at 07:10, Dag-Jarle Johansen dag.jarle.johan...@gmail.com wrote: Hi Jussi, I get panTB (? RS!parent) TB1_Refresh (yyy.name) Button (RS!typ) What should be the correct Elements to me. I send you the project and a sql-dump (PHP-Admin) of the DB. Thanks in advance, Dag-Jarle 2011/9/19 Jussi Lahtinen jussi.lahti...@gmail.com Cannot see error in this part of the code. What happens if you add Debug yyy.Name;;RS!typ under 'Case PictureBox, Button'? Does it get executed? Send the project with sample database if possible. Jussi On Mon, Sep 19, 2011 at 15:59, Dag-Jarle Johansen dag.jarle.johan...@gmail.com wrote: Hi, I have defined PRIVATE YYY as Control and want to set some data from a Database, like this For I=0 to RS.Count -1 For Each yyy In panTB.Children If yyy.Name = RS!CtrlName Then Select Case RS!typ Case PictureBox, Button yyy.Tooltip = RS!Tooltip yyy.Picture = Picture[RS!graphik] Case TextBox yyy.Tooltip = RS!Tooltip Case Else yyy.Text = RS!CtrlInhalt yyy.Tooltip = RS!Tooltip End Select Endif Next Next RS is Result, and the content is ok, just one record. I get NO PICTURE on the Button, but as everybody knows, Buttons can have Pictures. Where is my stupid error this time? I am grateful for any help. Thanks in advance and regards, Dag-Jarle -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list
Re: [Gambas-user] A question to a control
I have not stored the pictrue in the DB, only path+name, and then load it with yyy.Picture[..path..]. Ah, yes of course. I was bit too hurry to concentrate enough. I just saw null picture and stopped. Where is your Icons folder? If you place it under Data your code should work! Meaning cutpaste the Icon folder to root of project folder, if it is not there already. I did that and it works. *Benoit*, why there isn't error message when Button.Picture = Picture[sInvalidPath] fails? That works perfectly with an PictureBox created in the IDE. I am not sure, if an object has the same properties as a control, but I will try it out. No no, object is same to class as type variant is to integer, float, etc. So, it holds all properties what is associated to it. Are you familiar with SkyDrive? I made a folder containing the complete project, and have sent you an invitation on your gmail-adress. I haven't use. Glad that you mentioned, it was in spam folder... Jussi -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] A question to a control
Thank you, Jussi, I am very fond of your help. I will try your way. Thanks again, regards Dag-Jarle 2011/9/22 Jussi Lahtinen jussi.lahti...@gmail.com I have not stored the pictrue in the DB, only path+name, and then load it with yyy.Picture[..path..]. Ah, yes of course. I was bit too hurry to concentrate enough. I just saw null picture and stopped. Where is your Icons folder? If you place it under Data your code should work! Meaning cutpaste the Icon folder to root of project folder, if it is not there already. I did that and it works. *Benoit*, why there isn't error message when Button.Picture = Picture[sInvalidPath] fails? That works perfectly with an PictureBox created in the IDE. I am not sure, if an object has the same properties as a control, but I will try it out. No no, object is same to class as type variant is to integer, float, etc. So, it holds all properties what is associated to it. Are you familiar with SkyDrive? I made a folder containing the complete project, and have sent you an invitation on your gmail-adress. I haven't use. Glad that you mentioned, it was in spam folder... Jussi -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] A question to a control
I'm sorry, I'm out of time until October. But I tested your code and I didn't get any errors, all worked correctly (pictures appeared into buttons). So, I think something is not correct in your system. Run these...; sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 cd ~/trunk # or whatever your source path is. sudo make clean ...and re-compile Gambas3: ( ./reconf-all ./configure -C make ) compile.log 21 sudo make install If still no luck, send compile.log to list and maybe someone else can help you. Jussi On Thu, Sep 22, 2011 at 22:02, Dag-Jarle Johansen dag.jarle.johan...@gmail.com wrote: Hi Jussi, I have now tried out everything, and get Picture not an object in every situation. The path was not wrong, something else is running in red. The message poping up is: Not an object. I have attatched a screenshot of the situation as it happens. The NotObject still takes the tooltip, oh wonder - lol By the way, I have sent a message about a signal 11 - the call in question calls a form, in wich I use virtual Pictureboxes too. As I programmed this, it worked fine. Now I havent used that form since several days, and it makes me think - perhaps both errors are related. It seems to me, in case of Pictureboxes, all done in the IDE works fine, all virtual Controls have a problem. BTW, I have updatet the svn and compiled a new today. I will use the IDE to get to my results, meanwhile, but it would be nice to get a solution to this. Thanks and regards, Dag-Jarle 2011/9/22 Dag-Jarle Johansen dag.jarle.johan...@gmail.com Thank you, Jussi, I am very fond of your help. I will try your way. Thanks again, regards Dag-Jarle 2011/9/22 Jussi Lahtinen jussi.lahti...@gmail.com I have not stored the pictrue in the DB, only path+name, and then load it with yyy.Picture[..path..]. Ah, yes of course. I was bit too hurry to concentrate enough. I just saw null picture and stopped. Where is your Icons folder? If you place it under Data your code should work! Meaning cutpaste the Icon folder to root of project folder, if it is not there already. I did that and it works. *Benoit*, why there isn't error message when Button.Picture = Picture[sInvalidPath] fails? That works perfectly with an PictureBox created in the IDE. I am not sure, if an object has the same properties as a control, but I will try it out. No no, object is same to class as type variant is to integer, float, etc. So, it holds all properties what is associated to it. Are you familiar with SkyDrive? I made a folder containing the complete project, and have sent you an invitation on your gmail-adress. I haven't use. Glad that you mentioned, it was in spam folder... Jussi -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] A question to a control
Thanks for your great help, Jussi. I will mail in the group next time. Have a nice time. Regards, Dag-Jarle 2011/9/22 Jussi Lahtinen jussi.lahti...@gmail.com I'm sorry, I'm out of time until October. But I tested your code and I didn't get any errors, all worked correctly (pictures appeared into buttons). So, I think something is not correct in your system. Run these...; sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 cd ~/trunk # or whatever your source path is. sudo make clean ...and re-compile Gambas3: ( ./reconf-all ./configure -C make ) compile.log 21 sudo make install If still no luck, send compile.log to list and maybe someone else can help you. Jussi On Thu, Sep 22, 2011 at 22:02, Dag-Jarle Johansen dag.jarle.johan...@gmail.com wrote: Hi Jussi, I have now tried out everything, and get Picture not an object in every situation. The path was not wrong, something else is running in red. The message poping up is: Not an object. I have attatched a screenshot of the situation as it happens. The NotObject still takes the tooltip, oh wonder - lol By the way, I have sent a message about a signal 11 - the call in question calls a form, in wich I use virtual Pictureboxes too. As I programmed this, it worked fine. Now I havent used that form since several days, and it makes me think - perhaps both errors are related. It seems to me, in case of Pictureboxes, all done in the IDE works fine, all virtual Controls have a problem. BTW, I have updatet the svn and compiled a new today. I will use the IDE to get to my results, meanwhile, but it would be nice to get a solution to this. Thanks and regards, Dag-Jarle 2011/9/22 Dag-Jarle Johansen dag.jarle.johan...@gmail.com Thank you, Jussi, I am very fond of your help. I will try your way. Thanks again, regards Dag-Jarle 2011/9/22 Jussi Lahtinen jussi.lahti...@gmail.com I have not stored the pictrue in the DB, only path+name, and then load it with yyy.Picture[..path..]. Ah, yes of course. I was bit too hurry to concentrate enough. I just saw null picture and stopped. Where is your Icons folder? If you place it under Data your code should work! Meaning cutpaste the Icon folder to root of project folder, if it is not there already. I did that and it works. *Benoit*, why there isn't error message when Button.Picture = Picture[sInvalidPath] fails? That works perfectly with an PictureBox created in the IDE. I am not sure, if an object has the same properties as a control, but I will try it out. No no, object is same to class as type variant is to integer, float, etc. So, it holds all properties what is associated to it. Are you familiar with SkyDrive? I made a folder containing the complete project, and have sent you an invitation on your gmail-adress. I haven't use. Glad that you mentioned, it was in spam folder... Jussi -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- All the data continuously
Re: [Gambas-user] A question to a control
Not sure everything is set up correctly, I can't find pictures from your database. Also I get error from variable yyy which is type control, there is no property named picture! So, I declared it as object for testing. You are using Gambas 3? You didn't get errors? Jussi PS. Next time if possible send whole project folder instead of just .src, otherwise project configuration is missing! On Tue, Sep 20, 2011 at 07:10, Dag-Jarle Johansen dag.jarle.johan...@gmail.com wrote: Hi Jussi, I get panTB (? RS!parent) TB1_Refresh (yyy.name) Button (RS!typ) What should be the correct Elements to me. I send you the project and a sql-dump (PHP-Admin) of the DB. Thanks in advance, Dag-Jarle 2011/9/19 Jussi Lahtinen jussi.lahti...@gmail.com Cannot see error in this part of the code. What happens if you add Debug yyy.Name;;RS!typ under 'Case PictureBox, Button'? Does it get executed? Send the project with sample database if possible. Jussi On Mon, Sep 19, 2011 at 15:59, Dag-Jarle Johansen dag.jarle.johan...@gmail.com wrote: Hi, I have defined PRIVATE YYY as Control and want to set some data from a Database, like this For I=0 to RS.Count -1 For Each yyy In panTB.Children If yyy.Name = RS!CtrlName Then Select Case RS!typ Case PictureBox, Button yyy.Tooltip = RS!Tooltip yyy.Picture = Picture[RS!graphik] Case TextBox yyy.Tooltip = RS!Tooltip Case Else yyy.Text = RS!CtrlInhalt yyy.Tooltip = RS!Tooltip End Select Endif Next Next RS is Result, and the content is ok, just one record. I get NO PICTURE on the Button, but as everybody knows, Buttons can have Pictures. Where is my stupid error this time? I am grateful for any help. Thanks in advance and regards, Dag-Jarle -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] A question to a control
Cannot see error in this part of the code. What happens if you add Debug yyy.Name;;RS!typ under 'Case PictureBox, Button'? Does it get executed? Send the project with sample database if possible. Jussi On Mon, Sep 19, 2011 at 15:59, Dag-Jarle Johansen dag.jarle.johan...@gmail.com wrote: Hi, I have defined PRIVATE YYY as Control and want to set some data from a Database, like this For I=0 to RS.Count -1 For Each yyy In panTB.Children If yyy.Name = RS!CtrlName Then Select Case RS!typ Case PictureBox, Button yyy.Tooltip = RS!Tooltip yyy.Picture = Picture[RS!graphik] Case TextBox yyy.Tooltip = RS!Tooltip Case Else yyy.Text = RS!CtrlInhalt yyy.Tooltip = RS!Tooltip End Select Endif Next Next RS is Result, and the content is ok, just one record. I get NO PICTURE on the Button, but as everybody knows, Buttons can have Pictures. Where is my stupid error this time? I am grateful for any help. Thanks in advance and regards, Dag-Jarle -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] A question to a control
Hi Jussi, I get panTB (? RS!parent) TB1_Refresh (yyy.name) Button (RS!typ) What should be the correct Elements to me. I send you the project and a sql-dump (PHP-Admin) of the DB. Thanks in advance, Dag-Jarle 2011/9/19 Jussi Lahtinen jussi.lahti...@gmail.com Cannot see error in this part of the code. What happens if you add Debug yyy.Name;;RS!typ under 'Case PictureBox, Button'? Does it get executed? Send the project with sample database if possible. Jussi On Mon, Sep 19, 2011 at 15:59, Dag-Jarle Johansen dag.jarle.johan...@gmail.com wrote: Hi, I have defined PRIVATE YYY as Control and want to set some data from a Database, like this For I=0 to RS.Count -1 For Each yyy In panTB.Children If yyy.Name = RS!CtrlName Then Select Case RS!typ Case PictureBox, Button yyy.Tooltip = RS!Tooltip yyy.Picture = Picture[RS!graphik] Case TextBox yyy.Tooltip = RS!Tooltip Case Else yyy.Text = RS!CtrlInhalt yyy.Tooltip = RS!Tooltip End Select Endif Next Next RS is Result, and the content is ok, just one record. I get NO PICTURE on the Button, but as everybody knows, Buttons can have Pictures. Where is my stupid error this time? I am grateful for any help. Thanks in advance and regards, Dag-Jarle -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Budget.src.7z Description: application/7z-compressed Budget-2011-09-19.sql.7z Description: application/7z-compressed -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user