Re: [Gambas-user] TextBox and CR

2010-04-22 Thread Ron_1st
On Wednesday 21 April 2010, Benoît Minisini wrote:
  24 character LCD display that need that WAIT.
  
 
 Why do you need to call WAIT? You should only use it when you want to refresh 
 your GUI during some heavy processin. Otherwise, if you should use SLEEP.
 
 Regards,
 
 -- 
 Benoît Minisini
 

OK. I need the sleep to tell the interface in first byte what to do with second 
byte
It needs some time to interpret the first byte and send some info back.
The wait is to update the screen and then send th secon byte.

Just as a possible/hypo way there could be time for the second keypress.
When the event manager does not fire new events before the current subroutine
has ended then I asume no problem. But alway better to prevent then try to
find why o why it does not work anymore after a update of some component.
 
(maybe this is from my very old multy tread VB findings in the past)

Best regards,

Ron_1st

-- 


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] TextBox and CR

2010-04-21 Thread Ron_1st
On Tuesday 20 April 2010, Benoît Minisini wrote:
  On Tuesday 20 April 2010, Caveat wrote:
   Hi Rolf,
   I guess you're right.  I threw the code together very quickly, just to
   make a working example for you.  But 100% correct, you don't need lcode
   or AS Variant or DIM or lcode = Key.Code... :-)
  
  In general I should say the same. But Key.Code is in a way dynamic and a
  new KeyPress could occur before the related subroutine is finished.
 
 No, unless you explicitely call the event loop (with WAIT).
 

So it could happen. Not in the given example but in another
project that is using WAIT. i.e. output keybaoard characters to a
24 character LCD display that need that WAIT.



Best regards,

Ron_1st

-- 

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] TextBox and CR

2010-04-20 Thread Ron_1st
On Tuesday 20 April 2010, Caveat wrote:
 Hi Rolf,
 I guess you're right.  I threw the code together very quickly, just to
 make a working example for you.  But 100% correct, you don't need lcode
 or AS Variant or DIM or lcode = Key.Code... :-)

In general I should say the same. But Key.Code is in a way dynamic and a 
new KeyPress could occur before the related subroutine is finished.
So otherwise I say it is not wrong but playing the safe way taht it is 
and stay the same for sure.

Just my two cents :)
 
 Let's just hope this doesn't turn into another marathon static const?
 thread ;-)

LOL
(still it was interesting and I did learn something too)

 
 Regards,
 Caveat
 


Best regards,

Ron_1st

-- 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Debugging program to find error

2010-04-11 Thread Ron_1st
On Monday 12 April 2010, craf wrote:
 file: No such file or directory
 ), is that the routes included in the file .sh are not taken into
 account. To fix this I added the following paths to the file .profile
 (The tests carried out from a project created in gambas2.20 in Ubuntu
 9.10 to Ubuntu 8.04 distribution located on the same computer and runs
 through Virtualbox.
 
 #!/bin/sh
 export PATH=/path/my/proyect/gambas2/bin
 export
 LD_LIBRARY_PATH=/path/my/proyect/gambas2/lib_shared/lib:/path/my/proyect/gambas2/lib_shared/usr/lib
 

From some early mail
export LD_LIBRARY_PATH=/my/ld/dir:$LD_LIBRARY_PATH

This will add your path in front of the current one, pointing to i.e. gtk libs
In thecode you present here the current to other libraries is killed.

So add on the line at the end ':$LD_LIBRARY_PATH' (whitout quotes :) )

 You see I have to load the variable LD_LIBRARY_PATH when the user start
 a session, as this is ignored if the file is called from . sh
 
 Doriano kindly indicated that this was due to the following:
 


Best regards,

Ron_1st

-- 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problem with alignmet position in GB3(qt)

2010-04-05 Thread Ron_1st
On Monday 05 April 2010, Kadaitcha Man wrote:
 On 5 April 2010 17:19, kobolds kobo...@singnet.com.sg wrote:
 
  here how you do the test on IDE
 
  1. create a form (768x1024)
  2. drag a panel into the form (make sure it big)
  3. drag a picbox into the panel (same size as panel) so the picbox cover the
  whole panel
  4. drag 9 buttons on it ( on top of picbox)
  5. change button1 width and height to 100x80
  6. select the rest of buttons and do alignment same width and same height
  7.  check the widthxheight of the buttons . you will notice all change to
  other value (not 100x80)
 
  hope this will help
 
 Probably not. Who is going to do all that when you could post the code 
 yourself?
 

It is a problem that occurs durring the make of the form.
If he send it predone you do not experience the same behviour.

Second, when he send it should be a complete project else
other people start to complain. It is not a real problem 
to add a form in one of the many trial and error projects 
everyone have laying arround for test the told story by Richard.

Many times it make sence to do what you suggest but for this
one it isn't a absolute must do IMHO. 

Best regards,

Ron_1st

-- 



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problem with alignmet position in GB3(qt)

2010-04-05 Thread Ron_1st
On Monday 05 April 2010, Fabien Bodard wrote:
 
  Send us the code.
 
  personally I never use panels - only ever Vbox/Hbox and set the properties 
  of
  these to maket my rows/columns expand/keep the same etc.
 
  Send us the code,and could you re-post the picture as I trashed it, happy 
  for
  you to send to me direct.
 
  Richard
 
 hum ... Richard ... he is talking about the desing time not execution ... ;-)

Righ. :)


Best regards,

Ron_1st

-- 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Parallel Port - Kadaitcha Man

2010-04-04 Thread Ron_1st
On Sunday 04 April 2010, Bjorn Macintosh wrote:
 Hiya,
 
 I had already found and gone through the link you sent,  it is what part of
 my code was based on.  If you have read it and can fully understand it can
 you tell me what
 iPortNumber should be in order for me to access the parallel port.  I was
 thinking it would be 888 as a integer (378 in hex is 888 in dec) however I
 don't appear to have got a result from this.
 
 I tryed 378 aswell without result.  I would try polling each and every port
 however I understand this would potentially break my pc. not my favourite
 option.
 
 Thanks
 Bjorn Macintosh

Read exactly which port you must open in the gambas documentation for your used 
code. 

using:
2.2 An alternate method:
It is written in the example below. :)



Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Draw.Text problem with control chars

2010-02-08 Thread Ron_1st
On Monday 01 February 2010, Kadaitcha Man wrote:
 On 1 February 2010 23:10, Doriano Blengino
 doriano.bleng...@fastwebnet.it wrote:
 
  Probably we are
  saying the same thing.
 
 Not if a tab is eight spaces wide, we aren't :)
 
 --
 The Planet: dedicated and managed hosting, cloud storage, colocation
 Stay online with enterprise data centers and the best network in the business
 Choose flexible plans and management services without long-term contracts
 Personal 24x7 support from experience hosting pros just a phone call away.
 http://p.sf.net/sfu/theplanet-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 

LOL. as say'd I like it :)

Best regards,

Ron_1st

-- 


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] indexing of buttons

2010-01-28 Thread Ron_1st
On Wednesday 27 January 2010, Kadaitcha Man wrote:
 2010/1/27 Fiddler63 mx4...@gmail.com:
 
  In gambas I get an error if I give more that one button the same name.
  How do I index a row of buttons in Gambas ?
 
 You don't. Gambas is not VB; it does not suppor, and rightly so,
 arrays of control objects in the way that VB does; even the more
 modern .NET revisions do not do it the way VB does. If you want more
 than one object to do the very same thing then you use the control's
 Group property.
 
 If you need to know what item in the group was selected then, for
 example, you use the Tag property. Or, perhaps the Caption property:
 
 Public Sub mnuEdit_Click()
 
   Select Case mnuEdit.Caption
   Case $MNU_ITEM_EDIT_IDENTITY
  [...]
   Case $MNU_ITEM_EDIT_OPTIONS
  [...]
   Case $MNU_ITEM_NEW_OPTIONS
  [...]
   End selct
 
 End
 
 In the above code example, one menu item has three functions. The
 function is determined by the context of the code.
 

A other example:
set for all the buttons that 'group' to the the same name (i.e. 'Calculator') 
and
set the 'Tag' property to what what the key represents.

 Public Sub Calculator_Click()
   Select Case Last.Tag
 Case '-'
   total = memory + number
 Case '+'
   total = memory + number
 Case '='
   Display.text = total
 Default
   number = (number * 10) + Last.Tag
   End select
 End

You can use the caption but if you publish it in multiple
languages then 'Clear' is 'Wissen' in Dutch. The .Tag can be
used as unique identification of the key pressed and set for
ever by you. 
This way the code behind stay for ever the same  (till bug found :) ).

Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321

-- 


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems generating a form

2010-01-10 Thread Ron_1st
On Thursday 07 January 2010, norarg wrote:
 X-Originating-IP: [201.234.99.50]
see below

  X-Originating-Email: [nor...@hotmail.de]
  Message-ID: blu0-smtp8444fe449b215e7833f2fea8...@phx.gbl
  Received: from [192.168.1.100] ([201.234.99.50]) by
 BLU0-SMTP84.blu0.hotmail.com over TLS secured channel with
 Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Jan 2010 15:06:30 -0800
The 192.168.1.100 looks strange as sender name


  From: norarg nor...@hotmail.de
  To: gambas-user@lists.sourceforge.net
  Date: Thu, 07 Jan 2010 19:34:53 -0300
  Mime-Version: 1.0
  X-Mailer: Evolution 2.28.1
  X-OriginalArrivalTime: 07 Jan 2010 23:06:31.0228 (UTC)
 FILETIME=[0CBE7FC0:01CA8FEE]
  X-Sender-Verify: failed, postmaster
The sender adress could not be verified as existing one?

  X-Spam-Score: 7.0 (+++)
  X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
 See http://spamassassin.org/tag/ for more details.
 -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for
 sender-domain
 0.5 VA_SENDER_VERIFY_POSTMASTER Unable to Verify postmas...@domain.tld
-^
 2.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net
 [Blocked - see http://www.spamcop.net/bl.shtml?201.234.99.50]
The  ip '?201.234.99.50' is in the blocklist

 1.1 RCVD_IN_SORBS_WEB RBL: SORBS: sender is a abuseable web server
 [201.234.99.50 listed in dnsbl.sorbs.net]
hotmail or you own computer

 1.5 RCVD_IN_PSBL           RBL: Received via a relay in PSBL
 [201.234.99.50 listed in psbl.surriel.com]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.0 HTML_MESSAGE           BODY: HTML included in message
 1.5 MSGID_FROM_MTA_HEADER  Message-Id was added by a relay
 0.7 AWL AWL: From: address is in the auto white-list
  X-Headers-End: 1NT1R6-0007Y0-SZ
  

http://www.spamhaus.org/query/bl?ip=201.234.99.50

http://www.spamhaus.org/pbl/query/PBL218080
201.234.98.0/23 is listed on the Policy Block List (PBL)
This means you are using a private mail server with a IP
in a range used by providers for customers. 
This is mostly done by spammer programs on hacked computers.

http://cbl.abuseat.org/lookup.cgi?ip=201.234.99.50
IP Address 201.234.99.50 is currently listed in the CBL.
It was detected at 2010-01-10 16:00 GMT (+/- 30 minutes), approximately 2 hours 
ago.

ATTENTION:   At the time of detection, this IP was infected with, or NATting 
for a computer infected with a high volume spam sending trojan - it is 
participating or facilitating a botnet sending spam or spreading virus/spam 
trojans. 


is the IP 201.234.99.50 your WAN adress (modem/router) or did
you use hotmail for this message?

In the first case I would suggest your router/computer is intruded by a spam 
agant.

In the last case your hotmsil is as usual again in the blocklist
due spam sending by some hotmail.de user.

I gues the first case is true.


Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems generating a form

2010-01-10 Thread Ron_1st
BTW
201.234.99.50: hostname 201-234-99-50.static.impsat.net.ar

IP assigned to provider in Argentina in use in germany???

Best regards,

Ron_1st

-- 


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] sdl.sound plays mp3 too fast

2010-01-04 Thread Ron_1st
On Monday 04 January 2010, Bill-Lancaster wrote:
 
 Sorry I'll try again http://old.nabble.com/file/p27015977/000244.mp3
 000244.mp3 

Complete name: /home/ron/Desktop/000244.mp3
Format   : MPEG Audio
File size: 1.36 MiB
Duration : 5mn 57s
Overall bit rate : 32.0 Kbps
Writing library  : LAME3.98 (alpha)

Audio
Format   : MPEG Audio
Format version   : Version 2
Format profile   : Layer 3
Duration : 5mn 57s
Bit rate mode: Constant
Bit rate : 32.0 Kbps
Channel(s)   : 2 channels
Sampling rate: 16.0 KHz
Resolution   : 16 bits
Stream size  : 1.36 MiB (100%)
Writing library  : LAME3.98 (alpha)

May be the Sampling rate or Bit rate are to less for the
library used on your system for SDL_sound.

This give on more players a problem with playback speed.
Some play libraries require sample rate as 22.05 or 44.10 as minimum.


KMplayer does OK



Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Financial program

2009-12-14 Thread Ron_1st
On Monday 14 December 2009, Jean-Yves F. Barbier wrote:
 Benoît Minisini a écrit :
 ...
  I think you are mixing a lot of different things:
  
  - When storing a amount of money in memory, you store it in a Long integer 
  in 
  1/10th of cents. For example, storing 1234,56€ will be stored as 123456
 
 I'm gonna test that, but it implies more load of the DB server side to
 convert from one format to the other.

It is not a matter of the DB server to calculate.
Its the presentation only, the matter of the frontend program.
Adding integers a amount in 1/10th of cents stored is more quick then
adding floating point numbers that must be handled to and back from the 
co-processor. 

In fact your gambas program does not use that co-proc but a library to do
the job in software in most cases. 
Only special programs handle this arithmetic direct to the co-proc.


 
  - When displaying an amount of money, you use Format$(), or your own 
  function.
  
  - When getting an amount of money from the user, you have to convert a 
  string 
  into an amount of 1/10th of cents.
  
  - When getting an amount of money from the outside, or exporting an amount 
  of 
  money to the outside, you must use an standard exchange format based on a 
  string.
 
 This is not acceptable: DB must be able to directly process numbers, 
 not to loose 95% of the time to convert a string to a number and
 vice versa (many of my process aren't done by GB but into stored 
 procedures)

A DB server is _just_ losing time if the numbers are in floats and not in 
integer.
It have to first normalize the numbers before it can do the arithmetics.
And I'm almost on safe that it also _just_ use a slow library instead of the 
co-proc.

 
  So I don't see any problem with that. Why are you talking about telephone 
  seconds? We are talking about money, aren't we? Or there is something I 
  didn't 
  understand?
 
 Yep, but some amounts can have many more decimals than others (in telephony,
 seconds are usually invoiced with @ least 6 decimals and sometimes 8), so 
 mixing that with other number of decimals isn't easy.

Almost every accounting program works with at least 8 decimals for the 
fractional part.
Only at the last step, the presentation the rounding to 2 decimals for currency 
is/should done.

 
 This is why definable decimals numbers are so important.
 
I do agree it can be handy to have but there is no absolute need. 
However if we talking about scientific calculations then it would/can 
be a complete different case.

In my view a database is for storage  of information/numbers. 
The handling/calculation of the stored data is the job for the end application.

In my good old times I made some floating point programs on a Z80 CPU.
No support for floats or co-procs available (or acceptable price).
I did just what Benoit suggest and worked with 1/100 of a cent and
at the last step the round to 2 decimals in Dutch Giuilder. 
Later I got a request to implement the co-proc and the customer 
was disapointed about the drop in speed as result.
The max bit size was 16 bit for add/subtract so I had to make
my own routines for 4 times 16 bit wide. Was interesting job to do.


Anyway I feel a bit with your for the request. 
It can make simple apps more ease to develop.

Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321



--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Financial program

2009-12-14 Thread Ron_1st
On Tuesday 15 December 2009, Benoît Minisini wrote:
 Again we are talking about currencies. What's the matter with telephony 
 seconds? If you want to say that you have to store 1/1000th of cents, ro 
 more, 
 just choose a more precise format. With a Long datatype and using 1/100th 
 of currency unit (!), you can store up to 4,6 x 10^12 units. That should be 
 enough.
 

Thanks for the calculation. I hope never have to pay that amount :) :) 

Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321


--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Remotly Debug

2009-12-04 Thread Ron_1st
On Saturday 05 December 2009, Benoît Minisini wrote:
  On Thursday 03 December 2009 05:15 pm, Benoît Minisini wrote:
   Your new threads are never attached to another non-related thread when I
   receive them. Why? I use KMail: do other people see the same thing than
me?
  
  I've been using kmail since before version 1.0 and I've never seen these
  list messages threaded at all, even though I have Expand thread and
  Collapse thread options in the View menu.
  
  Rob
  
 
 Oops, I said never instead of always. Apparently, KMail receives new 
 Matteo's threads, and attach them to a non-related thread. No idea why...
 

Look in the headers.


Received: by vws35 with SMTP id 35so455862vws.4
for gambas-user@lists.sourceforge.net;
Wed, 02 Dec 2009 23:27:06 -0800 (PST)
 MIME-Version: 1.0
 Received: by 10.220.121.155 with SMTP id h27mr1482265vcr.20.1259825226532; 
Wed, 02 Dec 2009 23:27:06 -0800 (PST)
 In-Reply-To: 200912022108.02111.gam...@users.sourceforge.net
 References: c811bd7b0912020109k3dd79debsb79b8343ec90e...@mail.gmail.com
200912021452.39709.gam...@users.sourceforge.net
c811bd7b0912021200s3c468d6fl2925d03c32a75...@mail.gmail.com
200912022108.02111.gam...@users.sourceforge.net
 Date: Thu, 3 Dec 2009 18:27:06 +1100
 Message-ID: c811bd7b0912022327l28dde47epe3580e41f6442...@mail.gmail.com
 From: Kadaitcha Man nospam.nospam.nos...@gmail.com
 To: mailing list for gambas users gambas-user@lists.sourceforge.net
 
[[[ note : Message-ID: 
c811bd7b0912022327l28dde47epe3580e41f6442...@mail.gmail.com ]]]



Received: from unknown (HELO ?192.168.2.123?)
(matteo.l...@engicam.com@85.39.149.113)
by smtp3.aruba.it with SMTP; 3 Dec 2009 10:24:28 -
 Message-ID: 4b1791cf.5030...@engicam.com
 Date: Thu, 03 Dec 2009 11:24:15 +0100
 From: Matteo Lisi matteo.l...@engicam.com
 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
 MIME-Version: 1.0
 To: mailing list for gambas users gambas-user@lists.sourceforge.net
 References: 
c811bd7b0912020109k3dd79debsb79b8343ec90e...@mail.gmail.com   200912021452.39709.gam...@users.sourceforge.net   c811bd7b0912021200s3c468d6fl2925d03c32a75...@mail.gmail.com   200912022108.02111.gam...@users.sourceforge.net
c811bd7b0912022327l28dde47epe3580e41f6442...@mail.gmail.com
 In-Reply-To: c811bd7b0912022327l28dde47epe3580e41f6442...@mail.gmail.com
 X-Spam-Rating: smtp3.aruba.it 1.6.2 0/1000/N
 X-Spam-Score: 0.0 (/)
 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
See http://spamassassin.org/tag/ for more details. _SUMMARY_
 X-Headers-End: 1NG8rV-0005TO-Ls
 Subject: [Gambas-user] Gambas Remotly Debug
 X-BeenThere: gambas-user@lists.sourceforge.net
 
[[[ ote :  In-Reply-To: 
c811bd7b0912022327l28dde47epe3580e41f6442...@mail.gmail.com ]]]


So I think/belive he is always using 'Reply' instead of 'New Message'


For Matteo Lisi:

When people close a thread i.e. '[Gambas-user] Ok, what have I done? in 
the message three they do not see always new messages apear.
Second it is not of others/my interest to continue to read that thread anymore.
By a reply on that thread your message wil be lost for others/me.
In other words. you are limmiting the count of readers for your question.

If you have a new question or other message always start with a new
to get attention of the readers.




Best regards,

Ron_1st

-- 

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Remotly Debug

2009-12-04 Thread Ron_1st
On Saturday 05 December 2009, Benoît Minisini wrote:
  On Thursday 03 December 2009 05:15 pm, Benoît Minisini wrote:
   Your new threads are never attached to another non-related thread when I
   receive them. Why? I use KMail: do other people see the same thing than
me?
  
  I've been using kmail since before version 1.0 and I've never seen these
  list messages threaded at all, even though I have Expand thread and
  Collapse thread options in the View menu.
  
  Rob
  
 
 Oops, I said never instead of always. Apparently, KMail receives new 
 Matteo's threads, and attach them to a non-related thread. No idea why...
 

I confirm this for 'always' and using kmail too :)


Best regards,

Ron_1st

-- 


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Qt Slider orientation

2009-12-02 Thread Ron_1st
On Wednesday 02 December 2009, Ron wrote:
 Hi,
 
 why is it not possible (so it seems to me) to set a sliders orientation 
 to vertical in Gambas?
 
 http://doc.qt.nokia.com/3.3/qslider.html#orientation-prop
 
 
 Gambas 2.18.x
 gb.qt
 Ubuntu 9.10
 
 Regards,
 Ron_2nd.
 
 --
 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing. 
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 

if width  height then it is vertical
if width  height then it is horizontal
:)

This is/was the way.

Best regards,

Ron_1st

-- 



--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Qt Slider orientation

2009-12-02 Thread Ron_1st
On Wednesday 02 December 2009, Benoît Minisini wrote:
  Charlie Reinl schreef:
   Am Mittwoch, den 02.12.2009, 17:53 +0100 schrieb Ron_1st:
   On Wednesday 02 December 2009, Ron wrote:
   Hi,
  
   why is it not possible (so it seems to me) to set a sliders orientation
   to vertical in Gambas?
  
   http://doc.qt.nokia.com/3.3/qslider.html#orientation-prop
  
  
   Gambas 2.18.x
   gb.qt
   Ubuntu 9.10
  
   Regards,
   Ron_2nd.
  
   ---
  --- Join us December 9, 2009 for the Red Hat Virtual Experience,
   a free event focused on virtualization and cloud computing.
   Attend in-depth sessions from your desk. Your couch. Anywhere.
   http://p.sf.net/sfu/redhat-sfdev2dev
   ___
   Gambas-user mailing list
   Gambas-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/gambas-user
  
   if width  height then it is vertical
   if width  height then it is horizontal
  
   :)
  
   This is/was the way.
  
   Best regards,
  
   Ron_1st
  
   Same as ScrollBar !
  
  Yeah but different than Toolbar... (which has a orientation property for
  this)
  http://gambasdoc.org/help/comp/gb.form.mdi/toolbar/orientation?view
  
  Help... Benoit... it starts smelling like visual basic logic to me...
  sorry... ;-)
  
  Regards,
  Ron.
  
 
 You are right: I didn't think doing the same thing when I made the Toolbar 
 control. 
 
 That's funny, isn't it?
 

Maybe the .orientation was more logic?

Suggest to add the .orientation to slider and scrollbar.
Add a 3' value to the orientation values as 'auto'
If set to auto it wil use the widht/height way else it use the 
horizontal or vertical as current is definied.
Don't forget to add the auto function for the toolbar :) :)


Best regards,

Ron_1st

-- 





--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Qt Slider orientation

2009-12-02 Thread Ron_1st
On Wednesday 02 December 2009, Benoît Minisini wrote:
  On Wednesday 02 December 2009, Benoît Minisini wrote:
Charlie Reinl schreef:
 Am Mittwoch, den 02.12.2009, 17:53 +0100 schrieb Ron_1st:
 On Wednesday 02 December 2009, Ron wrote:
 Hi,

 why is it not possible (so it seems to me) to set a sliders
 orientation to vertical in Gambas?

 http://doc.qt.nokia.com/3.3/qslider.html#orientation-prop


 Gambas 2.18.x
 gb.qt
 Ubuntu 9.10

 Regards,
 Ron_2nd.

 ---
 --- Join us December 9, 2009 for the Red Hat Virtual
 Experience, a free event focused on virtualization and cloud
 computing. Attend in-depth sessions from your desk. Your couch.
 Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

 if width  height then it is vertical
 if width  height then it is horizontal

 :)

 This is/was the way.

 Best regards,

 Ron_1st

 Same as ScrollBar !
   
Yeah but different than Toolbar... (which has a orientation property
for this)
http://gambasdoc.org/help/comp/gb.form.mdi/toolbar/orientation?view
   
Help... Benoit... it starts smelling like visual basic logic to me...
sorry... ;-)
   
Regards,
Ron.
  
   You are right: I didn't think doing the same thing when I made the
   Toolbar control.
  
   That's funny, isn't it?
  
  Maybe the .orientation was more logic?
  
  Suggest to add the .orientation to slider and scrollbar.
  Add a 3' value to the orientation values as 'auto'
  If set to auto it wil use the widht/height way else it use the
  horizontal or vertical as current is definied.
  Don't forget to add the auto function for the toolbar :) :)
  
  
  Best regards,
  
  Ron_1st
  
 
 If I make an explicit orientation property, why should I spend time making an 
 automatic one?
 

With the way I described the old programs continue to work without change. 
This should be the case when auto is default.
(thinking the big project as richard terry has made)

See it as backwards compatible. Also some people may like the height/width 
ratio.
I prefer the orientation property.




Best regards,

Ron_1st

-- 


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] wish

2009-11-18 Thread Ron_1st
On Tuesday 17 November 2009, Jerry McBride wrote:
 On Tuesday 17 November 2009 09:55:03 Jean-Yves F. Barbier wrote:
  Hi,
  
  It would be (very) nice to have the possibility to freely format text
  in ValueBox for I/O (may be the same syntax as in DBase screens).
  
 
 
 My wish would be the ability to compile gambas and not have to drag in 
 anything from KDE or Gnome
 
 It should be optional
 
 

It can be compiled as you wish and optional is also true. :)

But think seriously about you question.
If you want to make a program and it must be visible in
a graphical way, how should it been shown?.

QT/KDE is uded for the IDE so that one must be drag in.
QT as toolkit and for KDE the basic libs at least.

Gambas is simple a Basic language to interact with the box.
People use it as replacement for the bash/python/perl/awk
scripts and C/Java/Pascal/Delphi program languages.
Both can make shell and graphical programs.

If you do not want KDE/Gnome drag in then you can program your files
with VI/VIM/Emacs/nano/joe as you like and manage on your own the
files and structure of them.

Ohh and don't cry if you can't use it on the desktop because missing QT/GTK.


Best regards,

Ron_1st

-- 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Video Player example

2009-10-25 Thread Ron_1st
On Sunday 25 October 2009, Hartmut Eilers wrote:
 Hallo Gambas Users,
 
  for my Video project I need a video player which plays a video
  in a unvisible DrawingArea where I can grab a picture contolled
  by a timer. I want to show the grabbed image in a smaller preview
  window where one can apply effects. When pressing a button all
 effects should bei applied to the grabbed images in their original size
  and saved as a sequence of pictures.
 
 Werner suggested:
 DrawingArea.Visible = FALSE or
 DrawingArea.Hide
 
 sorry I tried both, but that didn't work, the drawingarea stays visible
 
 Doriano suggested:
 If this does not work, you can try to put some other graphic element
 above (on top) the drawingarea...
 
 this doesn't work too, because the drawingarea.grab commands grabs
 also the elements on top of the drawingarea, not only the contents of
 the drawing area as you can see on the attached screenshot.

I have made a form to contain a invoice in the past.
This form had to look the same as the printed form because the 
personel using it have some disabilities (in real, not my opinion :) )

I did a FInvoice.grab and send the picture to the printer.
The form (A4) height is greater as the screen 800x600 terminal.
On the lower half of the grabbed picture there was memory garbage and 
part of a browser page previous visit with login information!.

My conclusion is that the *.grab takes the visible part of the screen
with the dimensions determined by the control you use for *.grab instead
the in-memory surface for that control.
And more worse it uses X-servers memory to get the size you ask with *.grab.
This is out of screen area so may be a X-server bug??
 

 
 to give you a short explanation of the app:
 the yellow marked area is the drawing area for the video player in
 the original size of the video. marked green is the video player with
 its smaller preview picturebox. orange are the smaller previews and
 controls of 2 usb cams and red is marked the recording preview, which
 shows in a smaller preview what is recorded to disk. with the record
 radio buttons you can select which source is recorded. despite of the
 showed size all recordings are done with a resolution of 352x288 pixel.
 as you can see in the green preview the grab method grabs whats visible
 of the drawingarea, not the actual contents, its like a screenshot.
 
 thats the reason why Dorianos idea doesn't work.
 
 @Ron_1st
 I try to get better in my postings ;)
 
 Are there any hints or ideas how to tackle my problem ?
 
The dummy control i.e. a frame/panel should be on top of the DrawingArea.
Resize it in code to the dimension of the DrawingArea.
I'have don this to and should work.
Just one question, the drawing you use is it a mplayer screen? 
The same way as the movieplayer from the gambas example kit?
If so then it can be the reason why it is not working now.

One other method I think about is position the DrawingArea.left 
and DrawingArea.top at negative position on the form or make
the left and/or top greater so it s outside the form, if allowed, 


 I use Gambas 2.7 as distributed with Ubuntu 8.10
 


Best regards,

Ron_1st

-- 


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] set of questions

2009-10-23 Thread Ron_1st
On Friday 23 October 2009, Doriano Blengino wrote:
 charlesg ha scritto:
  Doriano
 
  While you are busy dumping on yourself, let me join in: you are wrong.
 
  ...
 Hoping that this is the right place to post a thought... :-)
 
---8---
 
 Regards to all,
 Doriano Blengino
 
Your doing well Doriano.

BTW. Where in Italy do you live?
I have been several times in the north part.
Eating pasta and drinking gianti, hmmm I got thirsty again. :)

Abbia un giorno piacevole e una computazione felice (yahoo :) )

Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] set of questions

2009-10-23 Thread Ron_1st
On Friday 23 October 2009, Werner wrote:
 Benoît Minisini wrote:
  The boss is an amazing chap: he writes and maintains Gambas, holds down a
  job and is, I believe, a Thespian of repute. To avoid any unrecoverable
  read

  Yes the big boss is a big wonder.
  
 
  Hey, this is my birthday or what? :-)
 
  What does Thespian of repute means?

 http://en.wikipedia.org/wiki/Thespian
 

Nice. If Benoit's acting is of same quality as programming then
the 'International Thespian Society' should honorary him to :)

About my feelings/compliment to Benoit. 
His source code of gambas written in C did show me a beautifull usage of 
the m4 macro usage. 
It was never seen before by me used in sources code in same quantity and
quality. I'm a lover of this usage in the past with M80/L80 for CP/M and
the EditorAssemblerPlus for the TRS80.

May be more programmers do so but Benoit's way looks to me not the regular 
common way for the C art o programming. Anyway I never see it done.

Best regards,

Ron_1st

-- 

I can learn a lot of Benoit's programming :)

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Form problem with Gambas v2.16

2009-10-23 Thread Ron_1st
On Saturday 24 October 2009, Benoît Minisini wrote:
  Here is the file:
  
 
 The limit is 4096 constant by class, a constant being a string or a floating 
 point number. This limit cannot be changed in Gambas 2, because of the 
 bytecode.
 
 But you can solve that problem by not putting everything in the same class.
 
 You have a TabStrip with five tabs. Just create five different forms, and 
 embed them in the TabStrip at runtime.
 
 Of course this limit is a boring one, but having more than 4096 constants in 
 a 
 class usually means that there is a problem in the design.
 
 Regards,
 

LOL. I had once the same problem as Olivier. 
So I did split that form in more parts without know the real reason.
Good to know it was a *design* and not coding problem.

Best regards,

Ron_1st

-- 


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] saving picturebox as video

2009-10-22 Thread Ron_1st
On Thursday 22 October 2009, Steven James Drinnan wrote:
 I can't really think of a way directly in gambas.
 
 I would just use vlc to stream the file that the program creates. 
 
 
 Any one else got any ideas?
 
 
 
 

ffmpeg has also a feature to stream as a server


Best regards,

Ron_1st


-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] set of questions

2009-10-22 Thread Ron_1st
On Wednesday 21 October 2009, Faysal Banna wrote:
 what is the way to get modifying a cell inside  a grid view like
 u click on a cell and start writing inside it then when u click away its
 already modified ?
 
 regards
 
 On Wed, Oct 21, 2009 at 4:47 PM, Jussi Lahtinen 
 jussi.lahti...@gmail.comwrote:
 
   1) May I create proprietary (not open-scource) gambas2-applications and
   components for gambas2?
 
   Yes, but Qt3 is not free for proprietary use.
 
 
   3) When I hide persistent Form, how to display it again?
 
   FromName.Show works with me..?
 
 
   5) Can I easily convert my big project from the gambas2-project to the
   gambas3-project?
 
   With my project it was easy.
   Tools menu -- Update forms.
   Then possibly some minor changes to code.
   Example Write and Read, see documentation for details.
 
 
   6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components.
   Can I easily switch them to gb.qt4 and other components, when my favour
   Linux-distr Debian will be updated?
 
   I think gb.qt4 is not completely ready yet. But in future you can, if
  I have understand correctly.
   Qt3 -- GTK+ works well.
 
 
  Jussi
 
 
 
  On Wed, Oct 21, 2009 at 15:15, Doriano Blengino
  doriano.bleng...@fastwebnet.it wrote:
   Faysal Banna ha scritto:
   no no sir
   i was asking about the Grid View u were explaining to Dima ...
   besides i care to know a bit more about in place editing of cells inside
  the
   Grid View
   just click on the cell change the value..
  
   Uhm...
  
   I never used a Gridview in that way, I simply worked out with my words
   something that already is in the docs (in a very unixish fashion). I
   tried to explain better what the idea behind Data event is.
  
   But after that I have seen, in this thread, a complete example: I cut
   and paste:
  
   Hopefully this answers question 2. It is a distillation of the database
   example that comes with Gambas:
  
   You just need a gridview, a button called btnRun and a preferably large
   database with lots of columns so that you can scroll around with ease
  
   '
   ' Gambas class file
   PUBLIC $hConnLocl AS NEW Connection
   PUBLIC $resData AS Result
   '
   PUBLIC SUB Form_Open()
 DIM sql AS String
  
 'open the database
 WITH $hConnLocl
   .type = mysql
   .host = localhost
   .Name = stock
   .login = charles
   .password=dog
 END WITH
 $hConnLocl.Open()
  
 'create a result
 sql = SELECT * FROM grnLine
 $resData = $hConnLocl.Exec(sql)
 END
   '-
   PUBLIC SUB btnRun_Click()
 DIM hForm AS FRequest
 DIM hField AS ResultField
 DIM iInd AS Integer
  
 GridView1.Rows.count = 0
 'set the required number of columns
 GridView1.Columns.count = $resData.Fields.Count
  
 'define the column headers and width
 FOR EACH hField IN $resData.Fields
   WITH hField
 GridView1.Columns[iInd].text = .Name
 GridView1.Columns[iInd].width = 60
   END WITH
   INC iInd
 NEXT
  
 'create the empty rows. Each empty and visible cell created calls
   GridView1_data
 GridView1.Rows.Count = $resData.Count
   END
   '-
   PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer)
 'move to the required result row
 $resData.MoveTo(row)
 'set the data for the cell in the GridView from the column in the
  selected
   row of the result
 GridView1.Data.text = Str($resData[GridView1.Columns[column].text])
 'lets you see how _data is being called as you scroll around the
  GridView
 PRINT row  :  column  : 
   Str($resData[GridView1.Columns[column].text])
   END
   '--
  
   Hope this is what you need.
  
   Thanks for your nice appellation, sir :-), and regards.
   Doriano Blengino
  
  
  

I don't see the connection with gambas from usb stick.
Can you enligth me?


Best regards,

Ron_1st

-- 
 A: Hijacking the thread from other subjects.
 Q: What is the second most annoying thing in e-mail? 
-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Gambas-user mailing list

Re: [Gambas-user] set of questions

2009-10-22 Thread Ron_1st
On Thursday 22 October 2009, Doriano Blengino wrote:
 Ron_1st ha scritto:
 
  I don't see the connection with gambas from usb stick.
  Can you enligth me?

 The first message of the thread, set of questions, contained a 
 question about launching a gambas app in a host system not having the 
 gambas runtime installed. Or so I think - I have already deleted the 
 relevant messages and now I can not check. May be I was confused... sorry.
 
 Regards,
 Doriano
 

It was for this message

On Wednesday 21 October 2009, Faysal Banna wrote:
 what is the way to get modifying a cell inside  a grid view like
 u click on a cell and start writing inside it then when u click away its
 already modified ?
 
 regards
 

He is mumbling about a gridview in this thread and is not related to it
and as reply to something total different.
We call that hijacking the thread. :)
See the signature.



Best regards,

Ron_1st

-- 
 A: Hijacking the thread from other subjects.
 Q: What is the second most annoying thing in e-mail? 
-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] set of questions

2009-10-22 Thread Ron_1st
On Thursday 22 October 2009, Doriano Blengino wrote:
 Ron_1st ha scritto:
  On Thursday 22 October 2009, Doriano Blengino wrote:

  Ron_1st ha scritto:
  
  I don't see the connection with gambas from usb stick.
  Can you enligth me?


  The first message of the thread, set of questions, contained a 
  question about launching a gambas app in a host system not having the 
  gambas runtime installed. Or so I think - I have already deleted the 
  relevant messages and now I can not check. May be I was confused... sorry.
 
  Regards,
  Doriano
 
  
 
  It was for this message
 
  On Wednesday 21 October 2009, Faysal Banna wrote:

  what is the way to get modifying a cell inside  a grid view like
  u click on a cell and start writing inside it then when u click away its
  already modified ?
 
  regards
 
  
 
  He is mumbling about a gridview in this thread and is not related to it
  and as reply to something total different.
  We call that hijacking the thread. :)
  See the signature.

 Funny signature.
 Really, I didn't know what hijacking was, and even now I don't 
 understand why one would desire to hijack (in other words, where is the 
 advantage in hijacking?). Provided that there is no advantage, so nobody 
 wants to do it, if I did it I did it without awareness.

No Doriano, you didn't hijack.
Hijack is jumping in a tread with a new question and disturb the 
conversation in the current thread.
It can happen so as did in this tread to top poster had some questions.
The tread splits in top with answers to the several questions.
In this case the tread was at the point talking about the usb-stick.

In your first answer in this tread you did give answers to point 1(usb) and 
point 2(gridview)
Then Faysal did ask for some example/

A few posts before Jussi answer with his situation for the gambas install on 
usb.
Faysal jumps in and ask something [2009-10-21 12:52].
 Doriano...

 do you have a sample src package of what you have just explained ?
 can u share a simple running example with source files and forms ?

Your answer was [2009-10-21 13:38]
 can u share a simple running example with source files and forms ?
   
 About what? I suppose about running a gambas app out of a usb stick? 
 Never tried but, if this is your request, I can try.
 ---8---
 I played a bit, but it does not work. The path lib/gambasX seems to be 
 hardcoded in the gbx executable.

So  Faysal wrote [2009-10-21 13:44]
 no no sir
 i was asking about the Grid View u were explaining to Dima ...
 ---8---

Then Jussi comes in at [2009-10-21 15:47]
He answers some questions from the TOP (Topic Opening Poster)
for Q 1, 3, 5 and 6. None of them refers to the gridview.
Here Jussi should have answered in a reply to the opening post insted this 
place.
The tread here was oriented at one of the questions, the usb case.

Now Faysal ask [2009-10-21 16:51] again about the gridview.
So I did replay [2009-10-22 09:10] as answer to Faysal.
 I don't see the connection with gambas from usb stick.
 Can you enligth me?

Doriano did answer my post [2009-10-22 09:20]
 The first message of the thread, set of questions, contained a 
 question about launching a gambas app in a host system not having the 
 gambas runtime installed. Or so I think - I have already .
So it was clear this branch in the topic was about the usb/gambas install.

I did answer:[2009-10-22 11:13]
 He is mumbling about a gridview in this thread and is not related to it
 and as reply to something total different.
You may say I'm wrong because it is in the TOP, that is correct.
My mistake, I was following the usb/install branch and had forgotten the TOP.

IMHO Faysal should have ask his gridview case on your first answer where you
did talk about it. At that moment there was no misunderstanding as did
happen on the place he did request it [2009-10-21 12:52] where he asked for 
some src/example code.

Because at this place the answers where the usb/install related
you respond about this and not the gridview and he did answer with 'no no no'
No ringing bells at Faysal there was some misunderstanding about
the specific subjec part in discussion.

Now you replay to my second post  [2009-10-22 16:43]
folowed by Faysal to your post.
 ---8---
 gridview which is of my interest at the moment 

 and instead of u mumbling about Hijacking and bla bla bla u could have
 pointed to the solution if u know it or either directed to the documentation
---8---
So he did attack you about mumbling. He did reply to the wrong post :)

 Doriano ... Could you please point to a good documentation about GridView
 utilisation and/or TableView, besides your english is good
I agree.

 just other people need to follow threads from the beginning.
And that is what you should do also and special pay attention to reply
to the right message. This last one should be to me and the other one to
the first post Doriano talked about the gridview.

His later answers where to another question

Re: [Gambas-user] set of questions

2009-10-22 Thread Ron_1st
On Thursday 22 October 2009, Faysal Banna wrote:
 just other people need to follow threads from the beginning.

 Regards...  and please stay on track of events before u rush into mumbling 
 bla bla stuff
 
 
Do you mean Doriano with 'u rush'?
Please wake up before you write something as reply.

See my reply to Doriano just send.


just other people need to follow treads from the beginning and
reply to the relevant reply containing the subject part those people
want answers to as i.e. src/example. That way they do not cry 'no no no'

Best regards,

Ron_1st

-- 


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] set of questions

2009-10-22 Thread Ron_1st
On Thursday 22 October 2009, Doriano Blengino wrote:
 Faysal Banna ha scritto:
  for all those who assumed i hijacked  the thread and subject 
 
  the subject of the whole was posted by Dima (My regards to her ) about set
  of questions and not specific to USB !
 
  she asked a set of questions including USB startup and also including the
  gridview which is of my interest at the moment 
 
  and instead of u mumbling about Hijacking and bla bla bla u could have
  pointed to the solution if u know it or either directed to the documentation
  .
  Doriano ... Could you please point to a good documentation about GridView
  utilisation and/or TableView, besides your english is good just other people
  need to follow threads from the beginning.

 Dear Faysal,
 I am sorry - I don't know any other good place to find documentation, 
 apart from the official docs (wiki) and the normal internet sites. To be 
 sincere, I don't even know gambas so well - perhaps when, rarely or 
 perhaps too often, I know something and I write about it, I write so 
 much that what I write can be over-estimated.
I like you writing very much. You help people where you can.

 
 Now I must add that perhaps I am writing too much in this list, or I 
 know english too little, or both. It is the second time in a few days 
 that threads grow too much because of my messages; I will think about it.
I do not have problems with your english. May be the grammar is not right
but I think most people can follow. My grammar is also not top of the top.
It's symple not our native language.

 
 Regards to everyone,
 Doriano
 



Best regards to all gambas lovers,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Sendmail problems

2009-10-12 Thread Ron_1st
On Monday 12 October 2009, nospam.nospam.nos...@gmail.com wrote:
 Easy instructions, even I could follow them:
 http://www.ziddu.com/download/5849757/Install-Gambas-2.15-in-ubuntu.pdf.html
 

OMG
That link gives more advertisement as available in my country for a year. :)
Be carefull.

Best regards,

Ron_1st

-- 

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?

2009-09-17 Thread Ron_1st
On Thursday 17 September 2009, Rolf-Werner Eilert wrote:
 Just stumbled over this when trying to implement a small copying function:
 
FOR EACH datei IN Dir(opfad, odatei  .*)
  IF NOT file.Ext(opfad / datei) = lock THEN
COPY opfad / datei TO ziel / datei
SELECT CASE file.Ext(ziel / datei)
CASE fehl, feldbak, felder, notizen
  SHELL chgrp kartei   ziel / datei WAIT
  SHELL chmod 660   ziel / datei WAIT
CASE konto, kontobak, ktx, ktxbak
  SHELL chgrp konto   ziel / datei WAIT
  SHELL chmod 660   ziel / datei WAIT
END SELECT
  END IF
NEXT
 
 IF NOT ... = ... THEN
 
 wouldn't copy anything, although only one file has the given extension. 
 When I change this line into
 
 IF file.Ext(opfad / datei)  lock THEN
 
 everything runs as expected. Doesn't make sense to me as both ways 
 should mean the same in my understanding of logical NOT (which doesn't 
 mean too much... :-) )
 
 Regards
 
 Rolf
 

Just for information

You have a condition, it can be true or false and this is a boolean value.

NOT inverts the boolean value, here just after it in the line.

a = b 
  The '=' is a assignment, Set a to the value of b

if a = b then
  The '=' is here a relational operator, just as '', '' are.


note: in all examples below text between '[' and ']' are optional 
values/expresions, etc

Syntax diagram for IF...THEN : 


IF _relational-expression_ [ _relational-operator_  _relational-expression_ ]  
THEN


_relational-expresion_ : 
  _expression_ [ _relational-operator_  _expression_ ]

_expression_ :
  variable [ arithmetic-operator variable ]

_variable_: 
  name of the variable


About operators:

_relational-operator_ : 
  any of '', '=', '' or combination i.e. '=', '=', '=', '='

_logical-operator_ :
  a symbol/name for operating on boolean values
   AND
  | OR
  XOR
  NOT

_arithmetic-operator_ :
  + - * / \ % for plus, min, multiply, integerdivide and modulo

---
Order of operations:

Operations are done in special ordered sequence (presedence)
  highest-order
()  
as i.e. ( _anything_ [ _any-operator_  _anything_] )

  arith-order
^ * / sqr + -  (Dutch trick:Meneer Van Dale Wacht Op Antwoord)

  relational-order
there is one but I need to look up the correct one.
1 =
2 =  or 
3 = = or =
 
  logical-order
OR AND  (not sure

 
Its a long time ago (around 1978) I did write this expresion evaluator 
for Basic. Was interesting stuff to do.

For the usage of AND in the IF...THEN you use
  variableA AND variableB
  variableA OR variableB
  variableA XOR variableB
  NOT variableA  - BE CAREFULL, 
only the first and only one (1) following is used for NOT
if you have more following then they must be first evaluated and
need '(' and ')' around it !!

In a asignment as:
bMyVariableC = variableA XOR variableB
  or
bMyVariableC = NOT variableA
  
Look now close to your line.

  IF NOT file.Ext(opfad / datei) = lock THEN

What you say here is, 
  do a NOT operation on
  the boolean value 'file.Ext(opfad / datei)' 
  and compare it to a string lock

the parts are
  1 NOT file.Ext(opfad / datei)
  2 =
  3 lock

You did want however test for the equality of 
  'file.Ext(opfad / datei) = lock'
 
and if this is not equal then use the THEN code.
These are two strings and if they are equal the result is boolean TRUE.

For the inverse you need then use the NOT on the result.
This way you should  have used.

  IF NOT ( file.Ext(opfad / datei) = lock ) THEN

I know a very long answer but it just information also
for other how it is more or less is working and why you
got the wrong behaviour in first place.

  IF  file.Ext(opfad / datei)  lock THEN

is the good replacement for the IF NOT ( TRUE ) THEN


Best regards,

Ron_1st

 --

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?

2009-09-17 Thread Ron_1st
On Thursday 17 September 2009, Rolf-Werner Eilert wrote:
 Benoît Minisini schrieb:
  Rolf-Werner Eilert wrote:
  Just stumbled over this when trying to implement a small copying
  function:
 
 FOR EACH datei IN Dir(opfad, odatei  .*)
   IF NOT file.Ext(opfad / datei) = lock THEN
 COPY opfad / datei TO ziel / datei
 SELECT CASE file.Ext(ziel / datei)
 CASE fehl, feldbak, felder, notizen
   SHELL chgrp kartei   ziel / datei WAIT
   SHELL chmod 660   ziel / datei WAIT
 CASE konto, kontobak, ktx, ktxbak
   SHELL chgrp konto   ziel / datei WAIT
   SHELL chmod 660   ziel / datei WAIT
 END SELECT
   END IF
 NEXT
 
  IF NOT ... = ... THEN
 
  wouldn't copy anything, although only one file has the given extension.
  When I change this line into
 
  IF file.Ext(opfad / datei)  lock THEN
 
  everything runs as expected. Doesn't make sense to me as both ways
  should mean the same in my understanding of logical NOT (which doesn't
  mean too much... :-) )
 
  Regards
 
  Rolf
   From the docs, NOT is an operator that makes a boolean it's opposite
  (TRUE turns to FALSE and vice versa) and will also invert each bit in an
  integer.  NOT(11) = -12 because that's what you get when you change
  every bit from on to off and vice versa.
 
   From other examples in the docs, if you NOT a string with something in
  it, you will get FALSE.  However, if you NOT an empty string, you will
  get TRUE.
 
  
  In other words, try to use brackets: IF NOT (...) = ... THEN
  
  
 
 Aaah - ok, now it's clear to me, too ;-)
 
 Regards
 
 Rolf

Funny isn't it ?? :) :)

Best regards,

Ron_1st

-- 


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Possible bug?

2009-09-16 Thread Ron_1st
On Tuesday 15 September 2009, Peter Landgren wrote:
   Using Gambas 2.16.
  
   /Peter
 
  TextLabel wants HTML: so you must use lt;

Then it should be named HtmLabel ???
IMHO text is text and ab should show ab

 
  Regards,
 Thanks,
 
 Found it in the documentation too.
 
 However a simple  works OK.
 And the ; seems not to be necessary, it's enough with lt.

Bad habbit to do. This way we have got already to many bad
websites due IE wich do/did accept this in the past. Not a w3c std.

Try this in your label:  I say 'lt' is not equal to 'lt;' 
Read it now strict as text and look then in your label.

BTW.
When the TextLabel goes follow the strict HTML rules or
XML rules your app is broken.
A TextLabel should show IMHO the example exact as typed here.

 
 /Peter
 


Best regards,

Ron_1st

-- 


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Application_mousedown() + Application_keypress() ?

2009-09-13 Thread Ron_1st
On Monday 14 September 2009, Lee McPherson wrote:
 
 Benoît Minisini wrote:
  I'm trying to get an application-wide mouse down event to register.  I
  found that when I do a Form_mousedown() it only triggers when you click
  on an empty part of the form, not when you're clicking on any type of
  control.  I'm looking for something that will trigger whenever you hit
  the mouse button.  (My app is going to be full screen, so I don't care
  if it works outside of the app window or not.)
 
  During my searching of the list archives, I found someone tried to use
  Application_Keypress() as a way to get a key press while the app is
  running.  Well, I tried it and it doesn't work, nothing happens:
 
  Static Public Sub Application_Keypress()
  Message.Info(Key.code)
  End
 
  I tried it on Gambas 2.8 and I even compiled Gambas 3.0 r2329 and that
  didn't change anything.  I am using GTK only (Ubuntu).  Any ideas?
 
  Thanks,
  Lee
 
  
 
  There is no global pointer event handler, only Application_KeyPress(). But 
  apparently it does not work with gb.gtk... Can you try with gb.qt to see if 
  at 
  least Application_KeyPress() is called? Note that this function must be 
  defined in the startup class!

 Switching to gb.qt in gambas 3 works.  Haven't tried it in 2.8 yet, but 
 I don't want to use qt in any case.  Since there's no global pointer 
 event handler yet, it does not matter if you fix applicaiton_keypress 
 for gtk (for me at least). 
 
 I would suggest a global pointer event handler as a feature if you have 
 the time.  The reason I wanted to use it was for a feedback response 
 when using a touchscreen.  Since there will be no pointer on the screen 
 (and no vibrate function like on a mobile phone), I wanted to create a 
 graphical response to touching (clicking) the screen with your finger (a 
 pointer). 
 
 I suppose the only workaround to this is to create a procedure and call 
 the procedure for a mouse_down or mouse_up event for every control on 
 the form.
 
 Let me say that despite some of the drawbacks, this is the easiest and 
 most useful tool I've ever used to do programming.  Keep up the good 
 work!  When I get better at this I hope to contribute more myself.
 
 -Lee
 

take a look for 'xev', is a util in the x11 package.


Best regards,

Ron_1st

-- 



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Slider problem?

2009-09-12 Thread Ron_1st
On Saturday 12 September 2009, Doriano Blengino wrote:
  I didn't change the behaviour of gb.qt because of gb.gtk. Mouse events
  must be always raised, whatever the value of the Enabled property.
        
 Why? Why should mouse events be always raised?

What if the rightmouse button has a menu option to enable/disable 
the control or you want to popup a message to tell the user it is 
disabled and will not do anything. :)

 
  Regards,
 


Best regards,

Ron_1st

-- 

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Slider problem?

2009-09-12 Thread Ron_1st
On Saturday 12 September 2009, Benoît Minisini wrote:
  On Saturday 12 September 2009, Doriano Blengino wrote:
I didn't change the behaviour of gb.qt because of gb.gtk. Mouse
events must be always raised, whatever the value of the Enabled
property. 
  
   Why? Why should mouse events be always raised?
  
  What if the rightmouse button has a menu option to enable/disable
  the control or you want to popup a message to tell the user it is
  disabled and will not do anything. :)
  
 
 Actually you must never use Mouse events directly unless you know what you 
 do, 
 because then you cannot handle the keyboard events that are associated with.
 
 For example, if you open a popup menu inside a mouse event, that is actually 
 a 
 bug. The menu won't open if you press the Menu keyboard button. You must 
 use 
 the Menu event instead.

The Mennu event was the one I mean as example.

 
 In the same way, control that must answer to a double-click have an Activate
 event that you must use instead of DblClick.
 
 Regards,
 


Best regards,

Ron_1st

 -- 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Ron_1st
On Wednesday 09 September 2009, Benoît Minisini wrote:
   it's OK, I think there must be something like User.IP :)
  
   Regards
  
  
  --
  David
  
 
 The IP address is not related to the user at all.
 

How about System.IP?


However David Villalobos did not tell which IP he wants.
I do have a IP at the incomming connection of my building.
For me known as WAN and a IP at the box, known to me as LAN.

http://www.myipaddress.com for your WAN IP address :)

Best regards,

Ron_1st

-- 

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Ron_1st
On Wednesday 09 September 2009, Benoît Minisini wrote:
 IP address are attached to network interfaces, and I'm not sure that a 
 network 
 interface could not have several IP, and different types of IPs.
 

Yes it can be done. More IP at one interface.
I have a remote sites IP addres as second IP on my card.
This way I can develop local a page with embeded IP's in code and
test on my ownbox before upload to the real site.
Very handy to test flash objects that are only allowed to get data
from fixed IP.

In ifconfig:
eth0  Link encap:Ethernet  HWaddr 00:e0:18:f8:37:7e
  inet addr:192.168.1.33  Bcast:192.168.1.255  Mask:255.255.255.0
...
eth0:0Link encap:Ethernet  HWaddr 00:e0:18:f8:37:7e
  inet addr:10.0.0.128  Bcast:10.0.0.255  Mask:255.255.255.0
...
eth0:1Link encap:Ethernet  HWaddr 00:e0:18:f8:37:7e
  inet addr:212.16.xxx.xxx  Bcast:212.16.xxx.255  Mask:255.255.255.0
...

This an be done by:
  ifconfig eth0:0 xx.xx.xx.xx netmask yy.yy.yy.yy up

where eth0 is your primary interface and eth0:0 is a virtual one


 Instead of adding thousands lines of code to the interpreter, I think the 
 better is parsing the output of the ifconfig command.

 -- 
Benoît Minisini

ps
Also on windows :)
http://www.metacafe.com/watch/331275/multiple_ip_address_on_same_network_card_windows/
http://www.pc1news.com/how-to-bind-multiple-ip-address-to-a-single-network-card-796.html

Best regards,

Ron_1st

-- 

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem to play flash (svf) movie

2009-09-03 Thread Ron_1st
On Thursday 03 September 2009, Almanova Sistemi wrote:
 Hello to everyone.
 
 I'm writing an application in gambas2 for play various movies files.
 
 I don't have any problems with mplayer that works very well but I can't
 play flash movies.
 
 I use gnash for this.
 
 My code:
 
 PUBLIC SUB Play()
 DIM aHandle AS NEW Pointer[]
   SELECT CASE LCase(Right(NumImmagini[Cont], 3))
 CASE avi, mov, vob, swf
   Timer1.Enabled = FALSE
   dwgMovie = NEW DrawingArea(FInput)
   dwgMovie.Height = dwgImage.Height '455
   dwgMovie.Width = dwgImage.Width '651
   dwgMovie.X = dwgImage.X '182
   dwgMovie.Y = dwgImage.Y '203
   Filmato = (sWorkDir / Immagini / NumImmagini[Cont])
   IF LCase(Right(NumImmagini[Cont], 3)) = swf THEN
 $hProcess = EXEC [gnash, -1, -x, dwgMovie.Handle, Filmato]
 FOR INPUT OUTPUT AS $hProcess
   ELSE
 $hProcess = EXEC [mplayer, -vo, xv, -nortc,
 -framedrop, -fs, -quiet, -wid, dwgMovie.Handle, Filmato, -ss,
 1.19, -vf, blackframe=100:32,scale=480:640] FOR INPUT OUTPUT AS
 $hProcess
   ENDIF
   END SELECT
 
 END
 
 Can anyone help me?
 
 Regards.
 Massimo

Be carefull, 'swf' is more a container and moving objects are called movie.
This does not mean it is a 'film' movie. That are 'flv' as seen on youtube.
It is posible to let swf show a 'film' movie by embed in the swf but
not every swf is therfore a movie.



Best regards,

Ron_1st

-- 



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] webcam weirdness

2009-08-25 Thread Ron_1st
On Tuesday 25 August 2009, Jean-Yves F. Barbier wrote:
 Ron_1st a écrit :
 ... 
  The pwc driver returns a v4l2 installation.
  The gb.v4l component can't handle v4l2 complet/correct but only v4l1 ATM
 
 normally no: ie: camstream uses the v4L1 compatibility mode that I compiled
 into my kernel (but may be the program spcifically ask for that mode, which
 could explain why it don't work with MyWebCam)

I see with KMplayer (koos de vries) the philips web cam as v4l2 device 
interface.
I hoop this explains more clear. (see note at the end)

 
  I have the same problem with the philips cams, i.e. PCVC645, and flash 
  (adobe) 
  and i'm using flashcam package http://flashcam.sourceforge.net
  A project to make Adobe Flash for Linux support V4L2 webcams or video 
  devices.
 
 I avoid using adobe products in general (not free, super-bloatted, unexistant
 security (a very small worm is enough to activate it and spy you through
 flash webcam/mike facility); and you don't know what is transmitted to 
 adobe), 
 and flash in particular, as it don't have *any* interest in it.
 (the only thing it does very well is making my old CPU jump straight to 100% 
 each time I'm obliged to use it.)

In my case the page use flash for connection and audio/video 
streaming and flash could not find the v4l2 device. 
Avoiding is no option in this case.You may say go not to that site. 
How when it is intra-web site of my employer?

 
  It's using a modified vloopback from the motion project.
  This is in use for webcam on the intraweb site.
 
 I successfuly installed Ekiga in many places: it is fully m$n compatible,
 can uses many sound codecs, and the H264 video mode has really an amazing
 quality (on a LAN, and if you have a good WC, you're close to DVD quality:)
 Try it, you'll love it.

I avoid such applications as mush as possible. I need a computer for work
not for ammusement, then I go to the cafe/bioscoop/theater etc :)

  
  Ron_1st
 
 JY_666th


Anyway some driver/modules of video devices give the v4l1 and/or v4l2
interface, the philips cam in my case only v4l2. I do have a microscoop
(microdia) and that on is also v4l2 only.
My TV-Card (terratec) using the bt8x8 driver returns both interfaces.
Another cam just only v4l1 as interface, and bad quality picture too.

Some applications have the same problem for using v4l1 and/or v4l2.
What to do if applicaton support only v4l1 and the cam the other one?

1) The vloopback is for programs using the v4l1, and _not_ v4l2 for
   using the v4l1 API to talk to a v4l2 API.

2) Flash support only v4l1 and with _specific settings_.

In my case flashcam does 1 and 2 together. Good solution for me.

Note:

The gb.v4l component was written by Daniel C. for his v4l1 cam.
Gareth did however had a v4l2 cam and he rewrote a part of the component and 
released a test application that uses his modified driver.
So ATM I would say the gb.component is more or less broken/incomplete.
If your cam is v4l1 only then you should use the D.C. version.
If your cam is v4l2 only then you should use the Gareth version.
This is what happend in the background of the component and the v4l2
is only for the cam of Gareth implemented, i.e. the colorspace. 
Both are written for specific WC with very restricted capabilities.

My active involvement ATM is only for the modified code of Gareth, 
specific the compile time error/abort, about undefinied variable 
names/values for some videodev.h versions.

I solved my other wishes/problems with hardware solution instead
of software.



Best regards,

Ron_1st

-- 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] TreeView item focus

2009-08-23 Thread Ron_1st
On Saturday 22 August 2009, Jean-Yves F. Barbier wrote:
 Fabien Bodard a écrit :
  you can do that by hand !
  
  no ?
  
  in TreeView_Expand()
 
 May be, I'm gonna dig this possibility (I don't already know all about
 widgets, so I still miss some skills)
 
 But @ first glance I don't know what could change as I'll trigger this
 event each time I expand a branch, good, 

no?
Lets assume the treeview show directories. On the side there is a listview.
If it is a file browser like konqueror/nautilus then you have a list of files.
When you click on the directory { treeview_click() } the listview get the 
file list for it.
When you click on the plus/minus { treeview_expand() } you want to expand the 
treeview.

Here the treeview_expand() event can read the directory and add found 
directories to the treeview. 
Else you must fill the treeview with ALL directories on your system and take 
the risk the directory does not exists at the moment you expand this directory. 
Also you miss the add directories after you did fill initial the treeview.

Now you want to move a file in the listview to other place. 
You scroll down in the treeview expand some directory and there expand onother. 
Now you can drag/drop from the listview a selected file to the last expanded in 
the treeview.
That is the good reason to not make the expanded directory the selected one.

 BUT if I'm still stuck with  treeview root as current leaf... how would I 
 know where I am?
 
  Last.Item.Selected=true
 
 This one is impossible, precisely because if I only expand branches
 without selecting any item, focus' stuck on the treeview root.

???
As far I know Last.Item is the one from the expand event and should work.
(treeview_Selected() event?)

  
  On some case we don't want to change the item selected so by
  default it is better like that
 
 Having the choice would be great... 
 (some cases or almost any cases? I'm pretty sure it is 'some'.)
 
 JY

Therefore if those events as _expand and _click did not exist you had to fill 
the
treeview and listview with all directories and files on your system at opening
of the form. With more the 200 directories and over 1 files it is done in 
less
then 1 nano second. Just for a filemanager example.

Best regards,

Ron_1st

-- 

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] TreeView item focus

2009-08-23 Thread Ron_1st
On Sunday 23 August 2009, Jean-Yves F. Barbier wrote:
 Fabien Bodard a écrit :
  you can do that by hand !
  
  no ?
  
  in TreeView_Expand()
  
  Last.Item.Selected=true
  
 Ok Fabien, thanks it is working :) 
 
 but I didn't find any reference to that in the documentation: even a grep
 didn't return anything:(
 grep -R Last.Item /usr/share/gambas2/help/help/* = nada
 grep -Rw Last   /usr/share/gambas2/help/help/* =
/usr/share/gambas2/help/help/changes.html:Gambas Documentation - Last 
 Changes
/usr/share/gambas2/help/help/changes.html:Last Changes
/usr/share/gambas2/help/help/help.html:a href=changes.htmlLast 
 Changes/anbsp;nbsp;nbsp;
/usr/share/gambas2/help/help/lang/stat.html:liLast modification time.
  
 I can learn quite fast, but not out of nowhere.
 
 JY

http://gambasdoc.org/help?en

1)See Language:

2)see Components for ? exactly

Find all on the same page for gb.qt treeview:
http://gambasdoc.org/help/comp/gb.qt/treeview
http://gambasdoc.org/help/comp/gb.qt/treeview/item

http://gambasdoc.org/help/comp/gb.qt/treeview/.select
http://gambasdoc.org/help/comp/gb.qt/treeview/.expand

http://gambasdoc.org/help/comp/gb.qt/control/expand

Last is not a component but part of the Language 

2)see Language Index
http://gambasdoc.org/help/lang
At the index by name:
http://gambasdoc.org/help/lang/last


A child can fly the plain :)

I go read about grep -Rw now. :(


Best regards,

Ron_1st

-- 

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] libtool management in Gambas 3 comp ilation problems

2009-08-17 Thread Ron_1st
On Monday 17 August 2009, Charlie Reinl wrote:
 Am Montag, den 17.08.2009, 09:50 +0200 schrieb Benoît Minisini:
   Am Montag, den 17.08.2009, 00:52 +0200 schrieb Benoît Minisini:
  Many thanks for the dedication and quick support!  Is this an issue
  with the changes above, or some system issue on my part?
 
  Updated to revision 2236.
  [gar...@localhost trunk]$ ./reconf-all
  aclocal: couldn't open directory `m4': No such file or directory
  autoreconf: aclocal failed with exit status: 1
  [gar...@localhost trunk]$
 
  Fedora 11, 64bit machine
 
  Thanks
  Andy

 Maybe some files I forgot to commit. Wait a little...
   
Try with revision #2237.
  
   Ubuntu 8.04.3 LTS
  
   I didn't make changes,I just compiled.
  
   Here are the log's (normally I use --disable-v4l , not this time)
  
   Charlie
  
   Charlie
  
  Is it better with revision #2240?
 Ubuntu 8.04.3 LTS
 --disable-v4l
 
 coming closer (shorter Error-list) but not touched.
 
 Regards Charlie
 

Just for the record flow as a note to forget :=)

In your first log I see for sdl the is CDPATH or so not definied.

What worries me more is next thing I found in the configure.log.
I see component GTK, QT4-OPENGL and an other QT are disabled message.
How come at the end of the configure?
 
  
  ALL COMPONENTS WILL BE COMPILED
  

Beside if make returns an error, try to do make install 
would posible also not work. 
Bit useless I think but information could be extracted.


 

Best regards,

Ron_1st

-- 

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] libtool management in Gambas 3 co mpilation problems

2009-08-17 Thread Ron_1st
On Monday 17 August 2009, Charlie Reinl wrote:
 Am Montag, den 17.08.2009, 17:42 +0200 schrieb Ron_1st:
  On Monday 17 August 2009, Charlie Reinl wrote:

8---8---8---8---8---8---8--8

  
  Best regards,
  
  Ron_1st
  
 Salut Ron (the 1st),
 
 lazy like I am, I open a terminal 
 cd to the svn-directory for gambas3
 and start a update script.
 Then I minimize that term, or go away.
 Later or when I come back, I have to enter my password and by the time
 which is used to execute the make install I see if something went wrong.
 On the terminal are not much informations, because all is 
  ../LogFilename.log 21 to a logfile.
 

Ein guten Tag Karl,
 
After sending my replay i realize you mentioned that in the past.
Good to see your 2 files in second log, 
I did shameless copy them to my tree and use it now :)

Best regards,

Ron_1st

PS
I just add the --prefix option in the ./configure line

-- 

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] re-setting several radiobuttons to false ?how

2009-08-05 Thread Ron_1st
On Wednesday 05 August 2009, Charlie Reinl wrote:
 Am Mittwoch, den 05.08.2009, 17:48 +1000 schrieb richard terry:
  If one has say 3 radiobuttons in a container
  is there anyway to set them all back to false ?
  
  If I try this code to clear some textboxes, checkboxes and radiobuttons 
  contained within a hbox, the tetboxes clear and checkboxes clear, but not 
  the 
  radiobuttons:
   
Dim hCtrl As Control
Dim hb As HBox
Dim tb As TextBox
Dim cb As CheckBox
Dim rb As RadioButton
  
   For Each hctrl In Vbox1.children
   If hctrl Is hbox Then
  hb = hctrl
 For Each hCtrl In HB.Children
   If hctrl Is textbox Then
  tb = hctrl
  tb.Clear()
   Else If hctrl Is RadioButton Then
  rb = hctrl 
  rb.value = False   
   Else If hctrl Is checkbox Then
cb = hctrl
   cb.value = False  
  End If
 Next  
   End If
Next
  
  If I directly address the radiobutton in the group by name, it still dosn't 
  clear.
  
  any help appreciated.
  
  Richard
 
 Salut Richard,
 
 https://secure.wikimedia.org/wikipedia/en/wiki/Radiobutton
 
 The Apple Human Interface Guidelines specify that one item of a radio
 button group must always be selected.
 
 Charlie
 

You can add a forth radio button in the group and set it hidden.
By setting this 4'th to true the others go false.
More correct is to set the 4'th not hidden but label it as 'None of the others'

Not only the 'Apple Human Interface Guidelines' but many other say the same.
Only on web pages the _browser_ (specific IE) does allow none is true.
In fact it is the fault of the web page developer to not set one to true.


Best regards,

Ron_1st

 ---

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Cannot compile

2009-07-23 Thread Ron_1st
On Thursday 23 July 2009, craf wrote:
 -Mensaje original-
 De: Fred Ellis m...@budweiser.com
 Reply-to: mailing list for gambas users
 gambas-user@lists.sourceforge.net
 Para: gambas-user@lists.sourceforge.net
 Asunto: [Gambas-user] Cannot compile
 Fecha: 23 Jul 2009 14:30:47 -
 
 
 
 This is my first post here, and I'm new to programming.
 
 
 
 I saw Gambas and thought I'd investigate as something to try to learn.
 
 
 
 I'm using Gambas2 on Linux (PCLOS 2009.1), however Ive hit trouble right at 
 the start.
 
 
 
 If I load Gambas2 and open the installed examples, I'm told they are 
 read-only and when I click run, they compile and run as expected.
 
  
 
 It is a permissions issue.
 
 Open the console and type what is in bold below: 
 
 p...@pc:~$ cd  /usr/local/share/gambas2/ 
 
 then enter the following: 
 
 p...@pc:~$ sudo chown -R
 username.username /usr/local/share/gambas2/examples/ 
 
 The username should you have to enter linux.This changes the owner of
 the folder to your root user.

One big note.
Thats wrong to do this way.
If you start edit the working examples you lose you valuable good information.


More correct is to copy the examples directory to you home and then do chown 
and chmod 

 
 
 However, if I move any of them to my home directory and try to compile and 
 run them, all I see is a message in the bottom left saying compiling project 
 whatever project I try but nothing runs. Similar if I try to make 
 executable, it prompts for a name and I get a similar message to that above, 
 but nothing happens. Nothing runs and no file appears to be created.
 
 
 
 However, If I make the folder in my home, my moved copy, effectively read 
 only by changing the permissions of owner for the folder from 'can view and 
 modify content' to 'can view content', I'm then told that the project is read 
 only (expected) and then if I try to compile it seems to work OK.  
 
 
 
 But now, I guess as its read only, there is no make executable option.
 
 
 
 I also tried the simple 'hello world' example entering it all from scratch, 
 and the same thing happens. I cannot get it to compile and run.
 
 
 
 I guess I'm doing something daft as a new user, but, any ideas anyone?
 
 
 
 Thanks.
 
 
 
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 


Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] PB in GTK

2009-07-16 Thread Ron_1st
On Thursday 16 July 2009, Benoît Minisini wrote:
  Benoît Minisini a écrit :
   Benoît Minisini a écrit :
   Hi,
  
   I've got a PB on display with GTK: on a DataBrowse some fields have a
   0 width and thus are hidden, under Qt display is Ok, under Gtk I found
   all hidden fields' names in the header.
  
   The police isn't respected either.
  
   JY
  
   PS: Sorry for the attachment, but talking graphics...
  
   Are you displaying a specific table?
  
   Yep
  
   Can you send me the SQL definition of the table?
  
   CREATE DOMAIN   DA_LABEL_S   AS   VARCHAR(6)
  NOT NULL CHECK(char_length(VALUE)  0);
  
   CREATE TABLE civility (
  idSERIAL   UNIQUE PRIMARY KEY,
  label DA_LABEL_S   UNIQUE,
  front BOOLEAN  NOT NULL   DEFAULT TRUE,
  date_cre  DD_TSNOT NULL   DEFAULT now(),
  date_mod  DD_TSDEFAULT NULL,
  mri_user_cre  INTEGER  NOT NULL,
  mri_user_mod  INTEGER  DEFAULT NULL
   ) WITHOUT OIDS;
  
   How you created it and the database driver you used?
  
   CREATED: sql text script (same syntax than above)
   DRV: postgresql
   PG VER.: 8.3.7-0lenny1
   BROCHETTE VER.: 2.13.1-1 (package Debian sid)
  
   JY
  
   Can you provide me the code too ?
 
  form  class attached
 
 Things should be fixed in revision #2127.
 
 Regards,
 

I just did look at the time stamp for the mail with attachment and yours
Your answer is from 9:43 so you did not sleep last night or you are
amazing good in finding and solve the problems.

For one time it could be just lucky but I see many times this happens. :)
For me it is you are simply good. 
One other point to make this statement is true for me is your project.
It is the first I see that is using the m4 system the same way as with 
macro assemblers, as I did with i.e. M80/L80 and deriviates in the CP/M 
time and my homebuild Z80 computer.

Its a very good example what can be done in C sources with real source
code aside the usual compile and make scripts.
  
I just had to say this. :)


Best regards,

Ron_1st

-- 

111.11 x 111.11 = not NULL



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] comments

2009-07-14 Thread Ron_1st
On Tuesday 14 July 2009, Benoît Minisini wrote:
  On Monday 13 July 2009, Ron wrote:
   Benoît Minisini wrote:
Hi,
   
AFAIK ther's no possibility to comment a block of code; could you add
this? (such as C comment for example).
   
JY
   
If you find a syntax that I like and that does not interfer with an
already existing one, why not?
  
   Sorry to barge in, but
  
   /*
  
don't parse this!
  
   */
  
   would be my favorite.
  
   Ron_2nd.
 
  my vote t
 
 
  Best regards,
 
  Ron_1st
 
 I tried to implement it, but didn't succeed. Code is analyzed line by line by 
 the IDE, so having such a syntax would need too much work at the moment.
 
 Regards,
 

Understand, but some thinking here.

IF bCOMMENT=true THEN ' /*
  our wonderfull
  comment just
  pasted here 
  as charlie and I does
ENDIF ' */

This does in effect the thing we wishes. so the /* */ is not the
biggest problem. It is the analyze of every line done by IDE.

We do have the cut/past of code already in the IDE.

A 'Past as Comment' could solve. 
If the paste is done by insert in every line the remark single 
quote (and 2 spaces) before adding the line to the source code for us.
We must now do it after the paste and the IDE makes garbage of it. :)

BTW
I like the C style as I use in Kate durring programming php.

/*
comment1
*/

/**
comment2
*/

// comment3

/// comment4

attached:comment-php

Here comment1 and comment3 are dimmed in color (light grey)
Goeed for just some side informations as program flow i.e.
Comment2 and comment4 are extra accented by bold middle blue color.
These are nice to mark importand comments as how to use  i.e. the function

Maybe something like that is also possible by using 1 and 2 single quotes
at the start of the comment

'   simple information
''  Importand Usage information

attached:comment-gb


Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321


attachment: comment-gb.jpgattachment: comment-php.jpg--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] comments

2009-07-13 Thread Ron_1st
On Monday 13 July 2009, Ron wrote:
 Benoît Minisini wrote:
  Hi,
 
  AFAIK ther's no possibility to comment a block of code; could you add this?
  (such as C comment for example).
 
  JY
  
  If you find a syntax that I like and that does not interfer with an already 
  existing one, why not?

 Sorry to barge in, but
 
 /*
 
  don't parse this!
 
 */
 
 would be my favorite.
 
 Ron_2nd.
 

my vote t


Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] IDE Improvement Suggestion

2009-06-25 Thread Ron_1st
On Thursday 25 June 2009, Benoît Minisini wrote:
  I'm always harping on about the difficulty of accessing forms on the side
  tree when one has many many dozens of forms, takees to scroll down and for
  your eye to locate them, then have to either click or ctrl_click to load.
 
  Suggestion: Emulate a firefox folder bookmark button on the IDE bar, put
  a 'bookmark this file' option on the popup menu and add the module name to
  the list which appears when you click the bookmark button.
 
  That way when working on a smalish number of forms from within your
  project, access would be quick and easy.
 
  Regards
 
  Richard.
 
 
 I think I will actually allow the user to organize his source files as he 
 likes. To do that, I will have to store source files in their own sub-
 directory, not inside the project root directly. Then it will be possible to 
 create folders, sub-folders, and so on. The compiler must be aware of that 
 too.
 
 Regards,
 

Using subdirectories inside the project would be very nice.
Can you take care that it is allowed to use symbolic links 
to directories somewhere else on th box?
That way you can build rapid a new project on snippit code blocks
by symlinks and a new main form in the project itself.


Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Database example

2009-06-14 Thread Ron_1st
On Sunday 14 June 2009, charlesg wrote:
 
 Hi,
 
 I have extracted what I need from the database example. I can even get it to
 do exactly what I want. But, in truth, I do not understand how it works
 exactly.
 '===
 ' FMain.class
 PUBLIC $hConnLocl AS NEW Connection
 PUBLIC $resData AS Result
 '
 PUBLIC SUB Form_Open()
   WITH $hConnLocl
 .type = sqlite3
 .Name = /home/charles/sqlite3/locl.sqlite
   END WITH 
   $hConnLocl.Open()
   $resData = $hConnLocl.Exec(select * from hist)
 END
 '-
 PUBLIC SUB btnRun_Click()
   DIM hForm AS FRequest

   hForm = NEW FRequest($hConnLocl, $resData)
   hForm.show
 END
 '===
 ' FRequest.class  
 PRIVATE $hConnlocl AS Connection
 PRIVATE $rData AS Result
 '-
 PUBLIC SUB _new(hConnlocl AS Connection, rData AS Result)
   DIM hField AS ResultField
   DIM iInd AS Integer
   
   $hConnlocl = hConnlocl
   $rData = rData
   tbvData.Rows.count = 0
   tbvData.Columns.count = $rData.Fields.Count
   
   FOR EACH hField IN $rData.Fields
 WITH hField
   tbvData.Columns[iInd].text = .Name
   tbvData.Columns[iInd].width = 60
 END WITH 
 INC iInd
   NEXT
   tbvData.Rows.Count = $rData.Count
 END
 '-
 PUBLIC SUB tbvData_Data(Row AS Integer, Column AS Integer)
   $rData.MoveTo(row)
   tbvData.Data.text = Str($rData[tbvData.Columns[column].text])
 END
 '===
 
 My lack of understanding hinges around:
 1.hForm = NEW FRequest($hConnLocl, $resData)
 2.$hConnlocl = hConnlocl
   $rData = rData
 3.The help says _data is called when the tableview 'needs data'. At what
 point in the code does it need this data?
 
 Any fog elimination welcomed.
 
 rgds
 

For answer on the _Data event.
Asume you have a database of 1 records and 200 columns then
it wil not fit on your form with the tableview.
Also it is not importand to fill the cells you can't see.
However using the scrollbars you can navigate over the records.
At that moment when there are new cells comming visible the _Data
event happnes and ask for the data to show in the cell.
Cells that goes hidden drops there content to save memory space in
the Xservers memory pool.

When other forms/windows overlay your table view they also do not
ask cell data. You can't see it so why asking and use memory :)

Second, by only asking with _Data event for the visible cells makes
your tableview shows quick the actual visible info. 
Think of the time to fill 1 row times 200 collumns 
where only i.e. 4rows and 5 columns are visible.

 

Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321



--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Very OT way back when

2009-06-05 Thread Ron_1st
On Friday 05 June 2009, Ron wrote:
 Benoît Minisini wrote:
  
 
  A few megabytes used there. It reminds me my Amstrad CPC464 when I had 48K 
  memory free... :-)
 

 48K wow!
 
 I had a Sinclair ZX81 once, used it on a camping holiday, it worked on 
 the car battery of my dads car.
 And it had 1K of memory, thats a lot if you need to retype it everytime 
 you reset your computer, didn't had any other storage at that time. ;-)
 
 Regards,
 Ron_2nd.
 
 


The good old times :)

I had TR80 with 4kb (black/white screen) and build myself a memry interface
to expand to 48K, later via mapping as done by MSX to 2024KB. somewhere 1983.
Did run TRS-DOS and CP/M (zcpr3) with task switching at same time.
CPC64 was a nice thing too.



Best regards,

Ron_1st

-- 

111.11 x 111.11 = 12345.678987654321


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Disable controls by Tag

2009-05-28 Thread Ron_1st
On Thursday 28 May 2009, Jesus Guardon wrote:
 Hi all
 
 It seems a basic question, but I'm unable to get it to work.
 I need to enable/disable a group of mixed controls in the Main Form, but 
 instead of doing individually, I'd prefer to do so by iterating.
 
 Following is the code I'm using and it gives an error Wanted string, 
 date or integer, got function instead
 
 What I'm doing wrong?
 
 PUBLIC SUB btnQuick_Click() 'toggle button
 
  DIM hCtl AS Control
 
  IF btnQuick.Value = TRUE THEN
  FOR EACH hCtl IN FMain.Controls
  IF hCtl.Tag = exclude THEN hCtl.Enabled = FALSE
  'DEBUG hCtl.Tag
  NEXT
  ELSE
  FOR EACH hCtl IN FMain.Controls
  IF hCtl.Tag = exclude THEN hCtl.Enabled = TRUE
  NEXT
  ENDIF
 
 END
 
 Regards
 
 Jesus
 

Not every control will have a .Tag property could be one of the problems.
Same can be for the .Enabled property
Also using Tag for other purpose could do something bad.
Best would be to print the object type and .ID property for the control under 
test
to see wich control has the problem.

Controls written in gambas could be suspected I think.
Basicly spoken the method used does not look strange to me
and I did long time ago something like this the same way.
I found also a problem and had the exclude a few object by type
checking. As far I remember I was also using the .Tag property.



Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Disable controls by Tag

2009-05-28 Thread Ron_1st
On Thursday 28 May 2009, Jorge Carrión wrote:
 ¿Perhaps trying sonething like this?
 
 PUBLIC SUB btnQuick_Click() 'toggle button
 
   DIM hCtl AS Control
 
   IF btnQuick.Value = TRUE THEN
   FOR EACH hCtl IN FMain.Controls
   TRY hCtl.Enabled = (hCtl.Tag  exclude)
   NEXT
 
 it Is not very elegant but it works, I guess.
 Regards
 Jorge
 


I'n happy it works now at Jesus Guardon's box.

The TRY is also a nice way. You can try it to get more
speed in the loop and it gives a more nice text layout.

Against that way is you forget why you use the trick
and now it is good help to know a method to prevent
the error.
Any way if you start using the TRY method add a remark 
why it is used.



Best regards,

Ron_1st

-- 


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] server socket problem

2009-05-28 Thread Ron_1st
On Monday 25 May 2009, guiodic wrote:
 
 Ron_1st wrote:
  
  No, this is not correct.
  
  My internet connection is 20Mbits (20/8 = 2500 KByte/second)
  When I write 1Kb (8kbit) it goes with 20Mbs speed on the wire.
  
  Using packets of 1 KByte every second is a transfer rate (bandidth)
  The average is then the wished 1 Kbits using 1/2500 second and the
  remainder of 2499 Kbits is free for other tasks.
  
  
 
 Well, ok, my English is poor so I think there was a misunderstatement.
 
 But my problem now is how to avoid freezes caused by the WRITE instruction. 
 If this can give me a way to calculate how many kb the client receives in 1
 second, this is very good too.
 
 So, I think it is possible to calibrate the pause when the first freeze
 occours, but is a dirty solution, I prefer to avoid the freeze.
 


No problem, my english grammar is also bad, i'm dutch native :)
Hope the problem is solved after I have read the other comments.

Best regards,

Ron_1st

-- 

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request - Package Management

2009-05-21 Thread Ron_1st
 AND initialize variables.
   DIM count AS Integer
   ' The values are initialized at Zero, by above command

Wrong. In C,  int Count;
The value is not set to zero here in Basic (for gambas).
The name is specified and a memory location is reserved for
storage of the value with the name 'count'
If you ask in VB it will tell you the value is 'Nothing' or 'Null'
In C/C++ it works the same, it declares a name and memory location.
For gambas it does or should do the same, but if you do
  count = count +1 
and may by the variable handler seen the value is not set (Null) and 
preset to 0 (zero) for the expresion evaluator and result is then 1.
In PHP program language it also say Null and the increment results to 1. 

   
   DIM c AS String
 
   ' READ , PRINT , AND count characters.
   PRINT Enter characters (Ctrl+D to quit): 
   LINE INPUT c
   PRINT c

The (LINE) INPUT (and PRINT) are line oriented text statements.
the getchar in C is a character based statement, it wait for key press and 
returns
The INPUT waits for the CR charactercode 13 dec. or 0D hex. and returns the 
buffer
filled with pressed keys.

For the print you will see the line behaviour by the way the single letters are 
every time on a new line.

   count += Len(c)

You asume here len(c) = 0 or 1. Wrong it is 0, 1, 2 or even more.
C is variable type of string and that can hold 0 to 1 characters.
The type of Byte or Char should be the more correct one.

   WHILE NOT Eof      ' This doesnt works

No wonder. Eof what?
As mentioned in a previous post the Eof function belongs to the stream object.

Gambas Wiki says:http://gambasdoc.org/help/lang/eof?view
  Result = Eof ( [ Stream AS Stream ] ) AS Boolean'
  Returns TRUE if we are at the end of the stream. 
  If Stream is not specified, then the standard input is used
so While Eof() should be the correct line.
  See LINE INPUT for an example:http://gambasdoc.org/help/lang/lineinput?view

      'PRINT c1
      LINE INPUT c
      count += Len(c)
      PRINT c
   WEND 

Why len(c), You want/are working with single character input. 
Just 'INC count' or 'count += 1' is enough. :)


   ' PRINT the number OF characters printed.
   PRINT count   characters printed.
   
END

Stream  Input/Output functions:http://gambasdoc.org/help/cat/stream?view
  READ:http://gambasdoc.org/help/lang/read?view 
  READ [ # Stream , ] Variable [ , Length ]
  LINE INPUT c should be READ c,1 or READ c

  WRITE:http://gambasdoc.org/help/lang/write?view
  WRITE [ # Stream , ] Expression [ , Length ]
  PRINT c should be WRITE c,1 or WRITE c

These two are the best to simulate the char i/o in C/C++

Try next


PUBLIC SUB Main()

  ' Declare AND initialize variables.
  DIM c, count AS Integer
   
  DIM cha AS String
 
  ' READ , PRINT , AND count characters.
  PRINT Enter characters (or Press Carriage Return to quit): 
  READ cha,1

  WHILE (cha  KEY.Return)
WRITE cha,1
    count += 1
READ cha 'get next character
  WEND 

  WRITE cha
 
 ' PRINT the number OF characters printed.
  PRINT count   characters printed.
   
END


Best regards,

Ron_1st

-- 

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Using Driver for Firebird

2009-05-15 Thread Ron_1st
On Friday 15 May 2009, cristian abarzua wrote:
 You know where I could find information on how to do?
 
 Thanks.
 
 2009/5/14 Sergio A. Hernandez info.g...@gmail.com
 
  Use the generic driver ODBC to interact with Firebird or any other
  Database that supports this standard like MS SQL Server or Firebird in
  this case.
 
  On Thu, May 14, 2009 at 10:14 AM, cristian abarzua abarz...@gmail.com
  wrote:
   Hello.
  
   Does anyone know how to connect to Firebird using the driver that comes
  with
   Gambas?.
  
   Thank you
  
  --
   The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
   production scanning environment may not be a perfect world - but thanks
  to
   Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
  i700
   Series Scanner you'll get full speed at 300 dpi even with all image
   processing features enabled. http://p.sf.net/sfu/kodak-com
   ___
   Gambas-user mailing list
   Gambas-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/gambas-user
  
 
 
  --
  Crystal Reports - New Free Runtime and 30 Day Trial
  Check out the new simplified licensing option that enables
  unlimited royalty-free distribution of the report engine
  for externally facing server and web deployment.
  http://p.sf.net/sfu/businessobjects
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 --
 Crystal Reports - New Free Runtime and 30 Day Trial
 Check out the new simplified licensing option that enables 
 unlimited royalty-free distribution of the report engine 
 for externally facing server and web deployment. 
 http://p.sf.net/sfu/businessobjects
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
http://bother.bcrook.com/?q=odbc+linux

Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Execute Gamabs?

2009-05-05 Thread Ron_1st
On Tuesday 05 May 2009, Stefan Miefert wrote:
 Message
 
 No protocol defined
 
 -Ursprüngliche Nachricht-
 Von: Werner [mailto:wd...@netfront.net] 
 Gesendet: Dienstag, 5. Mai 2009 15:28
 An: mailing list for gambas users
 Betreff: Re: [Gambas-user] Execute Gamabs?
 
 Stefan Miefert wrote:
  Hello,
 
  the gambas program is a gtk program. When I start it via console I get an 
  error. Canot open display
 
  how can I fix this? 
 
  -Ursprüngliche Nachricht-
  Von: Stefano Palmeri [mailto:rospolo...@tiscali.it] 
  Gesendet: Dienstag, 5. Mai 2009 14:35
  An: mailing list for gambas users
  Betreff: Re: [Gambas-user] Execute Gamabs?
 
  Il martedì 5 maggio 2009 14:22:36 Stefan Miefert ha scritto:

  Hello,
 
  i want to execute a gambasprogramm like this
 
  exec(test.gambas)
 
  but how can I start a gambas programm in the terminal?
 
  I get always the answer not found
 
  
 
  You have to copy test.gambas in one of the directory of your
  PATH variable.
 
  On console type:
 
  echo $PATH
 
  to know the directories where executables are searched for. Just
  copy test.gambas in one of them (/usr/local/bin or /usr/bin).
 
  In Gambas you could know the PATH variable with:
 
  PRINT Application.Env[PATH]
 
  Saluti,
 
  Stefano
 Before you run your program, you could try to type
 
 xhost +
 
 Does it make a difference?
 
 Regards
 Werner
 
 
 
 PS: You might get more people willing to respond if you refrain from top
 posting. It really messes up the chronology.
 

interesting.

Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [Fwd: My gambas stoped working...]

2009-04-23 Thread Ron_1st
On Thursday 23 April 2009, arbelmichal wrote:
 Ithink gambas 2.12
 Arbel
 
 On Thu, 2009-04-23 at 15:08 +0800, Werner wrote:
  arbelmichal wrote:
   ubuntu 8.10 gambas2
   Arbel
   On Thu, 2009-04-23 at 11:06 +0800, Werner wrote:
 
   arbelmichal wrote:
   
   
  
   Subject:
   My gambas stoped working...
   From:
   arbelmichal arbelmic...@gezer.org.il
   Date:
   Sun, 19 Apr 2009 23:20:35 +0300
   To:
   gambas-user@lists.sourceforge.net
  
   To:
   gambas-user@lists.sourceforge.net
  
   Content-Type:
   text/plain
   Message-ID:
   1240172433.22317.5.ca...@arbelmichal-desktop
   MIME-Version:
   1.0
   X-Mailer:
   Evolution 2.24.3
   Content-Transfer-Encoding:
   7bit
  
  
   Hi
   Please read this thread and see if you can help me... I got project that
   I am working on and I hed to stop beacuase my Gambas died...
   Thanks 
   Arbel
  
   http://www.linuxbasic.net/index.php?topic=466.0
 
 
   What distribution/version are you using?
   Which version of Gambas?
  
   
  gambas 2.what?
  From what I understand, it had been working before, is that correct?
  
  
  --
  Stay on top of everything new and different, both inside and 
  around Java (TM) technology - register by April 22, and save
  $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
  300 plus technical and hands-on sessions. Register today. 
  Use priority code J9JMT32. http://p.sf.net/sfu/p
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 --
 Stay on top of everything new and different, both inside and 
 around Java (TM) technology - register by April 22, and save
 $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
 300 plus technical and hands-on sessions. Register today. 
 Use priority code J9JMT32. http://p.sf.net/sfu/p
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 


Arggg.
My crystal bowl is broken.


Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] More null problems

2009-04-20 Thread Ron_1st
On Monday 20 April 2009, Stephen Bungay wrote:
    It is the nature of radio buttons to allow only one in a set to be 
 toggled on, If you really want to go that route then I would suggest 
 that you use checkboxes instead of radio buttons, A better way (IMHO) is 
 to place a third button on the form labelled as Unknown and set that 
 one when the gender is a null.
 

IMHO indeed the right solution.

But when the person is a shemale/transgender ??? :)
The checkboxes fits well in that case.
Still the radios are better (IMHO) and a 4'th should be add too?
  'Unknown', 'Male', 'Female', 'Cross'

Just the modern times are comming :)

Best regards,

Ron_1st
-- 

PS. Forgotten, the people that are just an animal.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Programming beginner: first program won't run?

2009-04-19 Thread Ron_1st
On Monday 20 April 2009, phohammer wrote:
 
 Ron_1st wrote:
  
  On Sunday 19 April 2009, phohammer wrote:
  I would do as you said with the Object example, but those of infinite
  wisdom
  made it read-only. 
  
  When you make a copy to your home directory or the place where you want to
  store your projects it is automagic not readonly any more.
  
  copy /usr/local/share/gambas3/examples/Basic/Object 
  to /home/phohammer/gambas/projects/ 
  
  (note: local is on my box, gambas3 may be gambas2)
  
  If you check you will see your name as owner and read/write
  for you is OK
  
   
  The 'infinite wisdom' is to prevent you to damage a valuable example
  you need the next time as possible template in your next project.
  It should not to be to difficult to make a copy to your home place.
  
  This copy should test first for good working before you start
  working with it.
  
  
  
  Best regards,
  
  Ron_1st
  
  
 
 I tried to do this in terminal but I get this:
 
  [r...@localhost tr]# copy /usr/share/gambas2/examples/Basic/Object to
 /home/tr/Documents/programming junk
 bash: copy: command not found
 [r...@localhost tr]# apt-get install copy
nice try but using the word copy in a conversation does not
always mean the same letters as command. :)

You should really read some help for linux. See below

 Reading Package Lists... Done
 Building Dependency Tree... Done
 E: Couldn't find package copy
 
 So I used my file manager to locate Object in
 /usr/share/gambas2/examples/Basic/Object then right click, copy, 
 paste to my desired location. 
The easy way and the way I did in my previous post to check
owner and rights.

 When I open the example and try to run it, it 
 reacts the same as my own project and does not run.

That is very strange. Did you try also another example?

 
 
 Ron_1st wrote:
  
  BTW Program is working if you make the right correction.
  
  Best regards,
  
  Ron_1st 
  
 
 What does that mean, you got it running?

I did unpack your code archive, started my gambas IDE
select the project and used compile all.
Then run and it did not work.
It told me it could not find FStart.
So I take a look in the code and made a correction.
After compile it did work as your want it to do.

This brings me to a question.
Did you change the look of your windows in PCLinux?
Plastic has/had some problems by some people with gambas.
(it is default in PCLinux for the Windows look and feel)
I use KDE2 as theme in PCLinux2007 and Kubuntu-8.04.
This because you did not mention the error message popup.


 bash: copy: command not found
 [r...@localhost tr]# apt-get install copy
nice try but using the word 'copy' in a conversation does not
always mean the same letters as command. :)


There is alread many help installed and the first try you 
could do when a command does not work is typing 
t...@pclinux:~$ man cp

CP(1) User Commands
NAME
   cp - copy files and directories

SYNOPSIS
   cp [OPTION]... [-T] SOURCE DEST
   cp [OPTION]... SOURCE... DIRECTORY
   cp [OPTION]... -t DIRECTORY SOURCE...

DESCRIPTION
   Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
.
and many more lines of help.

   
 [r...@localhost tr]# copy /usr/share/gambas2/examples/Basic/Object to
 /home/tr/Documents/programming junk
 bash: copy: command not found
 [r...@localhost tr]# apt-get install copy
 Reading Package Lists... Done
 Building Dependency Tree... Done
 E: Couldn't find package copy

What the hell, does linux not have a copy command :)


True, the Windows 'copy' command does not exist in linux :)
It is typed as 'cp' in linux. (move is mv, remove is rm)

Second: cp your_source to your_destination junc will still not work
Just as in Windows the same rule exist in Linux based systems.
Filenames and paths with spaces inside should be quoted.
The single ' is the most safe to use and allows  in names.
The double  is need when a singl quote ' is in the name.
Ohhh and the 'to' is not need in linux (AFAiK even forbidden to use).

You need to or should type: 
  cp /usr/share/gambas2/examples/Basic/Object  '/home/tr/Documents/programming 
junk'


When you buy a new car/dvd-player/ipod/windows/camera/mobile-phone you read the
userguide, why not when starting using linux?

For the commandline help you could do for 'The Advanced Bash-Scripting Guide':
  apt-get install abs-guide
In /usr/share/doc/abs-guide you find also the example directory, very helpfull.

For more 'Documentation and examples for the The GNU Bourne Again SHell'
  apt-get install bash-doc

In /usr/share/doc you will find it, and many more.

I/you know, you/I was born with acknowledge of Windows so it is much easy :)



I hope thist will help a bit and keep face up, time will learn.
Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What

Re: [Gambas-user] databrowser.delete and databrowser.filter

2009-04-14 Thread Ron_1st
On Tuesday 14 April 2009, nando wrote:
 dim uno as string
 uno=datacontrol1.value
 databrowser1.filter =clientcode=uno
 
Chane it to 

databrowser1.filter =clientcode=  uno


Best regards,

Ron_1st
-- 

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MoveFirst MoveNext etc

2009-04-09 Thread Ron_1st
On Thursday 09 April 2009, Jeff wrote:
 What is the thinking behind a Result.MoveFirst() and MoveNext()
 returning a false if a record is there?
 
 So, to read round a result set I end up using a Boolean with a double
 negative:
 
 noMoreRows = myResult.MoveFirst()
 WHILE NOT noMoreRows
   PRINT myResult!id
   noMoreRows = myResult.MoveNext()
 WEND 
 
 I would have expected the MoveFirst() and MoveNext() return true if a
 record found, so I'm wondering why it's that way round.
 Or, is there a better loop structure to use so that it reads better?
 
 

The only logic I see is the way it is done in C/C++

If result returned is 0 means OK else the value other then
0 means the error code for the occured error.
-1 means i.e. syntax
-2 means i.e. invalid something

In C/C++ the IF THEN use a value instead the Basic boolean True/False
Symbolic 0 equals to False, other value to True 

Just in good old practice for Basic a question in IF ... THEN 
was/is always true.
So your way the next code is right
  IF myResults.MoveNext() then
' ok the movenext was OK
  ELSE
' oops a error
  ENDIF

For gambas in relation to the MoveXXX() this is reversed by Benoit.
It means with false ( equals to 0) there was no error

  IF myResults.MoveNext() then 
' returned not 0 (zero) 
' oops a error
  ELSE
' ok the movenext was OK
' return was 0 (zero)
  ENDIF

So you can use: 

Const NOERROR as boolean=false

  IF myResults.MoveNext() = NOERROR THEN 
' ok the movenext was OK
' return was 0 (zero)
  ENDIF

  

Personal I do not like the Gambas way, IMHO the myReult.MoveNext() 
should return TRUE if succes and FALSE when error occured.

I use now the method with NOERRO to get a clean Basic readable code.
NOERROR makes more sence then False here.


Best regards,

Ron_1st


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Nested Socket Write does not work

2009-03-06 Thread Ron_1st
On Thursday 05 March 2009, CARLOS GTR wrote:
 Hi, I am working in chat program in Gambas that works with TCP sockets.
 The problem is that the clients that connect to the server need to receive
 the list of the contacts that are online (as any chat), The Server has the
 list but cant send it.
 
 This is the code:
DIM y, x AS Integer
FOR x = 0 TO Client.Max
   FOR y = 0 TO listacontactos.Count - 1
  ' Message(“dgdsgfds”) If I uncomment this line everything works
  WRITE #Client[x], [  y  ]  listacontactos[y].Text,
 Len(listacontactos[y].Text) + 4
   NEXT
NEXT
 
 That code with the message instruction commented only send 1 contact, when I
 uncomment that dummy message line everything works perfect.
 
 Another interesting fact is that If I put break points for the nested FORs
 and see what happens the programs runs perfect even without the dummy
 message instruction.
 
 Hope somebody could help. Thanks in advance
 

What happens if listacontactos.Count is 200 items?

You do Len(listacontactos[y].Text) + 4 but that does not fit for item 100

DIM y, x AS Integer
DIM towrite AS String
FOR x = 0 TO Client.Max
  FOR y = 0 TO listacontactos.Count - 1
   ' Message(“dgdsgfds”) If I uncomment this line everything works
towrite=[  y  ]  listacontactos[y].Text
WRITE #Client[x], towrite , Len(towrite)
  NEXT
NEXT

would do the job more correct.


Best regards,

Ron_1st

-- 


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] simple replace question

2009-03-04 Thread Ron_1st
On Wednesday 04 March 2009, Rolf-Werner Eilert wrote:
 Bruce schrieb:
  On Thursday 05 March 2009 01:34:29 Rolf-Werner Eilert wrote:
  newString = Conv(st, UTF-8, ASCII)
 
  Replace(st, ½, .5)
  
  Thanks RW,
  
  That got me started at least.
  
  So far:
  TRY wx = Conv(lp1[5], UTF-8, ASCII)
  TRY wx = Replace(wx, ½, .5)
  TRY wx = Replace(wx, ¼, .25)
  TRY wx = Replace(wx, ¾, .75)
  seems to work.
  
  I had to put the TRY's in because 3/4 doesn't seem to handle properly 
  otherwise.  
  
 
 No wonder, because 3/4 doesn't exist in ASCII. This is what my character 
 table program says about this character:
 
 UTF-8: 0xC2 0xBE
 UTF-16: 0x00BE
 
 C-Oktal terminiertes UTF-8: \302\276
 Dezimale XML-Entität: #190;
 
 So you should look for a string consisting of C2 and BE, that is 
 chr$(194) and chr$(190) as we can presume this is UTF-8. Try this:
 
 xStr = chr$(194)  chr$(190)
 wx = Replace(wx, xStr, .75)
 
 Does this run? Or even
 
 wx = Replace(wx, chr$(194)  chr$(190), .75)
 
 should work. At least if I'm right, but I never tried this.
 
 
 Rolf
 

http://www.eki.ee/letter/chardata.cgi?ucode=00BE

found in charsets:  8859-1 (BE); 8859-13 (BE); 8859-8 (BE); 8859-9 (BE); 
CP1116 (F3); CP1122 (B9); CP1252 (BE); CP1254 (BE); CP1255 (BE); CP1256 (BE); 
CP1257 (BE); CP1258 (BE); CP775 (F3); CP850 (F3); CP857 (F3); CP863 (AD);

Dangerous the differences between char sets.
I was suprised it is not in ASCII also.
I know my Epson fX80 with IBM supplied ROM did have it. (ancient history :) )

Ron

 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source participation
 -Receive a $600 discount off the registration fee with the source code: SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 


Best regards,

Ron_1st

-- 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Reply: No EXEC Output but Works in Terminal

2009-03-04 Thread Ron_1st
On Wednesday 04 March 2009, Jussi Lahtinen wrote:
 I tried your code... (first I did move test.sh to execution folder).
 With me, this;
 EXEC [sh, Application.Path / test.sh] TO sOutPut
 works well.
 
 But this;
 EXEC [sh   Application.Path / test.sh] TO sOutPut
 does NOT work (no output).
 So EXEC command is pretty picky. Benoit, comments?
 
 Also, if words.txt is in wrong place, execution freeze.
 Do this;
 
 PRINT sh   Application.Path / test.sh
 Put the output to terminal to see if you got right paths.
 
 Cannot say more...
 
 
 Jussi
 
 
 
 On Wed, Mar 4, 2009 at 5:24 PM, A Person 5t3c7...@nf.sympatico.ca wrote:
  Good Day . . .
 
  Thank You all except the one that told me to read the EXEC docs. I read
  that many times and tried many variations including trying getting INPUT
  and OUTPUT to work. But nothing worked. The one problem that I have with
  Gambas is that the docs are not adequate to a novice user. I tried
  writing docs for a project but I did not know enough.
 
  Before I submitted this I used the full path but I changed it in the
  demo so that a tester would not have to change anything.
 
  I tried EXEC [full path/test.sh] WAIT to sOutPut but it died. top
  showed nothing running.
 
  Can you show me an example of EXEC . . . WAIT with a variable returned?
 
  Thanks
 
  Paul
 
 

BTW
What is the content of the test.sh?

Does it start with '#!/bin/bash' or '#!/bin/sh' ?
If not your command shouls be '/bin/bash /full path/test.sh'


Just a tip, use as command (/home/usr/paul/bin/text.sh)
Yes indeed surround your command with ()
This force all output by bash and command to 1 output for process_read

Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature requests

2009-03-04 Thread Ron_1st
On Wednesday 04 March 2009, M0E Lnx wrote:
 I have a couple of requests for the gb.gtk component (and maybe even
 the gb.qt as well)
 
 It's about progressbars.
 I'd like to use a progressbar like alternating progressbar (like the
 one used in the gparted windows while executing changes (top one))
 alternates from left to right
 I'd like to be able to display some text inside the progressbar ...
 not just the value, but a way to display my own string in there
 
 Is this at all possible?
 

Yes!!



Best regards,

Ron_1st

-- 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] last instert ID in sqlite3

2009-03-04 Thread Ron_1st
On Wednesday 04 March 2009, Jaume Casado wrote:
 Hi there.
 
 I'm looking for a function or method in the gb.db component to obtain the ID
 of the last element inserted into the database. With the methods Create,
 Edit y Find, we can run our Gambas app independently from the chosen engine
 database. That's why I wanna know if there is any similar solution to get
 the last insert id (of an autoincrement field in a table). Now I am working
 with sqlite3 and I don't find the manner. Thus, I did it with the specific
 sql query:
 
 hResult = hConn.Exec(SELECT last_insert_rowid() AS id)
 RETURN CInt(hResult[id])
 
 But doing it like this is not database engine independent, because in MySQL
 the query was:
 
 SELECT LAST_INSERT_ID();
 
 Searching a little, I've found that the MySQL component includes it already:
 22:23 on Oct 25, 2008gambasCommit by dvillalobos :: r1652
 /gambas/trunk/gb.db.mysql/src/gb.db.mysql/ (.component .info .project
 _MySQL.class): 
 (linkhttp://gambas.svn.sourceforge.net/viewvc/gambas?view=revrevision=1652)
 
 
 [GB.DB.MYSQL]
 NEW: Added the function LastInsertId to _MySQL class, that returns the last
 insert id for the current user.
 
 Then, Gambas lets you to get the last insert id in a transparent manner?
 
 Thank you a lot,
 Jaume
 
 

I do belive dvillalobos did use 'LastInsertId' for the gambas name.

It is translated in background to the MySQL 'SELECT LAST_INSERT_ID();'
and the mantainer of the sqlite version can/should use the same gambas name
and translate it to 'SELECT last_insert_rowid()'.
Result will be a common name not conflicting with the sql command itself.





Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Two minor bugs

2009-03-04 Thread Ron_1st
On Wednesday 04 March 2009, Benoît Minisini wrote:
 I (finally) created a new property in the GridView class (and so in its child 
 class TableView): GridView.AutoResize. 
 
 When this property is not set, the last column is not automatically stretched 
 anymore.
 
 You get it in the revision #1895. The gb.gtk version has not been implemented 
 yet.
 
 Enjoy it. :-)
 
 -- 
 Benoît
 

Thank you master of universe :)


Best regards,

Ron_1st

-- 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems with Gambas 3 installation on Kubuntu

2009-02-22 Thread Ron_1st
On Sunday 22 February 2009, Charlie Reinl wrote:
 Am Sonntag, den 22.02.2009, 08:47 +0100 schrieb Benoît Minisini:
   On Sunday 22 February 2009, Benoît Minisini wrote:
 Ok done the job for gambas-3 svn-1883.


 First take note Charlie and me have the same errors
 Both are using kubuntu 8.04 instead of 8.10 !!
   
Aaaa! Sorry I have understood that you used Kubuntu 8.10 - This is the
reason why I installed Kubuntu 8.10.
  
   I did write this in al the mail/logs.
  
I have fixed an uninitialized variable in gbi.c source code that 
explains
the problem you get. The gcc compiler told nothing about that, so I
didn't see it. Moreover, this uninitialized variable was for a gbi
feature that I don't even use!
  
   Glad you found it, even the most experienced programmers can sometimes do
   wrong things, I do too after 2009-1976=33 years of programming. (intel
   4040)
  
So, please test the revision #1885 and tell me!
  
   In process.
  
If it solves the problem, then you will be happy, and I will find a bug
in the gcc compiler. If it don't, then I will call a marabout.
   
And do not take my rants against Ubuntu seriously. :-)
  
   What rants?
   The way you like Mandriva. h
  
   It was Mandrake, a man spitting fire into nowhere?
   It was Connectiva, nothing connecting outside Brasil?
   So they joined to Mandriva but the correct name should be
   ConDrake, the connecting part and a drake in doing the rest.
  
   Just LOL. :)
  
  I don't rant against Ubuntu for management reason - I have nothing to say 
  about management.  :-)
  
  I rant against Ubuntu for technical reasons: problems with Gambas 
  compilation 
  in the past, releasing an outdated version of Gambas, taking unstable 
  packages 
  from Debian and providing them even if they are buggy...
  
  Technical problems in Mandriva are more related to their sometimes buggy 
  and 
  badly finished control center.
  
  
Usually, a random
behaviour always come from an uninitialized variable, but I was confused
by the gcc's silence and the fact that I thought you used Kubuntu 8.10.
  
   This is the source of the gv4l problem too.
   The 8.04 team did use a older v4l2 package and the 8.10 a newer version.
   I did not say they created the videodev themself as Garret suggest I do.
  
Regards,
  
   gcc silence sounds bad. But to be safe I also take notice of compiler
   warnings. It gives a sign of possible bad/unexperience programming 
   practice
   too. For home projects not so important but as distributed opensource???
  
  Warnings are not important if you know what you are doing. But an 
  uninitialized variable is always a bug in your program - except if you are 
  writing OpenSSH :-). The fact that it is a warning is strange, even if the 
  compiler knows that for sure (sometimes he cannot because of code 
  branches). 
  And when it does not tell anything, what can I do?
  
  Regards,
 
 Salut Benoit, Ron,
 
 Ausgecheckt, Revision 1885.
 Revision 1885.
 
 works for me, I finally start also gambas3.
 
 Thanks 
 Charlie
 

Yeah,

Has taken a long time but it's finally done.
It has also a beautifull designed picture in the empty workspace.
I will miss the gamba with the blinking eyes, has been a good friend. :(


Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems with Gambas 3 installation on Kubuntu

2009-02-22 Thread Ron_1st
On Sunday 22 February 2009, Charlie Reinl wrote:

---8

 
 Salut Benoit, Ron,
 
 Ausgecheckt, Revision 1885.
 Revision 1885.
 
 works for me, I finally start also gambas3.
 
 Thanks 
 Charlie
 

Yes,

Has taken a long time but it's finally done.
It has also a beautifull designed picture in the empty workspace.
I will miss the gamba with the blinking eyes, has been a good friend. :(


Best regards,

Ron_1st

-- 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems with Gambas 3 installation on Kubuntu

2009-02-21 Thread Ron_1st
On Sunday 22 February 2009, Benoît Minisini wrote:
 
  Ok done the job for gambas-3 svn-1883.
 
 
  First take note Charlie and me have the same errors
  Both are using kubuntu 8.04 instead of 8.10 !!
 
 Aaaa! Sorry I have understood that you used Kubuntu 8.10 - This is the reason 
 why I installed Kubuntu 8.10.

I did write this in al the mail/logs.

 
 I have fixed an uninitialized variable in gbi.c source code that explains the 
 problem you get. The gcc compiler told nothing about that, so I didn't see 
 it. 
 Moreover, this uninitialized variable was for a gbi feature that I don't even 
 use!

Glad you found it, even the most experienced programmers can sometimes do
wrong things, I do too after 2009-1976=33 years of programming. (intel 4040)

 
 So, please test the revision #1885 and tell me!

In process.

 
 If it solves the problem, then you will be happy, and I will find a bug in 
 the 
 gcc compiler. If it don't, then I will call a marabout.
 
 And do not take my rants against Ubuntu seriously. :-) 

What rants?
The way you like Mandriva. h

It was Mandrake, a man spitting fire into nowhere?
It was Connectiva, nothing connecting outside Brasil?
So they joined to Mandriva but the correct name should be
ConDrake, the connecting part and a drake in doing the rest.

Just LOL. :)

 Usually, a random  
 behaviour always come from an uninitialized variable, but I was confused by 
 the gcc's silence and the fact that I thought you used Kubuntu 8.10.

This is the source of the gv4l problem too.
The 8.04 team did use a older v4l2 package and the 8.10 a newer version.
I did not say they created the videodev themself as Garret suggest I do.

 
 Regards,
 

gcc silence sounds bad. But to be safe I also take notice of compiler warnings.
It gives a sign of possible bad/unexperience programming practice too.
For home projects not so important but as distributed opensource???

Best regards,

Ron_1st

-- 

And again I forgot to remark the bad lines in gv4l2.c so the make.log in 2 
files.
 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems with Gambas 3 installation on Kubuntu

2009-02-19 Thread Ron_1st
On Friday 20 February 2009, Benoît Minisini wrote:
 So, Ron, can you try to do the same thing as me: compile the latest revision, 
 but from scratch, by doing a full checkout in a new directory, and by 
 removing 
 everything related to Gambas 3 on your system before.
 

Yes, I will do as quick as possible today, I must go to work. 

 If it does not work then, I think I will put the Ubuntu team in a plane and 
 make crash them on a lost island. :-)

LOL

 
 Regards,
 


Best regards,

Ron_1st

-- 


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 2 - Gambas 3

2009-02-18 Thread Ron_1st
On Wednesday 18 February 2009, Benoît Minisini wrote:
  Benoit,
 
  I trying to compile and install Gambas 3 from the svn trunk and I have
  the same problem
  like Rolf.
 
  When I start the compilation by:  make=  I have the same
  error on :  cannot find -lqt-mt
 
  I tryed to compile Gambas 3 on Fedora 7 and Fedora 10, and the both
  case I have the same problem.
 
  I verify the library and all it's ok: on Fedora 10
 
  [r...@linusky ~]# ls -l /usr/lib/qt-3.3/lib/
  total 19380
  -rw-r--r-- 1 root root 7897526 oct.  8 15:19 libdesignercore.a
  -rw-r--r-- 1 root root1050 oct.  8 15:18 libdesignercore.prl
  -rw-r--r-- 1 root root  509178 oct.  8 15:19 libeditor.a
  -rw-r--r-- 1 root root 956 oct.  8 15:18 libeditor.prl
  -rw-r--r-- 1 root root   41204 oct.  8 15:19 libqassistantclient.a
  -rw-r--r-- 1 root root 967 oct.  8 15:18 libqassistantclient.prl
  lrwxrwxrwx 1 root root  15 déc.  5 02:24 libqsa.so - libqsa.so.
  1.1.4
  lrwxrwxrwx 1 root root  15 déc.  5 02:20 libqsa.so.1 - libqsa.so.
  1.1.4
  lrwxrwxrwx 1 root root  15 déc.  5 02:20 libqsa.so.1.1 -
  libqsa.so.1.1.4
  -rwxr-xr-x 1 root root 2106324 mars 25  2008 libqsa.so.1.1.4
  -rw-r--r-- 1 root root 964 oct.  8 15:18 libqt-mt.prl
  lrwxrwxrwx 1 root root  17 déc.  5 13:06 libqt-mt.so - libqt-
  mt.so.3.3.8
  lrwxrwxrwx 1 root root  17 déc.  5 12:38 libqt-mt.so.3 - libqt-
  mt.so.3.3.8
  lrwxrwxrwx 1 root root  17 déc.  5 12:38 libqt-mt.so.3.3 - libqt-
  mt.so.3.3.8
  -rwxr-xr-x 1 root root 8880140 oct.  8 15:19 libqt-mt.so.3.3.8
  -rw-r--r-- 1 root root 852 oct.  8 15:18 libqui.prl
  lrwxrwxrwx 1 root root  15 déc.  5 13:06 libqui.so - libqui.so.
  1.0.0
  lrwxrwxrwx 1 root root  15 déc.  5 12:38 libqui.so.1 - libqui.so.
  1.0.0
  lrwxrwxrwx 1 root root  15 déc.  5 12:38 libqui.so.1.0 -
  libqui.so.1.0.0
  -rwxr-xr-x 1 root root  255332 oct.  8 15:19 libqui.so.1.0.0
 
 
 
  Olivier Cruilles
  Mail: linu...@club-internet.fr
 
 
 If Redhat puts the Qt library in a strange place, maybe the configure script 
 cannot find it. And if nobody posts the output of configure, fixing that is 
 hard!
 


From the problems I have it did look to me something with qt was failing. 
In the configure there is/was no mention about qt-mt
but in the log from 'make' it occurs on some parts related to gb.gt.
I did give you those logs also the ones from make install with the -v flag
for the gbi calls.
I commented even the place in that special log where the gbi -v was aborted.
Never got a hint from that action you requested me to do with -v flag.

It may be not exact the same problem but strong related in my view
by reading my log files line by line.

The compare for diffs between kubuntu8.04 - kubuntu-8.10 and your mandrake
was interesting but not effective.
However we din never look to where the diffs where for the qt libs and
that is interesting to.
kubuntu 8.04 based on qt3 kde3
kubuntu 8.10 based on qt4 kde4

I did see in the 'make' log references for gcc for lib paths  to lib/qt4

Attached the result for 'locate qt3' (removed the /user/share/doc lines) 

So I did give up, live goes on for you and me.


r...@terminator:~$ locate libqt-mt

pclinux-2007 mounted at /mnt/sda2

/mnt/sda2/usr/lib/qt3/lib/libqt-mt.la
/mnt/sda2/usr/lib/qt3/lib/libqt-mt.prl
/mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3
/mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3.3
/mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3.3.8


kubuntu-8.04

/usr/lib/libqt-mt.la
/usr/lib/libqt-mt.prl
/usr/lib/libqt-mt.so
/usr/lib/libqt-mt.so.3
/usr/lib/libqt-mt.so.3.3
/usr/lib/libqt-mt.so.3.3.8
/usr/share/qt3/lib/libqt-mt.la
/usr/share/qt3/lib/libqt-mt.prl
/usr/share/qt3/lib/libqt-mt.so
/usr/share/qt3/lib/libqt-mt.so.3
/usr/share/qt3/lib/libqt-mt.so.3.3



Best regards,

Ron_1st

-- 

/usr/lib/libqt-mt.la
/usr/lib/libqt-mt.prl
/usr/lib/libqt-mt.so
/usr/lib/libqt-mt.so.3
/usr/lib/libqt-mt.so.3.3
/usr/lib/libqt-mt.so.3.3.8
/usr/lib/libqthreads.so.12
/usr/lib/libqthreads.so.12.3.1
/usr/lib/libqtmcop.a
/usr/lib/libqtmcop.la
/usr/lib/libqtmcop.so
/usr/lib/libqtmcop.so.1
/usr/lib/libqtmcop.so.1.0.0

/usr/lib/gtk-2.0/2.10.0/engines/libqtengine.so

/usr/lib/qt4/plugins/accessible/libqtaccessiblecompatwidgets.so
/usr/lib/qt4/plugins/accessible/libqtaccessiblewidgets.so
/usr/lib/qt4/plugins/codecs/libqtwcodecs.so
/usr/lib/qt4/plugins/designer/libqt3supportwidgets.so
/usr/lib/qt4/plugins/imageformats/libqtiff.so
/usr/lib/qt4/plugins/script/libqtscriptdbus.so

/usr/share/lintian/overrides/libqt4-assistant
/usr/share/lintian/overrides/libqt4-dbus
/usr/share/lintian/overrides/libqt4-designer
/usr/share/lintian/overrides/libqt4-dev
/usr/share/lintian/overrides/libqt4-help
/usr/share/lintian/overrides/libqt4-network
/usr/share/lintian/overrides/libqt4-opengl
/usr/share/lintian/overrides/libqt4-qt3support
/usr/share/lintian/overrides/libqt4-script
/usr/share/lintian/overrides/libqt4-sql
/usr/share/lintian/overrides/libqt4-svg
/usr/share/lintian/overrides/libqt4-test
/usr/share

Re: [Gambas-user] Gambas 2 - Gambas 3

2009-02-18 Thread Ron_1st
On Tuesday 17 February 2009, richard terry wrote:
 On Tue, 17 Feb 2009 09:42:09 pm Rolf-Werner Eilert wrote:
  Benoît Minisini schrieb:
   Good morning Benoit (and everyone)
  
   Just came about a question: When I want to bring my Gambas2 app to
   Gambas3, will this be as roundabout as it is from Gambas1 to Gambas2?
   (Creating new forms and converting the code...) Or is it more upward
   compatible?
  
   The reason for asking this is that you told me that you would just
   maintain bugfixes in Gambas2 and bring changes only to Gambas3. As I'm
   still maintaining some bigger Gambas1 projects, I would then migrate
   them to Gambas3 directly rather than having them under Gambas2 - if it's
   as much work again...
  
   Hope I could make clear what I mean...
  
   Regards
  
   Rolf
  
   The weirdest thing between Gambas 2 and Gambas 3 at the moment is
   Desktop.Scale, that is smaller in Gambas 3.
  
   Gambas 3 does a little conversion for controls whose W and H = 3 *
   Desktop.Scale (it adds one Desktop.Scale), but you have to update all
   your forms and check them one by one to redesign them.
  
   There are many other changes in instruction syntax and class interfaces,
   but I never note them at the moment. Hopefully, they are less changes
   between Gambas 3 and Gambas 2 than between Gambas 2 and Gambas 1.
  
   So please try and tell us the result! :-)
 
  LOL - ok, I will. I would. If I could.
 
  Downloaded the svn and tried to compile it, it stopps here:
 
  /usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld:
  cannot find -lqt-mt
  collect2: ld returned 1 exit status
  make[5]: *** [gb.qt.kde.html.la] Fehler 1
  make[5]: Leaving directory
  `/home/tester/gambastest/trunk/gb.qt.kde/src/html'
  make[4]: *** [all-recursive] Fehler 1
  make[4]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde/src'
  make[3]: *** [all-recursive] Fehler 1
  make[3]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde'
  make[2]: *** [all] Fehler 2
  make[2]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde'
  make[1]: *** [all-recursive] Fehler 1
  make[1]: Leaving directory `/home/tester/gambastest/trunk'
  make: *** [all] Fehler 2

And here I have seen the same problem but without abort.

and be able to do make install and that does also not fail but
gives warnings and the final result does not work.
(after reading log files line by line and looks intermittent yes/no)

# gambas3
Error in form.XXX Cant find 'Project file' bla bla

 
  Any idea what's wrong here?
 
 I compile the svn daily, and I had the exact same problem which appeared 
 suddenly a month ago and my previous scripts for compiling gambas3 stopped 
 working, despite the fact that the appropriate libraries seemed to be on my 
 machine, and in theory the pathways were as well.
 
 Now the sad part.
 
 After days and days of searching every forum on the internet I found a 
 solution which I can't remember.
 
 But the potential good news, its contained within my PKGBUILD file which I 
 use 
 to compile the package with, so I've enclosed it. I think. and not sure, 
 that it was this line:
 
 make LDFLAGS+=-L/opt/qt/lib
 
 that I included in the script which made the difference.
 
 Hope this helps.
 
 Richard
 
 
 
  There is an older Gambas3 on my system which is running ok, should I try
  with that one? Don't know how old it is, but it has a Copyright until
  2009 in the help... :-)
 
  Rolf

So i'm not the only one that has problems.
No body else did respond except charlie with a log on his system.

r...@terminator:~$ locate libqtmc

kubuntu 8.04 LTS (long term support)
/usr/lib/libqtmcop.a
/usr/lib/libqtmcop.la
/usr/lib/libqtmcop.so
/usr/lib/libqtmcop.so.1
/usr/lib/libqtmcop.so.1.0.0




Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 2 - Gambas 3

2009-02-18 Thread Ron_1st
On Wednesday 18 February 2009, David Villalobos Cambronero wrote:
 
 Hi, it happened to me some day ago,
 there is what I did to fix it.
 # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3.8
 # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3
 # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3
 # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so
 
   
 And just be aware that my system is 64
 Bits.
 
 By the way, I agree with Ron. I my case Gambas 3
 compiles fine, but suddenly it crash in the make process telling me
 the problem about qt-mt, I try to fin the lib with kfind and realize
 that libqt-mt was unaccessible, could be Gambas involved?
 
 Regards
 
 
 --
 David
 
 
 
 - Original Message 
 From: Benoît Minisini gam...@users.sourceforge.net
 To: mailing list for gambas users gambas-user@lists.sourceforge.net
 Sent: Wednesday, February 18, 2009 8:37:38 AM
 Subject: Re: [Gambas-user] Gambas 2 - Gambas 3
 
  On Wednesday 18 February 2009, Benoît Minisini wrote:
Benoit,
---8

 
  From the problems I have it did look to me something with qt was failing.
  In the configure there is/was no mention about qt-mt
  but in the log from 'make' it occurs on some parts related to gb.gt.
  I did give you those logs also the ones from make install with the -v flag
  for the gbi calls.
  I commented even the place in that special log where the gbi -v was
  aborted. Never got a hint from that action you requested me to do with -v
  flag.
 
  It may be not exact the same problem but strong related in my view
  by reading my log files line by line.
 
  The compare for diffs between kubuntu8.04 - kubuntu-8.10 and your mandrake
  was interesting but not effective.
  However we din never look to where the diffs where for the qt libs and
  that is interesting to.
  kubuntu 8.04 based on qt3 kde3
  kubuntu 8.10 based on qt4 kde4
 
  I did see in the 'make' log references for gcc for lib paths  to lib/qt4
 
  Attached the result for 'locate qt3' (removed the /user/share/doc lines)
 
  So I did give up, live goes on for you and me.
 
 
  r...@terminator:~$ locate libqt-mt
 
  pclinux-2007 mounted at /mnt/sda2
 
  /mnt/sda2/usr/lib/qt3/lib/libqt-mt.la
  /mnt/sda2/usr/lib/qt3/lib/libqt-mt.prl
  /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3
  /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3.3
  /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3.3.8
 
 
  kubuntu-8.04
 
  /usr/lib/libqt-mt.la
  /usr/lib/libqt-mt.prl
  /usr/lib/libqt-mt.so
  /usr/lib/libqt-mt.so.3
  /usr/lib/libqt-mt.so.3.3
  /usr/lib/libqt-mt.so.3.3.8
  /usr/share/qt3/lib/libqt-mt.la
  /usr/share/qt3/lib/libqt-mt.prl
  /usr/share/qt3/lib/libqt-mt.so
  /usr/share/qt3/lib/libqt-mt.so.3
  /usr/share/qt3/lib/libqt-mt.so.3.3

They are symlinked to the files in /usr/lib

 
 
 
  Best regards,
 
  Ron_1st
 
 Do you know why there is libqt-mt.so.3.* at two different places on your 
 system? (/usr/lib and /usr/share/qt3/lib)
 


I'm not 100% sure but it could be I have done myself like David has done.
To long ago.


Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas3

2009-02-18 Thread Ron_1st
On Wednesday 18 February 2009, Charlie Reinl wrote:
 Am Sonntag, den 01.02.2009, 13:55 +0100 schrieb Charlie Reinl:
 ---8--
  Ausgecheckt, Revision 1839.
  Revision 1839.
  *
  ./reconf-all
  *
  ran without Error, 
  but a $ gambas3
  gives :
  ERROR: #2: Cannot load class 'Project': Unable to load class file
  
   
  To say also, my Ubuntu is not a freshly installed Ubuntu 8.04, but an
  updated Ubuntu 6.06 (last LTS)
 
 Salut,
 
 coming up again with that:
 now for :
 Ausgecheckt, Revision 1878.
 Revision 1878.
 
 There where no ERROR's reported 
 but a 
 *:/opt/gambas/3$ gambas3
 gives that
 ERROR: #2: Cannot load class 'Project': Unable to load class file
 I'v made nothing since 01.02.2009, 13:55 only executed my
 compilation-script.
 
 I have all the log if needed! 
  

I have given up to find it.

I got log files from Benoit and could destilate the diffs between
his mandrake and ubuntu logs the find the diffs between kubuntu 8.04 and 8.10
I did not found real hard differences and send those back to Benoit for comment.

The only thing I know for sure is during 'make install' the compiled 
gbi aborts his process and does not creat the .info and .list files.

It is related to qt and visual controls for gambas components (sensitive is 
form) 
The error line given matche the .form file instead of the .class
file, line number is the line where the first control is after {
and has the control name mentioned in the error line.

I think the gambas source is not direct the bad part but suspect the
make/configure files and the gcc environment missing something
or has changed between (k)ubuntu 8.04 and 8.10


PS
I did found in the make scripts a mistake that could be the culprit
but to find it back I need someting to parse those files and search for
 -- this is a bad script with name of awordthat fails 

The special sequence I need to find is -- awordthat
It has a missing space after the second quote.
Regexpr is not my strongest thing.


Best regards,

Ron_1st

-- 


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 2 - Gambas 3

2009-02-18 Thread Ron_1st
On Wednesday 18 February 2009, Benoît Minisini wrote:
  Hi, it happened to me some day ago,
  there is what I did to fix it.
  # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3.8
  # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3
  # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3
  # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so
 
 
  And just be aware that my system is 64
  Bits.
 
  By the way, I agree with Ron. I my case Gambas 3
  compiles fine, but suddenly it crash in the make process telling me
  the problem about qt-mt, I try to fin the lib with kfind and realize
  that libqt-mt was unaccessible, could be Gambas involved?
 
 
 I don't change anything to the libraries. Everything is done by the libtool 
 tool.
 
 libtool works by using the contents of the *.la files to know what flags 
 should be sent to the linker. Sometimes, the *.la files provided by the 
 distribution are false (it happened once on an old Mandriva, and it happens 
 recently on Ubuntu).
 
 Can you (David  Ron) post the contents of your libqt-mt.la files?
 


kubuntu-8.04

/usr/lib/libqt-mt.la
/usr/lib/libqt-mt.prl
/usr/lib/libqt-mt.so - libqt-mt.so.3.3.8
/usr/lib/libqt-mt.so.3   - libqt-mt.so.3.3.8
/usr/lib/libqt-mt.so.3.3 - libqt-mt.so.3.3.8
/usr/lib/libqt-mt.so.3.3.8

/usr/share/qt3/lib/libqt-mt.la - ../../../lib/libqt-mt.la
/usr/share/qt3/lib/libqt-mt.prl- ../../../lib/libqt-mt.prl
/usr/share/qt3/lib/libqt-mt.so - ../../../lib/libqt-mt.so.3.3.8
/usr/share/qt3/lib/libqt-mt.so.3   - ../../../lib/libqt-mt.so.3.3.8
/usr/share/qt3/lib/libqt-mt.so.3.3 - ../../../lib/libqt-mt.so.3.3.8





Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 
# libqt-mt.la - a libtool library file
# Generated by qmake/libtool (1.07a) (Qt 3.3.8b) on: Wed Apr  9 16:10:10 2008

# The name that we can dlopen(3).
dlname='libqt-mt.so.3'

# Names of this library.
library_names='libqt-mt.so.3.3.8 libqt-mt.so.3 libqt-mt.so'

# The name of the static archive.
old_library='libqt-mt.a'

# Libraries that this one depends upon.
dependency_libs='-L/usr/X11R6/lib -lfontconfig -laudio -lXt -ljpeg -lpng -lz 
-lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig 
-lXext -lX11 -lm -lSM -lICE -ldl -lpthread '

# Version information for libqt-mt.la
current=33
age=0
revision=8

# Is this an already installed library.
installed=yes

# Files to dlopen/dlpreopen.
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib'
# libqtmcop.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.22 Debian 1.5.22-4 (1.1220.2.365 
2005/12/18 22:14:06)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libqtmcop.so.1'

# Names of this library.
library_names='libqtmcop.so.1.0.0 libqtmcop.so.1 libqtmcop.so'

# The name of the static archive.
old_library='libqtmcop.a'

# Libraries that this one depends upon.
dependency_libs=' -L/usr/share/qt3/lib /usr/lib/libmcop.la -L/usr/lib 
/usr/lib/libgmodule-2.0.la /usr/lib/libgthread-2.0.la -lrt 
/usr/lib/libglib-2.0.la /usr/lib/libqt-mt.la -L/usr/X11R6/lib -laudio -lXt 
-ljpeg -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype 
-lfontconfig -ldl -lpng -lz -lXext -lX11 -lSM -lICE -lpthread'

# Version information for libqtmcop.
current=1
age=0
revision=0

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib'
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 2 - Gambas 3

2009-02-18 Thread Ron_1st
On Thursday 19 February 2009, Benoît Minisini wrote:
 $ pkg-config --cflags qt-mt
 $ pkg-config --libs-only-l qt-mt
 $ pkg-config --libs-only-L qt-mt 
 $ pkg-config --libs-only-other qt-mt
 
 If, of course, your qt development package uses the pkg-config system!
 
 Thanks in advance.
 

r...@terminator:~# pkg-config --cflags qt-mt
-DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -D_REENTRANT 
-I/usr/include/qt3

r...@terminator:~# pkg-config --libs-only-l qt-mt
-lqt-mt -laudio -lXt -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor 
-lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl 
-lpthread
(^^^all on one line^^^)

r...@terminator:~# pkg-config --libs-only-L qt-mt
-L/usr/X11R6/lib

r...@terminator:~# pkg-config --libs-only-other qt-mt

(^^^ empty^^^)


/usr/include/qt3 exists and contains theqt3  *.h files


Best regards,

Ron_1st

-- 


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to detect Capslock

2009-02-08 Thread Ron_1st
On Sunday 08 February 2009, richard terry wrote:
 I wondered how one could detect if the capslock key was on.
 
 Any help appreciated.
 
 Richard
 
 --
 Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code to
 build responsive, highly engaging applications that combine the power of local
 resources and data with the reach of the web. Download the Adobe AIR SDK and
 Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
http://gambasdoc.org/help/comp/gb.qt/key?view

Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas3

2009-02-01 Thread Ron_1st
On Sunday 01 February 2009, Charlie Reinl wrote:
 Am Samstag, den 31.01.2009, 04:20 +0100 schrieb Benoit Minisini:
  On samedi 31 janvier 2009, Ron_1st wrote:
=8==

 
 something I found today (think Ron 1. said it) 
 This is the output from 'svn checkout ... '
 
 Wieder hergestellt = Restored
 
 char...@scenic:~$ cd /opt/gambas/3
 char...@scenic:/opt/gambas/3$ ./svn-Update30 
 Wieder hergestellt »/opt/gambas/3/gambas-svn30/gb.gtk/src/gb.gtk/.info«
 Wieder hergestellt »/opt/gambas/3/gambas-svn30/gb.gtk/src/gb.gtk/.list«
 Wieder hergestellt
 »/opt/gambas/3/gambas-svn30/comp/src/gb.form.mdi/.list«
 Wieder hergestellt
 »/opt/gambas/3/gambas-svn30/comp/src/gb.form.mdi/.info«
 Wieder hergestellt »/opt/gambas/3/gambas-svn30/comp/src/gb.report/.list«
 Wieder hergestellt »/opt/gambas/3/gambas-svn30/comp/src/gb.report/.info«
 Wieder hergestellt »/opt/gambas/3/gambas-svn30/comp/src/gb.chart/.list«
 Wieder hergestellt »/opt/gambas/3/gambas-svn30/comp/src/gb.chart/.info«
 Wieder hergestellt »/opt/gambas/3/gambas-svn30/comp/src/gb.form/.list«
 Wieder hergestellt »/opt/gambas/3/gambas-svn30/comp/src/gb.form/.info«
 Wieder hergestellt
 »/opt/gambas/3/gambas-svn30/comp/src/gb.db.form/.list«
 Wieder hergestellt
 »/opt/gambas/3/gambas-svn30/comp/src/gb.db.form/.info«
 Wieder hergestellt »/opt/gambas/3/gambas-svn30/gb.qt/src/gb.qt/.info«
 Wieder hergestellt »/opt/gambas/3/gambas-svn30/gb.qt/src/gb.qt/.list«
 U/opt/gambas/3/gambas-svn30/main/gbx/gbx_class.c
 U/opt/gambas/3/gambas-svn30/main/gbx/gbx_class.h
 Ausgecheckt, Revision 1839.
 Revision 1839.
 *
 ./reconf-all
 *
 ran without Error, 
 but a $ gambas3
 gives :
 ERROR: #2: Cannot load class 'Project': Unable to load class file
 
  
 To say also, my Ubuntu is not a freshly installed Ubuntu 8.04, but an
 updated Ubuntu 6.06 (last LTS)
 
 

OK I'm still try to find out.

First you need to update the automake to 10.0 regardless the comment
it maybe incompatible with older versions.
Some minor errors disapear but it is not the final point.

The big difference I found atm is the automake Benoit uses
is version 2.63 and ubuntu has 2.61 as last version.
2.63 is adding a lot of code into the Makefile.am from Makefile.in
This results in more adding stuff in Makefile and configure scripts.

In the difference between 2.61 and 2.63 there are some cleanup/bug fixes to see.
But the major thing is 2.63 add a lot of other code and that looks to be
failing  somewhere.

I got a dump of the tree from Benoit and as he suspect ther must going 
something wrong in the configuration with make.

Well that is the automake tools package has a problem in combination with 
ubuntu and the supplied Makefile.in of the gambas project.

The problem is in the parts where gbc3 and/or gba3 must do things durring the
make install. By make install in the comps directory the .inf and .list
files are deleted. 

Begore the comp is done in early stage this is also done for gb.qt and gb.gtk
A fail also exists here and that is the reason why the comps fail later.

Still busy but I did need a pause too yesterday.
I must verify that what I think is a error is realy true and not father of the 
wish.

That means restart all after copy of the svn tree from backup with every
step where the reconf and configure takes a lot of time.


The biggest question is for me ATM:
Why does gbc3 and gba3 delete the .info and .list file if they
find a error somewhere.




Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Nesting objects into gridview cells

2009-01-30 Thread Ron_1st
On Friday 30 January 2009, M0E Lnx wrote:
 Hello guys.
 
 I'd like to know how if anyone has ever been able to nest objects like
 comboboxes, buttons, checkboxes or anything like that into a
 gridview's cell.
 
 I guess what I'm looking for is a way to do what the gambas IDE does
 for a forms or objects properties side panel
 
 I'm attaching a picgure of what I mean so I can be better understood
 
 If anyone can suggest a way to do this, I'd greatly appreciate it
 
 Thank you
 

this is not _in_ the cell but overlay on the cell
create the combobox run/design time as hidden control in the same container as 
the grid
on events of the grid as mouse_down or click copy width/height of the cell
to the combobox. Set left and height as the cells left/height and make visible
On leave of the combobox get the entered/selected data and hidde the combobox.

I made it for a project of mine and did works very nice.
gambas does not work anymore now.
It was a program i write in php and reprogrammed in gambas but I'm back in php 
with it.





Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] svn-compile error part1

2009-01-30 Thread Ron_1st
On Friday 30 January 2009, Benoit Minisini wrote:
 On vendredi 30 janvier 2009, Ron_1st wrote:

8==


 
  Best regards,
 
  Ron_1st
 
 I am going to test from a fresh checkout to understand what happens 
 exactly... 
 Wait a moment! :-)
 

OK

Found some other code related things but first the comile and install.
Also it kan be of course a (k)ubuntu problem, see answer to charlie
about aclocal.

Thanks for look and try.



Best regards,

Ron_1st

-- 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] strange problem using UDP server clients

2009-01-30 Thread Ron_1st
On Friday 30 January 2009, Joshua Higgins wrote:
 is there any way to wait for a command launched through SHELL to finish
 without using WAIT, but so that it still continue executing my gambas
 program?
 

try in the shell string at the end the ampersand character ()

shell(/usr/bin/docommand -option1=lookinthemirror )




Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas3

2009-01-30 Thread Ron_1st
On Saturday 31 January 2009, Benoit Minisini wrote:
 On vendredi 30 janvier 2009, Ron_1st wrote:
 
  Question to Benoit
  I have 2 directories for aclocal, aclocal and aclocal-1.9
  the configure script refer to the 1.9, does aclocal/automake fall back to
  the aclocal for missing *.m4 files ?
 
 
 I don't know what you are talking about. Where are these two aclocal 
 directories?
 

reconf and/or configure use it.



/usr/share/aclocal
/usr/share/aclocal-1.9


# aclocal --version
  aclocal (GNU automake) 1.9.6
# automake --version
  automake (GNU automake) 1.9.6
# libtool --version
  ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 
2008/02/01 16:58:18)






Best regards,

Ron_1st

-- 
aclocal:

63 files

drwxr-xr-x   2 root root   4096 2009-01-25 15:05 .
drwxr-xr-x 278 root root  12288 2009-01-31 03:31 ..
-rw-r--r--   1 root root   2194 2008-03-19 03:26 ac_check_krb5.m4
-rw-r--r--   1 root root   4198 2008-03-12 06:09 alsa.m4
-rw-r--r--   1 root root   6793 2007-12-02 00:49 audiofile.m4
-rw-r--r--   1 root root758 2007-12-13 07:22 codeset.m4
-rw-r--r--   1 root root   6870 2008-02-26 10:20 esd.m4
-rw-r--r--   1 root root   7511 2007-11-13 10:53 fontutil.m4
-rw-r--r--   1 root root   6295 2008-09-11 02:57 freetype2.m4
-rw-r--r--   1 root root  14712 2007-12-13 07:22 gettext.m4
-rw-r--r--   1 root root   8192 2008-09-26 15:10 glib-2.0.m4
-rw-r--r--   1 root root805 2007-12-13 07:22 glibc21.m4
-rw-r--r--   1 root root748 2007-12-13 07:22 glibc2.m4
-rw-r--r--   1 root root  13662 2008-09-26 15:10 glib-gettext.m4
-rw-r--r--   1 root root   2484 2007-11-16 01:56 gpg-error.m4
-rw-r--r--   1 root root   7532 2008-09-26 15:27 gtk-2.0.m4
-rw-r--r--   1 root root   6123 2007-12-13 07:22 iconv.m4
-rw-r--r--   1 root root   2329 2007-12-13 07:22 intdiv0.m4
-rw-r--r--   1 root root910 2007-12-13 07:22 intldir.m4
-rw-r--r--   1 root root  10920 2007-12-13 07:22 intl.m4
-rw-r--r--   1 root root   2421 2007-12-13 07:22 intlmacosx.m4
-rw-r--r--   1 root root  11188 2008-02-29 00:22 intltool.m4
-rw-r--r--   1 root root   1033 2007-12-13 07:22 intmax.m4
-rw-r--r--   1 root root932 2007-12-13 07:22 inttypes_h.m4
-rw-r--r--   1 root root   1130 2007-12-13 07:22 inttypes-pri.m4
-rw-r--r--   1 root root   1284 2007-12-13 07:22 lcmessage.m4
-rw-r--r--   1 root root   9198 2008-02-08 16:05 libcurl.m4
-rw-r--r--   1 root root   4270 2008-01-24 19:53 libFLAC.m4
-rw-r--r--   1 root root   4174 2007-12-07 12:33 libgcrypt.m4
-rw-r--r--   1 root root   7235 2008-12-06 01:09 libgnutls-extra.m4
-rw-r--r--   1 root root   6675 2008-12-06 01:09 libgnutls.m4
-rw-r--r--   1 root root   3417 2007-12-13 07:23 lib-ld.m4
-rw-r--r--   1 root root  29741 2007-12-13 07:23 lib-link.m4
-rw-r--r--   1 root root   8627 2009-01-25 00:01 libmcrypt.m4
-rw-r--r--   1 root root   8625 2005-04-14 09:12 libmcrypt.m4~
-rw-r--r--   1 root root   9203 2007-02-27 12:50 libmikmod.m4
-rw-r--r--   1 root root   6686 2007-12-13 07:23 lib-prefix.m4
-rw-r--r--   1 root root   6573 2007-12-03 12:06 libtasn1.m4
-rw-r--r--   1 root root 239134 2008-02-08 01:54 libtool.m4
-rw-r--r--   1 root root   7880 2008-11-18 20:14 libxml2.m4
-rw-r--r--   1 root root  12435 2007-12-13 07:22 lock.m4
-rw-r--r--   1 root root   4140 2007-12-13 07:22 longlong.m4
-rw-r--r--   1 root root  13284 2008-02-08 01:54 ltdl.m4
-rw-r--r--   1 root root   1206 2007-12-13 07:22 nls.m4
-rw-r--r--   1 root root   3486 2008-01-30 09:44 ogg.m4
-rw-r--r--   1 root root   6916 2005-06-14 11:54 opencdk.m4
-rw-r--r--   1 root root   3367 2007-12-07 23:09 openexr.m4
-rw-r--r--   1 root root   5221 2007-06-20 12:43 pkg.m4
-rw-r--r--   1 root root  18822 2007-12-13 07:22 po.m4
-rw-r--r--   1 root root   1481 2007-12-13 07:22 printf-posix.m4
-rw-r--r--   1 root root   2920 2007-12-13 07:22 progtest.m4
-rw-r--r--   1 root root   6404 2008-01-05 05:52 sdl.m4
-rw-r--r--   1 root root   2651 2007-12-13 07:22 size_max.m4
-rw-r--r--   1 root root   6611 2007-06-22 12:59 smpeg.m4
-rw-r--r--   1 root root908 2007-12-13 07:22 stdint_h.m4
-rw-r--r--   1 root root   1098 2007-12-13 07:22 uintmax_t.m4
-rw-r--r--   1 root root   2136 2007-12-13 07:22 visibility.m4
-rw-r--r--   1 root root   4356 2008-11-28 16:05 vorbis.m4
-rw-r--r--   1 root root726 2007-12-13 07:22 wchar_t.m4
-rw-r--r--   1 root root   8086 2008-12-05 23:52 wine.m4
-rw-r--r--   1 root root967 2007-12-13 07:22 wint_t.m4
-rw-r--r--   1 root root   2387 2007-11-14 12:02 xaw.m4
-rw-r--r--   1 root root  13566 2007-06-05 02:59 xorg-macros.m4
-rw-r--r--   1 root root   1860 2008-06-13 03:21 xorg-server.m4
-rw-r--r--   1 root root   2469 2007-06-05 02:59 xorgversion.m4
-rw-r--r--   1 root root421 2007-12-13 07:22 xsize.m4
-rw-r--r--   1 root root   4914 2007-10-24 21:21 xtrans.m4

aclocal-1.9:

32 files

drwxr-xr-x   2 root root  4096 2009-01-24 04:06 .
drwxr-xr-x 278 root root 12288 2009-01-31 03:31 ..
-rw-r--r--   1 root root   872 2006-12-06 16:55 amversion.m4
-rw-r--r--   1 root root   728 2006-12-06 16

Re: [Gambas-user] svn-compile error part1

2009-01-30 Thread Ron_1st
On Saturday 31 January 2009, Benoit Minisini wrote:
 On samedi 31 janvier 2009, Ron_1st wrote:
  On Friday 30 January 2009, Benoit Minisini wrote:
   On vendredi 30 janvier 2009, Ron_1st wrote:
 
  8==
 
Best regards,
   
Ron_1st
  
   I am going to test from a fresh checkout to understand what happens
   exactly... Wait a moment! :-)
 
  OK
 
  Found some other code related things but first the comile and install.
  Also it kan be of course a (k)ubuntu problem, see answer to charlie
  about aclocal.
 
  Thanks for look and try.
 
 
 
  Best regards,
 
  Ron_1st
 
 I compiled and installed a fresh checkout of trunk, and I got no error at 
 all, 
 and all the warnings I got are normal.
 
 So at the moment, I don't understand what happens on your system.
 
 Did you try to do everything except installation as a normal user?
 

if I give you a ip address will you upload your compiled trunk directory
to my box so I can compare for differences between yours and mine.



It is around 270MByte

 



Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas3

2009-01-30 Thread Ron_1st
On Saturday 31 January 2009, Benoit Minisini wrote:
 On vendredi 30 janvier 2009, Ron_1st wrote:
 
  Question to Benoit
  I have 2 directories for aclocal, aclocal and aclocal-1.9
  the configure script refer to the 1.9, does aclocal/automake fall back to
  the aclocal for missing *.m4 files ?
 
 
 I don't know what you are talking about. Where are these two aclocal 
 directories?
 


If I was the only one I could live with and simple drop gambas.
But I'm not only, Charlie has exact the same problem on his box.

It would be nice to find what is wrong, for now and future
because differences between distributions.

And also I do understand it can be possible a (k)ubuntu problem.



Best regards,

Ron_1st

-- 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] svn-compile error part1

2009-01-30 Thread Ron_1st
On Saturday 31 January 2009, Benoit Minisini wrote:
 On samedi 31 janvier 2009, Ron_1st wrote:
  On Saturday 31 January 2009, Benoit Minisini wrote:
   On samedi 31 janvier 2009, Ron_1st wrote:
On Friday 30 January 2009, Benoit Minisini wrote:
 On vendredi 30 janvier 2009, Ron_1st wrote:
   
8==
   
  Best regards,
 
  Ron_1st

 I am going to test from a fresh checkout to understand what happens
 exactly... Wait a moment! :-)
   
OK
   
Found some other code related things but first the comile and install.
Also it kan be of course a (k)ubuntu problem, see answer to charlie
about aclocal.
   
Thanks for look and try.
   
   
   
Best regards,
   
Ron_1st
  
   I compiled and installed a fresh checkout of trunk, and I got no error at
   all, and all the warnings I got are normal.
  
   So at the moment, I don't understand what happens on your system.
  
   Did you try to do everything except installation as a normal user?
 
  if I give you a ip address will you upload your compiled trunk directory
  to my box so I can compare for differences between yours and mine.
 
 
 
  It is around 270MByte
 
 
 
 
 
  Best regards,
 
  Ron_1st
 
 Yes, but I will upload first the /trunk directory after a make clean. It 
 will be lighter, and I think that the devil is in the things generated 
 by ./reconf-all and ./configure.
 
 Regards,
 

haha devil yes that is true
but that passes at my box atm

I can do two ways

1) you uplaod with fish://name:p...@my-ip into upload directory (disk space)
2) you use ssh acount and i put the svn already in the upload







Best regards,

Ron_1st

-- 


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] svn-compile error part1

2009-01-30 Thread Ron_1st
On Saturday 31 January 2009, Ron_1st wrote:
 On Saturday 31 January 2009, Benoit Minisini wrote:
  On samedi 31 janvier 2009, Ron_1st wrote:
   On Saturday 31 January 2009, Benoit Minisini wrote:
On samedi 31 janvier 2009, Ron_1st wrote:
 On Friday 30 January 2009, Benoit Minisini wrote:
  On vendredi 30 janvier 2009, Ron_1st wrote:

 8==

   Best regards,
  
   Ron_1st
 
  I am going to test from a fresh checkout to understand what happens
  exactly... Wait a moment! :-)

 OK

 Found some other code related things but first the comile and install.
 Also it kan be of course a (k)ubuntu problem, see answer to charlie
 about aclocal.

 Thanks for look and try.



 Best regards,

 Ron_1st
   
I compiled and installed a fresh checkout of trunk, and I got no error 
at
all, and all the warnings I got are normal.
   
So at the moment, I don't understand what happens on your system.
   
Did you try to do everything except installation as a normal user?
  
   if I give you a ip address will you upload your compiled trunk directory
   to my box so I can compare for differences between yours and mine.
  
  
  
   It is around 270MByte
  
  
  
  
  
   Best regards,
  
   Ron_1st
  
  Yes, but I will upload first the /trunk directory after a make clean. It 
  will be lighter, and I think that the devil is in the things generated 
  by ./reconf-all and ./configure.
  
  Regards,
  
 
 haha devil yes that is true
 but that passes at my box atm
 
 I can do two ways
 
 1) you uplaod with fish://name:p...@my-ip into upload directory (disk space)
 2) you use ssh acount and i put the svn already in the upload
 

stupid me. you scp to the upload directory
I would then compare the compiled versions for diffs
however a clean is not bad to have just ~40MB extra
to compare for svn checkout errors on my site.
fresh 1838 is already on the box waiting.

Sleep well.



 
 
 
 Best regards,
 
 Ron_1st
 


Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to address more than one table in resultset

2009-01-29 Thread Ron_1st
On Thursday 29 January 2009, Ron wrote:
 Bit stuck.
 
 In an attempt to optimize some db queries.
 
 I changed this (gets all events first then check if enabled, then gets 
 the trigger fields for that event etc):
 
   DIM rResult, rResultTrig, rResultAction AS Result
 
   rResult = Main.hDB.Exec(SELECT * FROM events)
   IF rResult THEN
 IF rResult.Count THEN
   FOR EACH rResult
 IF rResult!enabled THEN
   IF rResult!trigger1 THEN
 rResultTrig = Main.hDB.Exec(SELECT * FROM triggers WHERE id 
 = 1 , rResult!trigger1)
 IF rResultTrig THEN
   IF rResultTrig!param1 =
 ...
NEXT
 
 
 to this (gets selected events and triggers table/fields):
 
   DIM rResult AS Result
 
   rResult = Main.hDB.Exec(SELECT * FROM events, triggers WHERE 
 events.trigger1 = triggers.id AND triggers.type = 3 AND events.enabled 
 AND triggers.param1 = 1, iId)
 
   IF rResult THEN
 IF rResult.Count THEN
 
   FOR EACH rResult
 ...
   NEXT
 
 In the sql query tool from database manager it returns exactly the 
 correct records/fields etc
 
 But how can I get the fields from the triggers table from this resultset?
 
 I cannot do something like  rResult!triggers.id
 Is this possible?
 
 Thanks.
 
 Regards,
 Ron_2nd.
 

   rResult = Main.hDB.Exec(SELECT * FROM events, triggers WHERE 
   rResult = Main.hDB.Exec(SELECT *, triggers.fieldx as triggerfieldx FROM 
events, triggers WHERE 

You should get all field names from both tables side by side.
(As far I remember)
 
You can use the as triggerfield to declare the specific field from triggers.

Lets asume both have a ID field, normal result will be then
  ID event xxx yyy ID trigger xxx yyy

Using the  ___triggers.ID as triggerID___ then you get
  ID event xxx yyy ID trigger xxx yyy triggerID






Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to address more than one table in resultset

2009-01-29 Thread Ron_1st
On Thursday 29 January 2009, Ron wrote:
 Ron_1st schreef:
  On Thursday 29 January 2009, Ron wrote:

  Bit stuck.
 
  In an attempt to optimize some db queries.
 
  I changed this (gets all events first then check if enabled, then gets 
  the trigger fields for that event etc):
  
DIM rResult, rResultTrig, rResultAction AS Result
 
rResult = Main.hDB.Exec(SELECT * FROM events)
IF rResult THEN
  IF rResult.Count THEN
FOR EACH rResult
  IF rResult!enabled THEN
IF rResult!trigger1 THEN
  rResultTrig = Main.hDB.Exec(SELECT * FROM triggers WHERE id 
  = 1 , rResult!trigger1)
  IF rResultTrig THEN
IF rResultTrig!param1 =
  ...
 NEXT
  
 
  to this (gets selected events and triggers table/fields):
  
DIM rResult AS Result
 
rResult = Main.hDB.Exec(SELECT * FROM events, triggers WHERE 
  events.trigger1 = triggers.id AND triggers.type = 3 AND events.enabled 
  AND triggers.param1 = 1, iId)
 
IF rResult THEN
  IF rResult.Count THEN
 
FOR EACH rResult
  ...
NEXT
  
  In the sql query tool from database manager it returns exactly the 
  correct records/fields etc
 
  But how can I get the fields from the triggers table from this resultset?
 
  I cannot do something like  rResult!triggers.id
  Is this possible?
 
  Thanks.
 
  Regards,
  Ron_2nd.
 
  
 

rResult = Main.hDB.Exec(SELECT * FROM events, triggers WHERE 
  
 rResult = Main.hDB.Exec(SELECT *, triggers.fieldx as triggerfieldx 
  FROM events, triggers WHERE 
 
  You should get all field names from both tables side by side.
  (As far I remember)
   
  You can use the as triggerfield to declare the specific field from 
  triggers.
 
  Lets asume both have a ID field, normal result will be then
ID event xxx yyy ID trigger xxx yyy
 
  Using the  ___triggers.ID as triggerID___ then you get
ID event xxx yyy ID trigger xxx yyy triggerID
 
 
 
 
 
 
  Best regards,
 
  Ron_1st
 

 
 Now that's the last kind of solution I was thinking of.
 Where this you get this info from, have been searching gambasdoc over 
 and over again.
 
 But it works nicely!
 Note that single quotes are needed.
 ---
  DIM value AS String
 
   rResult = Main.hDB.Exec(SELECT *,triggers.param2 as 'value' FROM 
 events, triggers WHERE events.trigger1 = triggers.id AND triggers.type = 
 3 AND events.enabled AND triggers.param1 = 1, iId)
   IF rResult THEN
 IF rResult.Count THEN
   FOR EACH rResult
 SELECT rResult!value
 ...
 ---
 
 Thanks alot!!
 
 Regard,
 Ron_2nd
 

Experience with MS-Access-MySQL combination, used a lot in the past,
and programming with php for websites.

About the quotes, to be exactly there should be backticks for MySQL 
field/table names too.
In first case I had them but you did not used it for the table name
so I deleted them.

Normal to be safe MySQL use backticks for field and table names, special
when spaces and non-alpha characters are involved in them.
For the alias name after AS you could using single or double quotes.
Depends on to front and end quote used if passed as string.

The reason wy it is not in the gambas doc is simple.
The default method does not using DB.exec() while this is backend sensitive.
Your code runs now on MySQL but could fail on SQLite or Firebird!

Your construction now is more for advanced programmers and that is
not default for the average gambas user ATM.

Leuk die twee ronnies die in het engels pruttellen. :)


Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] svn-compile error part1

2009-01-29 Thread Ron_1st
So for correct working of the cp command it must finish with ;

Finak result is now:
Installing the components...
Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.settings...
OK
Installing gb.settings...
---
Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.info...
OK
Installing gb.info...
---
Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form...
/home/ron/src/gambas3/trunk/comp/src/gb.form/Balloon.class:5: Unknown 
identifier: Control
Installing gb.form...
---
Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form.dialog...
/home/ron/src/gambas3/trunk/comp/src/gb.form.dialog/FDirDialog.class:52: 
Unknown identifier: HBox
Installing gb.form.dialog...
---
Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form.mdi...
/home/ron/src/gambas3/trunk/comp/src/gb.form.mdi/Action.class:7: Unknown 
identifier: Window
Installing gb.form.mdi...
---
Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.db.form...
/home/ron/src/gambas3/trunk/comp/src/gb.db.form/Common.module:3: Unknown 
identifier: Control
Installing gb.db.form...
---
Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.web...
OK
Installing gb.web...
---
Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.report...
/home/ron/src/gambas3/trunk/comp/src/gb.report/FReportTutorial1.class:141: 
Unknown identifier: Button
Installing gb.report...
---
Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.chart...
/home/ron/src/gambas3/trunk/comp/src/gb.chart/Chart.class:28: Unknown 
identifier: Color
Installing gb.chart...
---
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/home/ron/src/gambas3/trunk/comp'


Much much better.
common for the Unknown identifier: i have already posted but no answer.
the filet is called .class but the identifier is in the .form
after the second '{'

# Gambas Form File 3.0

{ Form Form
  MoveScaled(0,0,94,54)
  Text = (Text Editor)
  Icon = Picture[icon:/16/edit]
  Arrangement = Arrange.Vertical
  Spacing = 5
  Padding = 5
  { HBox1 HBox         -- this identifier  
    MoveScaled(1,1,92,4)
    { btnLock ToolButton



What ever is wrong in/at/on/under my box, is is stupid gba/gbc are delete
the .info and .list files when they find this error.
The .gambas directory that is deleted in every component loop is empty for 
these components.
By missing this two files the next compile/install will gives error for ever
because the missing of those files.

Please check gbc and gba for this behaviour of delete.
Is there a explain why it not is done when in the Makefile
in the previous command (the by me wrong added cp .list my.list)
has a error.





gambas2.10.2 did compile and run OK.
With ./configure without --prefix then auto destdir is auto set to /usr/local
and the symbolic links are in /usr/local/bin and not in /usr/bin
I have good reason my box is correct condition to do the job.

The major difference is svn or the source I get from svn.
To check the svn part I need a tarball of a fresh svn checkout. How do I get 
this?
Getting other code with svn did work and I can asume the svn installed is not 
totaly bad.



I know this report is long but shows that I realy try to find what is going 
wrong.
Also I can use gambas2 till final gambas3 is ready.
Who can tell me I will be able to compile that final gambas3 whitout problems ?.



Going for part 2 investigate:
 
  Restored 'gb.gtk/src/gb.gtk/.info'
  Restored 'gb.gtk/src/gb.gtk/.list'
  Restored 'gb.qt/src/gb.qt/.info'
  Restored 'gb.qt/src/gb.qt/.list'



Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Ask about gambas runtime

2009-01-28 Thread Ron_1st
On Wednesday 28 January 2009, Leo Sendra wrote:
 Hi all... 
 
 I have a gambas program. I develop it using Gambas2.7 on Ubuntu 8.04.
 I make an installation package, so the program can be install in other Ubuntu 
 8.04 computer.
 I have made an installation package (deb package) and I install it in other 
 Ubuntu computer.
 After install some lib and gambas-runtime and etc...
 I have an error...
 
 The error message is:
 This Application has raised an unexpected error and must abort. [-1] No 
 keyboard event data.
 
 I am really confused about this problem. This program can run well in my 
 computer (development computer).
 But, it can't run in deployment computer. Is there a problem with 
 gambas-runtime version or other libraries???
 Or is there unknown problem?? How to handle it??
 
 Please tell me the solution immediately...
 
 Thank you...
 

Hi Leo,

The solution immediately...

The only good one is to install on the deployment computer
the gambas development package and your program source.
Including the develop packages for libraries used in your application.
Compile your program. Then you can deinstall those develop packages again
if you want.

Exact to tell what in your case is wrong is difficult.
You have on yor box something different then the deployment box.
This can be different keyboard (usb versus ps2) and/or installed drivers. 
Also the difference Gnome updates can have influence.
May be he is using sim (input method) and you don't.

Anyway your error message is not suuficient ATM.
Some more error messages you can find in (may be and not must)
  .xsession-errors in the user home directory
  /var/log/messages
  /var/log/dmesg

Don't forget there can be a big difference in the real ubuntu
version on both computers depite the install base is the same.
This by later installed programs on your or the other computer.
Also difference aplly of updates counts.

From the error message you have given I know that look as keyboard
related and the major difference is USB or PS2.
Second if the keyboard is the same you can have diffent kmaps in
the xkeyboard settings.

Second it is importand to know what the programm is suppose to do.
If it copies files from one to other place and do not ask user 
keyboard input then the reason is differnt then when it is a 
text edit program.


Once a guy did ask me why his car (opel) was making a peep sound.
I could only say my car (opel same model/year/version) did not do it.
After asking _WHEN_ makes that sound he told it was when he did
going to left or right and the car is the same as yours for 100%.
Well after going to his home, a 8 hours travel, and see his car it was very 
clear. 
His car was not the same anymore as mine, the tires where replaced 
be wider ones and when turning left or right those touched the cover.
After paying me the travel expence I could go home :)

Now you can understand that nobody can give you the 100% solution
with the only 1 given error message.

 Please tell me the solution immediately...
I do assume you mean for solution-some hint to look for and
for immediately-as soon as posible 

It sound now more as a command as it is written and that is what the
viewers see as first thing. They think in mind bey bey, do it yourself.

English is for me not the native language, same as it is not for you
when you are from indonesia.

The best tip I can give to get good result is the one I have given on top.
(Is is also a good test case to make sure your program _is_ tranferable 
to other computers before a mass deploy to others.)


The best situation would be your package could do this job from source.
Not imposible, virtualbox does it for one of the drivers but ATM out
of scope for Gambas.



Best regards,

Ron_1st

-- 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Make return: Without rules to process target `c_color.lo`, necessary for `gb.image.la`. Stop

2009-01-28 Thread Ron_1st
On Wednesday 28 January 2009, Wellington de Souza Pinto wrote:
 Hi everyone!!!
 
 My make return erro and stop. Any idea???
 
 Best Reguards,
 
 
  CImageStat.lo CImageStat.c
  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall
 -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT CImageStat.lo
 -MD -MP -MF .deps/CImageStat.Tpo -c CImageStat.c  -fPIC -DPIC -o
 .libs/CImageStat.o
 mv -f .deps/CImageStat.Tpo .deps/CImageStat.Plo
 
 make[5]: *** Sem regra para processar o alvo `c_color.lo', necessário por
 `gb.image.la'.  Pare
 Tradution: Without rules to process target `c_color.lo`, necessary for
 `gb.image.la`. Stop
 .
 make[5]: Saindo do diretório `/home/knoppix/trunk/main/lib/image'
 make[4]: ** [all-recursive] Erro 1
 make[4]: Saindo do diretório `/home/knoppix/trunk/main/lib'
 make[3]: ** [all-recursive] Erro 1
 make[3]: Saindo do diretório `/home/knoppix/trunk/main'
 make[2]: ** [all] Erro 2
 make[2]: Saindo do diretório `/home/knoppix/trunk/main'
 make[1]: ** [all-recursive] Erro 1
 make[1]: Saindo do diretório `/home/knoppix/trunk'
 make: ** [all] Erro 2
 
 ___
 Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel tem
 tarifas muito baratas esperando por você. Aproveite!
 
 
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 

Yea, I have this too.
I have already report the problem in the tread I have.
There are two small fixes to do, one I could do to fix 
but I have no idea about the rule needed for this one.


Benoit has changed somthing with the lib/image code.
The color conversion resently expanded is now part of this code.
The nessesary information to compile this is not fully in the make file.
this is the case ATM for svn1825 and up as far I know

Its also the risk using svn as source. You never can be sure
the source download/update is fully functional. 
Special when there are several points that must be updated in the source
you can do your download/upgrade between two releated commits to svn.
Mostly this require a retry in let say 1 hour but people need bread
on the table and/or sleep. Then it the time before retry can be 24 hours.

Otherwise the developer does not know the problem of a missing correction
and will be alerted by us complaining it does not work.

So Benoit leave your bed/theater/work and do us a favor :=) :=) :=) 
Hope the theatre you had in the weekend was nice.

I simply wait till next rev number and try again. :)



Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] make install errors

2009-01-28 Thread Ron_1st
On Wednesday 28 January 2009, Benoit Minisini wrote:
 On mercredi 28 janvier 2009, Ron_1st wrote:
  svn 1825
 
  then mv -f .deps/CImageStat.Tpo .deps/CImageStat.Plo; else rm
  -f .deps/CImageStat.Tpo; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I../..
  -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char
  -fvisibility=hidden -g -Os -MT CImageStat.lo -MD -MP -MF
  .deps/CImageStat.Tpo -c CImageStat.c  -fPIC -DPIC -o .libs/CImageStat.o In
  file included from CImageStat.c:27:
  image_stat.h:77:7: warning: no newline at end of file
  make[5]: *** No rule to make target `c_color.lo', needed by `gb.image.la'. 
  Stop. make[5]: Leaving directory
  `/home/ron/src/gambas3/trunk/main/lib/image' make[4]: *** [all-recursive]
  Error 1
 
 
 
  Best regards,
 
  Ron_1st
 
 Update to the latest revision!
 

OK done.

reconf, configure done OK
make had error in gbv4l2.c, corrected and make done OK

Now the make install.
Crossing my fingers.

 


Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] make install errors

2009-01-27 Thread Ron_1st


 gb.xml
 gb.xml.rpc
 gb.xml.xslt
 Installing the components...
 Compiling gb.settings...
 OK
 Installing gb.settings...
 Compiling gb.info...
 OK
 Installing gb.info...
 Compiling gb.form...
 Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list
 /root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: 
 Control
 

Done with new svn in home/ron/src/gambas/trunk
Still same errors.
Conclusion till now is that there are problems with components written in 
gambas.
Creatimg the info and list files does not work correct.
In the /usr/local/share/gambas3/info directory I see strange things
First only gb.form.dialog.info and .list
Second zero length files for
gb.gtk.info .list
gb.gui.info .list
gb.qt.info .list


end of configure gambas3 from svn is:

THESE COMPONENTS ARE DISABLED:
- gb.cairo
- gb.corba
- gb.qt4
- gb.qte


end of configure gambas2.10 from tarball is:

THESE COMPONENTS ARE DISABLED:
- gb.qt4
- gb.qte

(For gambas2 Ihave not done the 'make install')



r...@terminator:/home/ron/src/gambas3/trunk# cat configure1.log | grep 
'component '
checking for foreign function interface component with pkg-config... no
checking for SQLite 3 driver component with pkg-config... OK
checking for GTK+ toolkit component with pkg-config... OK
checking for GTK+ component component with pkg-config... OK
checking for SVG loader for GTK+ component with pkg-config... OK
checking for Poppler PDF library component with pkg-config... OK
checking for Networking component headers...
checking for Networking component libraries...
checking for Advanced networking component component with pkg-config... OK
checking for STMP client component with pkg-config... OK
checking for Perl Compatible Regular Expression component headers... 
/usr/include/
checking for Perl Compatible Regular Expression component libraries... /usr/lib/
checking for QT component component with pkg-config... OK
checking for QT OpenGL component headers... /usr/include/GL/
checking for QT OpenGL component libraries... /usr/lib/
checking for QT/Embedded component headers... /usr/include/qt3/
checking for QT/Embedded component libraries... no
checking for QT component component with pkg-config... OK
checking for KDE 3.x component headers... /usr/include/kde/
checking for KDE 3.x component libraries... /usr/lib/
checking for XML parser component component with pkg-config... OK
checking for XSLT/XML parser component component with pkg-config... OK
checking for Video For Linux component headers... /usr/include/
checking for Video For Linux component libraries... /usr/lib/
checking for DES/MD5 crypt component headers... /usr/include/
checking for DES/MD5 crypt component libraries... /usr/lib/
checking for CORBA component headers... no
checking for CORBA component libraries... no
checking for Gnome desktop routines component with pkg-config... no
checking for QT4 toolkit component with pkg-config... no
checking for Cairo component component with pkg-config... no
checking for Image loading and saving component with pkg-config... OK



checking for Gnome desktop routines component with pkg-config... no
This is standard on KUbuntu. 
Ubuntu users must for IDE get the kde stuff extra so both exists then.

By missing the Gnome desktop gb.ui fails ???
By missing the Gnome desktop gb.gtk fails ???
Do after fail of gb.ui the gb.qt and gb.gtk fail both ???


From previous message:
r...@terminator:~/src/gambas/trunk/comp/src/gb.form# ./gb.form.gambas
No protocol specified
(gb.form.gambas:2318): Gtk-WARNING **: cannot open display: :0.0

Question Gtk ?? gtk-dev is all installed and kubuntu uses QT.




Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] make install errors

2009-01-27 Thread Ron_1st
On Wednesday 28 January 2009, Benoit Minisini wrote:
 On mercredi 28 janvier 2009, Ron_1st wrote:
   There was a syntax error in gb.db.mysql I just fixed, but it is not
   related to your problems.
  
   The gb.desktop.gnome missing library (gnome-keyring-1) does not prevent
   gb.desktop to be compiled. It will just prevent gb.desktop to store
   password in the Gnome keyring.
  
   So I suggest that you delete your Gambas directory, do a checkout from
   start, and compile everything again!
  
   Regards,
 
  I have it done before I send the last results.
  Removed all in /usr/local, everywhere in my home and in the /root dir
  and /usr/share, the /tmp/gambas###
 
 Did you remove the symbolic links in /usr/bin ?
 

No sybolic links in /usr/bin

By configure no --prefix result in /usr/local here so all is in /usr/local/bin
also the symlinks





Best regards,

Ron_1st

-- 
  

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] make install errors

2009-01-27 Thread Ron_1st

svn 1825

then mv -f .deps/CImageStat.Tpo .deps/CImageStat.Plo; else rm -f 
.deps/CImageStat.Tpo; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../share -I../../libltdl -pipe -Wall 
-Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT CImageStat.lo 
-MD -MP -MF .deps/CImageStat.Tpo -c CImageStat.c  -fPIC -DPIC -o 
.libs/CImageStat.o
In file included from CImageStat.c:27:
image_stat.h:77:7: warning: no newline at end of file
make[5]: *** No rule to make target `c_color.lo', needed by `gb.image.la'.  
Stop.
make[5]: Leaving directory `/home/ron/src/gambas3/trunk/main/lib/image'
make[4]: *** [all-recursive] Error 1



Best regards,

Ron_1st

-- 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] make install errors

2009-01-26 Thread Ron_1st
On Monday 26 January 2009, Benoit Minisini wrote:
 On lundi 26 janvier 2009, Ron_1st wrote:

---8---

  !!! hu what does gb.form.list have to do with gb.desktop and the path
  /root/.local/ 
 
 
 
  Best regards,
 
  Ron_1st
 
 Apparently you have compiled the same version of Gambas on different 
 locations, without removing the previous installation before installing the 
 new one.
Yes correct.
1st in home/src/gambas
got the /root/.local/ so maybe a (k)ubuntu sudo problem?

2nd in /root/src/gambas
and got again the /root/.local/

 
 To uninstall Gambas, you had to run make uninstall.
Stupid me, forgotten this

 
 Now you have to clean up your system, by removing the removing the symbolic 
 links created in /usr/bin. Their names are /usr/bin/gb?3. Then you can 
 run make install again.
? They are out of box from svn in /usr/local/* instead /usr/* here. ?

 
 Regards,
 

OK makes sense as usual :)
Search for other gambas files : mime parts : deleted
For 98% no more found.

The only diff seen is gambas-database-manager, one with 2 other without 3

Now I have all in /usr/local/ as gambas2 and gambas3 files.


The thing that got my attention is the info and list goes
to the wrong path for componenten written in gambas.
all the other list and info files are in /usr/local/share/gambas3/info

The /root/.local/gambas3 is empty so try with symlink to
the /usr/local path
Less errors to see.
A common error is gb.form, gb.de.form and gb.form.mdi 

gb.xml
gb.xml.rpc
gb.xml.xslt
Installing the components...
Compiling gb.settings...
OK
Installing gb.settings...
Compiling gb.info...
OK
Installing gb.info...
Compiling gb.form...
Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list
/root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: 
Control


r...@terminator:~/src/gambas/trunk/comp/src/gb.form# ./gb.form.gambas
No protocol specified

(gb.form.gambas:2318): Gtk-WARNING **: cannot open display: :0.0

Question Gtk ?? gtk-dev is all installed and kubuntu uses QT.

The problem with display :0.0 is known why.

Still investigating :)


Best regards,

Ron_1st

-- 

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   >