Re: [Gambas-user] GB3 Custom controls
On Mon, 2011-11-07 at 11:01 +0100, Fabien Bodard wrote: well your controls are in the toobar ! in the paddy's hill tab Public Const _Group As String = Paddys-Hill Yes, they are (and on the proper tab) In the demo. But I am asking about how to deploy that library so that other projects can use it. For instance, make it an executable and then try to include phCCDemo as a library in another project. tia Bruce -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] File date (and time) / Gambas2
Thank you, Fabien and Bruce, on my Gambas FileInfo is unknown, so I used Stat(...).LastModified That works fine. Rolf Am 04.11.2011 13:45, schrieb Fabien Bodard: dim hFileinfo as FileInfo hFileInfo = Stat(user.home/ myfile) Print hFileInfo.LastModified http://gambasdoc.org/help/lang/stat http://gambasdoc.org/help/comp/gb/stat 2011/11/4 Bruce Bruenbbr...@paddys-hill.net: On Fri, 2011-11-04 at 12:03 +0100, Rolf-Werner Eilert wrote: Hi folks, I know I solved this somewhere in my projects a long time ago, but I don't remember how... :-) So could you help me: How to find out a file's date and time? I would expect a File.Date or something, but there isn't... Thanks for your hints! Rolf Stat class in gb Bruce -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] something to do
Great idea, Fabien, reports have always been a misbeheviour along mangegement. I will see what I can do, including reports, of course, Really s great idea for me, thanks. Dag-Jarle 2011/11/7 Fabien Bodard gambas...@gmail.com Hi jarle, What you can do for me is to test gb.report... Understand it ... and maybe document it :) This is a true piece needed for management, logistic programs Then tell me about bugs and what you need on it or if you have some ideas to improve it . 2011/11/7 Dag-Jarle Johansen dag.jarle.johan...@gmail.com: Hi all of you. I am not very happy with my life at this time. I have a lot time to spare, but I am neither a C- nor anything-else-programmer - just VB - old-fashonied. And a little Gambas of course. If I can be any help anywhere, tell me, I would like to help were I can- My favourites are spedition, logistigs, what you need to survive in a little or middle company (billings, orders and so on) Great DJJ -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] something to do
Maybe I have a nice testcase, I need an gambas app which imports a csv file into an sql table, and a creates monthly billing report for set of originating numbers from another table... so a small billing app... We now get one big csv with all a-b numbers with call duration and callcost in it, we need to sum up call costs for specific sets of a numbers... Or is this far fetched? Regards, Ron. 2011/11/7 Dag-Jarle Johansen dag.jarle.johan...@gmail.com I have to simulate some situations, of course, what would you rather have, some simulation of one firm, or the simulation of one concern, or the simulation of wall street (hehe no posssible) G DJJ 2011/11/7 Dag-Jarle Johansen dag.jarle.johan...@gmail.com Great idea, Fabien, reports have always been a misbeheviour along mangegement. I will see what I can do, including reports, of course, Really s great idea for me, thanks. Dag-Jarle 2011/11/7 Fabien Bodard gambas...@gmail.com Hi jarle, What you can do for me is to test gb.report... Understand it ... and maybe document it :) This is a true piece needed for management, logistic programs Then tell me about bugs and what you need on it or if you have some ideas to improve it . 2011/11/7 Dag-Jarle Johansen dag.jarle.johan...@gmail.com: Hi all of you. I am not very happy with my life at this time. I have a lot time to spare, but I am neither a C- nor anything-else-programmer - just VB - old-fashonied. And a little Gambas of course. If I can be any help anywhere, tell me, I would like to help were I can- My favourites are spedition, logistigs, what you need to survive in a little or middle company (billings, orders and so on) Great DJJ -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] something to do
You could give me, fexs.Oracle, why do they have OpenOffice, Or Sun why do they have MySql looking at forwards-going models (without blond hairs) That would be a good example of a structured mangament. I will do my very best DJJ 2011/11/7 Dag-Jarle Johansen dag.jarle.johan...@gmail.com I have to simulate some situations, of course, what would you rather have, some simulation of one firm, or the simulation of one concern, or the simulation of wall street (hehe no posssible) G DJJ 2011/11/7 Dag-Jarle Johansen dag.jarle.johan...@gmail.com Great idea, Fabien, reports have always been a misbeheviour along mangegement. I will see what I can do, including reports, of course, Really s great idea for me, thanks. Dag-Jarle 2011/11/7 Fabien Bodard gambas...@gmail.com Hi jarle, What you can do for me is to test gb.report... Understand it ... and maybe document it :) This is a true piece needed for management, logistic programs Then tell me about bugs and what you need on it or if you have some ideas to improve it . 2011/11/7 Dag-Jarle Johansen dag.jarle.johan...@gmail.com: Hi all of you. I am not very happy with my life at this time. I have a lot time to spare, but I am neither a C- nor anything-else-programmer - just VB - old-fashonied. And a little Gambas of course. If I can be any help anywhere, tell me, I would like to help were I can- My favourites are spedition, logistigs, what you need to survive in a little or middle company (billings, orders and so on) Great DJJ -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
Le 07/11/2011 05:29, Bruce Bruen a écrit : I thought I had figured out all the secrets, but no. This is about custom controls (hereafter CC) written in gambas. What I've found out so far 1) Declaring one of the hidden constants with the value set to the default causes problems, e.g. _IsContainer=False Mmm. What are you talking about exactly ? 2) (Related) Don't use the _DrawWith constant without care as it will crash the IDE if the form is left open. _DrawWith works only if you specify a control used by the IDE project (it must be in gb.qt4, gb.qt4.ext, gb.form or gb.form.mdi). 3) The Controls directory containing the icons now has to go under the Project directory and migrating a GB2 project doesn't move them. Indeed. 4) It would be really, really nice if IsContainer was a RO property exposed by all controls To know if a control is a container, use the IS operator: If MyControl Is Container Then ... The difference is when a control actually inherits UserControl. It is a container, but it must be used as a control. So the test you need is: If MyControl Is Container And If Not MyControl Is UserControl Then ... 5) It would be really, really, really nice if all controls had a AcceptFocus property (IDE visible) so things like Picture boxes can be skipped in custom navigation code Normally PictureBox is a read-only control, so it should not get the focus (do you use gb.qt or gb.gtk?). DrawingArea has a Focus property. I admit it may be useful to put that property in every control, but I'm not sure it is a good idea at the moment. 6) The IDE now makes testing a custom control library project really easy, except: a) it doesn't display the controls like they would appear in the finished product. It should. Please give more details. b) the gb problem of having to reload the project if a new CC class is added still seems to exist. What are you talking about exactly? Please give some details. 7) Issue # 123 GUI dependencies in library projects not exposing any gui dependency is a real pain. Yes. Not fixed at the moment... ...and about a gazillion things about the differences in behaviour between gtk and qt4 (but they are not gambas problems). Please report all of them as possible. The goal is to erase all these differences as much as possible. So I have now partially converted my first level CC library from gb2 to gb3 and its real good! But what do I do now? How do I make it useable in the IDE? (Apart from 7 above I don't consider any of these to be gambas 3 issues.) I have figured out that I can see the CC's in a form (*) in the IDE if I add the CC component to the IDE and recompile it (well actually, ran it inside itself). And they look real good and are displayed as they will in the finished product (allowing for the visual difference b/n QT4 and GTK). But the controls don't show up in the toolbox?? (*) Done by importing a GB2 project mocked up to use the GB3 CC library control names I have tried sticking the library executable and the library.component file in /usr/local/gambas3 but that achieves nothing. I have tried sticking the library executable in /usr/bin with no joy. Would some of you nice people tell me what it is that I haven't done, please. You must make a binary package of your component project. Normally this package should install the component in the same place as the other components located in the Gambas 3 source code, and should become as usable as them. Regards, -- Benoît Minisini -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
wow 2011/11/7 Benoît Minisini gam...@users.sourceforge.net Le 07/11/2011 05:29, Bruce Bruen a écrit : I thought I had figured out all the secrets, but no. This is about custom controls (hereafter CC) written in gambas. What I've found out so far 1) Declaring one of the hidden constants with the value set to the default causes problems, e.g. _IsContainer=False Mmm. What are you talking about exactly ? 2) (Related) Don't use the _DrawWith constant without care as it will crash the IDE if the form is left open. _DrawWith works only if you specify a control used by the IDE project (it must be in gb.qt4, gb.qt4.ext, gb.form or gb.form.mdi). 3) The Controls directory containing the icons now has to go under the Project directory and migrating a GB2 project doesn't move them. Indeed. 4) It would be really, really nice if IsContainer was a RO property exposed by all controls To know if a control is a container, use the IS operator: If MyControl Is Container Then ... The difference is when a control actually inherits UserControl. It is a container, but it must be used as a control. So the test you need is: If MyControl Is Container And If Not MyControl Is UserControl Then ... 5) It would be really, really, really nice if all controls had a AcceptFocus property (IDE visible) so things like Picture boxes can be skipped in custom navigation code Normally PictureBox is a read-only control, so it should not get the focus (do you use gb.qt or gb.gtk?). DrawingArea has a Focus property. I admit it may be useful to put that property in every control, but I'm not sure it is a good idea at the moment. 6) The IDE now makes testing a custom control library project really easy, except: a) it doesn't display the controls like they would appear in the finished product. It should. Please give more details. b) the gb problem of having to reload the project if a new CC class is added still seems to exist. What are you talking about exactly? Please give some details. 7) Issue # 123 GUI dependencies in library projects not exposing any gui dependency is a real pain. Yes. Not fixed at the moment... ...and about a gazillion things about the differences in behaviour between gtk and qt4 (but they are not gambas problems). Please report all of them as possible. The goal is to erase all these differences as much as possible. So I have now partially converted my first level CC library from gb2 to gb3 and its real good! But what do I do now? How do I make it useable in the IDE? (Apart from 7 above I don't consider any of these to be gambas 3 issues.) I have figured out that I can see the CC's in a form (*) in the IDE if I add the CC component to the IDE and recompile it (well actually, ran it inside itself). And they look real good and are displayed as they will in the finished product (allowing for the visual difference b/n QT4 and GTK). But the controls don't show up in the toolbox?? (*) Done by importing a GB2 project mocked up to use the GB3 CC library control names I have tried sticking the library executable and the library.component file in /usr/local/gambas3 but that achieves nothing. I have tried sticking the library executable in /usr/bin with no joy. Would some of you nice people tell me what it is that I haven't done, please. You must make a binary package of your component project. Normally this package should install the component in the same place as the other components located in the Gambas 3 source code, and should become as usable as them. Regards, -- Benoît Minisini -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] something to do
On Tuesday 08 November 2011 05:42:38 Dag-Jarle Johansen wrote: Hi all of you. I am not very happy with my life at this time. I have a lot time to spare, but I am neither a C- nor anything-else-programmer - just VB - old-fashonied. And a little Gambas of course. If I can be any help anywhere, tell me, I would like to help were I can- My favourites are spedition, logistigs, what you need to survive in a little or middle company (billings, orders and so on) Great DJJ --- --- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Ah, just the project for you - join easy gp medical records project (currently for Australia but could be internationalised). Still a long... way to go but functional. You can download the svn. svn co svn://ozdocit.org/easygp It would take quite a bit to get going as we've not dumped the database for eons, but if anyone is really interested we could do so. Ian Haywood is just about to start on billing. Regards Richard -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] something to do
Well Gambas knwo how to import cvs :-) Just use the connexion You must for that select the gb.db component then right click on connexion and add a new connexion to a sgdbr then select import I must prvent you ... gb.report is not a standart report generator ... it's a frame style one ... so you must to study how it work. It's really different than the sections report generator. It's like using containers in Ide. And when you select gb.report in components, the ide allow you to create reports... like forms. But for the time report filling must be doing by hand. There is an example in the Gambas3 examples. And many bugs to resolve :) -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: 1) Declaring one of the hidden constants with the value set to the default causes problems, e.g. _IsContainer=False Mmm. What are you talking about exactly ? Sorry, my mistake. It's _IsMultiContainer=False. In the IDE using the previously attached sample: 1) ensure that LabelTextBox is the only open file. 2) uncomment the _IsMultiContainer declaration (line 41??) 3) make Executable. 4) open the FTest1 form == should get a Cannot open file error 5) exit the IDE (leaving the FTest1 form open) and then restart it and open the sample project == should get a Cannot open file error Bruce -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: 2) (Related) Don't use the _DrawWith constant without care as it will crash the IDE if the form is left open. _DrawWith works only if you specify a control used by the IDE project (it must be in gb.qt4, gb.qt4.ext, gb.form or gb.form.mdi). In IDE, ensure only the LabelTextBox class is open In my LabelTextBox class 1) Uncomment the _DrawWith declaration (line 40-something) - Note I am using a native control i.e. textbox 2) Make executable 3) Open the FTest1 form == should get a cannot open file error 4) Exit the IDE, leaving the form open 5) restart the IDE and open the project == should get the must abort error Bruce -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: 4) It would be really, really nice if IsContainer was a RO property exposed by all controls To know if a control is a container, use the IS operator: If MyControl Is Container Then ... The difference is when a control actually inherits UserControl. It is a container, but it must be used as a control. So the test you need is: If MyControl Is Container And If Not MyControl Is UserControl Then ... Ah! Thank you that. Don't know why I didn't think of it. B -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: 5) It would be really, really, really nice if all controls had a AcceptFocus property (IDE visible) so things like Picture boxes can be skipped in custom navigation code Normally PictureBox is a read-only control, so it should not get the focus It's to do with the custom navigation code. Demo by commenting out line 58 in MUtil.NextActiveControl and put a breakpoint at the end of InnerText_KeyPress (line 439?) and then run the project. In the Horse Code box press Enter, debug Application.ActiveControl shows that focus(?) is on the picture box. Do this in QT4 first. In GTK the behaviour is harder to catch. (do you use gb.qt or gb.gtk?). Both :-) in fact this whole affair started because I have remote users with different guis and wanted to get both of them working the same so phone support is easier. DrawingArea has a Focus property. I admit it may be useful to put that property in every control, but I'm not sure it is a good idea at the moment. Cool. Just a suggestion. Bruce -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: b) the gb problem of having to reload the project if a new CC class is added still seems to exist. What are you talking about exactly? Please give some details. Sorry, I am wrong on this one. Make executable does reload the IDE toolbox. :-) B attachment: face-embarrassed.png-- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: You must make a binary package of your component project. Normally this package should install the component in the same place as the other components located in the Gambas 3 source code, and should become as usable as them. OK I tried that using autotools. After decompressing I ran the normal install sequence. Here's the output: [bb@bluecow phCCDemo-0.0]$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gambas3 binaries... Ok checking for gambas3 components path... Ok checking for gb.image component... Ok checking for gb.gui component... Ok checking for gb.form component... Ok checking for gb.desktop component... Ok configure: creating ./config.status config.status: creating Makefile [bb@bluecow phCCDemo-0.0]$ make Building phCCDemo component... OK [bb@bluecow phCCDemo-0.0]$ su Password: [root@bluecow phCCDemo-0.0]# make install make[1]: Entering directory `/home/bb/phCCDemo-0.0' Installing phCCDemo.gambas in /usr/local/lib/gambas3 Installing phCCDemo.component in /usr/local/lib/gambas3 Installing phCCDemo.info in /usr/local/share/gambas3/info /usr/bin/install: cannot create directory `.info': File exists Installing phCCDemo.list in /usr/local/share/gambas3/info make[1]: Nothing to be done for `install-data-am'. make[1]: Leaving directory `/home/bb/phCCDemo-0.0' [root@bluecow phCCDemo-0.0]# That all looks good, so then : [bb@bluecow gambas3]$ cd /usr/local/lib/gambas3/ [bb@bluecow gambas3]$ ls -a *ph* ls: cannot access *ph*: No such file or directory [bb@bluecow gambas3]$ cd /usr/local/share/gambas3/info/ [bb@bluecow info]$ ls -a *ph* ls: cannot access *ph*: No such file or directory [bb@bluecow info]$ So nothing got put into these targets? (and the library (which if I understand correctly is now a Component) is still not available in the IDE) Help! Bruce -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
Le 08/11/2011 00:57, Bruce Bruen a écrit : On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: You must make a binary package of your component project. Normally this package should install the component in the same place as the other components located in the Gambas 3 source code, and should become as usable as them. OK I tried that using autotools. After decompressing I ran the normal install sequence. Here's the output: [bb@bluecow phCCDemo-0.0]$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gambas3 binaries... Ok checking for gambas3 components path... Ok checking for gb.image component... Ok checking for gb.gui component... Ok checking for gb.form component... Ok checking for gb.desktop component... Ok configure: creating ./config.status config.status: creating Makefile [bb@bluecow phCCDemo-0.0]$ make Building phCCDemo component... OK [bb@bluecow phCCDemo-0.0]$ su Password: [root@bluecow phCCDemo-0.0]# make install make[1]: Entering directory `/home/bb/phCCDemo-0.0' Installing phCCDemo.gambas in /usr/local/lib/gambas3 Installing phCCDemo.component in /usr/local/lib/gambas3 Installing phCCDemo.info in /usr/local/share/gambas3/info /usr/bin/install: cannot create directory `.info': File exists Installing phCCDemo.list in /usr/local/share/gambas3/info make[1]: Nothing to be done for `install-data-am'. make[1]: Leaving directory `/home/bb/phCCDemo-0.0' [root@bluecow phCCDemo-0.0]# That all looks good, so then : [bb@bluecow gambas3]$ cd /usr/local/lib/gambas3/ [bb@bluecow gambas3]$ ls -a *ph* ls: cannot access *ph*: No such file or directory [bb@bluecow gambas3]$ cd /usr/local/share/gambas3/info/ [bb@bluecow info]$ ls -a *ph* ls: cannot access *ph*: No such file or directory [bb@bluecow info]$ So nothing got put into these targets? (and the library (which if I understand correctly is now a Component) is still not available in the IDE) Help! Bruce Laurent Carlier made the autotools packager, and I'm not sure that is supports packaging components. Can you try with a true binary package? -- Benoît Minisini -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
On Tue, 2011-11-08 at 10:27 +1030, Bruce Bruen wrote: On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: You must make a binary package of your component project. Normally this package should install the component in the same place as the other components located in the Gambas 3 source code, and should become as usable as them. OK I tried that using autotools. After decompressing I ran the normal install sequence. Here's the output: [bb@bluecow phCCDemo-0.0]$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gambas3 binaries... Ok checking for gambas3 components path... Ok checking for gb.image component... Ok checking for gb.gui component... Ok checking for gb.form component... Ok checking for gb.desktop component... Ok configure: creating ./config.status config.status: creating Makefile [bb@bluecow phCCDemo-0.0]$ make Building phCCDemo component... OK [bb@bluecow phCCDemo-0.0]$ su Password: [root@bluecow phCCDemo-0.0]# make install make[1]: Entering directory `/home/bb/phCCDemo-0.0' Installing phCCDemo.gambas in /usr/local/lib/gambas3 Installing phCCDemo.component in /usr/local/lib/gambas3 Installing phCCDemo.info in /usr/local/share/gambas3/info /usr/bin/install: cannot create directory `.info': File exists Installing phCCDemo.list in /usr/local/share/gambas3/info make[1]: Nothing to be done for `install-data-am'. make[1]: Leaving directory `/home/bb/phCCDemo-0.0' [root@bluecow phCCDemo-0.0]# That all looks good, so then : [bb@bluecow gambas3]$ cd /usr/local/lib/gambas3/ [bb@bluecow gambas3]$ ls -a *ph* ls: cannot access *ph*: No such file or directory [bb@bluecow gambas3]$ cd /usr/local/share/gambas3/info/ [bb@bluecow info]$ ls -a *ph* ls: cannot access *ph*: No such file or directory [bb@bluecow info]$ So nothing got put into these targets? (and the library (which if I understand correctly is now a Component) is still not available in the IDE) Help! Bruce FORGET THIS ONE! I found my problem - I had included phCCDemo as a library in the project I was using to see if the new component was available. and thanks Benoît for your attention on all this. regards Bruce -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
On Tue, 2011-11-08 at 10:35 +1030, Bruce Bruen wrote: FORGET THIS ONE! I found my problem - I had included phCCDemo as a library in the project I was using to see if the new component was available. No, I spoke too soon... :-( Tried with a new project and the Paddys-Hill tab is definitely not in the toolbox. So, I manually copied the compiled project files as follows: phCCDemo.gambas - /usr/local/lib/gambas3 .component - /usr/local/lib/phCCDemo.component .info - /usr/local/share/gambas3/info/phCCDemo.info .list - /usr/local/share/gambas3/info/phCCDemo.list all the control icons into /usr/local/share/gambas3/control/phCCDemo And TADA! everthing seems OK so far! So it looks like the autotools scripts don't work (on my distro, that is.) The only outstanding item is getting the controls to look in the IDE like how they will appear in the product. I think I have to compile the component into the IDE itself? Bruce attachment: face-sad.png-- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GB3 Custom controls
On Tue, 2011-11-08 at 01:01 +0100, Benoît Minisini wrote: Can you try with a true binary package? Benoît, I wasn't sure what you meant there, so I just went the manual route. Bruce -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user