From nospam.nospam.nospam at ...626... Mon Feb 1 10:19:04 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 1 Feb 2010 20:19:04 +1100 Subject: [Gambas-user] Draw.Text problem with control chars In-Reply-To: <4B656624.5030804@...1909...> References: <1264797477.13240.22.camel@...40...> <201001300035.33924.gambas@...1...> <1264884240.6415.17.camel@...40...> <201001310245.10464.gambas@...1...> <4B655493.7010005@...1909...> <684162C6B7064F29A7379C8CB4BFAB4D@...2330...> <4B656624.5030804@...1909...> Message-ID: On 31 January 2010 22:14, Doriano Blengino wrote: > Kad Mann ha scritto: >> Doriano Blengino wrote: >> >> >>> A tab width is normally eight spaces >>> >> >> Every single one of my cites say you're completely wrong. >> >> http://en.wikipedia.org/wiki/Tab_key >> www.jwz.org/doc/tabs-vs-spaces.html >> http://stackoverflow.com/questions/268538/tab-versus-space-indentation-in-c >> http://stackoverflow.com/questions/119562/tabs-versus-spaces-in-python-programming >> http://wiki.answers.com/Q/How_many_spaces_is_a_tab >> http://wiki.answers.com/Q/When_and_how_do_you_indent_to_begin_a_paragraph >> http://srfi.schemers.org/srfi-49/mail-archive/msg00000.html >> >> >> > Open a console, type "cat" followed by enter. Press the tab key and look > where the cursor goes. lol - they are tab columns, not tabs. From doriano.blengino at ...1909... Mon Feb 1 10:37:31 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 01 Feb 2010 10:37:31 +0100 Subject: [Gambas-user] Draw.Text problem with control chars In-Reply-To: References: <1264797477.13240.22.camel@...40...> <201001300035.33924.gambas@...1...> <1264884240.6415.17.camel@...40...> <201001310245.10464.gambas@...1...> <4B655493.7010005@...1909...> <684162C6B7064F29A7379C8CB4BFAB4D@...2330...> <4B656624.5030804@...1909...> Message-ID: <4B66A0DB.4050801@...1909...> Kadaitcha Man ha scritto: > On 31 January 2010 22:14, Doriano Blengino > wrote: > >> Kad Mann ha scritto: >> >>> Doriano Blengino wrote: >>> >>>> A tab width is normally eight spaces >>>> >>>> >>> Every single one of my cites say you're completely wrong. >>> >>> http://en.wikipedia.org/wiki/Tab_key >>> www.jwz.org/doc/tabs-vs-spaces.html >>> http://stackoverflow.com/questions/268538/tab-versus-space-indentation-in-c >>> http://stackoverflow.com/questions/119562/tabs-versus-spaces-in-python-programming >>> http://wiki.answers.com/Q/How_many_spaces_is_a_tab >>> http://wiki.answers.com/Q/When_and_how_do_you_indent_to_begin_a_paragraph >>> http://srfi.schemers.org/srfi-49/mail-archive/msg00000.html >>> >> Open a console, type "cat" followed by enter. Press the tab key and look >> where the cursor goes. >> > > lol - they are tab columns, not tabs. > I really don't understand you. I went to read your "cites". From wikipedia (your first link): > unclear if any popular printers implemented this. Instead it was > rather quickly replaced with fixed tab stops, at every multiple of 8 > characters horizontally and every 6 lines vertically, so they simply > became a form of data compression, From your second link: > On defaultly-configured Unix systems, and on ancient dumb terminals > and teletypes, the tradition has been for the TAB character to mean > ``move to the right until the current column is a multiple of 8.'' (As > it happens, this is how Netscape interprets TAB inside
 as well.) 
> This is also the default in the two most popular Unix editors, Emacs 
> and vi. 
 From your last link:
> The draft reads:
>
>     For this proposal, a TAB should be counted as exactly four spaces.
>
> That is wrong. TAB is worth 8 spaces if anything. Anyway, mixing tabs
>   
So, while it is true that someone else prefers 4 spaces, or 5, or 
whatever, there is a lot of people, and history, that say that a tab is 
eight spaces wide. Therefore, I am not "completely wrong". Moreover, you 
still confuse tabulators with indentation, which is traditionally matter 
of religious war; but, staying there, even Linux Torwalds says 
"indentation is 8 characters" (read, man, read...).

You have an exquisite understanding of english, but perhaps lack the 
understanding of concepts; more likely, you simply read too fast.

BTW, I wrote to you privately some days ago - did you receive my email?
BTW2: where do you live, if you care? Just my curiosity... it helps me 
to imagine a real person behind these emails.

Regards,
Doriano




From nospam.nospam.nospam at ...626...  Mon Feb  1 12:48:54 2010
From: nospam.nospam.nospam at ...626... (Kadaitcha Man)
Date: Mon, 1 Feb 2010 22:48:54 +1100
Subject: [Gambas-user] Draw.Text problem with control chars
In-Reply-To: <4B66A0DB.4050801@...1909...>
References: <1264797477.13240.22.camel@...40...>
	<201001300035.33924.gambas@...1...>
	<1264884240.6415.17.camel@...40...>
	<201001310245.10464.gambas@...1...>
	<4B655493.7010005@...1909...>
	<684162C6B7064F29A7379C8CB4BFAB4D@...2330...>
	<4B656624.5030804@...1909...>
	
	<4B66A0DB.4050801@...1909...>
Message-ID: 

On 1 February 2010 20:37, Doriano Blengino
 wrote:
> Kadaitcha Man ha scritto:
>> On 31 January 2010 22:14, Doriano Blengino
>>  wrote:
>>
>>> Kad Mann ha scritto:
>>>
>>>> Doriano Blengino wrote:
>>>>
>>>>> A tab width is normally eight spaces
>>>>>
>>>>>
>>>> Every single one of my cites say you're completely wrong.
>>>>
>>>> http://en.wikipedia.org/wiki/Tab_key
>>>> www.jwz.org/doc/tabs-vs-spaces.html
>>>> http://stackoverflow.com/questions/268538/tab-versus-space-indentation-in-c
>>>> http://stackoverflow.com/questions/119562/tabs-versus-spaces-in-python-programming
>>>> http://wiki.answers.com/Q/How_many_spaces_is_a_tab
>>>> http://wiki.answers.com/Q/When_and_how_do_you_indent_to_begin_a_paragraph
>>>> http://srfi.schemers.org/srfi-49/mail-archive/msg00000.html
>>>>
>>> Open a console, type "cat" followed by enter. Press the tab key and look
>>> where the cursor goes.
>>>
>>
>> lol - they are tab columns, not tabs.
>>
> I really don't understand you. I went to read your "cites". From
> wikipedia (your first link):
>

Tab columns can be any width. A tab column can be 2 or 20 characters.
Seeing as a terminal is nominally 80 characters wide, each tab column
is 8 spaces apart, giving 10 tab columns.

That each tab column is 8 spaces apart in a terminal does not imply
that "A tab width is normally eight spaces." It just so happens that
that is default for a terminal, chosen by the developers, a default
that can be changed using setterm -tabs

By your own logic, if a document is 120 characters wide and has two
tab columns then you'd have to claim a tab was 60 characters wide.

There is no correspondence between a tab and the number of spaces it
naturally consumes. The number of spaces a tab should rightly consume
is entirely dependent on the visual characteristics. That is why
Gambas has a default of less than 8 spaces for a tab, otherwise the
code would look ridiculous.

So, to summarise, a tab is as many spaces wide as is needed to make
the text look correct. It is not "normally eight spaces".

> BTW, I wrote to you privately some days ago - did you receive my email?

Yes, thank you.

> BTW2: where do you live, if you care? Just my curiosity...

I'm an Aussie living in Indonesia.

> it helps me to imagine a real person behind these emails.

I'm not real.



From doriano.blengino at ...1909...  Mon Feb  1 13:10:36 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Mon, 01 Feb 2010 13:10:36 +0100
Subject: [Gambas-user] Draw.Text problem with control chars
In-Reply-To: 
References: <1264797477.13240.22.camel@...40...>	<201001300035.33924.gambas@...1...>	<1264884240.6415.17.camel@...40...>	<201001310245.10464.gambas@...1...>	<4B655493.7010005@...1909...>	<684162C6B7064F29A7379C8CB4BFAB4D@...2330...>	<4B656624.5030804@...1909...>		<4B66A0DB.4050801@...1909...>
	
Message-ID: <4B66C4BC.3090409@...1909...>

Kadaitcha Man ha scritto:
>
> Tab columns can be any width. A tab column can be 2 or 20 characters.
> Seeing as a terminal is nominally 80 characters wide, each tab column
> is 8 spaces apart, giving 10 tab columns.
>
> That each tab column is 8 spaces apart in a terminal does not imply
> that "A tab width is normally eight spaces." It just so happens that
> that is default for a terminal, chosen by the developers, a default
> that can be changed using setterm -tabs
>
> By your own logic, if a document is 120 characters wide and has two
> tab columns then you'd have to claim a tab was 60 characters wide.
>
> There is no correspondence between a tab and the number of spaces it
> naturally consumes. The number of spaces a tab should rightly consume
> is entirely dependent on the visual characteristics. That is why
> Gambas has a default of less than 8 spaces for a tab, otherwise the
> code would look ridiculous.
>   
So the linux kernel sources should look ridicolous...
Anyway, as normal, I think we understood each other. Probably we are 
saying the same thing.
>
>> BTW2: where do you live, if you care? Just my curiosity...
>>     
>
> I'm an Aussie living in Indonesia.
>   
I really don't know why, I would have bet you lived in Australia, or 
something like that.
So, when I wake up, you are going to sleep - and vice-versa. This could 
explain our opposed minds... :-)

>> it helps me to imagine a real person behind these emails.
>>     
>
> I'm not real.
>   
Uhm... artificial intelligence I suppose... keep on the good work, there 
is still space for some improvement... :-)

Regards, and good night (just now, here, a beautiful sun and -7? degrees...)

Doriano.



From bill at ...2351...  Mon Feb  1 15:25:41 2010
From: bill at ...2351... (Bill Richman)
Date: Mon, 01 Feb 2010 08:25:41 -0600
Subject: [Gambas-user] Upgraded to 2.19 and now windows and controls are
	mangled
Message-ID: <4B66E465.8010502@...2350...>

I updated to 2.19 to fix a couple of problems I was having, and at first 
all was well.  My code ran just fine in the IDE and everything looked 
normal.  When I made an installation package and installed it on the 
computer where we plan to run the application, however, I found that 
most of my forms were displaying about the size of a postage stamp, and 
there was no sign of any of the controls except the drop-down menus.  I 
installed the compiled version on my development machine and saw the 
same behavior.  Now, since I've rebooted the machine, I see the _same_ 
behavior in the IDE version.  In fact, even the IDE itself shows some of 
this problem.  The attached screenshot shows what I get when I try to 
display the project properties for the "blights" example.  The program 
runs and displays fine, but the properties show up as the tiny sliver in 
the center of the screenshot.  I don't even know where to begin to try 
to fix these problems.  Help?

-- 
Bill Richman - Lincoln, Nebraska
Tilter at windmills, maker of pies in the sky, & curmudgeon
email: bill at ...2350...  web: www.geektrap.com


-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot.png
Type: image/png
Size: 62970 bytes
Desc: not available
URL: 

From bill at ...2351...  Mon Feb  1 15:35:07 2010
From: bill at ...2351... (Bill Richman)
Date: Mon, 01 Feb 2010 08:35:07 -0600
Subject: [Gambas-user] Gambas 2.19 display issues
Message-ID: <4B66E69B.8040900@...2350...>

I forgot to include this in the previous post.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.10
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION="Ubuntu 8.10"

-- 
Bill Richman - Lincoln, Nebraska
Tilter at windmills, maker of pies in the sky, & curmudgeon
email: bill at ...2350...  web: www.geektrap.com





From gambas at ...1...  Mon Feb  1 15:40:27 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Mon, 1 Feb 2010 15:40:27 +0100
Subject: [Gambas-user] Upgraded to 2.19 and now windows and controls are
	mangled
In-Reply-To: <4B66E465.8010502@...2350...>
References: <4B66E465.8010502@...2350...>
Message-ID: <201002011540.27911.gambas@...1...>

> I updated to 2.19 to fix a couple of problems I was having, and at first
> all was well.  My code ran just fine in the IDE and everything looked
> normal.  When I made an installation package and installed it on the
> computer where we plan to run the application, however, I found that
> most of my forms were displaying about the size of a postage stamp, and
> there was no sign of any of the controls except the drop-down menus.  I
> installed the compiled version on my development machine and saw the
> same behavior.  Now, since I've rebooted the machine, I see the _same_
> behavior in the IDE version.  In fact, even the IDE itself shows some of
> this problem.  The attached screenshot shows what I get when I try to
> display the project properties for the "blights" example.  The program
> runs and displays fine, but the properties show up as the tiny sliver in
> the center of the screenshot.  I don't even know where to begin to try
> to fix these problems.  Help?
> 

1) Did you just update Gambas ?

2) Are you sure that everything went well when recompiling? Can you provide 
the output of './configure', 'make', and 'make install'?

3) Did you uninstall the previous version of Gambas?

-- 
Beno?t Minisini



From bill at ...2351...  Mon Feb  1 18:48:37 2010
From: bill at ...2351... (Bill Richman)
Date: Mon, 01 Feb 2010 11:48:37 -0600
Subject: [Gambas-user] Upgraded to 2.19 and now windows and controls are
 mangled
In-Reply-To: <201002011540.27911.gambas@...1...>
References: <4B66E465.8010502@...2350...>
	<201002011540.27911.gambas@...1...>
Message-ID: <4B6713F5.3040507@...2350...>

1. I have Ubuntu set to automatically install critical updates, so I 
can't say for sure, but the problem happens with the runtime on two 
machines, one running Ubuntu 8.10 and one running Ubuntu 8.04.

2. I'm not positive; I may have missed one or two of the hundred and 
fifty million messages that blew past during the compile and make... :-/ 

3. No, I didn't uninstall the previous version.  I didn't know that I 
needed to.  I'm going to uninstall the old version using Synaptic, try 
to find and remove anything that was installed by the new build, and 
then run the configure and make again.  I'll try to capture the outputs 
this time and get back to you with them if the problem still exists.

Thanks,
-Bill

Bill Richman - Lincoln, Nebraska
Tilter at windmills, maker of pies in the sky, & curmudgeon
email: bill at ...2350...  web: www.geektrap.com




Beno?t Minisini wrote:
>> I updated to 2.19 to fix a couple of problems I was having, and at first
>> all was well.  My code ran just fine in the IDE and everything looked
>> normal.  When I made an installation package and installed it on the
>> computer where we plan to run the application, however, I found that
>> most of my forms were displaying about the size of a postage stamp, and
>> there was no sign of any of the controls except the drop-down menus.  I
>> installed the compiled version on my development machine and saw the
>> same behavior.  Now, since I've rebooted the machine, I see the _same_
>> behavior in the IDE version.  In fact, even the IDE itself shows some of
>> this problem.  The attached screenshot shows what I get when I try to
>> display the project properties for the "blights" example.  The program
>> runs and displays fine, but the properties show up as the tiny sliver in
>> the center of the screenshot.  I don't even know where to begin to try
>> to fix these problems.  Help?
>>
>>     
>
> 1) Did you just update Gambas ?
>
> 2) Are you sure that everything went well when recompiling? Can you provide 
> the output of './configure', 'make', and 'make install'?
>
> 3) Did you uninstall the previous version of Gambas?
>
>   




From dag.jarle.johansen at ...2312...  Mon Feb  1 18:57:13 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Mon, 01 Feb 2010 14:57:13 -0300
Subject: [Gambas-user] Distribution
Message-ID: 

hi,

slowly things are getting a bit frustrating.
I don't think so, but perhaps I have insulted someone? or are my themes
so less interesting, no one cares to answer? I do not expect that all
just are waiting for my problems, but absolutly no responce seems a
little strange. 
I follow the mailing-list all the time; I can see endless discussions
about the philosophy of tabs, and no one seems to care about problems
which are essential to get gambas out to the people. not all docs are
that easy to understand or so complete that one can use them as a
guideline - perhaps for the one who wrote the doc - not necessarily for
some others. it is not easy to write docs for a software which is
permanently developing, clear enough. one of my thoughts was to write
some examples my self, still want to, but there is a lot to learn first,
and as gambas develops, changes turns up, so my first attempts got old
even before I could put them on the net. 

nevertheless - I mainly write database-apps, and they are running in one
or another network. it may be a lokal network or on a database in web
with an external connection. so I will have to test the apps on several
computers. and this is getting difficult. on my workstattion, ubuntu
9.10, I had no troubles installing gambas 3 SVN. then I tried to make an
installation-package for ubuntu for my second PC - failed. 

is there any place I can find a detailled doc for creating an
installation package? the problem is, the assistant quits with an
error-message: failed to create package. period. I would need some more
info.

thanks and regards,
Dag Jarle Johansen






From doriano.blengino at ...1909...  Mon Feb  1 19:59:53 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Mon, 01 Feb 2010 19:59:53 +0100
Subject: [Gambas-user] Distribution
In-Reply-To: 
References: 
Message-ID: <4B6724A9.4080903@...1909...>

Dag Jarle Johansen ha scritto:
> hi,
>
> slowly things are getting a bit frustrating.
> I don't think so, but perhaps I have insulted someone? or are my themes
> so less interesting, no one cares to answer? I do not expect that all
> just are waiting for my problems, but absolutly no responce seems a
> little strange. 
> I follow the mailing-list all the time; I can see endless discussions
> about the philosophy of tabs, and no one seems to care about problems
> which are essential to get gambas out to the people. not all docs are
>   
Dear Dag,

I would be happy to help, if only I was able to do it.

I write about things I know, or I think to know, and not about things I 
don't know. And sometimes threads get too long because someone else 
tries to demonstrate that I am wrong. Sorry for this too.

I hope that, and I am nearly sure that, someone else will help you.

Regards,
Doriano




From nospam.nospam.nospam at ...626...  Mon Feb  1 20:17:48 2010
From: nospam.nospam.nospam at ...626... (Kadaitcha Man)
Date: Tue, 2 Feb 2010 06:17:48 +1100
Subject: [Gambas-user] Draw.Text problem with control chars
In-Reply-To: <4B66C4BC.3090409@...1909...>
References: <1264797477.13240.22.camel@...40...>
	<1264884240.6415.17.camel@...40...>
	<201001310245.10464.gambas@...1...>
	<4B655493.7010005@...1909...>
	<684162C6B7064F29A7379C8CB4BFAB4D@...2330...>
	<4B656624.5030804@...1909...>
	
	<4B66A0DB.4050801@...1909...>
	
	<4B66C4BC.3090409@...1909...>
Message-ID: 

On 1 February 2010 23:10, Doriano Blengino
 wrote:

> Probably we are
> saying the same thing.

Not if a tab is eight spaces wide, we aren't :)



From bill at ...2351...  Mon Feb  1 20:42:21 2010
From: bill at ...2351... (Bill Richman)
Date: Mon, 01 Feb 2010 13:42:21 -0600
Subject: [Gambas-user] Popup menus not popping
Message-ID: <4B672E9D.4040101@...2350...>

I recently reinstalled Gambas 2.19, and the project I was working on 
seems to be working fine, except that right-clicking on an IconView 
control on a form no longer brings up the hidden menu.  I've tried 
deleting and recreating the menu entries and several other things.  On 
the console, I see the "Calling SubplotOptions.Popup" immediately 
followed by "Returned from SubplotOptions.Popup", but no menu ever shows 
up.  If I set the top-level menu (SubplotOptions) to be visible, it 
shows up as a regular drop-down menu, and the actions defined for it 
work fine.  This was working previously, so I'm not sure what happened.  
Any suggestions?


PUBLIC SUB IconView1_MouseDown()
 IF Mouse.Right THEN
    DEBUG "Calling SubplotOptions.Popup"
    SubplotOptions.Popup
    DEBUG "Returned from SubplotOptions.Popup"
 ENDIF
END

-- 
Bill Richman - Lincoln, Nebraska
Tilter at windmills, maker of pies in the sky, & curmudgeon
email: bill at ...2350...  web: www.geektrap.com





From dag.jarle.johansen at ...2312...  Mon Feb  1 20:52:20 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Mon, 01 Feb 2010 16:52:20 -0300
Subject: [Gambas-user] Distribution
In-Reply-To: <4B6724A9.4080903@...1909...>
References: 
	<4B6724A9.4080903@...1909...>
Message-ID: 


Am Montag, den 01.02.2010, 19:59 +0100 schrieb Doriano Blengino:
> Dag Jarle Johansen ha scritto:
> > hi,
> >
> > slowly things are getting a bit frustrating.
> > I don't think so, but perhaps I have insulted someone? or are my themes
> > so less interesting, no one cares to answer? I do not expect that all
> > just are waiting for my problems, but absolutly no responce seems a
> > little strange. 
> > I follow the mailing-list all the time; I can see endless discussions
> > about the philosophy of tabs, and no one seems to care about problems
> > which are essential to get gambas out to the people. not all docs are
> >   
> Dear Dag,
> 
> I would be happy to help, if only I was able to do it.
> 
> I write about things I know, or I think to know, and not about things I 
> don't know. And sometimes threads get too long because someone else 
> tries to demonstrate that I am wrong. Sorry for this too.
> 
> I hope that, and I am nearly sure that, someone else will help you.
> 
> Regards,
> Doriano
> 
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

Dear Doriano,

thanks, I appreciate that :)

I see many things myself, where I would like to help, but it is still
just out of bounds. Gambas has developed to a mightful language, and I
think that every developer has a focus on special issues or tasks. Still
there are some common areas, and to these belongs installation and
distributing. I'll do one thing the next days, at least for the newbies
using Ubuntu - how to use the SVN right. I struggled a long time with
gambas 2.13, shipped with Ubuntu 9.10, before I managed to install the
SVN; it is not difficult, but making one mistake makes you start all
over again. I just like lists, telling me step by step: do 1,2,3. On the
Gamba-HP there are 3 pages to go through, and in the beginning I just
misunderstood and mixed up stuff. Stable or not, I think more bugs are
gone than in the older versions, and on the other hand one get faster
used to the changed syntax.

I wan't talk about tabs, Doriano :) - a never really solved problem,
since I started making IT - that was in 1980.

Regards,
Dag




From Karl.Reinl at ...2345...  Mon Feb  1 21:04:02 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Mon, 01 Feb 2010 21:04:02 +0100
Subject: [Gambas-user] Popup menus not popping
In-Reply-To: <4B672E9D.4040101@...2350...>
References: <4B672E9D.4040101@...2350...>
Message-ID: <1265054642.6559.8.camel@...40...>

Am Montag, den 01.02.2010, 13:42 -0600 schrieb Bill Richman:
> I recently reinstalled Gambas 2.19, and the project I was working on 
> seems to be working fine, except that right-clicking on an IconView 
> control on a form no longer brings up the hidden menu.  I've tried 
> deleting and recreating the menu entries and several other things.  On 
> the console, I see the "Calling SubplotOptions.Popup" immediately 
> followed by "Returned from SubplotOptions.Popup", but no menu ever shows 
> up.  If I set the top-level menu (SubplotOptions) to be visible, it 
> shows up as a regular drop-down menu, and the actions defined for it 
> work fine.  This was working previously, so I'm not sure what happened.  
> Any suggestions?
> 
> 
> PUBLIC SUB IconView1_MouseDown()
>  IF Mouse.Right THEN
>     DEBUG "Calling SubplotOptions.Popup"
>     SubplotOptions.Popup
>     DEBUG "Returned from SubplotOptions.Popup"
>  ENDIF
> END
> 

Salut Bill,

shown outside your screen or to tiny ? Didn't you report a size
problems ?

Shortly I found out, that it is a good idea, when I had "graphic"
troubles, to create a new user and looked if it also happend with that
newly created user.

-- 
Amicalement
Charlie




From gambas at ...1...  Mon Feb  1 21:09:47 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Mon, 1 Feb 2010 21:09:47 +0100
Subject: [Gambas-user] Popup menus not popping
In-Reply-To: <4B672E9D.4040101@...2350...>
References: <4B672E9D.4040101@...2350...>
Message-ID: <201002012109.47476.gambas@...1...>

> I recently reinstalled Gambas 2.19, and the project I was working on
> seems to be working fine, except that right-clicking on an IconView
> control on a form no longer brings up the hidden menu.  I've tried
> deleting and recreating the menu entries and several other things.  On
> the console, I see the "Calling SubplotOptions.Popup" immediately
> followed by "Returned from SubplotOptions.Popup", but no menu ever shows
> up.  If I set the top-level menu (SubplotOptions) to be visible, it
> shows up as a regular drop-down menu, and the actions defined for it
> work fine.  This was working previously, so I'm not sure what happened.
> Any suggestions?
> 
> 
> PUBLIC SUB IconView1_MouseDown()
>  IF Mouse.Right THEN
>     DEBUG "Calling SubplotOptions.Popup"
>     SubplotOptions.Popup
>     DEBUG "Returned from SubplotOptions.Popup"
>  ENDIF
> END
> 

I need more info: mainly if you use gb.qt, gb.gtk, or gb.gui, with wich 
desktop, and if you use a composite desktop. And if you can provide a project 
that shows the bug, it will speed my job a lot!

Regards,

-- 
Beno?t Minisini



From gambas at ...1...  Mon Feb  1 21:12:32 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Mon, 1 Feb 2010 21:12:32 +0100
Subject: [Gambas-user] Distribution
In-Reply-To: 
References: 
Message-ID: <201002012112.32129.gambas@...1...>

> hi,
> 
> slowly things are getting a bit frustrating.
> I don't think so, but perhaps I have insulted someone? or are my themes
> so less interesting, no one cares to answer? I do not expect that all
> just are waiting for my problems, but absolutly no responce seems a
> little strange.
> I follow the mailing-list all the time; I can see endless discussions
> about the philosophy of tabs, and no one seems to care about problems
> which are essential to get gambas out to the people. not all docs are
> that easy to understand or so complete that one can use them as a
> guideline - perhaps for the one who wrote the doc - not necessarily for
> some others. it is not easy to write docs for a software which is
> permanently developing, clear enough. one of my thoughts was to write
> some examples my self, still want to, but there is a lot to learn first,
> and as gambas develops, changes turns up, so my first attempts got old
> even before I could put them on the net.
> 
> nevertheless - I mainly write database-apps, and they are running in one
> or another network. it may be a lokal network or on a database in web
> with an external connection. so I will have to test the apps on several
> computers. and this is getting difficult. on my workstattion, ubuntu
> 9.10, I had no troubles installing gambas 3 SVN. then I tried to make an
> installation-package for ubuntu for my second PC - failed.
> 
> is there any place I can find a detailled doc for creating an
> installation package? the problem is, the assistant quits with an
> error-message: failed to create package. period. I would need some more
> info.
> 
> thanks and regards,
> Dag Jarle Johansen
> 

Making packages relies on external tools, and things may change from one 
distribution version to a next distribution version, and I am not usually 
aware of these changes until someone tells that it does not work anymore!

To help you, I need the project you want to package. Then I will test on my 
Ubuntu 9.10 64 bits VirtualBox system and see what happens.

Regards,

-- 
Beno?t Minisini



From jussi.lahtinen at ...626...  Mon Feb  1 22:28:39 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Mon, 1 Feb 2010 23:28:39 +0200
Subject: [Gambas-user] Distribution
In-Reply-To: <201002012112.32129.gambas@...1...>
References:  
	<201002012112.32129.gambas@...1...>
Message-ID: <384d3901002011328v4a685c9fy1b0369f02705976d@...627...>

I'm using Gambas3 (very old rev 2414 [and maybe my problem]) on Ubuntu
9.10 64bit, and packaging seem to work.
But installation of package gives me "Error: Dependency is not
satisfiable: gambas3-gb-image (>= 1.9.48)".
I will compile latest Gambas3 revision and try it tomorrow.

Jussi



2010/2/1 Beno?t Minisini :
>> hi,
>>
>> slowly things are getting a bit frustrating.
>> I don't think so, but perhaps I have insulted someone? or are my themes
>> so less interesting, no one cares to answer? I do not expect that all
>> just are waiting for my problems, but absolutly no responce seems a
>> little strange.
>> I follow the mailing-list all the time; I can see endless discussions
>> about the philosophy of tabs, and no one seems to care about problems
>> which are essential to get gambas out to the people. not all docs are
>> that easy to understand or so complete that one can use them as a
>> guideline - perhaps for the one who wrote the doc - not necessarily for
>> some others. it is not easy to write docs for a software which is
>> permanently developing, clear enough. one of my thoughts was to write
>> some examples my self, still want to, but there is a lot to learn first,
>> and as gambas develops, changes turns up, so my first attempts got old
>> even before I could put them on the net.
>>
>> nevertheless - I mainly write database-apps, and they are running in one
>> or another network. it may be a lokal network or on a database in web
>> with an external connection. so I will have to test the apps on several
>> computers. and this is getting difficult. on my workstattion, ubuntu
>> 9.10, I had no troubles installing gambas 3 SVN. then I tried to make an
>> installation-package for ubuntu for my second PC - failed.
>>
>> is there any place I can find a detailled doc for creating an
>> installation package? the problem is, the assistant quits with an
>> error-message: failed to create package. period. I would need some more
>> info.
>>
>> thanks and regards,
>> Dag Jarle Johansen
>>
>
> Making packages relies on external tools, and things may change from one
> distribution version to a next distribution version, and I am not usually
> aware of these changes until someone tells that it does not work anymore!
>
> To help you, I need the project you want to package. Then I will test on my
> Ubuntu 9.10 64 bits VirtualBox system and see what happens.
>
> Regards,
>
> --
> Beno?t Minisini
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From gambas at ...1...  Mon Feb  1 22:35:09 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Mon, 1 Feb 2010 22:35:09 +0100
Subject: [Gambas-user] Distribution
In-Reply-To: <384d3901002011328v4a685c9fy1b0369f02705976d@...627...>
References: 
	<201002012112.32129.gambas@...1...>
	<384d3901002011328v4a685c9fy1b0369f02705976d@...627...>
Message-ID: <201002012235.09372.gambas@...1...>

> I'm using Gambas3 (very old rev 2414 [and maybe my problem]) on Ubuntu
> 9.10 64bit, and packaging seem to work.
> But installation of package gives me "Error: Dependency is not
> satisfiable: gambas3-gb-image (>= 1.9.48)".
> I will compile latest Gambas3 revision and try it tomorrow.
> 
> Jussi
> 

Packager has not been updated on Gambas 3. There is no binary packages of 
Gambas 3 yet, so...

-- 
Beno?t Minisini



From gambas at ...1...  Mon Feb  1 23:28:25 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Mon, 1 Feb 2010 23:28:25 +0100
Subject: [Gambas-user] Distribution
In-Reply-To: 
References: 
Message-ID: <201002012328.25584.gambas@...1...>

> hi,
> 
> slowly things are getting a bit frustrating.
> I don't think so, but perhaps I have insulted someone? or are my themes
> so less interesting, no one cares to answer? I do not expect that all
> just are waiting for my problems, but absolutly no responce seems a
> little strange.
> I follow the mailing-list all the time; I can see endless discussions
> about the philosophy of tabs, and no one seems to care about problems
> which are essential to get gambas out to the people. not all docs are
> that easy to understand or so complete that one can use them as a
> guideline - perhaps for the one who wrote the doc - not necessarily for
> some others. it is not easy to write docs for a software which is
> permanently developing, clear enough. one of my thoughts was to write
> some examples my self, still want to, but there is a lot to learn first,
> and as gambas develops, changes turns up, so my first attempts got old
> even before I could put them on the net.
> 
> nevertheless - I mainly write database-apps, and they are running in one
> or another network. it may be a lokal network or on a database in web
> with an external connection. so I will have to test the apps on several
> computers. and this is getting difficult. on my workstattion, ubuntu
> 9.10, I had no troubles installing gambas 3 SVN. then I tried to make an
> installation-package for ubuntu for my second PC - failed.
> 
> is there any place I can find a detailled doc for creating an
> installation package? the problem is, the assistant quits with an
> error-message: failed to create package. period. I would need some more
> info.
> 
> thanks and regards,
> Dag Jarle Johansen
> 
> 

I got your project file, but why do you want to make a binary package of your 
Gambas 3 project now? It will be useless, as there is no binary packages of 
Gambas 3 at the moment.

-- 
Beno?t Minisini



From dag.jarle.johansen at ...2312...  Mon Feb  1 23:45:12 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Mon, 01 Feb 2010 19:45:12 -0300
Subject: [Gambas-user] Distribution
In-Reply-To: <201002012328.25584.gambas@...1...>
References: 
	<201002012328.25584.gambas@...1...>
Message-ID: 

Am Montag, den 01.02.2010, 23:28 +0100 schrieb Beno?t Minisini:
> > hi,
> > 
> > slowly things are getting a bit frustrating.
> > I don't think so, but perhaps I have insulted someone? or are my themes
> > so less interesting, no one cares to answer? I do not expect that all
> > just are waiting for my problems, but absolutly no responce seems a
> > little strange.
> > I follow the mailing-list all the time; I can see endless discussions
> > about the philosophy of tabs, and no one seems to care about problems
> > which are essential to get gambas out to the people. not all docs are
> > that easy to understand or so complete that one can use them as a
> > guideline - perhaps for the one who wrote the doc - not necessarily for
> > some others. it is not easy to write docs for a software which is
> > permanently developing, clear enough. one of my thoughts was to write
> > some examples my self, still want to, but there is a lot to learn first,
> > and as gambas develops, changes turns up, so my first attempts got old
> > even before I could put them on the net.
> > 
> > nevertheless - I mainly write database-apps, and they are running in one
> > or another network. it may be a lokal network or on a database in web
> > with an external connection. so I will have to test the apps on several
> > computers. and this is getting difficult. on my workstattion, ubuntu
> > 9.10, I had no troubles installing gambas 3 SVN. then I tried to make an
> > installation-package for ubuntu for my second PC - failed.
> > 
> > is there any place I can find a detailled doc for creating an
> > installation package? the problem is, the assistant quits with an
> > error-message: failed to create package. period. I would need some more
> > info.
> > 
> > thanks and regards,
> > Dag Jarle Johansen
> > 
> > 
> 
> I got your project file, but why do you want to make a binary package of your 
> Gambas 3 project now? It will be useless, as there is no binary packages of 
> Gambas 3 at the moment.
> 

hi

ok, see the point, I just wanted to be fit to test over the network,
without installing the complete gambas 3 SVN. it is just a matter of
(bad) experience, to test as early as possible, even if the app is not
ready. in my MS-days I have paid with a lot of extra work, because the
software worked fine on the developer machine, and on a second
workstation it did not work at all. I will be patiently waiting for the
day when gambas 3 can be "packed" :) - still have one "clean" ubuntu-pc
around. for the moment I can test, and the app works fine on both PC's. 

I'll watch up for the size of the attatchment in the future, was not
quite aware of that.

thanks for your time and concern
regards
Dag




From bill at ...2351...  Tue Feb  2 00:09:11 2010
From: bill at ...2351... (Bill Richman)
Date: Mon, 01 Feb 2010 17:09:11 -0600
Subject: [Gambas-user] Popup menus not popping
In-Reply-To: <201002012109.47476.gambas@...1...>
References: <4B672E9D.4040101@...2350...>
	<201002012109.47476.gambas@...1...>
Message-ID: <4B675F17.9080301@...2350...>

Of the three you listed, I use gb.gui only.  If I should be using 
something else, I'd be glad to try it.  I'm running Ubuntu 8.10 
("Intrepid") with Gnome 2.24.1 desktop.  Interestingly, when I try to 
build a simple project to show the menu problem, the menus work 
(naturally... X-/) but they only remain visible as long as you've got 
the right mouse-button down.  Before I did brain-surgery on Gambas, my 
project used to have a hidden menu which would be activated by the 
iconview1_mouse.down() /mouse.right combination and it would _stay_ 
visible until you made a selection.  In the attached demonstration 
project, the menu appears when you right-click on the iconview, but it 
vanishes if you release the right button.  Also, if you watch the 
console, the call to "hiddenmenu.popup" returns instantly, even if you 
keep the right button down.  Is this the intended behavior?  I'm 
confused.  (Big surprise there, I know...)

Bill Richman - Lincoln, Nebraska
Tilter at windmills, maker of pies in the sky, & curmudgeon
email: bill at ...2350...  web: www.geektrap.com




Beno?t Minisini wrote:
>> I recently reinstalled Gambas 2.19, and the project I was working on
>> seems to be working fine, except that right-clicking on an IconView
>> control on a form no longer brings up the hidden menu.  I've tried
>> deleting and recreating the menu entries and several other things.  On
>> the console, I see the "Calling SubplotOptions.Popup" immediately
>> followed by "Returned from SubplotOptions.Popup", but no menu ever shows
>> up.  If I set the top-level menu (SubplotOptions) to be visible, it
>> shows up as a regular drop-down menu, and the actions defined for it
>> work fine.  This was working previously, so I'm not sure what happened.
>> Any suggestions?
>>
>>
>> PUBLIC SUB IconView1_MouseDown()
>>  IF Mouse.Right THEN
>>     DEBUG "Calling SubplotOptions.Popup"
>>     SubplotOptions.Popup
>>     DEBUG "Returned from SubplotOptions.Popup"
>>  ENDIF
>> END
>>
>>     
>
> I need more info: mainly if you use gb.qt, gb.gtk, or gb.gui, with wich 
> desktop, and if you use a composite desktop. And if you can provide a project 
> that shows the bug, it will speed my job a lot!
>
> Regards,
>
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: popup-test.zip
Type: application/zip
Size: 10335 bytes
Desc: not available
URL: 

From dr.diesel at ...626...  Tue Feb  2 01:24:59 2010
From: dr.diesel at ...626... (Dr.Diesel)
Date: Mon, 1 Feb 2010 16:24:59 -0800 (PST)
Subject: [Gambas-user]  SVN 2654 Run Error
Message-ID: <27413830.post@...1379...>


FYI, when running gambas3 SVN 2654 I receive this error:

[george at ...2374... ~]$ gambas3
CRecentFile._new.14: #45: File or directory does not exist
0: CRecentFile._new.14
1: CRecentFile.Load.73
2: Project.Main.199

** (:28228): WARNING **: Failed to send buffer

** (:28228): WARNING **: Failed to send buffer
[george at ...2374... ~]$ 

Also on the pop up:

This application has raised an unexpected
error and must abort.

gambas then crashes.

Thanks
Andy
-- 
View this message in context: http://old.nabble.com/SVN-2654-Run-Error-tp27413830p27413830.html
Sent from the gambas-user mailing list archive at Nabble.com.




From mx4eva at ...626...  Tue Feb  2 09:24:03 2010
From: mx4eva at ...626... (Fiddler63)
Date: Tue, 2 Feb 2010 00:24:03 -0800 (PST)
Subject: [Gambas-user]  How to create a new drawing area
Message-ID: <27416835.post@...1379...>


I have a button which, when clicked created a new drawing area.
The following code does that fine (and I can move it with the mouse).

PRIVATE LCD_01 AS NEW Picture
PRIVATE LCD_02 AS NEW Picture

PUBLIC SUB NewLCD_Btn_Click()
 
 LCD_01 = Picture.Load("Pix_C.png")
 LCD_02 = Picture.Load("Pix_A.png")
 DrawingArea2.X = 500                       
 DrawingArea2.Y = 300
 
 DrawingArea2.Border = 2
 DrawingArea2.Resize(LCD_01.Width * 10, LCD_01.Height * 2)
END

PUBLIC SUB DrawingArea2_Draw()
 Draw.Picture(LCD_01, 5, 5)
 Draw.Picture(LCD_02, 43, 5)
END

PUBLIC SUB DrawingArea2_MouseMove()
 DrawingArea2.X += Mouse.X - Mouse.StartX
 DrawingArea2.Y += Mouse.Y - Mouse.StartY
END
'***************************************************

However when I click on the button, I get the same area drawn again
(actually the already drawn area moves back to the origin x,y co-ordinates)
I would like to create a new drawing area each time I click the button, i.e.
if I click the button 10 times, I get 10 new drawing areas.
Also I would like to be able to delete each drawing area as well.

Any suggestions how I could do this 

Ta
kim
-- 
View this message in context: http://old.nabble.com/How-to-create-a-new-drawing-area-tp27416835p27416835.html
Sent from the gambas-user mailing list archive at Nabble.com.




From Karl.Reinl at ...2345...  Tue Feb  2 10:21:46 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Tue, 02 Feb 2010 10:21:46 +0100
Subject: [Gambas-user] Popup menus not popping
In-Reply-To: <4B675F17.9080301@...2350...>
References: <4B672E9D.4040101@...2350...>
	<201002012109.47476.gambas@...1...>
	<4B675F17.9080301@...2350...>
Message-ID: <1265102506.8317.9.camel@...40...>

Am Montag, den 01.02.2010, 17:09 -0600 schrieb Bill Richman:
> Of the three you listed, I use gb.gui only.  If I should be using 
> something else, I'd be glad to try it.  I'm running Ubuntu 8.10 
> ("Intrepid") with Gnome 2.24.1 desktop.  Interestingly, when I try to 
> build a simple project to show the menu problem, the menus work 
> (naturally... X-/) but they only remain visible as long as you've got 
> the right mouse-button down.  Before I did brain-surgery on Gambas, my 
> project used to have a hidden menu which would be activated by the 
> iconview1_mouse.down() /mouse.right combination and it would _stay_ 
> visible until you made a selection.  In the attached demonstration 
> project, the menu appears when you right-click on the iconview, but it 
> vanishes if you release the right button.  Also, if you watch the 
> console, the call to "hiddenmenu.popup" returns instantly, even if you 
> keep the right button down.  Is this the intended behavior?  I'm 
> confused.  (Big surprise there, I know...)
> 
> Bill Richman - Lincoln, Nebraska
> Tilter at windmills, maker of pies in the sky, & curmudgeon
> email: bill at ...2350...  web: www.geektrap.com
> 

Salut Bill,

FMain.IconView1_MouseDown.14: Before popup call
FMain.IconView1_MouseDown.16: after popup call
FMain.action_activate.8: action_activate: key = choice1
FMain.IconView1_MouseDown.14: Before popup call
FMain.IconView1_MouseDown.16: after popup call
FMain.action_activate.8: action_activate: key = choice2

this is the output from you test-project on my Ubuntu 8.04.3  LTS.

I get like expected, the popup menu and can choose an entry.
So I think something wired on your box. 


-- 
Amicalement
Charlie




From oceanosoftlapalma at ...626...  Tue Feb  2 10:54:05 2010
From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=)
Date: Tue, 2 Feb 2010 09:54:05 +0000
Subject: [Gambas-user] GRIDVIEW: SCROLL & DOUBLE CLICK
In-Reply-To: <200912022023.40215.gambas@...1...>
References: 
	
	
	<200912022023.40215.gambas@...1...>
Message-ID: 

Benoit,

Something new about this? How can I help you?

Regards,

2009/12/2 Beno?t Minisini 

> > Have you received the example?
> >
>
> I did.
>
> --
> Beno?t Minisini
>
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


From gambas.fr at ...626...  Tue Feb  2 20:57:18 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Tue, 2 Feb 2010 20:57:18 +0100
Subject: [Gambas-user] How to create a new drawing area
In-Reply-To: <27416835.post@...1379...>
References: <27416835.post@...1379...>
Message-ID: <6324a42a1002021157u45f2ef77i407fceefd8808ebf@...627...>

2010/2/2 Fiddler63 :
>
> I have a button which, when clicked created a new drawing area.
> The following code does that fine (and I can move it with the mouse).
>
> PRIVATE LCD_01 AS NEW Picture
> PRIVATE LCD_02 AS NEW Picture
>
> PUBLIC SUB NewLCD_Btn_Click()
>
> ?LCD_01 = Picture.Load("Pix_C.png")
> ?LCD_02 = Picture.Load("Pix_A.png")
> ?DrawingArea2.X = 500
> ?DrawingArea2.Y = 300
>
> ?DrawingArea2.Border = 2
> ?DrawingArea2.Resize(LCD_01.Width * 10, LCD_01.Height * 2)
> END
>
> PUBLIC SUB DrawingArea2_Draw()
> ?Draw.Picture(LCD_01, 5, 5)
> ?Draw.Picture(LCD_02, 43, 5)
> END
>
> PUBLIC SUB DrawingArea2_MouseMove()
> ?DrawingArea2.X += Mouse.X - Mouse.StartX
> ?DrawingArea2.Y += Mouse.Y - Mouse.StartY
> END
> '***************************************************
>
> However when I click on the button, I get the same area drawn again
> (actually the already drawn area moves back to the origin x,y co-ordinates)
> I would like to create a new drawing area each time I click the button, i.e.
> if I click the button 10 times, I get 10 new drawing areas.
> Also I would like to be able to delete each drawing area as well.
>
> Any suggestions how I could do this
>
> Ta
> kim
> --
> View this message in context: http://old.nabble.com/How-to-create-a-new-drawing-area-tp27416835p27416835.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

I think itwill be better to draw all thenumbers on the same drawing area..



From gambas at ...1...  Wed Feb  3 01:49:03 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Wed, 3 Feb 2010 01:49:03 +0100
Subject: [Gambas-user] SVN 2654 Run Error
In-Reply-To: <27413830.post@...1379...>
References: <27413830.post@...1379...>
Message-ID: <201002030149.03645.gambas@...1...>

> FYI, when running gambas3 SVN 2654 I receive this error:
> 
> [george at ...2374... ~]$ gambas3
> CRecentFile._new.14: #45: File or directory does not exist
> 0: CRecentFile._new.14
> 1: CRecentFile.Load.73
> 2: Project.Main.199
> 
> ** (:28228): WARNING **: Failed to send buffer
> 
> ** (:28228): WARNING **: Failed to send buffer
> [george at ...2374... ~]$
> 
> Also on the pop up:
> 
> This application has raised an unexpected
> error and must abort.
> 
> gambas then crashes.
> 
> Thanks
> Andy
> 

It should be fixed in revision #2655.

Regards,

-- 
Beno?t Minisini



From gambas at ...1...  Wed Feb  3 01:50:59 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Wed, 3 Feb 2010 01:50:59 +0100
Subject: [Gambas-user] Popup menus not popping
In-Reply-To: <4B675F17.9080301@...2350...>
References: <4B672E9D.4040101@...2350...>
	<201002012109.47476.gambas@...1...>
	<4B675F17.9080301@...2350...>
Message-ID: <201002030150.59891.gambas@...1...>

> Of the three you listed, I use gb.gui only.  If I should be using
> something else, I'd be glad to try it.  I'm running Ubuntu 8.10
> ("Intrepid") with Gnome 2.24.1 desktop.  Interestingly, when I try to
> build a simple project to show the menu problem, the menus work
> (naturally... X-/) but they only remain visible as long as you've got
> the right mouse-button down.  Before I did brain-surgery on Gambas, my
> project used to have a hidden menu which would be activated by the
> iconview1_mouse.down() /mouse.right combination and it would _stay_
> visible until you made a selection.  In the attached demonstration
> project, the menu appears when you right-click on the iconview, but it
> vanishes if you release the right button.  Also, if you watch the
> console, the call to "hiddenmenu.popup" returns instantly, even if you
> keep the right button down.  Is this the intended behavior?  I'm
> confused.  (Big surprise there, I know...)
> 
> Bill Richman - Lincoln, Nebraska
> Tilter at windmills, maker of pies in the sky, & curmudgeon
> email: bill at ...2350...  web: www.geektrap.com
> 

I confirm, this is a bug in gb.gtk.

-- 
Beno?t Minisini



From gambas at ...1...  Wed Feb  3 02:42:00 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Wed, 3 Feb 2010 02:42:00 +0100
Subject: [Gambas-user] Popup menus not popping
In-Reply-To: <201002030150.59891.gambas@...1...>
References: <4B672E9D.4040101@...2350...> <4B675F17.9080301@...2350...>
	<201002030150.59891.gambas@...1...>
Message-ID: <201002030242.00825.gambas@...1...>

> > Of the three you listed, I use gb.gui only.  If I should be using
> > something else, I'd be glad to try it.  I'm running Ubuntu 8.10
> > ("Intrepid") with Gnome 2.24.1 desktop.  Interestingly, when I try to
> > build a simple project to show the menu problem, the menus work
> > (naturally... X-/) but they only remain visible as long as you've got
> > the right mouse-button down.  Before I did brain-surgery on Gambas, my
> > project used to have a hidden menu which would be activated by the
> > iconview1_mouse.down() /mouse.right combination and it would _stay_
> > visible until you made a selection.  In the attached demonstration
> > project, the menu appears when you right-click on the iconview, but it
> > vanishes if you release the right button.  Also, if you watch the
> > console, the call to "hiddenmenu.popup" returns instantly, even if you
> > keep the right button down.  Is this the intended behavior?  I'm
> > confused.  (Big surprise there, I know...)
> >
> > Bill Richman - Lincoln, Nebraska
> > Tilter at windmills, maker of pies in the sky, & curmudgeon
> > email: bill at ...2350...  web: www.geektrap.com
> 
> I confirm, this is a bug in gb.gtk.
> 

Fixed in revision #2656 (for Gambas 2).

Regards,

-- 
Beno?t Minisini



From gambas at ...1...  Wed Feb  3 02:51:18 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Wed, 3 Feb 2010 02:51:18 +0100
Subject: [Gambas-user] GRIDVIEW: SCROLL & DOUBLE CLICK
In-Reply-To: 
References: 
	<200912022023.40215.gambas@...1...>
	
Message-ID: <201002030251.18619.gambas@...1...>

> Benoit,
> 
> Something new about this? How can I help you?
> 
> Regards,
> 

Yes, sorry for the delay!

You must use the Activate event which is raised when the user actually double-
clicks on a row, or activate a keyboard shortcut (but not in GridView I 
think). 

The DblClick is a low level event that is raised only when the mouse is used, 
and on all the widget (because the scrollbar internally does not catch it).

This is the same problem with popup menus: you must use the Menu event, not 
the MouseDown event.

Regards,

-- 
Beno?t Minisini



From mx4eva at ...626...  Wed Feb  3 05:41:44 2010
From: mx4eva at ...626... (Fiddler63)
Date: Tue, 2 Feb 2010 20:41:44 -0800 (PST)
Subject: [Gambas-user] How to create a new drawing area
In-Reply-To: <6324a42a1002021157u45f2ef77i407fceefd8808ebf@...627...>
References: <27416835.post@...1379...>
	<6324a42a1002021157u45f2ef77i407fceefd8808ebf@...627...>
Message-ID: <27430933.post@...1379...>




Fabien Bodard-4 wrote:
> 
> 2010/2/2 Fiddler63 :
>>
>> I have a button which, when clicked created a new drawing area.
>> The following code does that fine (and I can move it with the mouse).
>>
>> PRIVATE LCD_01 AS NEW Picture
>> PRIVATE LCD_02 AS NEW Picture
>>
>> PUBLIC SUB NewLCD_Btn_Click()
>>
>> ?LCD_01 = Picture.Load("Pix_C.png")
>> ?LCD_02 = Picture.Load("Pix_A.png")
>> ?DrawingArea2.X = 500
>> ?DrawingArea2.Y = 300
>>
>> ?DrawingArea2.Border = 2
>> ?DrawingArea2.Resize(LCD_01.Width * 10, LCD_01.Height * 2)
>> END
>>
>> PUBLIC SUB DrawingArea2_Draw()
>> ?Draw.Picture(LCD_01, 5, 5)
>> ?Draw.Picture(LCD_02, 43, 5)
>> END
>>
>> PUBLIC SUB DrawingArea2_MouseMove()
>> ?DrawingArea2.X += Mouse.X - Mouse.StartX
>> ?DrawingArea2.Y += Mouse.Y - Mouse.StartY
>> END
>> '***************************************************
>>
>> However when I click on the button, I get the same area drawn again
>> (actually the already drawn area moves back to the origin x,y
>> co-ordinates)
>> I would like to create a new drawing area each time I click the button,
>> i.e.
>> if I click the button 10 times, I get 10 new drawing areas.
>> Also I would like to be able to delete each drawing area as well.
>>
>> Any suggestions how I could do this
>>
>> Ta
>> kim
>> --
>> View this message in context:
>> http://old.nabble.com/How-to-create-a-new-drawing-area-tp27416835p27416835.html
>> Sent from the gambas-user mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> 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 at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> 
> I think itwill be better to draw all thenumbers on the same drawing area..
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 

Possibly, but i need to be able to move each drawing area independently of
the others

Ta
Kim
-- 
View this message in context: http://old.nabble.com/How-to-create-a-new-drawing-area-tp27416835p27430933.html
Sent from the gambas-user mailing list archive at Nabble.com.




From oceanosoftlapalma at ...626...  Wed Feb  3 08:51:57 2010
From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=)
Date: Wed, 3 Feb 2010 07:51:57 +0000
Subject: [Gambas-user] GRIDVIEW: SCROLL & DOUBLE CLICK
In-Reply-To: <201002030251.18619.gambas@...1...>
References: 
	<200912022023.40215.gambas@...1...>
	
	<201002030251.18619.gambas@...1...>
Message-ID: 

Thanks, I'll try to do this.

Regards,
Ricardo D?az

2010/2/3 Beno?t Minisini 

> > Benoit,
> >
> > Something new about this? How can I help you?
> >
> > Regards,
> >
>
> Yes, sorry for the delay!
>
> You must use the Activate event which is raised when the user actually
> double-
> clicks on a row, or activate a keyboard shortcut (but not in GridView I
> think).
>
> The DblClick is a low level event that is raised only when the mouse is
> used,
> and on all the widget (because the scrollbar internally does not catch it).
>
> This is the same problem with popup menus: you must use the Menu event, not
> the MouseDown event.
>
> Regards,
>
> --
> Beno?t Minisini
>
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


From oceanosoftlapalma at ...626...  Wed Feb  3 09:27:34 2010
From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=)
Date: Wed, 3 Feb 2010 08:27:34 +0000
Subject: [Gambas-user] GRIDVIEW: SCROLL & DOUBLE CLICK
In-Reply-To: 
References: 
	<200912022023.40215.gambas@...1...>
	
	<201002030251.18619.gambas@...1...>
	
Message-ID: 

With Activate event works fine!

2010/2/3 Ricardo D?az Mart?n 

> Thanks, I'll try to do this.
>
> Regards,
> Ricardo D?az
>
> 2010/2/3 Beno?t Minisini 
>
> > Benoit,
>> >
>> > Something new about this? How can I help you?
>> >
>> > Regards,
>> >
>>
>> Yes, sorry for the delay!
>>
>> You must use the Activate event which is raised when the user actually
>> double-
>> clicks on a row, or activate a keyboard shortcut (but not in GridView I
>> think).
>>
>> The DblClick is a low level event that is raised only when the mouse is
>> used,
>> and on all the widget (because the scrollbar internally does not catch
>> it).
>>
>> This is the same problem with popup menus: you must use the Menu event,
>> not
>> the MouseDown event.
>>
>> Regards,
>>
>> --
>> Beno?t Minisini
>>
>>
>> ------------------------------------------------------------------------------
>> 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 at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>


From bill at ...2351...  Wed Feb  3 14:30:09 2010
From: bill at ...2351... (Bill Richman)
Date: Wed, 03 Feb 2010 07:30:09 -0600
Subject: [Gambas-user] Popup menus not popping
In-Reply-To: <201002030242.00825.gambas@...1...>
References: <4B672E9D.4040101@...2350...>
	<4B675F17.9080301@...2350...>	<201002030150.59891.gambas@...1...>
	<201002030242.00825.gambas@...1...>
Message-ID: <4B697A61.70206@...2350...>

That was fast.  Thank you!  I'm guessing that I'll need to download and 
make/install the new version to get this fix?

-Bill

Bill Richman - Lincoln, Nebraska
Tilter at windmills, maker of pies in the sky, & curmudgeon
email: bill at ...2350...  web: www.geektrap.com




Beno?t Minisini wrote:
>>> Of the three you listed, I use gb.gui only.  If I should be using
>>> something else, I'd be glad to try it.  I'm running Ubuntu 8.10
>>> ("Intrepid") with Gnome 2.24.1 desktop.  Interestingly, when I try to
>>> build a simple project to show the menu problem, the menus work
>>> (naturally... X-/) but they only remain visible as long as you've got
>>> the right mouse-button down.  Before I did brain-surgery on Gambas, my
>>> project used to have a hidden menu which would be activated by the
>>> iconview1_mouse.down() /mouse.right combination and it would _stay_
>>> visible until you made a selection.  In the attached demonstration
>>> project, the menu appears when you right-click on the iconview, but it
>>> vanishes if you release the right button.  Also, if you watch the
>>> console, the call to "hiddenmenu.popup" returns instantly, even if you
>>> keep the right button down.  Is this the intended behavior?  I'm
>>> confused.  (Big surprise there, I know...)
>>>
>>> Bill Richman - Lincoln, Nebraska
>>> Tilter at windmills, maker of pies in the sky, & curmudgeon
>>> email: bill at ...2350...  web: www.geektrap.com
>>>       
>> I confirm, this is a bug in gb.gtk.
>>
>>     
>
> Fixed in revision #2656 (for Gambas 2).
>
> Regards,
>
>   




From dag.jarle.johansen at ...2312...  Wed Feb  3 19:56:25 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Wed, 03 Feb 2010 15:56:25 -0300
Subject: [Gambas-user] Non terminated String
Message-ID: 

Hi all,

I can't figure out what I have wrong here. I am generating subs and
functions, and use a lot of string-handling. In just one line I become
the error: Non terminated String, looks like this:

(1)
SQL = SQL & "user ='" & mOPT.CurUser & "'," 

the source generating is:
(2) 
S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
mOPT.CurUser & " & Chr(34) & "'," 

SF is just 4 Spaces.

if I  (in 1) delete the space after "user='"_, here marked with an _, it
works. I have many lines generated, everywhere else it works.

to make it eaysier to see:

SQL = SQL & "user ='"_& mOPT.CurUser & "',"
the problem is here  ^


does anyone have an idea?

thanks and regards,
Dag




From jussi.lahtinen at ...626...  Wed Feb  3 20:30:46 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Wed, 3 Feb 2010 21:30:46 +0200
Subject: [Gambas-user] Non terminated String
In-Reply-To: 
References: 
Message-ID: <384d3901002031130r201cca7dp1e9b5de42c673a67@...627...>

I don't understand your problem.
What is your Gambas version and revision?
What are data types of SQL, S and mOPT.CurUser (I assume string)?
And what is the exact line of code that generates described error message?
With Gambas3 rev 2660 (@Ubuntu 9.10 64bit) I couldn't reproduce your problem.

Jussi


On Wed, Feb 3, 2010 at 20:56, Dag Jarle Johansen
 wrote:
> Hi all,
>
> I can't figure out what I have wrong here. I am generating subs and
> functions, and use a lot of string-handling. In just one line I become
> the error: Non terminated String, looks like this:
>
> (1)
> SQL = SQL & "user ='" & mOPT.CurUser & "',"
>
> the source generating is:
> (2)
> S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
> mOPT.CurUser & " & Chr(34) & "',"
>
> SF is just 4 Spaces.
>
> if I ?(in 1) delete the space after "user='"_, here marked with an _, it
> works. I have many lines generated, everywhere else it works.
>
> to make it eaysier to see:
>
> SQL = SQL & "user ='"_& mOPT.CurUser & "',"
> the problem is here ?^
>
>
> does anyone have an idea?
>
> thanks and regards,
> Dag
>
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From dag.jarle.johansen at ...2312...  Wed Feb  3 20:56:29 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Wed, 03 Feb 2010 16:56:29 -0300
Subject: [Gambas-user] Non terminated String
In-Reply-To: <384d3901002031130r201cca7dp1e9b5de42c673a67@...627...>
References: 
	<384d3901002031130r201cca7dp1e9b5de42c673a67@...627...>
Message-ID: 

Hi,

gambas 3 (or 2.99), revision i can't see :-(
SQL is string
S is STRING
mOPT.CurUser is string

the code line is:
S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
mOPT.CurUser & " & Chr(34) & "',"

then write it with:
Print #hf2, S 

Meanwhile I have solved it in another manner; because the last two lines
of SQL adding a record are always the same (storing user and creation
time), I just wrote a little textfile which I read here instead of
putting together the strings with &, and that works fine.

I still do not understand what is happening with the concatenation, but
hope I will not drop into that any more. I make an SVN-Update tonight
and hope for the best.

thanks for your time and concern,
regards
Dag



Am Mittwoch, den 03.02.2010, 21:30 +0200 schrieb Jussi Lahtinen:
> I don't understand your problem.
> What is your Gambas version and revision?
> What are data types of SQL, S and mOPT.CurUser (I assume string)?
> And what is the exact line of code that generates described error message?
> With Gambas3 rev 2660 (@Ubuntu 9.10 64bit) I couldn't reproduce your problem.
> 
> Jussi
> 
> 
> On Wed, Feb 3, 2010 at 20:56, Dag Jarle Johansen
>  wrote:
> > Hi all,
> >
> > I can't figure out what I have wrong here. I am generating subs and
> > functions, and use a lot of string-handling. In just one line I become
> > the error: Non terminated String, looks like this:
> >
> > (1)
> > SQL = SQL & "user ='" & mOPT.CurUser & "',"
> >
> > the source generating is:
> > (2)
> > S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
> > mOPT.CurUser & " & Chr(34) & "',"
> >
> > SF is just 4 Spaces.
> >
> > if I  (in 1) delete the space after "user='"_, here marked with an _, it
> > works. I have many lines generated, everywhere else it works.
> >
> > to make it eaysier to see:
> >
> > SQL = SQL & "user ='"_& mOPT.CurUser & "',"
> > the problem is here  ^
> >
> >
> > does anyone have an idea?
> >
> > thanks and regards,
> > Dag
> >
> >
> > ------------------------------------------------------------------------------
> > 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 at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





From jussi.lahtinen at ...626...  Wed Feb  3 21:18:32 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Wed, 3 Feb 2010 22:18:32 +0200
Subject: [Gambas-user] Non terminated String
In-Reply-To: 
References:  
	<384d3901002031130r201cca7dp1e9b5de42c673a67@...627...> 
	
Message-ID: <384d3901002031218h369baa4bv75f22b2e5872e09e@...627...>

> gambas 3 (or 2.99), revision i can't see :-(

 svn info


> S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " & mOPT.CurUser & " & Chr(34) & "',"

 " & mOPT.CurUser & " is inside of quote marks??


Jussi



> then write it with:
> Print #hf2, S
>
> Meanwhile I have solved it in another manner; because the last two lines
> of SQL adding a record are always the same (storing user and creation
> time), I just wrote a little textfile which I read here instead of
> putting together the strings with &, and that works fine.
>
> I still do not understand what is happening with the concatenation, but
> hope I will not drop into that any more. I make an SVN-Update tonight
> and hope for the best.
>
> thanks for your time and concern,
> regards
> Dag
>
>
>
> Am Mittwoch, den 03.02.2010, 21:30 +0200 schrieb Jussi Lahtinen:
>> I don't understand your problem.
>> What is your Gambas version and revision?
>> What are data types of SQL, S and mOPT.CurUser (I assume string)?
>> And what is the exact line of code that generates described error message?
>> With Gambas3 rev 2660 (@Ubuntu 9.10 64bit) I couldn't reproduce your problem.
>>
>> Jussi
>>
>>
>> On Wed, Feb 3, 2010 at 20:56, Dag Jarle Johansen
>>  wrote:
>> > Hi all,
>> >
>> > I can't figure out what I have wrong here. I am generating subs and
>> > functions, and use a lot of string-handling. In just one line I become
>> > the error: Non terminated String, looks like this:
>> >
>> > (1)
>> > SQL = SQL & "user ='" & mOPT.CurUser & "',"
>> >
>> > the source generating is:
>> > (2)
>> > S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
>> > mOPT.CurUser & " & Chr(34) & "',"
>> >
>> > SF is just 4 Spaces.
>> >
>> > if I ?(in 1) delete the space after "user='"_, here marked with an _, it
>> > works. I have many lines generated, everywhere else it works.
>> >
>> > to make it eaysier to see:
>> >
>> > SQL = SQL & "user ='"_& mOPT.CurUser & "',"
>> > the problem is here ?^
>> >
>> >
>> > does anyone have an idea?
>> >
>> > thanks and regards,
>> > Dag
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > 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 at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>>
>> ------------------------------------------------------------------------------
>> 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 at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From dag.jarle.johansen at ...2312...  Wed Feb  3 21:40:46 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Wed, 03 Feb 2010 17:40:46 -0300
Subject: [Gambas-user] Non terminated String
In-Reply-To: <384d3901002031218h369baa4bv75f22b2e5872e09e@...627...>
References: 
	<384d3901002031130r201cca7dp1e9b5de42c673a67@...627...>
	
	<384d3901002031218h369baa4bv75f22b2e5872e09e@...627...>
Message-ID: 

hi,

yes, because this is generated, and the user logged in is stored in
CurUser, and the variable then will be used. if not in quotes, there
would be the CurUser at the generation time (that would then always be
me). the finnished sub looks like this:

01 Public Sub but_DATA_BUD_New_Click()
02    CurSub = "but_DATA_BUD_New"
03    mMSg.MSG(1, "Neuanlage BUD")
04    SQL = "Insert Into " & BUD_TBL & " Set "
05    SQL = SQL & "datum='" & mIF.Init_SetNowDate() & "', "
06    SQL = SQL & "kommentar='NEU', "
07    SQL = SQL & " user = '" & mOPT.CurUser & "',"
08    SQL = SQL & "created ='" & mIF.Init_SetNow() & "'"
09    M.$Con.Exec(SQL)
10    mMSg.MSG(1, "Datensatz angelegt")
11 End

to better understanding of that all: I am writing a generator, and have
a sort of IDE; all data constructing the form comes partly from some
text-files which I parse, and the most of the data are stored in MySQL.
Line 01-04 comes from the data_panel_definition-table (there can be more
on one form),
Line 05-06 comes from a table, im which I define how to handle certain
fields adding an record, and there is no (easy) way to do that in MySQL,
and the lines 07 to 11 are always the same. 


regards,
Dag



Am Mittwoch, den 03.02.2010, 22:18 +0200 schrieb Jussi Lahtinen:
> > gambas 3 (or 2.99), revision i can't see :-(
> 
>  svn info
> 
> 
> > S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " & mOPT.CurUser & " & Chr(34) & "',"
> 
>  " & mOPT.CurUser & " is inside of quote marks??
> 
> 
> Jussi
> 
> 
> 
> > then write it with:
> > Print #hf2, S
> >
> > Meanwhile I have solved it in another manner; because the last two lines
> > of SQL adding a record are always the same (storing user and creation
> > time), I just wrote a little textfile which I read here instead of
> > putting together the strings with &, and that works fine.
> >
> > I still do not understand what is happening with the concatenation, but
> > hope I will not drop into that any more. I make an SVN-Update tonight
> > and hope for the best.
> >
> > thanks for your time and concern,
> > regards
> > Dag
> >
> >
> >
> > Am Mittwoch, den 03.02.2010, 21:30 +0200 schrieb Jussi Lahtinen:
> >> I don't understand your problem.
> >> What is your Gambas version and revision?
> >> What are data types of SQL, S and mOPT.CurUser (I assume string)?
> >> And what is the exact line of code that generates described error message?
> >> With Gambas3 rev 2660 (@Ubuntu 9.10 64bit) I couldn't reproduce your problem.
> >>
> >> Jussi
> >>
> >>
> >> On Wed, Feb 3, 2010 at 20:56, Dag Jarle Johansen
> >>  wrote:
> >> > Hi all,
> >> >
> >> > I can't figure out what I have wrong here. I am generating subs and
> >> > functions, and use a lot of string-handling. In just one line I become
> >> > the error: Non terminated String, looks like this:
> >> >
> >> > (1)
> >> > SQL = SQL & "user ='" & mOPT.CurUser & "',"
> >> >
> >> > the source generating is:
> >> > (2)
> >> > S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
> >> > mOPT.CurUser & " & Chr(34) & "',"
> >> >
> >> > SF is just 4 Spaces.
> >> >
> >> > if I  (in 1) delete the space after "user='"_, here marked with an _, it
> >> > works. I have many lines generated, everywhere else it works.
> >> >
> >> > to make it eaysier to see:
> >> >
> >> > SQL = SQL & "user ='"_& mOPT.CurUser & "',"
> >> > the problem is here  ^
> >> >
> >> >
> >> > does anyone have an idea?
> >> >
> >> > thanks and regards,
> >> > Dag
> >> >
> >> >
> >> > ------------------------------------------------------------------------------
> >> > 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 at lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >> >
> >>
> >> ------------------------------------------------------------------------------
> >> 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 at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> >
> > ------------------------------------------------------------------------------
> > 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 at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





From Karl.Reinl at ...2345...  Wed Feb  3 22:49:07 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Wed, 03 Feb 2010 22:49:07 +0100
Subject: [Gambas-user] printer problem
Message-ID: <1265233748.6432.25.camel@...40...>

Salut,

I still haven't solved the Draw.Text tab problem, but I'v a new one (a
problem).

If you open the printer-setup the first time, the 'Print to printer' is
chosen, and the target-file behind 'Print to file' is empty.

If you check 'Print to file' and fill the target-file and then you
switch back to 'Print to printer', the target-file field is disabled.
(Setup Printer.png)

Everything seems to be alright. 

But, and there is my new problem, in my code I can't see what should be
done. (printing 5 times to file, makes no sense)

Where is the magic pointer, which shows me the chosen device?
(Printer Properties.png)

Gambas2=2.19.0                  Revision: 2654
qt

-- 
Amicalement
Charlie

[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.24-26-generic
DistributionVendor=ubuntu
DistributionRelease="Ubuntu 8.04.4 LTS"

[System]
CPUArchitecture=i686
TotalRam=506932 kB

[Gambas]
Gambas1=gbx-1.0.17
Gambas1Path=/usr/bin/gbx

Gambas2=2.19.0                  Revision: 2654
Gambas2Path=/usr/local/bin/gbx2

Gambas3=2.99.0                  Revision: 2648 (can't compile actually)
Gambas3Path=/usr/local/bin/gbx3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Printer Properties.png
Type: image/png
Size: 29246 bytes
Desc: not available
URL: 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Setup Printer.png
Type: image/png
Size: 49712 bytes
Desc: not available
URL: 

From doriano.blengino at ...1909...  Thu Feb  4 09:48:59 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Thu, 04 Feb 2010 09:48:59 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <1265233748.6432.25.camel@...40...>
References: <1265233748.6432.25.camel@...40...>
Message-ID: <4B6A89FB.7060905@...1909...>

Charlie Reinl ha scritto:
> Salut,
>
> I still haven't solved the Draw.Text tab problem, but I'v a new one (a
> problem).
>
> If you open the printer-setup the first time, the 'Print to printer' is
> chosen, and the target-file behind 'Print to file' is empty.
>
> If you check 'Print to file' and fill the target-file and then you
> switch back to 'Print to printer', the target-file field is disabled.
> (Setup Printer.png)
>
> Everything seems to be alright. 
>
> But, and there is my new problem, in my code I can't see what should be
> done. (printing 5 times to file, makes no sense)
>
> Where is the magic pointer, which shows me the chosen device?
> (Printer Properties.png)
>   
For what I know about printing in gambas, things are as following.

You can set by code printer.file to print to a file (a postscript is 
generated), or set printer.name to direct the printing to an actual 
printer. If printer.file is non-empty, the printing will go to a file. 
The same is true if those properties are set by the interactive setup 
panel. After that, you don't have to worry about the destination, the 
code is the same: you draw() on the printer, and the underlying software 
will do what is appropriate.

Other properties let you to define other printing aspects, like page 
format, b/w or color, and so on.

The properties Copies, FromPage and ToPage are different, because they 
don't do anything - you should read them and do things accordingly. To 
be more precise, FromPage and ToPage are exactly so (if you read that 
the user has set FromPage=2 and ToPage=2, then your printing routine 
should only print the page number 2, and then terminate). "Copies" 
sometimes works, sometimes not, so I decided to read the number of 
copies, reset it to 1, and print several copies myself. I mean: "Copies" 
was sometimes working, sometimes was ignored, and sometimes messed up 
the printing. If you choose to do multiple copies by code, don't forget 
to reset Copies to 1.

About printing several copies to a file, I see nothing strange... a 
postscript file should be generated, containing two or more identical 
pages. If you feed that file to a printer, multiple identical pages get 
out. But in the first attempt, I did it differently, and I crashed into 
rewriting the same file several times, as you are arguing. Can't 
remember if it was my fault or gambas or qt one. I solved all together 
by invoking multiple times the subroutine which prints a single page, 
inside a "draw.begin()" and "draw.end()".

About tabulators, I would take a single string to print, break it in 
several sub-strings taking tabulators as separators, taking care that 
two tabulators in a row *do* define an empty string, print the single 
sub-strings, calculate the width of every string and advancing the 
position to the next tab-stop. The general idea is something like that:

    1. Declare an array for tabulator stops and fill it with suitable 
positions. Those positions can be freely set or be equally-spaced, 
depends on the application; but anyway they depend on the resolution of 
the printer. You can say "I want a tabstop every inch on paper", so your 
positions will have values 1*Printer.Resolution, 2*Printer.Resolution 
and so on. Or you could say "I want a tabulator stop to be wide as 8 
spaces", and in that case you should take the width of a space (using 
textwidth()), multiply it by 8 and then by Printer.Resolution. Or you 
could say "I want a tabulator in the middle of the page and one at 3/4 
of the page". So the first value will be Printer.Width/2 and the second 
value will be Printer.Width*3/4.

    2. Declare a subroutine which prints a string at X,Y position, 
taking tabs in account. It could look like this:

sub outtabstr(text as string, xpos as integer, ypos as integer)
  dim toprint as string
  dim tpos as integer

  while text<>"" do
    ' search a tabulator
    tpos = instr(text, "\9")
    if tpos=0 then
      ' no tabulators, print and exit
      draw.text(text, xpos, ypos)
      return
    endif

       ' there is a tab. print the left part
       toprint = left(text, tpos-1)          ' take the part to print
       text = mid(text, tpos+1)             ' and delete it from the rest
       draw.text(toprint, xpos, ypos)   ' printed
       ' now advance the X position to a suitable position
       xpos += draw.textwidth(toprint)   ' our virtual cursor now is here
       tpos = 0
       ' MAX_TABSTOPS refers to  an array 0-based
       while tpos=tabstops[tpos]
          inc tpos
       wend
       if tpos>=MAX_TABSTOPS
          ' no more stops defined. What to do?
          xpos += 300
       else
          ' ok, move to that tab position
          xpos = tabstops[tpos]
       endif
    wend
end

The above code is not tested and has several problems. It does not work 
with UTF8, it does not check for margins, does not go to the next line, 
it does not return the position of the virtual cursor after having 
printed a string. But the general idea should be correct.

Regards,
Doriano




From jussi.lahtinen at ...626...  Thu Feb  4 16:01:15 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Thu, 4 Feb 2010 17:01:15 +0200
Subject: [Gambas-user] Non terminated String
In-Reply-To: 
References:  
	<384d3901002031130r201cca7dp1e9b5de42c673a67@...627...> 
	
	<384d3901002031218h369baa4bv75f22b2e5872e09e@...627...> 
	
Message-ID: <384d3901002040701m137ce9f8kb9c682ba288745d9@...627...>

OK, I tested;

S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
mOPT.CurUser & " & Chr(34) & "',"

hf2 = Open "somepath/testaus.txt" For Create
Print #hf2, S
Close hf2

No error messages.
Result was file with string; SQL = SQL " user = '" & mOPT.CurUser & "', in it.

I think there is something wrong in your box...

Jussi


On Wed, Feb 3, 2010 at 22:40, Dag Jarle Johansen
 wrote:
> hi,
>
> yes, because this is generated, and the user logged in is stored in
> CurUser, and the variable then will be used. if not in quotes, there
> would be the CurUser at the generation time (that would then always be
> me). the finnished sub looks like this:
>
> 01 Public Sub but_DATA_BUD_New_Click()
> 02 ? ?CurSub = "but_DATA_BUD_New"
> 03 ? ?mMSg.MSG(1, "Neuanlage BUD")
> 04 ? ?SQL = "Insert Into " & BUD_TBL & " Set "
> 05 ? ?SQL = SQL & "datum='" & mIF.Init_SetNowDate() & "', "
> 06 ? ?SQL = SQL & "kommentar='NEU', "
> 07 ? ?SQL = SQL & " user = '" & mOPT.CurUser & "',"
> 08 ? ?SQL = SQL & "created ='" & mIF.Init_SetNow() & "'"
> 09 ? ?M.$Con.Exec(SQL)
> 10 ? ?mMSg.MSG(1, "Datensatz angelegt")
> 11 End
>
> to better understanding of that all: I am writing a generator, and have
> a sort of IDE; all data constructing the form comes partly from some
> text-files which I parse, and the most of the data are stored in MySQL.
> Line 01-04 comes from the data_panel_definition-table (there can be more
> on one form),
> Line 05-06 comes from a table, im which I define how to handle certain
> fields adding an record, and there is no (easy) way to do that in MySQL,
> and the lines 07 to 11 are always the same.
>
>
> regards,
> Dag
>
>
>
> Am Mittwoch, den 03.02.2010, 22:18 +0200 schrieb Jussi Lahtinen:
>> > gambas 3 (or 2.99), revision i can't see :-(
>>
>> ?svn info
>>
>>
>> > S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " & mOPT.CurUser & " & Chr(34) & "',"
>>
>> ?" & mOPT.CurUser & " is inside of quote marks??
>>
>>
>> Jussi
>>
>>
>>
>> > then write it with:
>> > Print #hf2, S
>> >
>> > Meanwhile I have solved it in another manner; because the last two lines
>> > of SQL adding a record are always the same (storing user and creation
>> > time), I just wrote a little textfile which I read here instead of
>> > putting together the strings with &, and that works fine.
>> >
>> > I still do not understand what is happening with the concatenation, but
>> > hope I will not drop into that any more. I make an SVN-Update tonight
>> > and hope for the best.
>> >
>> > thanks for your time and concern,
>> > regards
>> > Dag
>> >
>> >
>> >
>> > Am Mittwoch, den 03.02.2010, 21:30 +0200 schrieb Jussi Lahtinen:
>> >> I don't understand your problem.
>> >> What is your Gambas version and revision?
>> >> What are data types of SQL, S and mOPT.CurUser (I assume string)?
>> >> And what is the exact line of code that generates described error message?
>> >> With Gambas3 rev 2660 (@Ubuntu 9.10 64bit) I couldn't reproduce your problem.
>> >>
>> >> Jussi
>> >>
>> >>
>> >> On Wed, Feb 3, 2010 at 20:56, Dag Jarle Johansen
>> >>  wrote:
>> >> > Hi all,
>> >> >
>> >> > I can't figure out what I have wrong here. I am generating subs and
>> >> > functions, and use a lot of string-handling. In just one line I become
>> >> > the error: Non terminated String, looks like this:
>> >> >
>> >> > (1)
>> >> > SQL = SQL & "user ='" & mOPT.CurUser & "',"
>> >> >
>> >> > the source generating is:
>> >> > (2)
>> >> > S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
>> >> > mOPT.CurUser & " & Chr(34) & "',"
>> >> >
>> >> > SF is just 4 Spaces.
>> >> >
>> >> > if I ?(in 1) delete the space after "user='"_, here marked with an _, it
>> >> > works. I have many lines generated, everywhere else it works.
>> >> >
>> >> > to make it eaysier to see:
>> >> >
>> >> > SQL = SQL & "user ='"_& mOPT.CurUser & "',"
>> >> > the problem is here ?^
>> >> >
>> >> >
>> >> > does anyone have an idea?
>> >> >
>> >> > thanks and regards,
>> >> > Dag
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> > 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 at lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >> >
>> >>
>> >> ------------------------------------------------------------------------------
>> >> 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 at lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > 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 at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>>
>> ------------------------------------------------------------------------------
>> 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 at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From dag.jarle.johansen at ...2312...  Thu Feb  4 16:53:44 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Thu, 04 Feb 2010 12:53:44 -0300
Subject: [Gambas-user] Non terminated String
In-Reply-To: <384d3901002040701m137ce9f8kb9c682ba288745d9@...627...>
References: 
	<384d3901002031130r201cca7dp1e9b5de42c673a67@...627...>
	
	<384d3901002031218h369baa4bv75f22b2e5872e09e@...627...>
	
	<384d3901002040701m137ce9f8kb9c682ba288745d9@...627...>
Message-ID: 

Hi Jussi,

thanks.

I have updatet to the last SVN, relase 2660. (thanks for the tip with
svn info, one never learns out). It all now works fine again. Still this
small stuff makes one hang for hours, and does not let you loose - why
is it so :) in 100-es of lines it works, in one - nada.


btw  -one error in the line i sent you - (SQL " user), missing &, but
this was not the reason.

thanks again

regards
Dag




Am Donnerstag, den 04.02.2010, 17:01 +0200 schrieb Jussi Lahtinen:
> OK, I tested;
> 
> S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
> mOPT.CurUser & " & Chr(34) & "',"
> 
> hf2 = Open "somepath/testaus.txt" For Create
> Print #hf2, S
> Close hf2
> 
> No error messages.
> Result was file with string; SQL = SQL " user = '" & mOPT.CurUser & "', in it.
> 
> I think there is something wrong in your box...
> 
> Jussi
> 
> 
> On Wed, Feb 3, 2010 at 22:40, Dag Jarle Johansen
>  wrote:
> > hi,
> >
> > yes, because this is generated, and the user logged in is stored in
> > CurUser, and the variable then will be used. if not in quotes, there
> > would be the CurUser at the generation time (that would then always be
> > me). the finnished sub looks like this:
> >
> > 01 Public Sub but_DATA_BUD_New_Click()
> > 02    CurSub = "but_DATA_BUD_New"
> > 03    mMSg.MSG(1, "Neuanlage BUD")
> > 04    SQL = "Insert Into " & BUD_TBL & " Set "
> > 05    SQL = SQL & "datum='" & mIF.Init_SetNowDate() & "', "
> > 06    SQL = SQL & "kommentar='NEU', "
> > 07    SQL = SQL & " user = '" & mOPT.CurUser & "',"
> > 08    SQL = SQL & "created ='" & mIF.Init_SetNow() & "'"
> > 09    M.$Con.Exec(SQL)
> > 10    mMSg.MSG(1, "Datensatz angelegt")
> > 11 End
> >
> > to better understanding of that all: I am writing a generator, and have
> > a sort of IDE; all data constructing the form comes partly from some
> > text-files which I parse, and the most of the data are stored in MySQL.
> > Line 01-04 comes from the data_panel_definition-table (there can be more
> > on one form),
> > Line 05-06 comes from a table, im which I define how to handle certain
> > fields adding an record, and there is no (easy) way to do that in MySQL,
> > and the lines 07 to 11 are always the same.
> >
> >
> > regards,
> > Dag
> >
> >
> >
> > Am Mittwoch, den 03.02.2010, 22:18 +0200 schrieb Jussi Lahtinen:
> >> > gambas 3 (or 2.99), revision i can't see :-(
> >>
> >>  svn info
> >>
> >>
> >> > S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " & mOPT.CurUser & " & Chr(34) & "',"
> >>
> >>  " & mOPT.CurUser & " is inside of quote marks??
> >>
> >>
> >> Jussi
> >>
> >>
> >>
> >> > then write it with:
> >> > Print #hf2, S
> >> >
> >> > Meanwhile I have solved it in another manner; because the last two lines
> >> > of SQL adding a record are always the same (storing user and creation
> >> > time), I just wrote a little textfile which I read here instead of
> >> > putting together the strings with &, and that works fine.
> >> >
> >> > I still do not understand what is happening with the concatenation, but
> >> > hope I will not drop into that any more. I make an SVN-Update tonight
> >> > and hope for the best.
> >> >
> >> > thanks for your time and concern,
> >> > regards
> >> > Dag
> >> >
> >> >
> >> >
> >> > Am Mittwoch, den 03.02.2010, 21:30 +0200 schrieb Jussi Lahtinen:
> >> >> I don't understand your problem.
> >> >> What is your Gambas version and revision?
> >> >> What are data types of SQL, S and mOPT.CurUser (I assume string)?
> >> >> And what is the exact line of code that generates described error message?
> >> >> With Gambas3 rev 2660 (@Ubuntu 9.10 64bit) I couldn't reproduce your problem.
> >> >>
> >> >> Jussi
> >> >>
> >> >>
> >> >> On Wed, Feb 3, 2010 at 20:56, Dag Jarle Johansen
> >> >>  wrote:
> >> >> > Hi all,
> >> >> >
> >> >> > I can't figure out what I have wrong here. I am generating subs and
> >> >> > functions, and use a lot of string-handling. In just one line I become
> >> >> > the error: Non terminated String, looks like this:
> >> >> >
> >> >> > (1)
> >> >> > SQL = SQL & "user ='" & mOPT.CurUser & "',"
> >> >> >
> >> >> > the source generating is:
> >> >> > (2)
> >> >> > S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
> >> >> > mOPT.CurUser & " & Chr(34) & "',"
> >> >> >
> >> >> > SF is just 4 Spaces.
> >> >> >
> >> >> > if I  (in 1) delete the space after "user='"_, here marked with an _, it
> >> >> > works. I have many lines generated, everywhere else it works.
> >> >> >
> >> >> > to make it eaysier to see:
> >> >> >
> >> >> > SQL = SQL & "user ='"_& mOPT.CurUser & "',"
> >> >> > the problem is here  ^
> >> >> >
> >> >> >
> >> >> > does anyone have an idea?
> >> >> >
> >> >> > thanks and regards,
> >> >> > Dag
> >> >> >
> >> >> >
> >> >> > ------------------------------------------------------------------------------
> >> >> > 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 at lists.sourceforge.net
> >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >> >> >
> >> >>
> >> >> ------------------------------------------------------------------------------
> >> >> 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 at lists.sourceforge.net
> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >> >
> >> >
> >> >
> >> > ------------------------------------------------------------------------------
> >> > 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 at lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >> >
> >>
> >> ------------------------------------------------------------------------------
> >> 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 at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> >
> > ------------------------------------------------------------------------------
> > 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 at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





From dag.jarle.johansen at ...2312...  Thu Feb  4 18:01:22 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Thu, 04 Feb 2010 14:01:22 -0300
Subject: [Gambas-user] Signal 11
Message-ID: 

hi,

have a problem with a small app, does not start, get signal 11.
As I have figured out, there must be a bug somewhere.

Yesterday I upgraded to SVN rev 2660,
before that the app worked.

any help please?

regards
Dag





From jussi.lahtinen at ...626...  Thu Feb  4 18:27:59 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Thu, 4 Feb 2010 19:27:59 +0200
Subject: [Gambas-user] Signal 11
In-Reply-To: 
References: 
Message-ID: <384d3901002040927q199bf99fkf50c71ee908abfe6@...627...>

For bug reports, always describe your system too (and Gambas version
and revision [as you did]).
>From IDE menu --> ? --> About Gambas... --> System information

Please be more specific!
Isolate code that causes the problem and provide it to us, or send the
whole source code to us.
Until that we cannot do anything.

Jussi



On Thu, Feb 4, 2010 at 19:01, Dag Jarle Johansen
 wrote:
> hi,
>
> have a problem with a small app, does not start, get signal 11.
> As I have figured out, there must be a bug somewhere.
>
> Yesterday I upgraded to SVN rev 2660,
> before that the app worked.
>
> any help please?
>
> regards
> Dag
>
>
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From dag.jarle.johansen at ...2312...  Thu Feb  4 18:40:09 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Thu, 04 Feb 2010 14:40:09 -0300
Subject: [Gambas-user] Signal 11
In-Reply-To: <384d3901002040927q199bf99fkf50c71ee908abfe6@...627...>
References: 
	<384d3901002040927q199bf99fkf50c71ee908abfe6@...627...>
Message-ID: 

Hi,

I send you the app. it's not so big.
the system is Ubuntu 9.10, SVN 3 Revision 2660
The app does not start at all, get signal 11 imidiatly on start,

Thanks
Dag


Am Donnerstag, den 04.02.2010, 19:27 +0200 schrieb Jussi Lahtinen:
> For bug reports, always describe your system too (and Gambas version
> and revision [as you did]).
> >From IDE menu --> ? --> About Gambas... --> System information
> 
> Please be more specific!
> Isolate code that causes the problem and provide it to us, or send the
> whole source code to us.
> Until that we cannot do anything.
> 
> Jussi
> 
> 
> 
> On Thu, Feb 4, 2010 at 19:01, Dag Jarle Johansen
>  wrote:
> > hi,
> >
> > have a problem with a small app, does not start, get signal 11.
> > As I have figured out, there must be a bug somewhere.
> >
> > Yesterday I upgraded to SVN rev 2660,
> > before that the app worked.
> >
> > any help please?
> >
> > regards
> > Dag
> >
> >
> >
> > ------------------------------------------------------------------------------
> > 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 at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

-------------- next part --------------
A non-text attachment was scrubbed...
Name: netnews.sql
Type: text/x-sql
Size: 2510 bytes
Desc: not available
URL: 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NetNews.tar.gz
Type: application/x-compressed-tar
Size: 172709 bytes
Desc: not available
URL: 

From jussi.lahtinen at ...626...  Thu Feb  4 19:38:10 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Thu, 4 Feb 2010 20:38:10 +0200
Subject: [Gambas-user] Signal 11
In-Reply-To: 
References:  
	<384d3901002040927q199bf99fkf50c71ee908abfe6@...627...> 
	
Message-ID: <384d3901002041038g6011d973seaa477429b44c829@...627...>

Problem seems to be in GTK+... Benoit?

Jussi


On Thu, Feb 4, 2010 at 19:40, Dag Jarle Johansen
 wrote:
> Hi,
>
> I send you the app. it's not so big.
> the system is Ubuntu 9.10, SVN 3 Revision 2660
> The app does not start at all, get signal 11 imidiatly on start,
>
> Thanks
> Dag
>
>
> Am Donnerstag, den 04.02.2010, 19:27 +0200 schrieb Jussi Lahtinen:
>> For bug reports, always describe your system too (and Gambas version
>> and revision [as you did]).
>> >From IDE menu --> ? --> About Gambas... --> System information
>>
>> Please be more specific!
>> Isolate code that causes the problem and provide it to us, or send the
>> whole source code to us.
>> Until that we cannot do anything.
>>
>> Jussi
>>
>>
>>
>> On Thu, Feb 4, 2010 at 19:01, Dag Jarle Johansen
>>  wrote:
>> > hi,
>> >
>> > have a problem with a small app, does not start, get signal 11.
>> > As I have figured out, there must be a bug somewhere.
>> >
>> > Yesterday I upgraded to SVN rev 2660,
>> > before that the app worked.
>> >
>> > any help please?
>> >
>> > regards
>> > Dag
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > 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 at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>>
>> ------------------------------------------------------------------------------
>> 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 at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>



From Karl.Reinl at ...2345...  Thu Feb  4 20:59:52 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Thu, 04 Feb 2010 20:59:52 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <4B6A89FB.7060905@...1909...>
References: <1265233748.6432.25.camel@...40...>
	<4B6A89FB.7060905@...1909...>
Message-ID: <1265313592.6497.20.camel@...40...>

Am Donnerstag, den 04.02.2010, 09:48 +0100 schrieb Doriano Blengino:
> Charlie Reinl ha scritto:
> > Salut,
> >
> > I still haven't solved the Draw.Text tab problem, but I'v a new one (a
> > problem).
> >
> > If you open the printer-setup the first time, the 'Print to printer' is
> > chosen, and the target-file behind 'Print to file' is empty.
> >
> > If you check 'Print to file' and fill the target-file and then you
> > switch back to 'Print to printer', the target-file field is disabled.
> > (Setup Printer.png)
> >
> > Everything seems to be alright. 
> >
> > But, and there is my new problem, in my code I can't see what should be
> > done. (printing 5 times to file, makes no sense)
> >
> > Where is the magic pointer, which shows me the chosen device?
> > (Printer Properties.png)
> >   
> For what I know about printing in gambas, things are as following.
> 
> You can set by code printer.file to print to a file (a postscript is 
> generated), or set printer.name to direct the printing to an actual 
> printer. If printer.file is non-empty, the printing will go to a file. 
> The same is true if those properties are set by the interactive setup 
> panel. After that, you don't have to worry about the destination, the 
> code is the same: you draw() on the printer, and the underlying software 
> will do what is appropriate.
> 
> Other properties let you to define other printing aspects, like page 
> format, b/w or color, and so on.
> 
> The properties Copies, FromPage and ToPage are different, because they 
> don't do anything - you should read them and do things accordingly. To 
> be more precise, FromPage and ToPage are exactly so (if you read that 
> the user has set FromPage=2 and ToPage=2, then your printing routine 
> should only print the page number 2, and then terminate). "Copies" 
> sometimes works, sometimes not, so I decided to read the number of 
> copies, reset it to 1, and print several copies myself. I mean: "Copies" 
> was sometimes working, sometimes was ignored, and sometimes messed up 
> the printing. If you choose to do multiple copies by code, don't forget 
> to reset Copies to 1.
> 
> About printing several copies to a file, I see nothing strange... a 
> postscript file should be generated, containing two or more identical 
> pages. If you feed that file to a printer, multiple identical pages get 
> out. But in the first attempt, I did it differently, and I crashed into 
> rewriting the same file several times, as you are arguing. Can't 
> remember if it was my fault or gambas or qt one. I solved all together 
> by invoking multiple times the subroutine which prints a single page, 
> inside a "draw.begin()" and "draw.end()".

Salut Doriano,

letting a part the tab-Problem, the printer problem is not the existing
properties of the gambas2-printer. 
The problem is you have no information about the output device, after
printer.setup().
With a bit of luck, the target-file (printer.file) is empty, so it is
sure the device is a printer (checked "Print to file" with an empty
target-file, disables the OK-Button ).

Knowing the output device is important for "Copies", because printing
the same "output" x-times to the same file makes no sense.

So I repeat my question, where/how can I see/test the output device,
after printer.setup.

By that way, if somebody can tell me, how/where "Print first page first"
and  "Print last page first"  can be read out, and/or what is to do, for
make it working.

-- 
Amicalement
Charlie




From gambas at ...1...  Thu Feb  4 23:36:08 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Thu, 4 Feb 2010 23:36:08 +0100
Subject: [Gambas-user] Signal 11
In-Reply-To: 
References: 
	<384d3901002040927q199bf99fkf50c71ee908abfe6@...627...>
	
Message-ID: <201002042336.08984.gambas@...1...>

> Hi,
> 
> I send you the app. it's not so big.
> the system is Ubuntu 9.10, SVN 3 Revision 2660
> The app does not start at all, get signal 11 imidiatly on start,
> 
> Thanks
> Dag
> 

I have just tested on my Mandriva 2010.0 32 bits, by creating the accurate 
database with your sql file, and I got no crash at all. Just a "No database" 
message in the bottom of the window.

Please send me a backtrace of the crash with gdb, or run the interpreter in 
valgrind and send me the output.

I will try on my Ubuntu 9.10 64 bits now...

-- 
Beno?t Minisini



From doriano.blengino at ...1909...  Fri Feb  5 10:09:13 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Fri, 05 Feb 2010 10:09:13 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <1265313592.6497.20.camel@...40...>
References: <1265233748.6432.25.camel@...40...>	<4B6A89FB.7060905@...1909...>
	<1265313592.6497.20.camel@...40...>
Message-ID: <4B6BE039.5030409@...1909...>

Charlie Reinl ha scritto:
> Am Donnerstag, den 04.02.2010, 09:48 +0100 schrieb Doriano Blengino:
>   
>> Charlie Reinl ha scritto:
>>     
>>> If you open the printer-setup the first time, the 'Print to printer' is
>>> chosen, and the target-file behind 'Print to file' is empty.
>>>
>>> If you check 'Print to file' and fill the target-file and then you
>>> switch back to 'Print to printer', the target-file field is disabled.
>>> (Setup Printer.png)
>>>
>>> Everything seems to be alright. 
>>>
>>> But, and there is my new problem, in my code I can't see what should be
>>> done. (printing 5 times to file, makes no sense)
>>>
>>> Where is the magic pointer, which shows me the chosen device?
>>> (Printer Properties.png)
>>>   
>>>       
>> For what I know about printing in gambas, things are as following.
>>
>> You can set by code printer.file to print to a file (a postscript is 
>> generated), or set printer.name to direct the printing to an actual 
>> printer. If printer.file is non-empty, the printing will go to a file. 
>> The same is true if those properties are set by the interactive setup 
>> panel. After that, you don't have to worry about the destination, the 
>> code is the same: you draw() on the printer, and the underlying software 
>> will do what is appropriate.
>>
>> Other properties let you to define other printing aspects, like page 
>> format, b/w or color, and so on.
>>
>> The properties Copies, FromPage and ToPage are different, because they 
>> don't do anything - you should read them and do things accordingly. To 
>> be more precise, FromPage and ToPage are exactly so (if you read that 
>> the user has set FromPage=2 and ToPage=2, then your printing routine 
>> should only print the page number 2, and then terminate). "Copies" 
>> sometimes works, sometimes not, so I decided to read the number of 
>> copies, reset it to 1, and print several copies myself. I mean: "Copies" 
>> was sometimes working, sometimes was ignored, and sometimes messed up 
>> the printing. If you choose to do multiple copies by code, don't forget 
>> to reset Copies to 1.
>>
>> About printing several copies to a file, I see nothing strange... a 
>> postscript file should be generated, containing two or more identical 
>> pages. If you feed that file to a printer, multiple identical pages get 
>> out. But in the first attempt, I did it differently, and I crashed into 
>> rewriting the same file several times, as you are arguing. Can't 
>> remember if it was my fault or gambas or qt one. I solved all together 
>> by invoking multiple times the subroutine which prints a single page, 
>> inside a "draw.begin()" and "draw.end()".
>>     
>
> Salut Doriano,
>
> letting a part the tab-Problem, the printer problem is not the existing
> properties of the gambas2-printer. 
> The problem is you have no information about the output device, after
> printer.setup().
> With a bit of luck, the target-file (printer.file) is empty, so it is
> sure the device is a printer (checked "Print to file" with an empty
> target-file, disables the OK-Button ).
>
> Knowing the output device is important for "Copies", because printing
> the same "output" x-times to the same file makes no sense.
>
> So I repeat my question, where/how can I see/test the output device,
> after printer.setup.
>   
Printer.name.
This name identifies a CUPS device, and has little to do with the 
physical device.

And about printing several copies to a file, I repeat after you that I 
see nothing strange... if you think at a PDF or PS file which describes 
a complete document. When you submit jobs to a shared printer, may be 
that your job will be completed after other, already scheduled jobs by 
some other users; but when the printer will do your job, it will do it 
completely - no matter how many copies you requested. So a single 
printer job may be thought as a single file, even if it contains 
multiple copies. The only care is that when requesting multiple copies, 
you must start the printing (Draw.Begin) only once, use newPage() 
properly, and end the printing (Draw.End) only once. It does not matter 
if output goes to a file or to a printer; actually, even if you direct 
output to a printer, internally the printing job is a single file...
> By that way, if somebody can tell me, how/where "Print first page first"
> and  "Print last page first"  can be read out, and/or what is to do, for
> make it working.
>   
There is no mention of that in the documentation on my PC. I went to the 
online documentation, and the site asks me to authenticate. I really 
don't know...

Regards,
Doriano




From leonardo at ...1237...  Fri Feb  5 11:31:13 2010
From: leonardo at ...1237... (leonardo at ...1237...)
Date: Fri, 05 Feb 2010 03:31:13 -0700
Subject: [Gambas-user] Compilation of Gambas2 SVN aborted
Message-ID: 

I'm using Arch Linux.
When I try to compile Gambas2 from SVN repository, the configure proceed
without errors ("ALL COMPONENTS WILL BE COMPILED") but when make starts its
run it stops with this error:

make  all-recursive
make[1]: Entering directory
`/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build'
Making all in main
make[2]: Entering directory
`/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
make  all-recursive
make[3]: Entering directory
`/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
Making all in gbx
make[4]: Entering directory
`/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
  -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char
-fvisibility=hidden -g -Os -I../share -D_REENTRANT
-I/usr/lib/libffi-3.0.8/include    -O0  -MT gb_la-gbx_c_class.lo -MD -MP
-MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la-gbx_c_class.lo `test -f
'gbx_c_class.c' || echo './'`gbx_c_class.c
libtool: Version mismatch error.  This is libtool 2.2.6, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6b.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
libtool: and run autoconf again.
make[4]: *** [gb_la-gbx_c_class.lo] Error 63
make[4]: Leaving directory
`/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build'
make: *** [all] Error 2


It says there is a problem of matching version with libtool.

Leonardo Miliani
www.leonardomiliani.com

Webmaster e co-fondatore di www.gambas-it.org
La comunit? italiana dei programmatori Gambas



From gambas at ...1...  Fri Feb  5 12:13:15 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Fri, 5 Feb 2010 12:13:15 +0100
Subject: [Gambas-user] Compilation of Gambas2 SVN aborted
In-Reply-To: 
References: 
Message-ID: <201002051213.15749.gambas@...1...>

> I'm using Arch Linux.
> When I try to compile Gambas2 from SVN repository, the configure proceed
> without errors ("ALL COMPONENTS WILL BE COMPILED") but when make starts its
> run it stops with this error:
> 
> make  all-recursive
> make[1]: Entering directory
> `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build'
> Making all in main
> make[2]: Entering directory
> `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
> make  all-recursive
> make[3]: Entering directory
> `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
> Making all in gbx
> make[4]: Entering directory
> `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx
> ' /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
>  -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char
>  -fvisibility=hidden -g -Os -I../share -D_REENTRANT
> -I/usr/lib/libffi-3.0.8/include    -O0  -MT gb_la-gbx_c_class.lo -MD -MP
> -MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la-gbx_c_class.lo `test -f
> 'gbx_c_class.c' || echo './'`gbx_c_class.c
> libtool: Version mismatch error.  This is libtool 2.2.6, but the
> libtool: definition of this LT_INIT comes from libtool 2.2.6b.
> libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
> libtool: and run autoconf again.
> make[4]: *** [gb_la-gbx_c_class.lo] Error 63
> make[4]: Leaving directory
> `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx
> ' make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build'
> make: *** [all] Error 2
> 
> 
> It says there is a problem of matching version with libtool.
> 
> Leonardo Miliani
> www.leonardomiliani.com
> 
> Webmaster e co-fondatore di www.gambas-it.org
> La comunit? italiana dei programmatori Gambas
> 

Did you do a ./reconf before configure?

-- 
Beno?t Minisini



From eilert-sprachen at ...221...  Fri Feb  5 12:39:12 2010
From: eilert-sprachen at ...221... (Rolf-Werner Eilert)
Date: Fri, 05 Feb 2010 12:39:12 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <1265313592.6497.20.camel@...40...>
References: <1265233748.6432.25.camel@...40...>	<4B6A89FB.7060905@...1909...>
	<1265313592.6497.20.camel@...40...>
Message-ID: <4B6C0360.4000801@...221...>

Am 04.02.2010 20:59, schrieb Charlie Reinl:
> Am Donnerstag, den 04.02.2010, 09:48 +0100 schrieb Doriano Blengino:
>> Charlie Reinl ha scritto:
>>> Salut,
>>>
>>> I still haven't solved the Draw.Text tab problem, but I'v a new one (a
>>> problem).
>>>
>>> If you open the printer-setup the first time, the 'Print to printer' is
>>> chosen, and the target-file behind 'Print to file' is empty.
>>>
>>> If you check 'Print to file' and fill the target-file and then you
>>> switch back to 'Print to printer', the target-file field is disabled.
>>> (Setup Printer.png)
>>>
>>> Everything seems to be alright.
>>>
>>> But, and there is my new problem, in my code I can't see what should be
>>> done. (printing 5 times to file, makes no sense)
>>>
>>> Where is the magic pointer, which shows me the chosen device?
>>> (Printer Properties.png)
>>>
>> For what I know about printing in gambas, things are as following.
>>
>> You can set by code printer.file to print to a file (a postscript is
>> generated), or set printer.name to direct the printing to an actual
>> printer. If printer.file is non-empty, the printing will go to a file.
>> The same is true if those properties are set by the interactive setup
>> panel. After that, you don't have to worry about the destination, the
>> code is the same: you draw() on the printer, and the underlying software
>> will do what is appropriate.
>>
>> Other properties let you to define other printing aspects, like page
>> format, b/w or color, and so on.
>>
>> The properties Copies, FromPage and ToPage are different, because they
>> don't do anything - you should read them and do things accordingly. To
>> be more precise, FromPage and ToPage are exactly so (if you read that
>> the user has set FromPage=2 and ToPage=2, then your printing routine
>> should only print the page number 2, and then terminate). "Copies"
>> sometimes works, sometimes not, so I decided to read the number of
>> copies, reset it to 1, and print several copies myself. I mean: "Copies"
>> was sometimes working, sometimes was ignored, and sometimes messed up
>> the printing. If you choose to do multiple copies by code, don't forget
>> to reset Copies to 1.
>>
>> About printing several copies to a file, I see nothing strange... a
>> postscript file should be generated, containing two or more identical
>> pages. If you feed that file to a printer, multiple identical pages get
>> out. But in the first attempt, I did it differently, and I crashed into
>> rewriting the same file several times, as you are arguing. Can't
>> remember if it was my fault or gambas or qt one. I solved all together
>> by invoking multiple times the subroutine which prints a single page,
>> inside a "draw.begin()" and "draw.end()".
>
> Salut Doriano,
>
> letting a part the tab-Problem, the printer problem is not the existing
> properties of the gambas2-printer.
> The problem is you have no information about the output device, after
> printer.setup().
> With a bit of luck, the target-file (printer.file) is empty, so it is
> sure the device is a printer (checked "Print to file" with an empty
> target-file, disables the OK-Button ).
>
> Knowing the output device is important for "Copies", because printing
> the same "output" x-times to the same file makes no sense.
>
> So I repeat my question, where/how can I see/test the output device,
> after printer.setup.
>
> By that way, if somebody can tell me, how/where "Print first page first"
> and  "Print last page first"  can be read out, and/or what is to do, for
> make it working.
>

Benoit gave me the advice to print into a file and send the result to 
the device (kprinter on my system) rather than using the printing system 
of Gambas itself. So I changed everything in a way that I have my own 
dialog for the printer and you can click on "Properties" there which 
pops up the official printer dialog. My own dialog will then read out 
for example if a file is set or the file string is empty.

The program then prints all pages into one or more files and calls 
kprinter via a SHELL and with --no-dialog, if necessary file after file. 
This causes a small message to pop up for half a second, just the way my 
Thunderbird and Firefox are doing it, but there is no kprinter dialog. 
It prints directly then.

If you wanted, you could print a standard file with all pages in a 
standard sorted row and then call kprinter enabling the user to decide 
which pages to print etc. This is the way Acroread does it on my system.

CUPS has many advantages of an independent printing system, but it wants 
ready-made files to process. So you have to distinguish clearly between 
program-related and printer-related properties.

Rolf



From mohareve at ...626...  Fri Feb  5 14:05:26 2010
From: mohareve at ...626... (M. Cs.)
Date: Fri, 5 Feb 2010 14:05:26 +0100
Subject: [Gambas-user] Sqlite and Gambas and image blobs
Message-ID: 

Hi,
I'd like to know how can I store image thumbnails (~10 KByte each) inside
the sqlite database using Gambas. I'd like to use the stored thumbs as
preview images, so I'd have to know how to read the blob data out of
database and use it as a content of a Picture container.

Once more:
CREATE TABLE thumbs(name TEXT, img BLOB);
I suppose that would create a table for thumbnails. How to write into
thumbs, and how to get back the image, let say into PicFrame?
Thanks!


From Karl.Reinl at ...2345...  Fri Feb  5 16:44:21 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Fri, 05 Feb 2010 16:44:21 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <4B6BE039.5030409@...1909...>
References: <1265233748.6432.25.camel@...40...>
	<4B6A89FB.7060905@...1909...> <1265313592.6497.20.camel@...40...>
	<4B6BE039.5030409@...1909...>
Message-ID: <1265384661.6763.41.camel@...40...>

Am Freitag, den 05.02.2010, 10:09 +0100 schrieb Doriano Blengino:
> Charlie Reinl ha scritto:
> > Am Donnerstag, den 04.02.2010, 09:48 +0100 schrieb Doriano Blengino:
> >   
> >> Charlie Reinl ha scritto:
> >>     
> >>> If you open the printer-setup the first time, the 'Print to printer' is
> >>> chosen, and the target-file behind 'Print to file' is empty.
> >>>
> >>> If you check 'Print to file' and fill the target-file and then you
> >>> switch back to 'Print to printer', the target-file field is disabled.
> >>> (Setup Printer.png)
> >>>
> >>> Everything seems to be alright. 
> >>>
> >>> But, and there is my new problem, in my code I can't see what should be
> >>> done. (printing 5 times to file, makes no sense)
> >>>
> >>> Where is the magic pointer, which shows me the chosen device?
> >>> (Printer Properties.png)
> >>>   
> >>>       
> >> For what I know about printing in gambas, things are as following.
> >>
> >> You can set by code printer.file to print to a file (a postscript is 
> >> generated), or set printer.name to direct the printing to an actual 
> >> printer. If printer.file is non-empty, the printing will go to a file. 
> >> The same is true if those properties are set by the interactive setup 
> >> panel. After that, you don't have to worry about the destination, the 
> >> code is the same: you draw() on the printer, and the underlying software 
> >> will do what is appropriate.
> >>
> >> Other properties let you to define other printing aspects, like page 
> >> format, b/w or color, and so on.
> >>
> >> The properties Copies, FromPage and ToPage are different, because they 
> >> don't do anything - you should read them and do things accordingly. To 
> >> be more precise, FromPage and ToPage are exactly so (if you read that 
> >> the user has set FromPage=2 and ToPage=2, then your printing routine 
> >> should only print the page number 2, and then terminate). "Copies" 
> >> sometimes works, sometimes not, so I decided to read the number of 
> >> copies, reset it to 1, and print several copies myself. I mean: "Copies" 
> >> was sometimes working, sometimes was ignored, and sometimes messed up 
> >> the printing. If you choose to do multiple copies by code, don't forget 
> >> to reset Copies to 1.
> >>
> >> About printing several copies to a file, I see nothing strange... a 
> >> postscript file should be generated, containing two or more identical 
> >> pages. If you feed that file to a printer, multiple identical pages get 
> >> out. But in the first attempt, I did it differently, and I crashed into 
> >> rewriting the same file several times, as you are arguing. Can't 
> >> remember if it was my fault or gambas or qt one. I solved all together 
> >> by invoking multiple times the subroutine which prints a single page, 
> >> inside a "draw.begin()" and "draw.end()".
> >>     
> >
> > Salut Doriano,
> >
> > letting a part the tab-Problem, the printer problem is not the existing
> > properties of the gambas2-printer. 
> > The problem is you have no information about the output device, after
> > printer.setup().
> > With a bit of luck, the target-file (printer.file) is empty, so it is
> > sure the device is a printer (checked "Print to file" with an empty
> > target-file, disables the OK-Button ).
> >
> > Knowing the output device is important for "Copies", because printing
> > the same "output" x-times to the same file makes no sense.
> >
> > So I repeat my question, where/how can I see/test the output device,
> > after printer.setup.
> >   
> Printer.name.
> This name identifies a CUPS device, and has little to do with the 
> physical device.
> 
> And about printing several copies to a file, I repeat after you that I 
> see nothing strange... if you think at a PDF or PS file which describes 
> a complete document. When you submit jobs to a shared printer, may be 
> that your job will be completed after other, already scheduled jobs by 
> some other users; but when the printer will do your job, it will do it 
> completely - no matter how many copies you requested. So a single 
> printer job may be thought as a single file, even if it contains 
> multiple copies. The only care is that when requesting multiple copies, 
> you must start the printing (Draw.Begin) only once, use newPage() 
> properly, and end the printing (Draw.End) only once. It does not matter 
> if output goes to a file or to a printer; actually, even if you direct 
> output to a printer, internally the printing job is a single file...
> > By that way, if somebody can tell me, how/where "Print first page first"
> > and  "Print last page first"  can be read out, and/or what is to do, for
> > make it working.
> >   
> There is no mention of that in the documentation on my PC. I went to the 
> online documentation, and the site asks me to authenticate. I really 
> don't know...

Salut,

about Printer.Setup()

It is easily possible to leave Printer.Setup() with the Printer.Name and
the Printer.file filled (see attached Printer Properties.png)

This happened, while jumping between, "Print to printer" and "Print to
file" or simply when your Printer object is called several times with
different targets.

The Printer object knows, what to do, so there is not the problem.
But if the gambas-coder, after leaving the Printer.Setup(), wants to
know if "Print to printer" or "Print to file" was chosen, he has as
possibility only to ask if Printer.Name or Printer.file are filled.

And that can be (as in Printer Properties.png shown) both one.   

So what is needed, is a "target property" which says something like 
target = printer or target = file  

Gambas2=2.19.0                  Revision: 2654
qt

-- 
Amicalement
Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Printer Properties.png
Type: image/png
Size: 29246 bytes
Desc: not available
URL: 

From Karl.Reinl at ...2345...  Fri Feb  5 16:54:25 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Fri, 05 Feb 2010 16:54:25 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <4B6BE039.5030409@...1909...>
References: <1265233748.6432.25.camel@...40...>
	<4B6A89FB.7060905@...1909...> <1265313592.6497.20.camel@...40...>
	<4B6BE039.5030409@...1909...>
Message-ID: <1265385265.6763.49.camel@...40...>

Am Freitag, den 05.02.2010, 10:09 +0100 schrieb Doriano Blengino:
> Charlie Reinl ha scritto:
> > Am Donnerstag, den 04.02.2010, 09:48 +0100 schrieb Doriano Blengino:
> >   
> >> Charlie Reinl ha scritto:
> >>     
> >>> If you open the printer-setup the first time, the 'Print to printer' is
> >>> chosen, and the target-file behind 'Print to file' is empty.
> >>>
> >>> If you check 'Print to file' and fill the target-file and then you
> >>> switch back to 'Print to printer', the target-file field is disabled.
> >>> (Setup Printer.png)
> >>>
> >>> Everything seems to be alright. 
> >>>
> >>> But, and there is my new problem, in my code I can't see what should be
> >>> done. (printing 5 times to file, makes no sense)
> >>>
> >>> Where is the magic pointer, which shows me the chosen device?
> >>> (Printer Properties.png)
> >>>   
> >>>       
> >> For what I know about printing in gambas, things are as following.
> >>
> >> You can set by code printer.file to print to a file (a postscript is 
> >> generated), or set printer.name to direct the printing to an actual 
> >> printer. If printer.file is non-empty, the printing will go to a file. 
> >> The same is true if those properties are set by the interactive setup 
> >> panel. After that, you don't have to worry about the destination, the 
> >> code is the same: you draw() on the printer, and the underlying software 
> >> will do what is appropriate.
> >>
> >> Other properties let you to define other printing aspects, like page 
> >> format, b/w or color, and so on.
> >>
> >> The properties Copies, FromPage and ToPage are different, because they 
> >> don't do anything - you should read them and do things accordingly. To 
> >> be more precise, FromPage and ToPage are exactly so (if you read that 
> >> the user has set FromPage=2 and ToPage=2, then your printing routine 
> >> should only print the page number 2, and then terminate). "Copies" 
> >> sometimes works, sometimes not, so I decided to read the number of 
> >> copies, reset it to 1, and print several copies myself. I mean: "Copies" 
> >> was sometimes working, sometimes was ignored, and sometimes messed up 
> >> the printing. If you choose to do multiple copies by code, don't forget 
> >> to reset Copies to 1.
> >>
> >> About printing several copies to a file, I see nothing strange... a 
> >> postscript file should be generated, containing two or more identical 
> >> pages. If you feed that file to a printer, multiple identical pages get 
> >> out. But in the first attempt, I did it differently, and I crashed into 
> >> rewriting the same file several times, as you are arguing. Can't 
> >> remember if it was my fault or gambas or qt one. I solved all together 
> >> by invoking multiple times the subroutine which prints a single page, 
> >> inside a "draw.begin()" and "draw.end()".
> >>     
> >
> > Salut Doriano,
> >
> > letting a part the tab-Problem, the printer problem is not the existing
> > properties of the gambas2-printer. 
> > The problem is you have no information about the output device, after
> > printer.setup().
> > With a bit of luck, the target-file (printer.file) is empty, so it is
> > sure the device is a printer (checked "Print to file" with an empty
> > target-file, disables the OK-Button ).
> >
> > Knowing the output device is important for "Copies", because printing
> > the same "output" x-times to the same file makes no sense.
> >
> > So I repeat my question, where/how can I see/test the output device,
> > after printer.setup.
> >   
> Printer.name.
> This name identifies a CUPS device, and has little to do with the 
> physical device.
> 
> And about printing several copies to a file, I repeat after you that I 
> see nothing strange... if you think at a PDF or PS file which describes 
> a complete document. When you submit jobs to a shared printer, may be 
> that your job will be completed after other, already scheduled jobs by 
> some other users; but when the printer will do your job, it will do it 
> completely - no matter how many copies you requested. So a single 
> printer job may be thought as a single file, even if it contains 
> multiple copies. The only care is that when requesting multiple copies, 
> you must start the printing (Draw.Begin) only once, use newPage() 
> properly, and end the printing (Draw.End) only once. It does not matter 
> if output goes to a file or to a printer; actually, even if you direct 
> output to a printer, internally the printing job is a single file...
> > By that way, if somebody can tell me, how/where "Print first page first"
> > and  "Print last page first"  can be read out, and/or what is to do, for
> > make it working.
> >   
> There is no mention of that in the documentation on my PC. I went to the 
> online documentation, and the site asks me to authenticate. I really 
> don't know...

Salut Doriano,

when I talked of copies and same "output" x-times to the same file makes
no sense.

You said, you have to control the numbers of copies, so do I.
And I want to save the time, which is used to useless copies to have one
at the end.

-- 
Amicalement
Charlie




From doriano.blengino at ...1909...  Fri Feb  5 17:06:58 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Fri, 05 Feb 2010 17:06:58 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <1265384661.6763.41.camel@...40...>
References: <1265233748.6432.25.camel@...40...>	<4B6A89FB.7060905@...1909...>
	<1265313592.6497.20.camel@...40...>	<4B6BE039.5030409@...1909...>
	<1265384661.6763.41.camel@...40...>
Message-ID: <4B6C4222.5040800@...1909...>

Charlie Reinl ha scritto:
>
>>> So I repeat my question, where/how can I see/test the output device,
>>> after printer.setup.
>>>   
>>>       
>> Printer.name.
>> This name identifies a CUPS device, and has little to do with the 
>> physical device.
>>
>>
>>     
> Salut,
>
> about Printer.Setup()
>
> It is easily possible to leave Printer.Setup() with the Printer.Name and
> the Printer.file filled (see attached Printer Properties.png)
>
> This happened, while jumping between, "Print to printer" and "Print to
> file" or simply when your Printer object is called several times with
> different targets.
>
> The Printer object knows, what to do, so there is not the problem.
> But if the gambas-coder, after leaving the Printer.Setup(), wants to
> know if "Print to printer" or "Print to file" was chosen, he has as
> possibility only to ask if Printer.Name or Printer.file are filled.
>
> And that can be (as in Printer Properties.png shown) both one.   
>
> So what is needed, is a "target property" which says something like 
> target = printer or target = file  
>
> Gambas2=2.19.0                  Revision: 2654
> qt
>   
It seems to me, but I could be wrong, that if printer.file is filled, 
then the job goes to a file. If it is empty, then the job goes to a 
"real" printer. About the setup() dialog, may be it is bugged - I mean, 
perhaps it is possible to close the dialog and have both printer.file 
and printer.name set.

=== correction ===
it is bugged.
I made a simple project where setup() is called and just after return 
the values of .file and .name are printed. It is so easy to get them 
both set...

-- BUT THERE IS A WORKAROUND --

Just set printer.file="" before invoking setup(). Apparently they did 
more work than what is documented. This solves. The printer.file get set 
only if you press OK having "Print to file" checked.

Regards,
Doriano





From Karl.Reinl at ...2345...  Fri Feb  5 17:33:51 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Fri, 05 Feb 2010 17:33:51 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <4B6C4222.5040800@...1909...>
References: <1265233748.6432.25.camel@...40...>
	<4B6A89FB.7060905@...1909...> <1265313592.6497.20.camel@...40...>
	<4B6BE039.5030409@...1909...> <1265384661.6763.41.camel@...40...>
	<4B6C4222.5040800@...1909...>
Message-ID: <1265387631.6763.61.camel@...40...>

Am Freitag, den 05.02.2010, 17:06 +0100 schrieb Doriano Blengino:
> Charlie Reinl ha scritto:
> >
> >>> So I repeat my question, where/how can I see/test the output device,
> >>> after printer.setup.
> >>>   
> >>>       
> >> Printer.name.
> >> This name identifies a CUPS device, and has little to do with the 
> >> physical device.
> >>
> >>
> >>     
> > Salut,
> >
> > about Printer.Setup()
> >
> > It is easily possible to leave Printer.Setup() with the Printer.Name and
> > the Printer.file filled (see attached Printer Properties.png)
> >
> > This happened, while jumping between, "Print to printer" and "Print to
> > file" or simply when your Printer object is called several times with
> > different targets.
> >
> > The Printer object knows, what to do, so there is not the problem.
> > But if the gambas-coder, after leaving the Printer.Setup(), wants to
> > know if "Print to printer" or "Print to file" was chosen, he has as
> > possibility only to ask if Printer.Name or Printer.file are filled.
> >
> > And that can be (as in Printer Properties.png shown) both one.   
> >
> > So what is needed, is a "target property" which says something like 
> > target = printer or target = file  
> >
> > Gambas2=2.19.0                  Revision: 2654
> > qt
> >   
> It seems to me, but I could be wrong, that if printer.file is filled, 
> then the job goes to a file. If it is empty, then the job goes to a 
> "real" printer. About the setup() dialog, may be it is bugged - I mean, 
> perhaps it is possible to close the dialog and have both printer.file 
> and printer.name set.
> 
> === correction ===
> it is bugged.
> I made a simple project where setup() is called and just after return 
> the values of .file and .name are printed. It is so easy to get them 
> both set...
> 
> -- BUT THERE IS A WORKAROUND --
> 
> Just set printer.file="" before invoking setup(). Apparently they did 
> more work than what is documented. This solves. The printer.file get set 
> only if you press OK having "Print to file" checked.
> 

That works for a clean entry. But do it also for Printer.Name

-- 
Cordialement
Charlie




From Karl.Reinl at ...2345...  Fri Feb  5 17:39:35 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Fri, 05 Feb 2010 17:39:35 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <4B6C4222.5040800@...1909...>
References: <1265233748.6432.25.camel@...40...>
	<4B6A89FB.7060905@...1909...> <1265313592.6497.20.camel@...40...>
	<4B6BE039.5030409@...1909...> <1265384661.6763.41.camel@...40...>
	<4B6C4222.5040800@...1909...>
Message-ID: <1265387975.6763.65.camel@...40...>

Am Freitag, den 05.02.2010, 17:06 +0100 schrieb Doriano Blengino:
> Charlie Reinl ha scritto:
> >
> >>> So I repeat my question, where/how can I see/test the output device,
> >>> after printer.setup.
> >>>   
> >>>       
> >> Printer.name.
> >> This name identifies a CUPS device, and has little to do with the 
> >> physical device.
> >>
> >>
> >>     
> > Salut,
> >
> > about Printer.Setup()
> >
> > It is easily possible to leave Printer.Setup() with the Printer.Name and
> > the Printer.file filled (see attached Printer Properties.png)
> >
> > This happened, while jumping between, "Print to printer" and "Print to
> > file" or simply when your Printer object is called several times with
> > different targets.
> >
> > The Printer object knows, what to do, so there is not the problem.
> > But if the gambas-coder, after leaving the Printer.Setup(), wants to
> > know if "Print to printer" or "Print to file" was chosen, he has as
> > possibility only to ask if Printer.Name or Printer.file are filled.
> >
> > And that can be (as in Printer Properties.png shown) both one.   
> >
> > So what is needed, is a "target property" which says something like 
> > target = printer or target = file  
> >
> > Gambas2=2.19.0                  Revision: 2654
> > qt
> >   
> It seems to me, but I could be wrong, that if printer.file is filled, 
> then the job goes to a file. If it is empty, then the job goes to a 
> "real" printer. About the setup() dialog, may be it is bugged - I mean, 
> perhaps it is possible to close the dialog and have both printer.file 
> and printer.name set.
> 
> === correction ===
> it is bugged.
> I made a simple project where setup() is called and just after return 
> the values of .file and .name are printed. It is so easy to get them 
> both set...
> 
> -- BUT THERE IS A WORKAROUND --
> 
> Just set printer.file="" before invoking setup(). Apparently they did 
> more work than what is documented. This solves. The printer.file get set 
> only if you press OK having "Print to file" checked.
> 

That works for a clean entry. But do it also for Printer.Name

Sorry, send too fast, wrong button!

All this to fix a badly a bug. Because it is still is not clear how it will be left.
-- 
Cordialement
Charlie




From doriano.blengino at ...1909...  Fri Feb  5 17:45:23 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Fri, 05 Feb 2010 17:45:23 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <1265387631.6763.61.camel@...40...>
References: <1265233748.6432.25.camel@...40...>	<4B6A89FB.7060905@...1909...>
	<1265313592.6497.20.camel@...40...>	<4B6BE039.5030409@...1909...>
	<1265384661.6763.41.camel@...40...>	<4B6C4222.5040800@...1909...>
	<1265387631.6763.61.camel@...40...>
Message-ID: <4B6C4B23.9020607@...1909...>

Charlie Reinl ha scritto:
> Am Freitag, den 05.02.2010, 17:06 +0100 schrieb Doriano Blengino:
>   
>> Charlie Reinl ha scritto:
>>     
>>>>> So I repeat my question, where/how can I see/test the output device,
>>>>> after printer.setup.
>>>>>   
>>>>>       
>>>>>           
>>>> Printer.name.
>>>> This name identifies a CUPS device, and has little to do with the 
>>>> physical device.
>>>>
>>>>
>>>>     
>>>>         
>>> Salut,
>>>
>>> about Printer.Setup()
>>>
>>> It is easily possible to leave Printer.Setup() with the Printer.Name and
>>> the Printer.file filled (see attached Printer Properties.png)
>>>
>>> This happened, while jumping between, "Print to printer" and "Print to
>>> file" or simply when your Printer object is called several times with
>>> different targets.
>>>
>>> The Printer object knows, what to do, so there is not the problem.
>>> But if the gambas-coder, after leaving the Printer.Setup(), wants to
>>> know if "Print to printer" or "Print to file" was chosen, he has as
>>> possibility only to ask if Printer.Name or Printer.file are filled.
>>>
>>> And that can be (as in Printer Properties.png shown) both one.   
>>>
>>> So what is needed, is a "target property" which says something like 
>>> target = printer or target = file  
>>>
>>> Gambas2=2.19.0                  Revision: 2654
>>> qt
>>>   
>>>       
>> It seems to me, but I could be wrong, that if printer.file is filled, 
>> then the job goes to a file. If it is empty, then the job goes to a 
>> "real" printer. About the setup() dialog, may be it is bugged - I mean, 
>> perhaps it is possible to close the dialog and have both printer.file 
>> and printer.name set.
>>
>> === correction ===
>> it is bugged.
>> I made a simple project where setup() is called and just after return 
>> the values of .file and .name are printed. It is so easy to get them 
>> both set...
>>
>> -- BUT THERE IS A WORKAROUND --
>>
>> Just set printer.file="" before invoking setup(). Apparently they did 
>> more work than what is documented. This solves. The printer.file get set 
>> only if you press OK having "Print to file" checked.
>>
>>     
>
> That works for a clean entry. But do it also for Printer.Name
>
>   
No, the result after

    printer.file = ""
    printer.setup

is predictable:

    if printer.file<>"" then
      ' output goes to a file
      printer.copies=1
    else
      ' output goes to a real printer
      application.messagebox("Take the toasting bread out of the printer 
named " & printer.name)
      application.messagebox("Now put some blank paper into the printer")
    endif

...or am I missing something?

Regards,
Doriano



From dag.jarle.johansen at ...2312...  Fri Feb  5 17:50:58 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Fri, 05 Feb 2010 13:50:58 -0300
Subject: [Gambas-user] TabStrip not visible
Message-ID: 

hi,

I installed SVN 3 rev 2663 from the scratch yesterday; the old problems
are gone, one new: I can paint a TabStrip, but it is completly
transparent, no borders, no tabs, no nothing - can't even find it on the
form, when not selecting a big area around where I presume it.

(Ubuntu 9.10 AMD64)

regards 
Dag





From Karl.Reinl at ...2345...  Fri Feb  5 21:54:16 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Fri, 05 Feb 2010 21:54:16 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <4B6C4B23.9020607@...1909...>
References: <1265233748.6432.25.camel@...40...>
	<4B6A89FB.7060905@...1909...> <1265313592.6497.20.camel@...40...>
	<4B6BE039.5030409@...1909...> <1265384661.6763.41.camel@...40...>
	<4B6C4222.5040800@...1909...> <1265387631.6763.61.camel@...40...>
	<4B6C4B23.9020607@...1909...>
Message-ID: <1265403256.7843.2.camel@...40...>

Am Freitag, den 05.02.2010, 17:45 +0100 schrieb Doriano Blengino:
> Charlie Reinl ha scritto:
> > Am Freitag, den 05.02.2010, 17:06 +0100 schrieb Doriano Blengino:
> >   
> >> Charlie Reinl ha scritto:
> >>     
> >>>>> So I repeat my question, where/how can I see/test the output device,
> >>>>> after printer.setup.
> >>>>>   
> >>>>>       
> >>>>>           
> >>>> Printer.name.
> >>>> This name identifies a CUPS device, and has little to do with the 
> >>>> physical device.
> >>>>
> >>>>
> >>>>     
> >>>>         
> >>> Salut,
> >>>
> >>> about Printer.Setup()
> >>>
> >>> It is easily possible to leave Printer.Setup() with the Printer.Name and
> >>> the Printer.file filled (see attached Printer Properties.png)
> >>>
> >>> This happened, while jumping between, "Print to printer" and "Print to
> >>> file" or simply when your Printer object is called several times with
> >>> different targets.
> >>>
> >>> The Printer object knows, what to do, so there is not the problem.
> >>> But if the gambas-coder, after leaving the Printer.Setup(), wants to
> >>> know if "Print to printer" or "Print to file" was chosen, he has as
> >>> possibility only to ask if Printer.Name or Printer.file are filled.
> >>>
> >>> And that can be (as in Printer Properties.png shown) both one.   
> >>>
> >>> So what is needed, is a "target property" which says something like 
> >>> target = printer or target = file  
> >>>
> >>> Gambas2=2.19.0                  Revision: 2654
> >>> qt
> >>>   
> >>>       
> >> It seems to me, but I could be wrong, that if printer.file is filled, 
> >> then the job goes to a file. If it is empty, then the job goes to a 
> >> "real" printer. About the setup() dialog, may be it is bugged - I mean, 
> >> perhaps it is possible to close the dialog and have both printer.file 
> >> and printer.name set.
> >>
> >> === correction ===
> >> it is bugged.
> >> I made a simple project where setup() is called and just after return 
> >> the values of .file and .name are printed. It is so easy to get them 
> >> both set...
> >>
> >> -- BUT THERE IS A WORKAROUND --
> >>
> >> Just set printer.file="" before invoking setup(). Apparently they did 
> >> more work than what is documented. This solves. The printer.file get set 
> >> only if you press OK having "Print to file" checked.
> >>
> >>     
> >
> > That works for a clean entry. But do it also for Printer.Name
> >
> >   
> No, the result after
> 
>     printer.file = ""
>     printer.setup
> 
> is predictable:
> 
>     if printer.file<>"" then
>       ' output goes to a file
>       printer.copies=1
>     else
>       ' output goes to a real printer
>       application.messagebox("Take the toasting bread out of the printer 
> named " & printer.name)
>       application.messagebox("Now put some blank paper into the printer")
>     endif
> 
> ...or am I missing something?
Salut,

just something to play and see.


-- 
Amicalement
Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PrinterSetup-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 8285 bytes
Desc: not available
URL: 

From Karl.Reinl at ...2345...  Fri Feb  5 22:44:17 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Fri, 05 Feb 2010 22:44:17 +0100
Subject: [Gambas-user] TabStrip not visible
In-Reply-To: 
References: 
Message-ID: <1265406257.6591.1.camel@...40...>

Am Freitag, den 05.02.2010, 13:50 -0300 schrieb Dag Jarle Johansen:
> hi,
> 
> I installed SVN 3 rev 2663 from the scratch yesterday; the old problems
> are gone, one new: I can paint a TabStrip, but it is completly
> transparent, no borders, no tabs, no nothing - can't even find it on the
> form, when not selecting a big area around where I presume it.
> 
> (Ubuntu 9.10 AMD64)
> 
> regards 
> Dag

Salut Dag,

could you see it in hierarchy (in the IDE the Tab right of properties) ?
-- 
Cordialement
Charlie




From leonardo at ...1237...  Fri Feb  5 22:38:34 2010
From: leonardo at ...1237... (Leonardo Miliani)
Date: Fri, 05 Feb 2010 22:38:34 +0100
Subject: [Gambas-user] Compilation of Gambas2 SVN aborted
In-Reply-To: <201002051213.15749.gambas@...1...>
References: 
	<201002051213.15749.gambas@...1...>
Message-ID: <1265405914.4946.0.camel@...37...>

Il giorno ven, 05/02/2010 alle 12.13 +0100, Beno?t Minisini ha scritto:
> > I'm using Arch Linux.
> > When I try to compile Gambas2 from SVN repository, the configure proceed
> > without errors ("ALL COMPONENTS WILL BE COMPILED") but when make starts its
> > run it stops with this error:
> > 
> > make  all-recursive
> > make[1]: Entering directory
> > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build'
> > Making all in main
> > make[2]: Entering directory
> > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
> > make  all-recursive
> > make[3]: Entering directory
> > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
> > Making all in gbx
> > make[4]: Entering directory
> > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx
> > ' /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> >  -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char
> >  -fvisibility=hidden -g -Os -I../share -D_REENTRANT
> > -I/usr/lib/libffi-3.0.8/include    -O0  -MT gb_la-gbx_c_class.lo -MD -MP
> > -MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la-gbx_c_class.lo `test -f
> > 'gbx_c_class.c' || echo './'`gbx_c_class.c
> > libtool: Version mismatch error.  This is libtool 2.2.6, but the
> > libtool: definition of this LT_INIT comes from libtool 2.2.6b.
> > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
> > libtool: and run autoconf again.
> > make[4]: *** [gb_la-gbx_c_class.lo] Error 63
> > make[4]: Leaving directory
> > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx
> > ' make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory
> > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory
> > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory
> > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build'
> > make: *** [all] Error 2
> > 
> > 
> > It says there is a problem of matching version with libtool.
> > 
> > Leonardo Miliani
> > www.leonardomiliani.com
> > 
> > Webmaster e co-fondatore di www.gambas-it.org
> > La comunit? italiana dei programmatori Gambas
> > 
> 
> Did you do a ./reconf before configure?
> 

I did a ./reconf-all before start compiling.

-- 
Leonardo Miliani
www.leonardomiliani.com

Webmaster e co-fondatore di www.gambas-it.org
Il portale di riferimento per i programmatori Gambas italiani




From Karl.Reinl at ...2345...  Fri Feb  5 23:15:32 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Fri, 05 Feb 2010 23:15:32 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <4B6C0360.4000801@...221...>
References: <1265233748.6432.25.camel@...40...>
	<4B6A89FB.7060905@...1909...> <1265313592.6497.20.camel@...40...>
	<4B6C0360.4000801@...221...>
Message-ID: <1265408132.6591.19.camel@...40...>

Am Freitag, den 05.02.2010, 12:39 +0100 schrieb Rolf-Werner Eilert:
> Am 04.02.2010 20:59, schrieb Charlie Reinl:
> > Am Donnerstag, den 04.02.2010, 09:48 +0100 schrieb Doriano Blengino:
> >> Charlie Reinl ha scritto:
> >>> Salut,
> >>>
> >>> I still haven't solved the Draw.Text tab problem, but I'v a new one (a
> >>> problem).
> >>>
> >>> If you open the printer-setup the first time, the 'Print to printer' is
> >>> chosen, and the target-file behind 'Print to file' is empty.
> >>>
> >>> If you check 'Print to file' and fill the target-file and then you
> >>> switch back to 'Print to printer', the target-file field is disabled.
> >>> (Setup Printer.png)
> >>>
> >>> Everything seems to be alright.
> >>>
> >>> But, and there is my new problem, in my code I can't see what should be
> >>> done. (printing 5 times to file, makes no sense)
> >>>
> >>> Where is the magic pointer, which shows me the chosen device?
> >>> (Printer Properties.png)
> >>>
> >> For what I know about printing in gambas, things are as following.
> >>
> >> You can set by code printer.file to print to a file (a postscript is
> >> generated), or set printer.name to direct the printing to an actual
> >> printer. If printer.file is non-empty, the printing will go to a file.
> >> The same is true if those properties are set by the interactive setup
> >> panel. After that, you don't have to worry about the destination, the
> >> code is the same: you draw() on the printer, and the underlying software
> >> will do what is appropriate.
> >>
> >> Other properties let you to define other printing aspects, like page
> >> format, b/w or color, and so on.
> >>
> >> The properties Copies, FromPage and ToPage are different, because they
> >> don't do anything - you should read them and do things accordingly. To
> >> be more precise, FromPage and ToPage are exactly so (if you read that
> >> the user has set FromPage=2 and ToPage=2, then your printing routine
> >> should only print the page number 2, and then terminate). "Copies"
> >> sometimes works, sometimes not, so I decided to read the number of
> >> copies, reset it to 1, and print several copies myself. I mean: "Copies"
> >> was sometimes working, sometimes was ignored, and sometimes messed up
> >> the printing. If you choose to do multiple copies by code, don't forget
> >> to reset Copies to 1.
> >>
> >> About printing several copies to a file, I see nothing strange... a
> >> postscript file should be generated, containing two or more identical
> >> pages. If you feed that file to a printer, multiple identical pages get
> >> out. But in the first attempt, I did it differently, and I crashed into
> >> rewriting the same file several times, as you are arguing. Can't
> >> remember if it was my fault or gambas or qt one. I solved all together
> >> by invoking multiple times the subroutine which prints a single page,
> >> inside a "draw.begin()" and "draw.end()".
> >
> > Salut Doriano,
> >
> > letting a part the tab-Problem, the printer problem is not the existing
> > properties of the gambas2-printer.
> > The problem is you have no information about the output device, after
> > printer.setup().
> > With a bit of luck, the target-file (printer.file) is empty, so it is
> > sure the device is a printer (checked "Print to file" with an empty
> > target-file, disables the OK-Button ).
> >
> > Knowing the output device is important for "Copies", because printing
> > the same "output" x-times to the same file makes no sense.
> >
> > So I repeat my question, where/how can I see/test the output device,
> > after printer.setup.
> >
> > By that way, if somebody can tell me, how/where "Print first page first"
> > and  "Print last page first"  can be read out, and/or what is to do, for
> > make it working.
> >
> 
> Benoit gave me the advice to print into a file and send the result to 
> the device (kprinter on my system) rather than using the printing system 
> of Gambas itself. So I changed everything in a way that I have my own 
> dialog for the printer and you can click on "Properties" there which 
> pops up the official printer dialog. My own dialog will then read out 
> for example if a file is set or the file string is empty.
> 
> The program then prints all pages into one or more files and calls 
> kprinter via a SHELL and with --no-dialog, if necessary file after file. 
> This causes a small message to pop up for half a second, just the way my 
> Thunderbird and Firefox are doing it, but there is no kprinter dialog. 
> It prints directly then.
> 
> If you wanted, you could print a standard file with all pages in a 
> standard sorted row and then call kprinter enabling the user to decide 
> which pages to print etc. This is the way Acroread does it on my system.
> 
> CUPS has many advantages of an independent printing system, but it wants 
> ready-made files to process. So you have to distinguish clearly between 
> program-related and printer-related properties.
> 
> Rolf

Salut Rolf,

does kprinter still exists ?

Yes I know about all that things, and we do in that project a preview
like in Acrobat Reader, also a range of pages can be defined and only
these pages will be print, the Numbers of Copies are managed by the
program, and while testing that, I found that behave, or should I say
bug!

And while talking about the printer object, I asked also the other
questions. 

Thanks
Charlie






From jussi.lahtinen at ...626...  Fri Feb  5 23:44:49 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sat, 6 Feb 2010 00:44:49 +0200
Subject: [Gambas-user] Signal 11
In-Reply-To: <201002042336.08984.gambas@...1...>
References:  
	<384d3901002040927q199bf99fkf50c71ee908abfe6@...627...> 
	
	<201002042336.08984.gambas@...1...>
Message-ID: <384d3901002051444v42badb5fu44bbcb470dcf3b6e@...627...>

I tested again with revision 2664.
Maybe there was problem with my installation, or did this "BUG: Forgot
to implement a static class variable in gapplication.cpp."
has something to do with crash..?
Now everything works with both Qt and GTK+.

Jussi


2010/2/5 Beno?t Minisini :
>> Hi,
>>
>> I send you the app. it's not so big.
>> the system is Ubuntu 9.10, SVN 3 Revision 2660
>> The app does not start at all, get signal 11 imidiatly on start,
>>
>> Thanks
>> Dag
>>
>
> I have just tested on my Mandriva 2010.0 32 bits, by creating the accurate
> database with your sql file, and I got no crash at all. Just a "No database"
> message in the bottom of the window.
>
> Please send me a backtrace of the crash with gdb, or run the interpreter in
> valgrind and send me the output.
>
> I will try on my Ubuntu 9.10 64 bits now...
>
> --
> Beno?t Minisini
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From gambas at ...1...  Sat Feb  6 00:52:10 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Sat, 6 Feb 2010 00:52:10 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <1265233748.6432.25.camel@...40...>
References: <1265233748.6432.25.camel@...40...>
Message-ID: <201002060052.10950.gambas@...1...>

> Salut,
> 
> I still haven't solved the Draw.Text tab problem, but I'v a new one (a
> problem).
> 
> If you open the printer-setup the first time, the 'Print to printer' is
> chosen, and the target-file behind 'Print to file' is empty.
> 
> If you check 'Print to file' and fill the target-file and then you
> switch back to 'Print to printer', the target-file field is disabled.
> (Setup Printer.png)
> 
> Everything seems to be alright.
> 
> But, and there is my new problem, in my code I can't see what should be
> done. (printing 5 times to file, makes no sense)
> 
> Where is the magic pointer, which shows me the chosen device?
> (Printer Properties.png)
> 
> Gambas2=2.19.0                  Revision: 2654
> qt
> 

Just a few word to tell that the printer support has been redesigned in Gambas 
3, this is why I didn't touch the Gambas 2 one anymore. 

Now in Gambas 3, it should work as it should have worked since the beginning, 
with both Qt and GTK+.

Regards,

-- 
Beno?t Minisini



From rterry at ...1946...  Sat Feb  6 08:26:11 2010
From: rterry at ...1946... (richard terry)
Date: Sat, 6 Feb 2010 18:26:11 +1100
Subject: [Gambas-user] Anyone userd .Grab()?
Message-ID: <201002061826.11650.rterry@...1946...>

I wanted to grab the contents of a HBox as  picture (it contains other 
controls), put the code under a button:

Public Sub Button1_Click()
  Dim pic As  Picture
  pic = HBox1.Grab()

End

This gives an error message 'wanted picture, got void instead'.

Any one got any ideas?

Thanks in anticipation.

Richard



From wdahn at ...1000...  Sat Feb  6 10:18:05 2010
From: wdahn at ...1000... (Werner)
Date: Sat, 06 Feb 2010 17:18:05 +0800
Subject: [Gambas-user] Anyone userd .Grab()?
In-Reply-To: <201002061826.11650.rterry@...1946...>
References: <201002061826.11650.rterry@...1946...>
Message-ID: <4B6D33CD.30706@...1000...>

On 06/02/10 15:26, richard terry wrote:
> I wanted to grab the contents of a HBox as  picture (it contains other 
> controls), put the code under a button:
>
> Public Sub Button1_Click()
>   Dim pic As  Picture
>   pic = HBox1.Grab()
>
> End
>
> This gives an error message 'wanted picture, got void instead'.
>
> Any one got any ideas?
>
> Thanks in anticipation.
>
> Richard
>   
It works fine here.
Gambas 2.19 on openSUSE 11.2/64 with Qt.
My HBox does not have any real content, I just changed the background. I
can save the picture and open it with another app.

Regards
Werner




From mohareve at ...626...  Sat Feb  6 11:02:57 2010
From: mohareve at ...626... (M. Cs.)
Date: Sat, 6 Feb 2010 11:02:57 +0100
Subject: [Gambas-user] Databases, please help me!
Message-ID: 

I'm repeating my question, since the documentation is quite obsolete in this
topic:

How can I open a picture with Gambas2 ("/home/me/pic.jpg"), and put it into
a sqlite database table as a blob?
How can I use the picture stored in the blob to display as a Picture?

Is this solvable at all?

Csaba

P.S.: How can I join to the documentation writers?


From rterry at ...1946...  Sat Feb  6 11:34:38 2010
From: rterry at ...1946... (richard terry)
Date: Sat, 6 Feb 2010 21:34:38 +1100
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: 
References: 
Message-ID: <201002062134.38693.rterry@...1946...>

On Saturday 06 February 2010 21:02:57 M. Cs. wrote:
> I'm repeating my question, since the documentation is quite obsolete in
>  this topic:
> 
> How can I open a picture with Gambas2 ("/home/me/pic.jpg"), and put it into
> a sqlite database table as a blob?
> How can I use the picture stored in the blob to display as a Picture?
> 
> Is this solvable at all?
> 
> Csaba
> 
> P.S.: How can I join to the documentation writers?
> ---------------------------------------------------------------------------
> --- 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
checkout the picture db example? it will possibly help you. I adapted it for 
postgres and it works fine.

Regards

Richard



From steven at ...1652...  Sat Feb  6 11:52:50 2010
From: steven at ...1652... (Steven revimmo)
Date: Sat, 06 Feb 2010 11:52:50 +0100
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: 
References: 
Message-ID: <1265453570.3646.64.camel@...1936...>

Maybe this helps (it's part of a project i did)


' Gambas class file

rsD AS Result
rsK AS Result
rfield AS ResultField
ctrl AS Control
MColl AS NEW Collection
FHand AS File
p AS picture
Mandat AS String
PaTag AS String[]
Id AS Integer

PRIVATE CONST thumbSize AS Integer = 90
bigone AS Integer = 490

' we read the photo from the tag of the form
PUBLIC SUB Form_Show()
DIM tmp AS String
DIM sData AS String 

  IF ME.Tag THEN
    PaTag = Split(ME.Tag, "=")
    Mandat = PaTag[0]
    Id = Val(PaTag[1])
  END IF

  ME.text = Mglobal.U_AgenNom & " - Photo's du bien " & Mandat

  ' Set options for GridView columns
  GridViewThumbs.Columns.Count = 5
  GridViewThumbs.Columns[0].Width = 20
  GridViewThumbs.Columns[0].Text = ""
  GridViewThumbs.Columns[1].Width = thumbSize * 1
  GridViewThumbs.Columns[1].Text = "Thumb"
  GridViewThumbs.Columns[2].Width = 0
  GridViewThumbs.Columns[2].Text = "Id"
  GridViewThumbs.Columns[3].Width = 0
  GridViewThumbs.Columns[3].Text = "description"
  GridViewThumbs.Columns[4].Width = 0
  GridViewThumbs.Columns[4].Text = "filename"
  
  ' get um
  rsK = db.Exec("select Thumb, Id, description from Photos where
prop_num = " & Str(Id) & " ORDER BY sequence")
  IF rsK.available = TRUE THEN 
    FOR EACH rsK
      sData = rsK!Thumb.Data 
      ' write the photo to local file
      File.Save("~/TempPhot" & Str(rsK!Id) & ".jpg", sData)
      ' Fill with the image
      AddImage("~/TempPhot" & Str(rsK!Id) & ".jpg", Str(rsK!Id), rsK!
description) 
      KILL "~/TempPhot" & Str(rsK!Id) & ".jpg"
    NEXT
      ' Set main image to view - if we have one
    IF GridViewThumbs.Rows.Count > 0 THEN 
      GridViewThumbs.Row = 0
      SelectImage()
    END IF
  END IF 
END

PRIVATE FUNCTION AddImage(Path AS String, Id AS String, description AS
String) AS Boolean 
  DIM r AS Integer
  DIM p AS Picture
  ' See if we can load the picture
  p = CreateThumb(Path, "T")
  ' If we created the thumb then add it
  r = GridViewThumbs.Rows.Count
  GridViewThumbs.Rows.Count = r + 1
  GridViewThumbs[r, 1].Picture = p
  GridViewThumbs[r, 2].Text = Id
  GridViewThumbs[r, 3].Text = description
  
  GridViewThumbs.Rows.Height = thumbSize
  RETURN TRUE
CATCH 
  Message.Error(Error.Text)
  RETURN FALSE
END

' Create a thumb from the path to an image
' The size of the thumb is set by the const thumbSize, ,or Bigsize
PRIVATE FUNCTION CreateThumb(Path AS String, Wo AS String) AS Picture
  DIM img AS Image
  DIM scale AS Float
  ' Load an image becuase you can stretch and image - but not a picture
  img = Image.Load(Path)
  IF Wo = "T" THEN
    IF img.Width > thumbSize OR img.Height > thumbSize THEN 
      ' Calc factor to scale isotropic
      scale = Min(thumbSize / img.Width, thumbSize / img.Height)
      ' Stretch image and return a picture
      RETURN img.Stretch(img.Width * scale, img.Height * scale,
TRUE).Picture
    ELSE 
      RETURN img.Picture
    END IF
  ELSE ' we have a big one
    IF img.Width > bigone OR img.Height > bigone THEN 
      ' Calc factor to scale isotropic
      scale = Min(bigone / img.Width, bigone / img.Height)
      ' Stretch image and return a picture
      RETURN img.Stretch(img.Width * scale, img.Height * scale,
TRUE).Picture
    ELSE 
      RETURN img.Picture
    END IF
  
  END IF
END

' When the user clicks on a row make it the selected image
PUBLIC SUB GridViewThumbs_Click()
  SelectImage()
END

'''
''' Functions
'''

PRIVATE SUB SelectImage()
  DIM row AS Integer
  DIM i AS Integer
  DIM sData AS String
  DIM scale AS Float
  
  row = GridViewThumbs.row
  IF row < 0 THEN RETURN ' if it was empty !
  FOR i = 0 TO GridViewThumbs.Rows.Count - 1
    IF i = row THEN 
      ' Set marker for selected row
      GridViewThumbs[i, 0].Picture = Picture["Images/go-next.png"]
    ELSE 
      ' No marker on other rows
      GridViewThumbs[i, 0].Picture = NULL
    END IF
  NEXT
  ' Update full size image
  IF Mid(GridViewThumbs[row, 2].Text, 1, 1) = "=" THEN 
    sData = Mid(GridViewThumbs[row, 2].Text, 2)
    PictureBoxFullSize.Picture = CreateThumb(sData, "B")
  ELSE ' it's allready in the database 
    rsK = db.Exec("select Id, www from Photos where Id = " &
GridViewThumbs[row, 2].Text)
    IF rsK.available = TRUE THEN 
      sData = rsK!www.Data 
      ' write the photo to local file
      File.Save("~/TempPhot" & Str(rsK!Id) & ".jpg", sData)
      ' Fill with the image
      PictureBoxFullSize.Picture = Picture["~/TempPhot" & Str(rsK!Id) &
".jpg"]
      KILL "~/TempPhot" & Str(rsK!Id) & ".jpg"
    END IF
  END IF
  PictureBoxFullSize.Width = PictureBoxFullSize.Picture.Width
  PictureBoxFullSize.Height = PictureBoxFullSize.Picture.Height
  description.Y = PictureBoxFullSize.Height + 8 
  description.text = GridviewThumbs[row, 3].text 
  description.Tag = description.text
  Form_Resize
  
  CATCH
END

' Remove the selected image from the grid
PUBLIC SUB ToolButtonRemove_Click()
  DIM r, c AS Integer
  ' Make sure we have something in the grid to remove
  IF GridViewThumbs.Rows.Count = 0 THEN RETURN 
  FOR r = GridViewThumbs.Row TO GridViewThumbs.Rows.Count - 2
    FOR c = 0 TO GridViewThumbs.Columns.Count - 1
      GridViewThumbs[r, c].Picture = GridViewThumbs[r + 1, c].Picture
      GridViewThumbs[r, c].Text = GridViewThumbs[r + 1, c].Text
    NEXT
  NEXT
  GridViewThumbs.Rows.Count = GridViewThumbs.Rows.Count - 1
  GridViewThumbs.Rows.Height = thumbSize
  PictureBoxFullSize.Picture = NULL
  IF GridViewThumbs.Rows.Count > 0 THEN 
    IF GridViewThumbs.Row = GridViewThumbs.Rows.Count THEN 
      GridViewThumbs.Row = GridViewThumbs.Rows.Count - 1
    END IF
    SelectImage()
  END IF
END

' Move the selected image up the grid
PUBLIC SUB ToolButtonUp_Click()
 DIM r, c AS Integer
  DIM tempText AS String
  DIM tempPicture AS Picture
  r = GridViewThumbs.Row
  IF GridViewThumbs.Rows.Count = 0 OR r = 0 THEN RETURN 
  FOR c = 0 TO GridViewThumbs.Columns.Count - 1
    tempText = GridViewThumbs[r - 1, c].Text
    tempPicture = GridViewThumbs[r - 1, c].Picture
    GridViewThumbs[r - 1, c].Text = GridViewThumbs[r, c].Text
    GridViewThumbs[r - 1, c].Picture = GridViewThumbs[r, c].Picture
    GridViewThumbs[r, c].Text = tempText
    GridViewThumbs[r, c].Picture = tempPicture
  NEXT 
  GridViewThumbs.Row = r - 1
END

' Move the selected image down the grid
PUBLIC SUB ToolButtonDown_Click()
  DIM r, c AS Integer
  DIM tempText AS String
  DIM tempPicture AS Picture
  r = GridViewThumbs.Row
  IF GridViewThumbs.Rows.Count = 0 OR r = (GridViewThumbs.Rows.Count -
1) THEN RETURN 
  FOR c = 0 TO GridViewThumbs.Columns.Count - 1
    tempText = GridViewThumbs[r + 1, c].Text
    tempPicture = GridViewThumbs[r + 1, c].Picture
    GridViewThumbs[r + 1, c].Text = GridViewThumbs[r, c].Text
    GridViewThumbs[r + 1, c].Picture = GridViewThumbs[r, c].Picture
    GridViewThumbs[r, c].Text = tempText
    GridViewThumbs[r, c].Picture = tempPicture
  NEXT 
  GridViewThumbs.Row = r + 1
END

' Add a image to the GridView
PUBLIC SUB ToolButtonAdd_Click()
  DIM imageFile AS String
  Dialog.Filter = ["*.png", "Images png", "*.gif", "Gif images",
"*.jpg", "JPEG Images"]
  Dialog.Title = "Selectionner vos photos"
  IF Dialog.OpenFile(TRUE) THEN RETURN
  FOR EACH imageFile IN Dialog.Paths
    IF AddImage(imageFile, "=" & imageFile, "") THEN 
      ' if we were able to add then image then show it
      GridViewThumbs.Row = GridViewThumbs.Rows.Count - 1
    END IF
  NEXT
  SelectImage()

CATCH
  Message.Info(Error.Text)
END


PUBLIC SUB writeThumb(photoID AS Integer, thumb AS Picture)
'  DIM fileName AS String

'  fileName = "/tmp" &/ "thumb-" & photoID & ".jpg"
'  thumb.Save(fileName)
'  $conn.EXEC("UPDATE PhotoThumb SET thumb=LOAD_FILE('" & fileName & "')
WHERE photo_id=" & photoID)
'  KILL fileName
END
' Funktioniert nat?rlich nur wenn der Datenbank-Server auch Zugriff auf
die Datei hat. Sad 
 'OR OR /:
' TO put a file inside a blob field: 
 
' DIM sData AS String 
' sData = File.Load("/file/path") 
' MyResult!MyBlobField = sData 
 


PUBLIC SUB Close_Click()
' we cancel all, do nothing
  ME.CLOSE   
END

PUBLIC SUB ToolButton1_Click()
  message.Info("Vous pouvez enlever, ajouter et trier les images\nLe
sequence des images ici, sera celle de l'internet\napr?s avoir fini le
travail, il suffit d'appuier sur 'Fermer'\net la nouvelle groupe
d'images sera transferer")
END

PUBLIC SUB description_LostFocus()
  IF description.Tag <> description.Text THEN 
    IF GridViewThumbs.Row = 0 THEN GridViewThumbs.Row = 1
    GridviewThumbs[GridviewThumbs.Row - 1, 3].Text = description.Text 
  END IF  
END

PUBLIC SUB Chercher_Click()
DIM Hstr AS File
DIM r, c AS Integer
DIM tmp AS String

' here we do our thing (update the data base and xfer les photos)  
' we first see if there are existing photos (Id), update there sequence
' then we add and transfert the new ones, and delete deleted ones
' is rather complex, so we do this asyngronously
' here we write a file with all data, and launch a shell script that
does it all
' to be sure we control this, we will write the script too

' we write lines in the form : Id or =filename|Prop_num|description
(with " translated)|sequence|Mandat|
  IF GridViewThumbs.Rows.Count = 0 THEN RETURN 
' we have something, we donnot allow to suppress all here !
  Hstr = OPEN USER.Home & "/rek_trans.txt" FOR CREATE 
  IF Hstr THEN 
    FOR r = 0 TO GridviewThumbs.Rows.Count - 1
      tmp = GridviewThumbs[r, 2].Text & "|" & Str(Id) & "|" & Replace
$(GridviewThumbs[r, 3].Text, "\"", "'") & "|" & Str(r) & "|"
      tmp = tmp & Mandat & "|"
      PRINT #Hstr, tmp 
    NEXT 
    CLOSE Hstr
    ' now we start up the other process
  SHELL User.Home & "/request/request_transfert.gambas " &
Mglobal.U_AgenRep
  END IF
'and finally we close
  ME.CLOSE 
END

PUBLIC SUB Form_Resize()
  PictureBoxFullSize.Move(PictureBoxFullSize.X, PictureBoxFullSize.Y,
ME.W - ((GridViewThumbs.W + 20) + 6), ME.H - 35)
  Panel2.Move(ME.W - (Panel2.W + 6), ME.Height - 27) 
  bigone = PictureBoxFullSize.W 

END



Steven


Le samedi 06 f?vrier 2010 ? 11:02 +0100, M. Cs. a ?crit :

> I'm repeating my question, since the documentation is quite obsolete in this
> topic:
> 
> How can I open a picture with Gambas2 ("/home/me/pic.jpg"), and put it into
> a sqlite database table as a blob?
> How can I use the picture stored in the blob to display as a Picture?
> 
> Is this solvable at all?
> 
> Csaba
> 
> P.S.: How can I join to the documentation writers?
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user




From gambas at ...1...  Sat Feb  6 17:13:56 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Sat, 6 Feb 2010 17:13:56 +0100
Subject: [Gambas-user] Anyone userd .Grab()?
In-Reply-To: <201002061826.11650.rterry@...1946...>
References: <201002061826.11650.rterry@...1946...>
Message-ID: <201002061713.56168.gambas@...1...>

> I wanted to grab the contents of a HBox as  picture (it contains other
> controls), put the code under a button:
> 
> Public Sub Button1_Click()
>   Dim pic As  Picture
>   pic = HBox1.Grab()
> 
> End
> 
> This gives an error message 'wanted picture, got void instead'.
> 
> Any one got any ideas?
> 
> Thanks in anticipation.
> 
> Richard
> 

In Gambas 3, you must use the Screenshot() method instead. The documentation 
has not been updated yet.

The Grab() method allows a control to take all mouse and keyboard events until 
the mouse button is released or the ESC key is pressed.

Regards,

-- 
Beno?t Minisini



From mohareve at ...626...  Sat Feb  6 21:34:15 2010
From: mohareve at ...626... (M. Cs.)
Date: Sat, 6 Feb 2010 21:34:15 +0100
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: <1265453570.3646.64.camel@...1936...>
References: 
	<1265453570.3646.64.camel@...1936...>
Message-ID: 

I'm almost there. Still I have a big problem and a possible bug:
When I do a querry:
querry="SELEC * FROM Thumbs WHERE fajl='b1.jpg' AND volume='ALPHA';"

I'm getting 0 hits, although when I do the same querry in terminal, I have
exactly 1 shot, as it has to be.

Structure of table:

Thumbs(fajl TEXT,volume TEXT,name BLOB,img BLOB)

Is it a bug?


From dag.jarle.johansen at ...2312...  Sat Feb  6 21:36:52 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Sat, 06 Feb 2010 17:36:52 -0300
Subject: [Gambas-user] More Problems turning up
Message-ID: 

hi,

I still have the problem, that I can't draw a TabStrip in the IDE. I
solved it temporarily editing the .form file, then it works when loading
it to the gambas IDE.

now I have an additional problem with User.Home. I have two apps, with
identical libs loaded. In both I use User.home as a part of the path. In
the newer app I get the message: not an object, when stepping into the
statement with user.home. Looks like this:

  Dim DateiName As String
  DateiName = User.home & "/gambasdata/User.txt"


Ubuntu 9.10 64AMD, Gambas SVN 3, rev. 2663.

Regards
Dag





From dag.jarle.johansen at ...2312...  Sat Feb  6 21:58:56 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Sat, 06 Feb 2010 17:58:56 -0300
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: 
References: 
	<1265453570.3646.64.camel@...1936...>
	
Message-ID: 

Hi,

depends on if you have copied your query-text from the source or wrote
it here:

querry="SELEC * FROM Thumbs WHERE fajl='b1.jpg' AND volume='ALPHA';"

SELECT rather than SELEC

and I am not so sure if it good to have the ";" at the end,
in MySQL Editor f. eks you should, using the same statement in Gambas I
rather let it out.

regards
Dag



Am Samstag, den 06.02.2010, 21:34 +0100 schrieb M. Cs.:
> I'm almost there. Still I have a big problem and a possible bug:
> When I do a querry:
> querry="SELEC * FROM Thumbs WHERE fajl='b1.jpg' AND volume='ALPHA';"
> 
> I'm getting 0 hits, although when I do the same querry in terminal, I have
> exactly 1 shot, as it has to be.
> 
> Structure of table:
> 
> Thumbs(fajl TEXT,volume TEXT,name BLOB,img BLOB)
> 
> Is it a bug?
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





From jussi.lahtinen at ...626...  Sat Feb  6 22:15:48 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sat, 6 Feb 2010 23:15:48 +0200
Subject: [Gambas-user] More Problems turning up
In-Reply-To: 
References: 
Message-ID: <384d3901002061315h70097b8ey61de42ce1686fb68@...627...>

> I still have the problem, that I can't draw a TabStrip in the IDE. I
> solved it temporarily editing the .form file, then it works when loading
> it to the gambas IDE.

 Confirmed.
 TabStrip made with older Gambas revision works as expected, but not new ones.
 Maybe just empty tabstrips are not showing.
 This occurs only at design, at run time tabstrips are showing.


> now I have an additional problem with User.Home. I have two apps, with
> identical libs loaded. In both I use User.home as a part of the path. In
> the newer app I get the message: not an object, when stepping into the
> statement with user.home. Looks like this:
>
> ?Dim DateiName As String
> ?DateiName = User.home & "/gambasdata/User.txt"

 I cannot reproduce problem.
 I just get string "/home/myname/gambasdata/User.txt", no errors.


Jussi



From dag.jarle.johansen at ...2312...  Sat Feb  6 22:36:33 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Sat, 06 Feb 2010 18:36:33 -0300
Subject: [Gambas-user] More Problems turning up
In-Reply-To: <384d3901002061315h70097b8ey61de42ce1686fb68@...627...>
References: 
	<384d3901002061315h70097b8ey61de42ce1686fb68@...627...>
Message-ID: 

Hi Jussi,

I can handle the TabStrip-problem pretty easy, just using the editor
until the IDE works as usual again.

The User.Home problem is rather curious, because I have checked ALL
files belonging to both projects, and they are identical (not the
formnames off course). In the older app it works fine, in the app
created yesterday - nada. I can't imagine that a lib is cached in a
project, so both should use the same libs. What rev. do you have, is
2664 right, I think I remember you say so yesterday? I got 2663 the last
time, and that is rather curious too, because I got 2664 once in
between, if I haven't got quite mad in the meantime.

thanks and regards
Dag 


Am Samstag, den 06.02.2010, 23:15 +0200 schrieb Jussi Lahtinen:
> > I still have the problem, that I can't draw a TabStrip in the IDE. I
> > solved it temporarily editing the .form file, then it works when loading
> > it to the gambas IDE.
> 
>  Confirmed.
>  TabStrip made with older Gambas revision works as expected, but not new ones.
>  Maybe just empty tabstrips are not showing.
>  This occurs only at design, at run time tabstrips are showing.
> 
> 
> > now I have an additional problem with User.Home. I have two apps, with
> > identical libs loaded. In both I use User.home as a part of the path. In
> > the newer app I get the message: not an object, when stepping into the
> > statement with user.home. Looks like this:
> >
> >  Dim DateiName As String
> >  DateiName = User.home & "/gambasdata/User.txt"
> 
>  I cannot reproduce problem.
>  I just get string "/home/myname/gambasdata/User.txt", no errors.
> 
> 
> Jussi
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





From rterry at ...1946...  Sat Feb  6 22:35:14 2010
From: rterry at ...1946... (richard terry)
Date: Sun, 7 Feb 2010 08:35:14 +1100
Subject: [Gambas-user] Anyone userd .Grab()?
In-Reply-To: <201002061713.56168.gambas@...1...>
References: <201002061826.11650.rterry@...1946...>
	<201002061713.56168.gambas@...1...>
Message-ID: <201002070835.14577.rterry@...1946...>

On Sunday 07 February 2010 03:13:56 you wrote:
> > I wanted to grab the contents of a HBox as  picture (it contains other
> > controls), put the code under a button:
> >
> > Public Sub Button1_Click()
> >   Dim pic As  Picture
> >   pic = HBox1.Grab()
> >
> > End
> >
> > This gives an error message 'wanted picture, got void instead'.
> >
> > Any one got any ideas?
> >
> > Thanks in anticipation.
> >
> > Richard
> 
> In Gambas 3, you must use the Screenshot() method instead. The
>  documentation has not been updated yet.
> 
> The Grab() method allows a control to take all mouse and keyboard events
>  until the mouse button is released or the ESC key is pressed.
> 
> Regards,
> 
Thanks, after much frustration I noticed Screenshot() and it works fine.

Regards



From mohareve at ...626...  Sat Feb  6 23:25:54 2010
From: mohareve at ...626... (M. Cs.)
Date: Sat, 6 Feb 2010 23:25:54 +0100
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: 
References: 
	<1265453570.3646.64.camel@...1936...>
	
	
Message-ID: 

This error was just typographic. Of course I was using SELECT in the
program.
But letting out the semicolon doesn't changes the situation.
Is it possible, that SELECT cannot handle records which are containing
BLOBS?


From dag.jarle.johansen at ...2312...  Sun Feb  7 00:54:07 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Sat, 06 Feb 2010 20:54:07 -0300
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: 
References: 
	<1265453570.3646.64.camel@...1936...>
	
	
	
Message-ID: 

Hi,

a BLOB is defined as a field for binary data, which only means, every
character is stored as is, this may be letters or the codes you get from
an image. So far clear. In MySQL one has to increase the
max_allowed_packet, because by default max. 1MB can be written in one
line (field). looking for SQLite .... 

you can see some declarations and examples here:
http://www.sqlite.org/datatype3.html
and as I understand it, you may select BLOB as well. 

As you get a result in your editor, I asume you have configured SQLite
correctly. Try out some simple select first, and look if you get any
results, so you can analyze where you get the wrong result.

Regards,
Dag




Am Samstag, den 06.02.2010, 23:25 +0100 schrieb M. Cs.:

> This error was just typographic. Of course I was using SELECT in the
> program.
> But letting out the semicolon doesn't changes the situation.
> Is it possible, that SELECT cannot handle records which are containing
> BLOBS?
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user




From gambas at ...1...  Sun Feb  7 02:51:49 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Sun, 7 Feb 2010 02:51:49 +0100
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: 
References: 
	<1265453570.3646.64.camel@...1936...>
	
Message-ID: <201002070251.49310.gambas@...1...>

> I'm almost there. Still I have a big problem and a possible bug:
> When I do a querry:
> querry="SELEC * FROM Thumbs WHERE fajl='b1.jpg' AND volume='ALPHA';"
> 
> I'm getting 0 hits, although when I do the same querry in terminal, I have
> exactly 1 shot, as it has to be.
> 
> Structure of table:
> 
> Thumbs(fajl TEXT,volume TEXT,name BLOB,img BLOB)
> 
> Is it a bug?

Apparently. Can you send me your database?

-- 
Beno?t Minisini



From jussi.lahtinen at ...626...  Sun Feb  7 02:31:46 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sun, 7 Feb 2010 03:31:46 +0200
Subject: [Gambas-user] More Problems turning up
In-Reply-To: 
References:  
	<384d3901002061315h70097b8ey61de42ce1686fb68@...627...> 
	
Message-ID: <384d3901002061731p41f57bs5a73ebe8cd25c95b@...627...>

> The User.Home problem is rather curious, because I have checked ALL
> files belonging to both projects, and they are identical (not the
> formnames off course). In the older app it works fine, in the app
> created yesterday - nada. I can't imagine that a lib is cached in a
> project, so both should use the same libs. What rev. do you have, is
> 2664 right, I think I remember you say so yesterday? I got 2663 the last
> time, and that is rather curious too, because I got 2664 once in
> between, if I haven't got quite mad in the meantime.

 Yes, I'm using 2664.
 Sounds like the problem is in that lib, rather than in Gambas...
 "svn info" gives output; "Revision: 2664" and  "Last Changed Rev:
2663", don't mix them up...

Jussi



From gambas at ...1...  Sun Feb  7 03:06:26 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Sun, 7 Feb 2010 03:06:26 +0100
Subject: [Gambas-user] More Problems turning up
In-Reply-To: 
References: 
Message-ID: <201002070306.26647.gambas@...1...>

> hi,
> 
> I still have the problem, that I can't draw a TabStrip in the IDE. I
> solved it temporarily editing the .form file, then it works when loading
> it to the gambas IDE.
> 

The TabStrip problem has been fixed in revision #2666.

Regards,

-- 
Beno?t Minisini



From dag.jarle.johansen at ...2312...  Sun Feb  7 03:15:41 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Sat, 06 Feb 2010 23:15:41 -0300
Subject: [Gambas-user] More Problems turning up
In-Reply-To: <201002070306.26647.gambas@...1...>
References: 
	<201002070306.26647.gambas@...1...>
Message-ID: 

Thanks Beno?t and Jussi,

I'll make an update at once.

Regards,
Dag


Am Sonntag, den 07.02.2010, 03:06 +0100 schrieb Beno?t Minisini:
> > hi,
> > 
> > I still have the problem, that I can't draw a TabStrip in the IDE. I
> > solved it temporarily editing the .form file, then it works when loading
> > it to the gambas IDE.
> > 
> 
> The TabStrip problem has been fixed in revision #2666.
> 
> Regards,
> 





From dag.jarle.johansen at ...2312...  Sun Feb  7 03:30:09 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Sat, 06 Feb 2010 23:30:09 -0300
Subject: [Gambas-user] More Problems turning up
In-Reply-To: 
References: 
	<201002070306.26647.gambas@...1...>
	
Message-ID: 

Hi,

TabsStrip is good, still have the curoius error with user.home, but it
is not so urgent while programming, give it a fixed path meanwhile.

Regards
Dag







From rterry at ...1946...  Sun Feb  7 11:10:12 2010
From: rterry at ...1946... (richard terry)
Date: Sun, 7 Feb 2010 21:10:12 +1100
Subject: [Gambas-user] Invalid utf string in pdf example
Message-ID: <201002072110.12026.rterry@...1946...>

I wondered how to this this, as I'm in the process of using this sample to do 
some work in my program.

thanks in anticipation.

regards

Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: invalid_utf_string.png
Type: image/png
Size: 31929 bytes
Desc: not available
URL: 

From jussi.lahtinen at ...626...  Sun Feb  7 12:51:39 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sun, 7 Feb 2010 13:51:39 +0200
Subject: [Gambas-user] More Problems turning up
In-Reply-To: 
References:  
	<201002070306.26647.gambas@...1...>
	 
	
Message-ID: <384d3901002070351k69ccb0ceg19909f788de4d165@...627...>

Disturbing... Try to print out whole path (before using it) and
compare it to working fixed path.
If the path is correct, then there must be error in somewhere else.

Jussi


On Sun, Feb 7, 2010 at 04:30, Dag Jarle Johansen
 wrote:
> Hi,
>
> TabsStrip is good, still have the curoius error with user.home, but it
> is not so urgent while programming, give it a fixed path meanwhile.
>
> Regards
> Dag
>
>
>
>
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From gambas at ...1...  Sun Feb  7 15:26:19 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Sun, 7 Feb 2010 15:26:19 +0100
Subject: [Gambas-user] Invalid utf string in pdf example
In-Reply-To: <201002072110.12026.rterry@...1946...>
References: <201002072110.12026.rterry@...1946...>
Message-ID: <201002071526.19473.gambas@...1...>

> I wondered how to this this, as I'm in the process of using this sample to
>  do some work in my program.
> 
> thanks in anticipation.
> 
> regards
> 
> Richard
> 

What are the contents of txtFind.Text?

The PdfDocument.Find() method does the following internally:

	Conv$(txtFind.Text, "UTF-8", "UCS-4LE")

Because the poppler library want Unicode string. What happens if you do the 
same conversion by hand in Gambas?

-- 
Beno?t Minisini



From dag.jarle.johansen at ...2312...  Sun Feb  7 15:50:56 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Sun, 07 Feb 2010 11:50:56 -0300
Subject: [Gambas-user] More Problems turning up
In-Reply-To: <384d3901002070351k69ccb0ceg19909f788de4d165@...627...>
References: 
	<201002070306.26647.gambas@...1...>
	
	
	<384d3901002070351k69ccb0ceg19909f788de4d165@...627...>
Message-ID: 

Hi Jussi,

I tried Debug user.home
Allready here it says, not an object.
Also, autocomplete with user, does not work, as f.ex. in Application.p->
Application.Path
Somehow User is not present, and to be honest, I don't know how to fix
that.


Regards
Dag


Am Sonntag, den 07.02.2010, 13:51 +0200 schrieb Jussi Lahtinen:

> Disturbing... Try to print out whole path (before using it) and
> compare it to working fixed path.
> If the path is correct, then there must be error in somewhere else.
> 
> Jussi
> 
> 
> On Sun, Feb 7, 2010 at 04:30, Dag Jarle Johansen
>  wrote:
> > Hi,
> >
> > TabsStrip is good, still have the curoius error with user.home, but it
> > is not so urgent while programming, give it a fixed path meanwhile.
> >
> > Regards
> > Dag
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> > 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 at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user




From jussi.lahtinen at ...626...  Sun Feb  7 16:08:33 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sun, 7 Feb 2010 17:08:33 +0200
Subject: [Gambas-user] More Problems turning up
In-Reply-To: 
References:  
	<201002070306.26647.gambas@...1...>
	 
	
	<384d3901002070351k69ccb0ceg19909f788de4d165@...627...> 
	
Message-ID: <384d3901002070708r5d05a9efrf7d515420b381d13@...627...>

I have no problems with autocomplete either.
When I write "use", it will offer "User", and when I continue to
"User." it offers me all options, included "Home".
Can you provide the source code?

Have you tried to remove Gambas3 and install it again?
To remove:
sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3
/usr/local/bin/gbi3
sudo rm -rf /usr/local/lib/gambas3
sudo rm -rf /usr/local/share/gambas3

To install again:
./reconf-all
./configure -C
make
sudo make install


Jussi


On Sun, Feb 7, 2010 at 16:50, Dag Jarle Johansen
 wrote:
> Hi Jussi,
>
> I tried Debug user.home
> Allready here it says, not an object.
> Also, autocomplete with user, does not work, as f.ex. in Application.p->
> Application.Path
> Somehow User is not present, and to be honest, I don't know how to fix
> that.
>
>
> Regards
> Dag
>
>
> Am Sonntag, den 07.02.2010, 13:51 +0200 schrieb Jussi Lahtinen:
>
>> Disturbing... Try to print out whole path (before using it) and
>> compare it to working fixed path.
>> If the path is correct, then there must be error in somewhere else.
>>
>> Jussi
>>
>>
>> On Sun, Feb 7, 2010 at 04:30, Dag Jarle Johansen
>>  wrote:
>> > Hi,
>> >
>> > TabsStrip is good, still have the curoius error with user.home, but it
>> > is not so urgent while programming, give it a fixed path meanwhile.
>> >
>> > Regards
>> > Dag
>> >
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > 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 at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>>
>> ------------------------------------------------------------------------------
>> 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 at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From dag.jarle.johansen at ...2312...  Sun Feb  7 16:15:04 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Sun, 07 Feb 2010 12:15:04 -0300
Subject: [Gambas-user] More Problems turning up
In-Reply-To: <384d3901002070708r5d05a9efrf7d515420b381d13@...627...>
References: 
	<201002070306.26647.gambas@...1...>
	
	
	<384d3901002070351k69ccb0ceg19909f788de4d165@...627...>
	
	<384d3901002070708r5d05a9efrf7d515420b381d13@...627...>
Message-ID: 

Hi Jussi,

I'll try it now. I assume the problem is here somewhere.

Thanks
Dag


Am Sonntag, den 07.02.2010, 17:08 +0200 schrieb Jussi Lahtinen:
> I have no problems with autocomplete either.
> When I write "use", it will offer "User", and when I continue to
> "User." it offers me all options, included "Home".
> Can you provide the source code?
> 
> Have you tried to remove Gambas3 and install it again?
> To remove:
> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3
> /usr/local/bin/gbi3
> sudo rm -rf /usr/local/lib/gambas3
> sudo rm -rf /usr/local/share/gambas3
> 
> To install again:
> ./reconf-all
> ./configure -C
> make
> sudo make install
> 
> 
> Jussi
> 
> 
> On Sun, Feb 7, 2010 at 16:50, Dag Jarle Johansen
>  wrote:
> > Hi Jussi,
> >
> > I tried Debug user.home
> > Allready here it says, not an object.
> > Also, autocomplete with user, does not work, as f.ex. in Application.p->
> > Application.Path
> > Somehow User is not present, and to be honest, I don't know how to fix
> > that.
> >
> >
> > Regards
> > Dag
> >
> >
> > Am Sonntag, den 07.02.2010, 13:51 +0200 schrieb Jussi Lahtinen:
> >
> >> Disturbing... Try to print out whole path (before using it) and
> >> compare it to working fixed path.
> >> If the path is correct, then there must be error in somewhere else.
> >>
> >> Jussi
> >>
> >>
> >> On Sun, Feb 7, 2010 at 04:30, Dag Jarle Johansen
> >>  wrote:
> >> > Hi,
> >> >
> >> > TabsStrip is good, still have the curoius error with user.home, but it
> >> > is not so urgent while programming, give it a fixed path meanwhile.
> >> >
> >> > Regards
> >> > Dag
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > ------------------------------------------------------------------------------
> >> > 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 at lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >> >
> >>
> >> ------------------------------------------------------------------------------
> >> 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 at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> > ------------------------------------------------------------------------------
> > 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 at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





From bill-lancaster at ...2231...  Sun Feb  7 16:25:53 2010
From: bill-lancaster at ...2231... (Bill-Lancaster)
Date: Sun, 7 Feb 2010 07:25:53 -0800 (PST)
Subject: [Gambas-user]  use of ORDER BY in gb.Find
Message-ID: <27489573.post@...1379...>


The follwing code works

hResult = $hConn.Find("addresses", , "ORDER BY lastname")

but result is not sorted.  Of course I could use .EXEC with full SQL string
but....
-- 
View this message in context: http://old.nabble.com/use-of-ORDER-BY-in-gb.Find-tp27489573p27489573.html
Sent from the gambas-user mailing list archive at Nabble.com.




From mohareve at ...626...  Sun Feb  7 16:39:23 2010
From: mohareve at ...626... (M. Cs.)
Date: Sun, 7 Feb 2010 16:39:23 +0100
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: 
References: 
	<1265453570.3646.64.camel@...1936...>
	
	<201002070251.49310.gambas@...1...>
	
Message-ID: 

The mistery goes on:
I managed to get the results with closing the connection in other part of
code:

altea.Type = "sqlite"
altea.Host = User.Home & "/.GamCat"
TRY altea.Open()
IF NOT altea.Databases.Exist(User.Home & "/.GamCat/ImageThumbs") THEN
altea.Databases.Add("ImageThumbs")
WAIT 0.5
altea.Close()
ENDIF

altea.Name = "ImageThumbs"
altea.Type = "sqlite"
altea.Host = User.Home & "/.GamCat"
'altea.Open()
querry = "CREATE TABLE Thumbs(fajl TEXT,volume TEXT,name BLOB,img BLOB);"
altea.Exec(querry)
altea.Close() 'This what I've added!

I don't know why did the lack of last line disturb the process. Now I'm
facing another difficulties:
I cannot force Treeview elements to have different images, although I'm
getting real images with the procedure  Opener. They are all the same, one
of the existing ones, even I can check that the picture paths are different.


From dag.jarle.johansen at ...2312...  Sun Feb  7 16:42:03 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Sun, 07 Feb 2010 12:42:03 -0300
Subject: [Gambas-user] More Problems turning up
In-Reply-To: <384d3901002070708r5d05a9efrf7d515420b381d13@...627...>
References: 
	<201002070306.26647.gambas@...1...>
	
	
	<384d3901002070351k69ccb0ceg19909f788de4d165@...627...>
	
	<384d3901002070708r5d05a9efrf7d515420b381d13@...627...>
Message-ID: 

Hi Jussi,

tried it out, no change:
I got some warnings at sudo make install:

Compiling gb.form...
warning: cannot read component list file: gb.form.list
OK
Installing gb.form...
Compiling gb.form.dialog...
OK
Installing gb.form.dialog...
Compiling gb.form.mdi...
warning: cannot read component list file: gb.form.mdi.list
OK
Installing gb.form.mdi...
Compiling gb.db.form...
warning: cannot read component list file: gb.db.form.list
OK

I don't know how much this matters.
The warnings were repeated while compiling the examples, don't list them
here.

The source looks like this:

Public Function SysLog_User() As String
  Dim hfile As file
  Dim Sys_User as String
  Dim DateiName As String
  DateiName = user.home & "/gambasdata/user.txt"
  Wait
  Shell "whoami>" & Dateiname Wait

  'Shell "whoami>/home/dag/gambasdata/user.txt" Wait
  hfile = Open DateiName For Read

  'hfile = Open "/home/dag/gambasdata/user.txt" For Read
  Wait
  Line Input #hfile, Sys_User
  Close #hfile
  Return Sys_User
End

regards
Dag

Am Sonntag, den 07.02.2010, 17:08 +0200 schrieb Jussi Lahtinen:

> I have no problems with autocomplete either.
> When I write "use", it will offer "User", and when I continue to
> "User." it offers me all options, included "Home".
> Can you provide the source code?
> 
> Have you tried to remove Gambas3 and install it again?
> To remove:
> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3
> /usr/local/bin/gbi3
> sudo rm -rf /usr/local/lib/gambas3
> sudo rm -rf /usr/local/share/gambas3
> 
> To install again:
> ./reconf-all
> ./configure -C
> make
> sudo make install
> 
> 
> Jussi
> 
> 
> On Sun, Feb 7, 2010 at 16:50, Dag Jarle Johansen
>  wrote:
> > Hi Jussi,
> >
> > I tried Debug user.home
> > Allready here it says, not an object.
> > Also, autocomplete with user, does not work, as f.ex. in Application.p->
> > Application.Path
> > Somehow User is not present, and to be honest, I don't know how to fix
> > that.
> >
> >
> > Regards
> > Dag
> >
> >
> > Am Sonntag, den 07.02.2010, 13:51 +0200 schrieb Jussi Lahtinen:
> >
> >> Disturbing... Try to print out whole path (before using it) and
> >> compare it to working fixed path.
> >> If the path is correct, then there must be error in somewhere else.
> >>
> >> Jussi
> >>
> >>
> >> On Sun, Feb 7, 2010 at 04:30, Dag Jarle Johansen
> >>  wrote:
> >> > Hi,
> >> >
> >> > TabsStrip is good, still have the curoius error with user.home, but it
> >> > is not so urgent while programming, give it a fixed path meanwhile.
> >> >
> >> > Regards
> >> > Dag
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > ------------------------------------------------------------------------------
> >> > 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 at lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >> >
> >>
> >> ------------------------------------------------------------------------------
> >> 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 at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> > ------------------------------------------------------------------------------
> > 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 at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user




From mohareve at ...626...  Sun Feb  7 17:52:30 2010
From: mohareve at ...626... (M. Cs.)
Date: Sun, 7 Feb 2010 17:52:30 +0100
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: 
References: 
	<1265453570.3646.64.camel@...1936...>
	
	<201002070251.49310.gambas@...1...>
	
	
Message-ID: 

I'm slightly going angry.

This excerpt shows the part of code which aims to give each file in the
TreeView its thumbnail image:

querry = "SELECT FPath,FName,FSubs FROM " & CD
valasz = DBconX.Exec(querry)
FOR EACH valasz
fle.Add(valasz!"FName")
pth.Add(valasz!"FPath")
subs.Add(valasz!"FSubs")
tipus = valasz!"FSubs"
SELECT tipus
CASE 0 ' here the story starts

  amo = Split(valasz!"FName", ".")
  exty = Upper$(amo[amo.Count - 1])
    SELECT exty
       CASE "PDF"
          mokka = "pdf.png"
       CASE "JPG"

          IF showthumbs.Value = TRUE THEN
            mokka = GetThumb(valasz!"FName", CD)' Send the filename and the
volumename
          ELSE
           mokka = "jpg.png"
          ENDIF
       CASE "TTF"
          mokka = "ttf.png"
       CASE "XCF"
          mokka = "xcf.png"
       CASE "PNG"
          mokka = "png.png"
       CASE "SWF"
          mokka = "swf.png"
       CASE "K3B"
          mokka = "k3b.png"
       CASE "FLV"
          mokka = "swf.png"
       CASE "MP3"
          mokka = "mp3.png"
       CASE "BIN"
          mokka = "run.png"
       CASE "SH"
          mokka = "sh.png"
       CASE "PY"
          mokka = "sh.png"
       CASE "PS"
          mokka = "ps.png"
       CASE "XML"
          mokka = "xml.png"
       CASE "OTF"
          mokka = "otf.png"
       CASE "WMF"
          mokka = "wmf.png"
       CASE "SLA"
          mokka = "sla.png"
       CASE "MP4"
          mokka = "mp4.png"
       CASE "RUN"
          mokka = "run.png"
       CASE "PPT"
          mokka = "ppt.png"
       CASE "PPS"
          mokka = "pps.png"
       CASE "TXT"
          mokka = "txt.png"
       CASE "SRT"
          mokka = "txt.png"
       CASE "SUB"
          mokka = "txt.png"
       CASE "DOC"
          mokka = "doc.png"
       CASE "XLS"
          mokka = "xls.png"
       CASE "ISO"
          mokka = "iso.png"
       CASE "WAV"
          mokka = "wav.png"
       CASE "WMA"
          mokka = "wma.png"
       CASE "OGG"
          mokka = "ogg.png"
       CASE "AVI"
          mokka = "avi.png"
       CASE "MPEG"
          mokka = "mpg.png"
       CASE "ODT"
          mokka = "odt.png"
       CASE "ODS"
          mokka = "ods.png"
       CASE "ODP"
          mokka = "odp.png"
       CASE "ODG"
          mokka = "odg.png"
       CASE "MPG"
          mokka = "mpg.png"
       CASE "DEB"
          mokka = "deb.png"
       CASE "RPM"
          mokka = "rpm.png"
       CASE "HTM"
          mokka = "htm.png"
       CASE "HTML"
          mokka = "htm.png"
       CASE "GIF"
          mokka = "gif.png"
        CASE "SVG"
          mokka = "svg.png"
        CASE "BMP"
          mokka = "bmp.png"
        CASE "EXE"
          mokka = "exe.png"
        CASE "RTF"
          mokka = "rtf.png"
        CASE ELSE
          mokka = "pot.png"
    END SELECT

CASE 1
mokka = "fold.png"
CASE 3
mokka = "arch.png"
END SELECT
imager.Add(mokka)
NEXT


FOR i = 0 TO imager.Count - 1
IF (subs[i] = 1 AND pth[i] = "/") THEN
    fView.Add(pth[i] & fle[i], fle[i], Picture.Load(imager[i]), pth[i])
ENDIF
IF (subs[i] = 1 AND pth[i] <> "/") THEN
    fView.Add(pth[i] & "/" & fle[i], fle[i], Picture.Load(imager[i]),
pth[i])
ENDIF
IF (subs[i] = 0 OR subs[i] = 3) THEN
   fView.Add(pth[i] & "/" & fle[i], fle[i], Picture.Load(imager[i]), pth[i])
ENDIF
NEXT

I did everything: I've separated the filename, filepath and filetype and
file/folder identificator into different arrays. Still EVERY element with .
jpg extension gets the same thumbnail, which is the last image loaded at
all. How on earth is possible to manage this dinamically? Gambas is so
unlogical! Every imager[i] is different, what's wrong for God's sake?!


From gambas at ...1...  Sun Feb  7 19:06:12 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Sun, 7 Feb 2010 19:06:12 +0100
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: <201002070251.49310.gambas@...1...>
References: 
	
	<201002070251.49310.gambas@...1...>
Message-ID: <201002071906.12146.gambas@...1...>

> > I'm almost there. Still I have a big problem and a possible bug:
> > When I do a querry:
> > querry="SELEC * FROM Thumbs WHERE fajl='b1.jpg' AND volume='ALPHA';"
> >
> > I'm getting 0 hits, although when I do the same querry in terminal, I
> > have exactly 1 shot, as it has to be.
> >
> > Structure of table:
> >
> > Thumbs(fajl TEXT,volume TEXT,name BLOB,img BLOB)
> >
> > Is it a bug?
> 
> Apparently. Can you send me your database?
> 

When I said "send me", I meant to my private e-mail, not on the mailing-list. 

But I got it anyway in the list of rejected e-mails. And I couldn't reproduce 
your bug. I did the same query in the connection window in the IDE (use the 
latest revision because of a bug), and got the expected result.

Regards,

-- 
Beno?t Minisini



From gambas at ...1...  Sun Feb  7 19:09:19 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Sun, 7 Feb 2010 19:09:19 +0100
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: 
References: 
	
	
Message-ID: <201002071909.19607.gambas@...1...>

> I'm slightly going angry.
> 
> This excerpt shows the part of code which aims to give each file in the
> TreeView its thumbnail image:
> 
> querry = "SELECT FPath,FName,FSubs FROM " & CD
> valasz = DBconX.Exec(querry)
> FOR EACH valasz
> fle.Add(valasz!"FName")

Don't use quote there. It is:

	valasz!FName

Or

	valasz["FName"]

> pth.Add(valasz!"FPath")
> subs.Add(valasz!"FSubs")
> tipus = valasz!"FSubs"
> SELECT tipus
> CASE 0 ' here the story starts
> 
>   amo = Split(valasz!"FName", ".")
>   exty = Upper$(amo[amo.Count - 1])
>     SELECT exty
>        CASE "PDF"
>           mokka = "pdf.png"
>        CASE "JPG"
> 
>           IF showthumbs.Value = TRUE THEN
>             mokka = GetThumb(valasz!"FName", CD)' Send the filename and the
> volumename
>           ELSE
>            mokka = "jpg.png"
>           ENDIF
>        CASE "TTF"
>           mokka = "ttf.png"
>        CASE "XCF"
>           mokka = "xcf.png"
>        CASE "PNG"
>           mokka = "png.png"
>        CASE "SWF"
>           mokka = "swf.png"
>        CASE "K3B"
>           mokka = "k3b.png"
>        CASE "FLV"
>           mokka = "swf.png"
>        CASE "MP3"
>           mokka = "mp3.png"
>        CASE "BIN"
>           mokka = "run.png"
>        CASE "SH"
>           mokka = "sh.png"
>        CASE "PY"
>           mokka = "sh.png"
>        CASE "PS"
>           mokka = "ps.png"
>        CASE "XML"
>           mokka = "xml.png"
>        CASE "OTF"
>           mokka = "otf.png"
>        CASE "WMF"
>           mokka = "wmf.png"
>        CASE "SLA"
>           mokka = "sla.png"
>        CASE "MP4"
>           mokka = "mp4.png"
>        CASE "RUN"
>           mokka = "run.png"
>        CASE "PPT"
>           mokka = "ppt.png"
>        CASE "PPS"
>           mokka = "pps.png"
>        CASE "TXT"
>           mokka = "txt.png"
>        CASE "SRT"
>           mokka = "txt.png"
>        CASE "SUB"
>           mokka = "txt.png"
>        CASE "DOC"
>           mokka = "doc.png"
>        CASE "XLS"
>           mokka = "xls.png"
>        CASE "ISO"
>           mokka = "iso.png"
>        CASE "WAV"
>           mokka = "wav.png"
>        CASE "WMA"
>           mokka = "wma.png"
>        CASE "OGG"
>           mokka = "ogg.png"
>        CASE "AVI"
>           mokka = "avi.png"
>        CASE "MPEG"
>           mokka = "mpg.png"
>        CASE "ODT"
>           mokka = "odt.png"
>        CASE "ODS"
>           mokka = "ods.png"
>        CASE "ODP"
>           mokka = "odp.png"
>        CASE "ODG"
>           mokka = "odg.png"
>        CASE "MPG"
>           mokka = "mpg.png"
>        CASE "DEB"
>           mokka = "deb.png"
>        CASE "RPM"
>           mokka = "rpm.png"
>        CASE "HTM"
>           mokka = "htm.png"
>        CASE "HTML"
>           mokka = "htm.png"
>        CASE "GIF"
>           mokka = "gif.png"
>         CASE "SVG"
>           mokka = "svg.png"
>         CASE "BMP"
>           mokka = "bmp.png"
>         CASE "EXE"
>           mokka = "exe.png"
>         CASE "RTF"
>           mokka = "rtf.png"
>         CASE ELSE
>           mokka = "pot.png"
>     END SELECT
> 
> CASE 1
> mokka = "fold.png"
> CASE 3
> mokka = "arch.png"
> END SELECT
> imager.Add(mokka)
> NEXT
> 
> 
> FOR i = 0 TO imager.Count - 1
> IF (subs[i] = 1 AND pth[i] = "/") THEN
>     fView.Add(pth[i] & fle[i], fle[i], Picture.Load(imager[i]), pth[i])
> ENDIF
> IF (subs[i] = 1 AND pth[i] <> "/") THEN
>     fView.Add(pth[i] & "/" & fle[i], fle[i], Picture.Load(imager[i]),
> pth[i])
> ENDIF
> IF (subs[i] = 0 OR subs[i] = 3) THEN
>    fView.Add(pth[i] & "/" & fle[i], fle[i], Picture.Load(imager[i]),
>  pth[i]) ENDIF
> NEXT
> 
> I did everything: I've separated the filename, filepath and filetype and
> file/folder identificator into different arrays. Still EVERY element with .
> jpg extension gets the same thumbnail, which is the last image loaded at
> all. How on earth is possible to manage this dinamically? Gambas is so
> unlogical! Every imager[i] is different, what's wrong for God's sake?!

I've never seen that behaviour... Can you provide the full source code? Which 
system language do you use?

-- 
Beno?t Minisini



From math.eber at ...221...  Sun Feb  7 19:24:47 2010
From: math.eber at ...221... (Matti)
Date: Sun, 07 Feb 2010 19:24:47 +0100
Subject: [Gambas-user] Sqlite and Gambas and image blobs
In-Reply-To: 
References: 
Message-ID: <4B6F056F.2090301@...221...>

Hi M. Cs.,

I'm not really sure what you want.

Is it: the user chooses a picture directory, and you want to display the
thumbnails of the pictures? In PictureBoxes, or frames containing PictureBoxes?

Then you wouldn't need any database, and I could help you. Did this with just an
array of file names, and a function that looks for the system thumbs, or creates
them if they don't exist.

Just tell me if you need something like that.
Matti


Am 05.02.2010 14:05, schrieb M. Cs.:
> Hi,
> I'd like to know how can I store image thumbnails (~10 KByte each) inside
> the sqlite database using Gambas. I'd like to use the stored thumbs as
> preview images, so I'd have to know how to read the blob data out of
> database and use it as a content of a Picture container.
> 
> Once more:
> CREATE TABLE thumbs(name TEXT, img BLOB);
> I suppose that would create a table for thumbnails. How to write into
> thumbs, and how to get back the image, let say into PicFrame?
> Thanks!
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 



From mohareve at ...626...  Sun Feb  7 20:17:26 2010
From: mohareve at ...626... (M. Cs.)
Date: Sun, 7 Feb 2010 20:17:26 +0100
Subject: [Gambas-user] Sqlite and Gambas and image blobs
In-Reply-To: <4B6F056F.2090301@...221...>
References: 
	<4B6F056F.2090301@...221...>
Message-ID: 

I'm developing the GamCat cataloging program. I'd like to add possibilities
to scan CD/DVDs and to create thumbnail images, which would be stored in a
database file, and the user could optionaly see the thumbnails of the
pictures in a TreeView , which would visually display the content of the
archived volume. I've already managed to create and store the thumbs, but I
have problems with displaying them, since when you have a TreeView.Add
command you should define key,string,image, and parent. My problem is that
image is dinamically loaded with Picture.Load(imager[i]) command, where
imager is an array containing the picture paths. The TreeView building
process is nested into a FOR..NEXT cycle and the problem is that all files
are getting the same thumbnail...the last one loaded. I've doubled the post
with 'Database help please!'. Maybe you could help me trace down the
problem.
The apps page:
http://www.opendesktop.org/content/show.php?content=100682


From sgriobhadair at ...626...  Sun Feb  7 20:56:16 2010
From: sgriobhadair at ...626... (P. Hightower)
Date: Sun, 7 Feb 2010 14:56:16 -0500
Subject: [Gambas-user] Setting default values on a listbox
Message-ID: <9571ecae1002071156l4f4be167p1eb7cf0cf2194323@...627...>

I've been trying to find an answer to this question all afternoon and can't
seem to find it or figure it out from experimentation.

I'm working on a small program that relies on ListBox controls for selecting
an option. Right now the Form loads with the ListBox with nothing selected
and a value of null. What I'd like is for the form to come up with a
particular option in the ListBox preselected.

I've tried setting a text value for the listbox from form_open but that only
gives me an error saying the listbox.text is read only.

What am I missing?


From math.eber at ...221...  Sun Feb  7 20:58:16 2010
From: math.eber at ...221... (Matti)
Date: Sun, 07 Feb 2010 20:58:16 +0100
Subject: [Gambas-user] Sqlite and Gambas and image blobs
In-Reply-To: 
References: 	<4B6F056F.2090301@...221...>
	
Message-ID: <4B6F1B58.5050805@...221...>

Sorry, don't think I can help you here.
Matti

Am 07.02.2010 20:17, schrieb M. Cs.:
> I'm developing the GamCat cataloging program. I'd like to add possibilities
> to scan CD/DVDs and to create thumbnail images, which would be stored in a
> database file, and the user could optionaly see the thumbnails of the
> pictures in a TreeView , which would visually display the content of the
> archived volume. I've already managed to create and store the thumbs, but I
> have problems with displaying them, since when you have a TreeView.Add
> command you should define key,string,image, and parent. My problem is that
> image is dinamically loaded with Picture.Load(imager[i]) command, where
> imager is an array containing the picture paths. The TreeView building
> process is nested into a FOR..NEXT cycle and the problem is that all files
> are getting the same thumbnail...the last one loaded. I've doubled the post
> with 'Database help please!'. Maybe you could help me trace down the
> problem.
> The apps page:
> http://www.opendesktop.org/content/show.php?content=100682
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 



From mohareve at ...626...  Sun Feb  7 21:48:11 2010
From: mohareve at ...626... (M. Cs.)
Date: Sun, 7 Feb 2010 21:48:11 +0100
Subject: [Gambas-user] Databases, please help me!
In-Reply-To: <201002071909.19607.gambas@...1...>
References: 
	
	
	<201002071909.19607.gambas@...1...>
Message-ID: 

Thanks to all of you! I was a totally idiot! I've commented out one part of
the querry text, where the WHERE clausule were defined.[?]
Csaba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 338.gif
Type: image/gif
Size: 541 bytes
Desc: not available
URL: 

From gambas at ...1...  Mon Feb  8 01:57:52 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Mon, 8 Feb 2010 01:57:52 +0100
Subject: [Gambas-user] Invalid utf string in pdf example
In-Reply-To: <201002071526.19473.gambas@...1...>
References: <201002072110.12026.rterry@...1946...>
	<201002071526.19473.gambas@...1...>
Message-ID: <201002080157.52355.gambas@...1...>

> > I wondered how to this this, as I'm in the process of using this sample
> > to do some work in my program.
> >
> > thanks in anticipation.
> >
> > regards
> >
> > Richard
> 
> What are the contents of txtFind.Text?
> 
> The PdfDocument.Find() method does the following internally:
> 
> 	Conv$(txtFind.Text, "UTF-8", "UCS-4LE")
> 
> Because the poppler library want Unicode string. What happens if you do the
> same conversion by hand in Gambas?
> 

The bug should be fixed in revision #2672. Moreover, now the PdfDocument class 
now returns all dimensions as Float for more precision.

Regards,

-- 
Beno?t Minisini



From gambas at ...1...  Mon Feb  8 01:58:47 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Mon, 8 Feb 2010 01:58:47 +0100
Subject: [Gambas-user] TabStrip not visible
In-Reply-To: 
References: 
Message-ID: <201002080158.47990.gambas@...1...>

> hi,
> 
> I installed SVN 3 rev 2663 from the scratch yesterday; the old problems
> are gone, one new: I can paint a TabStrip, but it is completly
> transparent, no borders, no tabs, no nothing - can't even find it on the
> form, when not selecting a big area around where I presume it.
> 
> (Ubuntu 9.10 AMD64)
> 
> regards
> Dag
> 
> 

The bug has been fixed in revision #2666.

Regards,

-- 
Beno?t Minisini



From wdahn at ...1000...  Mon Feb  8 03:05:22 2010
From: wdahn at ...1000... (Werner)
Date: Mon, 08 Feb 2010 10:05:22 +0800
Subject: [Gambas-user] Setting default values on a listbox
In-Reply-To: <9571ecae1002071156l4f4be167p1eb7cf0cf2194323@...627...>
References: <9571ecae1002071156l4f4be167p1eb7cf0cf2194323@...627...>
Message-ID: <4B6F7162.8040509@...1000...>

On 08/02/10 03:56, P. Hightower wrote:
> I've been trying to find an answer to this question all afternoon and can't
> seem to find it or figure it out from experimentation.
>
> I'm working on a small program that relies on ListBox controls for selecting
> an option. Right now the Form loads with the ListBox with nothing selected
> and a value of null. What I'd like is for the form to come up with a
> particular option in the ListBox preselected.
>
> I've tried setting a text value for the listbox from form_open but that only
> gives me an error saying the listbox.text is read only.
>
> What am I missing?
>   
You could use Setting for storing default and/or user set values.
http://gambasdoc.org/help/comp/gb.settings/settings

Regards
Werner




From eilert-sprachen at ...221...  Mon Feb  8 08:20:08 2010
From: eilert-sprachen at ...221... (Rolf-Werner Eilert)
Date: Mon, 08 Feb 2010 08:20:08 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <201002060052.10950.gambas@...1...>
References: <1265233748.6432.25.camel@...40...>
	<201002060052.10950.gambas@...1...>
Message-ID: <4B6FBB28.4040203@...221...>

Am 06.02.2010 00:52, schrieb Beno?t Minisini:
>> Salut,
>>
>> I still haven't solved the Draw.Text tab problem, but I'v a new one (a
>> problem).
>>
>> If you open the printer-setup the first time, the 'Print to printer' is
>> chosen, and the target-file behind 'Print to file' is empty.
>>
>> If you check 'Print to file' and fill the target-file and then you
>> switch back to 'Print to printer', the target-file field is disabled.
>> (Setup Printer.png)
>>
>> Everything seems to be alright.
>>
>> But, and there is my new problem, in my code I can't see what should be
>> done. (printing 5 times to file, makes no sense)
>>
>> Where is the magic pointer, which shows me the chosen device?
>> (Printer Properties.png)
>>
>> Gambas2=2.19.0                  Revision: 2654
>> qt
>>
>
> Just a few word to tell that the printer support has been redesigned in Gambas
> 3, this is why I didn't touch the Gambas 2 one anymore.
>
> Now in Gambas 3, it should work as it should have worked since the beginning,
> with both Qt and GTK+.
>
> Regards,
>

That means, no need to print into a file anymore? Great news, Benoit!

On the other hand, after having worked with the workaround for such a 
long time, I found some advantages in working with print files, e. g. I 
now can store every form or letter I printed for the students so I can 
look them up later if anything is unclear or no copy available ("what 
the hack did I print for her then...")

Regards

Rolf




From charles at ...1784...  Mon Feb  8 09:44:08 2010
From: charles at ...1784... (charlesg)
Date: Mon, 8 Feb 2010 00:44:08 -0800 (PST)
Subject: [Gambas-user] Setting default values on a listbox
In-Reply-To: <9571ecae1002071156l4f4be167p1eb7cf0cf2194323@...627...>
References: <9571ecae1002071156l4f4be167p1eb7cf0cf2194323@...627...>
Message-ID: <27496787.post@...1379...>


Hi

I read the question differently from Werner (probably incorrectly!)

I think you want:

PUBLIC SUB Form_Open()
  DIM j AS Integer
  
  FOR j = 40 TO 50
    ListBox1.Add(Str(j) & "   " & Chr(j), j)
  NEXT 
  ListBox1[5].selected = TRUE
  
END
-- 
View this message in context: http://old.nabble.com/Setting-default-values-on-a-listbox-tp27491841p27496787.html
Sent from the gambas-user mailing list archive at Nabble.com.




From Karl.Reinl at ...2345...  Mon Feb  8 12:14:45 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Mon, 08 Feb 2010 12:14:45 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <4B6FBB28.4040203@...221...>
References: <1265233748.6432.25.camel@...40...>
	<201002060052.10950.gambas@...1...>
	<4B6FBB28.4040203@...221...>
Message-ID: <1265627685.6748.6.camel@...40...>

Am Montag, den 08.02.2010, 08:20 +0100 schrieb Rolf-Werner Eilert:
> Am 06.02.2010 00:52, schrieb Beno?t Minisini:
> >> Salut,
> >>
> >> I still haven't solved the Draw.Text tab problem, but I'v a new one (a
> >> problem).
> >>
> >> If you open the printer-setup the first time, the 'Print to printer' is
> >> chosen, and the target-file behind 'Print to file' is empty.
> >>
> >> If you check 'Print to file' and fill the target-file and then you
> >> switch back to 'Print to printer', the target-file field is disabled.
> >> (Setup Printer.png)
> >>
> >> Everything seems to be alright.
> >>
> >> But, and there is my new problem, in my code I can't see what should be
> >> done. (printing 5 times to file, makes no sense)
> >>
> >> Where is the magic pointer, which shows me the chosen device?
> >> (Printer Properties.png)
> >>
> >> Gambas2=2.19.0                  Revision: 2654
> >> qt
> >>
> >
> > Just a few word to tell that the printer support has been redesigned in Gambas
> > 3, this is why I didn't touch the Gambas 2 one anymore.
> >
> > Now in Gambas 3, it should work as it should have worked since the beginning,
> > with both Qt and GTK+.
> >
> > Regards,
> >
> 
> That means, no need to print into a file anymore? Great news, Benoit!
> 
> On the other hand, after having worked with the workaround for such a 
> long time, I found some advantages in working with print files, e. g. I 
> now can store every form or letter I printed for the students so I can 
> look them up later if anything is unclear or no copy available ("what 
> the hack did I print for her then...")
> 
> Regards
> 
> Rolf

Salut Rolf,

for me, the way was the other way around. Printing works (with gambas),
and I wanted to store automatic one copy as PDF in an archive. 
And had discovered the error in the Printer.Setup.


-- 
Amicalement
Charlie




From gambas at ...1...  Mon Feb  8 14:38:43 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Mon, 8 Feb 2010 14:38:43 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <1265627685.6748.6.camel@...40...>
References: <1265233748.6432.25.camel@...40...> <4B6FBB28.4040203@...221...>
	<1265627685.6748.6.camel@...40...>
Message-ID: <201002081438.44000.gambas@...1...>

> Am Montag, den 08.02.2010, 08:20 +0100 schrieb Rolf-Werner Eilert:
> > Am 06.02.2010 00:52, schrieb Beno?t Minisini:
> > >> Salut,
> > >>
> > >> I still haven't solved the Draw.Text tab problem, but I'v a new one (a
> > >> problem).
> > >>
> > >> If you open the printer-setup the first time, the 'Print to printer'
> > >> is chosen, and the target-file behind 'Print to file' is empty.
> > >>
> > >> If you check 'Print to file' and fill the target-file and then you
> > >> switch back to 'Print to printer', the target-file field is disabled.
> > >> (Setup Printer.png)
> > >>
> > >> Everything seems to be alright.
> > >>
> > >> But, and there is my new problem, in my code I can't see what should
> > >> be done. (printing 5 times to file, makes no sense)
> > >>
> > >> Where is the magic pointer, which shows me the chosen device?
> > >> (Printer Properties.png)
> > >>
> > >> Gambas2=2.19.0                  Revision: 2654
> > >> qt
> > >
> > > Just a few word to tell that the printer support has been redesigned in
> > > Gambas 3, this is why I didn't touch the Gambas 2 one anymore.
> > >
> > > Now in Gambas 3, it should work as it should have worked since the
> > > beginning, with both Qt and GTK+.
> > >
> > > Regards,
> >
> > That means, no need to print into a file anymore? Great news, Benoit!
> >
> > On the other hand, after having worked with the workaround for such a
> > long time, I found some advantages in working with print files, e. g. I
> > now can store every form or letter I printed for the students so I can
> > look them up later if anything is unclear or no copy available ("what
> > the hack did I print for her then...")
> >
> > Regards
> >
> > Rolf
> 
> Salut Rolf,
> 
> for me, the way was the other way around. Printing works (with gambas),
> and I wanted to store automatic one copy as PDF in an archive.
> And had discovered the error in the Printer.Setup.
> 

Apparently this feature is managed by CUPS: there is an option to archive all 
documents sent to printers.

Regards,

-- 
Beno?t Minisini
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cups-config.jpeg
Type: image/jpeg
Size: 73643 bytes
Desc: not available
URL: 

From ronstk at ...239...  Mon Feb  8 15:25:29 2010
From: ronstk at ...239... (Ron_1st)
Date: Mon, 8 Feb 2010 15:25:29 +0100
Subject: [Gambas-user] Draw.Text problem with control chars
In-Reply-To: <684162C6B7064F29A7379C8CB4BFAB4D@...2330...>
References: <1264797477.13240.22.camel@...40...>
	<4B655493.7010005@...1909...>
	<684162C6B7064F29A7379C8CB4BFAB4D@...2330...>
Message-ID: <201002081525.30231.ronstk@...239...>

On Sunday 31 January 2010, Kad Mann wrote:
> Doriano Blengino wrote:
> 
> > A tab width is normally eight spaces
> 
> Every single one of my cites say you're completely wrong.
> 
> http://en.wikipedia.org/wiki/Tab_key
> www.jwz.org/doc/tabs-vs-spaces.html
> http://stackoverflow.com/questions/268538/tab-versus-space-indentation-in-c
> http://stackoverflow.com/questions/119562/tabs-versus-spaces-in-python-programming
> http://wiki.answers.com/Q/How_many_spaces_is_a_tab
> http://wiki.answers.com/Q/When_and_how_do_you_indent_to_begin_a_paragraph
> http://srfi.schemers.org/srfi-49/mail-archive/msg00000.html
> 
> Where is your single cite saying you are right?


here???
 http://en.wikipedia.org/wiki/Tab_key  :)

 ASCII and EBCDIC paragraph

Instead it was rather quickly replaced with fixed tab stops, at every multiple of 8 characters horizontally and every 6 lines vertically, so they simply became a form of data compression, since a printing program could easily add the necessary spaces to move to any position wanted on a form. The vertical size was chosen to be 1 inch. It is unclear why the 8-character horizontal size was chosen, as 5 characters, half inch in a typical printer at that time, was much more popular at that time as a paragraph indentation.

the 5 characters has to do with the 10 characters/inch teletype character set in the matrix impact printers at that time (around 1982) (i.e. Epson mx80/fx80/fx100 use it)


> 
> I have 824,000+ more references to fall back on, but I'm sure you'll get the 
> idea. 
> 
> 
> ------------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

Just possible info.
Like your discus with oponent :)

Best regards,

Ron_1st

-- 
 



From ronstk at ...239...  Mon Feb  8 15:28:11 2010
From: ronstk at ...239... (Ron_1st)
Date: Mon, 8 Feb 2010 15:28:11 +0100
Subject: [Gambas-user] Draw.Text problem with control chars
In-Reply-To: 
References: <1264797477.13240.22.camel@...40...>
	<4B66C4BC.3090409@...1909...>
	
Message-ID: <201002081528.12144.ronstk@...239...>

On Monday 01 February 2010, Kadaitcha Man wrote:
> On 1 February 2010 23:10, Doriano Blengino
>  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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

LOL. as say'd I like it :)

Best regards,

Ron_1st

-- 




From gambas at ...1...  Mon Feb  8 15:36:36 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Mon, 8 Feb 2010 15:36:36 +0100
Subject: [Gambas-user] use of ORDER BY in gb.Find
In-Reply-To: <27489573.post@...1379...>
References: <27489573.post@...1379...>
Message-ID: <201002081536.36585.gambas@...1...>

> The follwing code works
> 
> hResult = $hConn.Find("addresses", , "ORDER BY lastname")
> 
> but result is not sorted.  Of course I could use .EXEC with full SQL string
> but....
> 

The request is only in the second argument of Find() (see documentation). The 
other arguments are substituted inside the request, a bit like the Subst() 
function.

You must put your "ORDER BY" inside the second argument.

But as Find() internally adds "WHERE" to the query beginning by default, you 
must write it like that:

hResult = $hConn.Find("addresses", "WHERE True ORDER BY lastname")

Maybe Find() should be more clever, and detect ORDER BY too. I will implement 
that for Gambas 3.

Regards,

-- 
Beno?t Minisini



From bill-lancaster at ...2231...  Mon Feb  8 15:45:23 2010
From: bill-lancaster at ...2231... (Bill-Lancaster)
Date: Mon, 8 Feb 2010 06:45:23 -0800 (PST)
Subject: [Gambas-user] use of ORDER BY in gb.Find
In-Reply-To: <201002081536.36585.gambas@...1...>
References: <27489573.post@...1379...>
	<201002081536.36585.gambas@...1...>
Message-ID: <27500899.post@...1379...>


Thank you Beno?t 
-- 
View this message in context: http://old.nabble.com/use-of-ORDER-BY-in-gb.Find-tp27489573p27500899.html
Sent from the gambas-user mailing list archive at Nabble.com.




From dag.jarle.johansen at ...2312...  Mon Feb  8 16:13:08 2010
From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen)
Date: Mon, 08 Feb 2010 12:13:08 -0300
Subject: [Gambas-user] Setting default values on a listbox
In-Reply-To: <27496787.post@...1379...>
References: <9571ecae1002071156l4f4be167p1eb7cf0cf2194323@...627...>
	<27496787.post@...1379...>
Message-ID: 

Hi, I agree,

if I had a set of Listboxes, where each stores one option, the options
wan't be changeable, and all you have to do is to store the index of
each listbox. Where to store - what one likes, settings are surely ok.

regards
Dag



Am Montag, den 08.02.2010, 00:44 -0800 schrieb charlesg:
> Hi
> 
> I read the question differently from Werner (probably incorrectly!)
> 
> I think you want:
> 
> PUBLIC SUB Form_Open()
>   DIM j AS Integer
>   
>   FOR j = 40 TO 50
>     ListBox1.Add(Str(j) & "   " & Chr(j), j)
>   NEXT 
>   ListBox1[5].selected = TRUE
>   
> END





From eilert-sprachen at ...221...  Mon Feb  8 16:20:56 2010
From: eilert-sprachen at ...221... (Rolf-Werner Eilert)
Date: Mon, 08 Feb 2010 16:20:56 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <201002081438.44000.gambas@...1...>
References: <1265233748.6432.25.camel@...40...>
	<4B6FBB28.4040203@...221...>	<1265627685.6748.6.camel@...40...>
	<201002081438.44000.gambas@...1...>
Message-ID: <4B702BD8.3030302@...221...>

Am 08.02.2010 14:38, schrieb Beno?t Minisini:
>> Am Montag, den 08.02.2010, 08:20 +0100 schrieb Rolf-Werner Eilert:
>>> Am 06.02.2010 00:52, schrieb Beno?t Minisini:
>>>>> Salut,
>>>>>
>>>>> I still haven't solved the Draw.Text tab problem, but I'v a new one (a
>>>>> problem).
>>>>>
>>>>> If you open the printer-setup the first time, the 'Print to printer'
>>>>> is chosen, and the target-file behind 'Print to file' is empty.
>>>>>
>>>>> If you check 'Print to file' and fill the target-file and then you
>>>>> switch back to 'Print to printer', the target-file field is disabled.
>>>>> (Setup Printer.png)
>>>>>
>>>>> Everything seems to be alright.
>>>>>
>>>>> But, and there is my new problem, in my code I can't see what should
>>>>> be done. (printing 5 times to file, makes no sense)
>>>>>
>>>>> Where is the magic pointer, which shows me the chosen device?
>>>>> (Printer Properties.png)
>>>>>
>>>>> Gambas2=2.19.0                  Revision: 2654
>>>>> qt
>>>>
>>>> Just a few word to tell that the printer support has been redesigned in
>>>> Gambas 3, this is why I didn't touch the Gambas 2 one anymore.
>>>>
>>>> Now in Gambas 3, it should work as it should have worked since the
>>>> beginning, with both Qt and GTK+.
>>>>
>>>> Regards,
>>>
>>> That means, no need to print into a file anymore? Great news, Benoit!
>>>
>>> On the other hand, after having worked with the workaround for such a
>>> long time, I found some advantages in working with print files, e. g. I
>>> now can store every form or letter I printed for the students so I can
>>> look them up later if anything is unclear or no copy available ("what
>>> the hack did I print for her then...")
>>>
>>> Regards
>>>
>>> Rolf
>>
>> Salut Rolf,
>>
>> for me, the way was the other way around. Printing works (with gambas),
>> and I wanted to store automatic one copy as PDF in an archive.
>> And had discovered the error in the Printer.Setup.
>>
>
> Apparently this feature is managed by CUPS: there is an option to archive all
> documents sent to printers.
>
> Regards,
>
>

Oh, that's nice! Never saw this, never knew :-) Tanks for the tipp!

But in my specific case, it is easier to have my student database 
program store the documents as per students' names. Easier to retrieve, 
I mean.

But where is this Printer Setup thing you use, is it a CUPS frontend? I 
know CUPS only from its localhost website frontend. (General setup is 
done via the Suse-wide Yast tool.)

Regards

Rolf



From gambas at ...1...  Mon Feb  8 17:00:49 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Mon, 8 Feb 2010 17:00:49 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <4B702BD8.3030302@...221...>
References: <1265233748.6432.25.camel@...40...>
	<201002081438.44000.gambas@...1...>
	<4B702BD8.3030302@...221...>
Message-ID: <201002081700.49362.gambas@...1...>

> Am 08.02.2010 14:38, schrieb Beno?t Minisini:
> >> Am Montag, den 08.02.2010, 08:20 +0100 schrieb Rolf-Werner Eilert:
> >>> Am 06.02.2010 00:52, schrieb Beno?t Minisini:
> >>>>> Salut,
> >>>>>
> >>>>> I still haven't solved the Draw.Text tab problem, but I'v a new one
> >>>>> (a problem).
> >>>>>
> >>>>> If you open the printer-setup the first time, the 'Print to printer'
> >>>>> is chosen, and the target-file behind 'Print to file' is empty.
> >>>>>
> >>>>> If you check 'Print to file' and fill the target-file and then you
> >>>>> switch back to 'Print to printer', the target-file field is disabled.
> >>>>> (Setup Printer.png)
> >>>>>
> >>>>> Everything seems to be alright.
> >>>>>
> >>>>> But, and there is my new problem, in my code I can't see what should
> >>>>> be done. (printing 5 times to file, makes no sense)
> >>>>>
> >>>>> Where is the magic pointer, which shows me the chosen device?
> >>>>> (Printer Properties.png)
> >>>>>
> >>>>> Gambas2=2.19.0                  Revision: 2654
> >>>>> qt
> >>>>
> >>>> Just a few word to tell that the printer support has been redesigned
> >>>> in Gambas 3, this is why I didn't touch the Gambas 2 one anymore.
> >>>>
> >>>> Now in Gambas 3, it should work as it should have worked since the
> >>>> beginning, with both Qt and GTK+.
> >>>>
> >>>> Regards,
> >>>
> >>> That means, no need to print into a file anymore? Great news, Benoit!
> >>>
> >>> On the other hand, after having worked with the workaround for such a
> >>> long time, I found some advantages in working with print files, e. g. I
> >>> now can store every form or letter I printed for the students so I can
> >>> look them up later if anything is unclear or no copy available ("what
> >>> the hack did I print for her then...")
> >>>
> >>> Regards
> >>>
> >>> Rolf
> >>
> >> Salut Rolf,
> >>
> >> for me, the way was the other way around. Printing works (with gambas),
> >> and I wanted to store automatic one copy as PDF in an archive.
> >> And had discovered the error in the Printer.Setup.
> >
> > Apparently this feature is managed by CUPS: there is an option to archive
> > all documents sent to printers.
> >
> > Regards,
> 
> Oh, that's nice! Never saw this, never knew :-) Tanks for the tipp!
> 
> But in my specific case, it is easier to have my student database
> program store the documents as per students' names. Easier to retrieve,
> I mean.
> 
> But where is this Printer Setup thing you use, is it a CUPS frontend? I
> know CUPS only from its localhost website frontend. (General setup is
> done via the Suse-wide Yast tool.)
> 
> Regards
> 
> Rolf
> 

It's "system-config-printer", made by RedHat. It is installed by default on 
Mandriva as soon as you install a printer.

Regards,

-- 
Beno?t Minisini



From bill-lancaster at ...2231...  Mon Feb  8 17:54:58 2010
From: bill-lancaster at ...2231... (Bill-Lancaster)
Date: Mon, 8 Feb 2010 08:54:58 -0800 (PST)
Subject: [Gambas-user]  creating control group from code
Message-ID: <27502821.post@...1379...>


I'm creating a number of textboxes on a form from code and would like to have
a single event resulting from a change to the text content of any of them.

Can't see any way to do it.
-- 
View this message in context: http://old.nabble.com/creating-control-group-from-code-tp27502821p27502821.html
Sent from the gambas-user mailing list archive at Nabble.com.




From Karl.Reinl at ...2345...  Mon Feb  8 18:48:49 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Mon, 08 Feb 2010 18:48:49 +0100
Subject: [Gambas-user] creating control group from code
In-Reply-To: <27502821.post@...1379...>
References: <27502821.post@...1379...>
Message-ID: <1265651329.6516.3.camel@...40...>

Am Montag, den 08.02.2010, 08:54 -0800 schrieb Bill-Lancaster:
> I'm creating a number of textboxes on a form from code and would like to have
> a single event resulting from a change to the text content of any of them.
> 
> Can't see any way to do it.

Salut Bill,

as you write in subject 'GROUP' them.

See in doc and use LAST  http://gambasdoc.org/help/lang/last?view&en

-- 
Amicalement
Charlie




From bill-lancaster at ...2231...  Mon Feb  8 18:56:02 2010
From: bill-lancaster at ...2231... (Bill-Lancaster)
Date: Mon, 8 Feb 2010 09:56:02 -0800 (PST)
Subject: [Gambas-user] creating control group from code
In-Reply-To: <1265651329.6516.3.camel@...40...>
References: <27502821.post@...1379...> <1265651329.6516.3.camel@...40...>
Message-ID: <27503718.post@...1379...>


Thanks Charlie
-- 
View this message in context: http://old.nabble.com/creating-control-group-from-code-tp27502821p27503718.html
Sent from the gambas-user mailing list archive at Nabble.com.




From Karl.Reinl at ...2345...  Tue Feb  9 22:30:54 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Tue, 09 Feb 2010 22:30:54 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <4B6A89FB.7060905@...1909...>
References: <1265233748.6432.25.camel@...40...>
	<4B6A89FB.7060905@...1909...>
Message-ID: <1265751054.6509.10.camel@...40...>

Am Donnerstag, den 04.02.2010, 09:48 +0100 schrieb Doriano Blengino:
> Charlie Reinl ha scritto:
> > Salut,
> >
> > I still haven't solved the Draw.Text tab problem, but I'v a new one (a
> > problem).
> >
> > If you open the printer-setup the first time, the 'Print to printer' is
> > chosen, and the target-file behind 'Print to file' is empty.
> >
> > If you check 'Print to file' and fill the target-file and then you
> > switch back to 'Print to printer', the target-file field is disabled.
> > (Setup Printer.png)
> >
> > Everything seems to be alright. 
> >
> > But, and there is my new problem, in my code I can't see what should be
> > done. (printing 5 times to file, makes no sense)
> >
> > Where is the magic pointer, which shows me the chosen device?
> > (Printer Properties.png)
> >   
> For what I know about printing in gambas, things are as following.
> 
> You can set by code printer.file to print to a file (a postscript is 
> generated), or set printer.name to direct the printing to an actual 
> printer. If printer.file is non-empty, the printing will go to a file. 
> The same is true if those properties are set by the interactive setup 
> panel. After that, you don't have to worry about the destination, the 
> code is the same: you draw() on the printer, and the underlying software 
> will do what is appropriate.
> 
> Other properties let you to define other printing aspects, like page 
> format, b/w or color, and so on.
> 
> The properties Copies, FromPage and ToPage are different, because they 
> don't do anything - you should read them and do things accordingly. To 
> be more precise, FromPage and ToPage are exactly so (if you read that 
> the user has set FromPage=2 and ToPage=2, then your printing routine 
> should only print the page number 2, and then terminate). "Copies" 
> sometimes works, sometimes not, so I decided to read the number of 
> copies, reset it to 1, and print several copies myself. I mean: "Copies" 
> was sometimes working, sometimes was ignored, and sometimes messed up 
> the printing. If you choose to do multiple copies by code, don't forget 
> to reset Copies to 1.
> 
> About printing several copies to a file, I see nothing strange... a 
> postscript file should be generated, containing two or more identical 
> pages. If you feed that file to a printer, multiple identical pages get 
> out. But in the first attempt, I did it differently, and I crashed into 
> rewriting the same file several times, as you are arguing. Can't 
> remember if it was my fault or gambas or qt one. I solved all together 
> by invoking multiple times the subroutine which prints a single page, 
> inside a "draw.begin()" and "draw.end()".
> 
> About tabulators, I would take a single string to print, break it in 
> several sub-strings taking tabulators as separators, taking care that 
> two tabulators in a row *do* define an empty string, print the single 
> sub-strings, calculate the width of every string and advancing the 
> position to the next tab-stop. The general idea is something like that:
> 
>     1. Declare an array for tabulator stops and fill it with suitable 
> positions. Those positions can be freely set or be equally-spaced, 
> depends on the application; but anyway they depend on the resolution of 
> the printer. You can say "I want a tabstop every inch on paper", so your 
> positions will have values 1*Printer.Resolution, 2*Printer.Resolution 
> and so on. Or you could say "I want a tabulator stop to be wide as 8 
> spaces", and in that case you should take the width of a space (using 
> textwidth()), multiply it by 8 and then by Printer.Resolution. Or you 
> could say "I want a tabulator in the middle of the page and one at 3/4 
> of the page". So the first value will be Printer.Width/2 and the second 
> value will be Printer.Width*3/4.
> 
>     2. Declare a subroutine which prints a string at X,Y position, 
> taking tabs in account. It could look like this:
> 
> sub outtabstr(text as string, xpos as integer, ypos as integer)
>   dim toprint as string
>   dim tpos as integer
> 
>   while text<>"" do
>     ' search a tabulator
>     tpos = instr(text, "\9")
>     if tpos=0 then
>       ' no tabulators, print and exit
>       draw.text(text, xpos, ypos)
>       return
>     endif
> 
>        ' there is a tab. print the left part
>        toprint = left(text, tpos-1)          ' take the part to print
>        text = mid(text, tpos+1)             ' and delete it from the rest
>        draw.text(toprint, xpos, ypos)   ' printed
>        ' now advance the X position to a suitable position
>        xpos += draw.textwidth(toprint)   ' our virtual cursor now is here
>        tpos = 0
>        ' MAX_TABSTOPS refers to  an array 0-based
>        while tpos=tabstops[tpos]
>           inc tpos
>        wend
>        if tpos>=MAX_TABSTOPS
>           ' no more stops defined. What to do?
>           xpos += 300
>        else
>           ' ok, move to that tab position
>           xpos = tabstops[tpos]
>        endif
>     wend
> end
> 
> The above code is not tested and has several problems. It does not work 
> with UTF8, it does not check for margins, does not go to the next line, 
> it does not return the position of the virtual cursor after having 
> printed a string. But the general idea should be correct.
> 
> Regards,
> Doriano

Salut Doriano,

finally got the time, better say toke the time, because wanted to finish
it. I worked out the Draw.Text tab problem.
Because of other circumstances, I worked out tow ways, first to replace
it (the "\t") in the string, second to do it in Draw.Text.

The attached example shows the two. And I'm not sure which one will be
used. It's for gambas2.

Your example worked fine, nearly  without changes (the "Do" made an
error), thanks.


-- 
Cordialement
Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: collTest-0.0.6.tar.gz
Type: application/x-compressed-tar
Size: 14991 bytes
Desc: not available
URL: 

From doriano.blengino at ...1909...  Wed Feb 10 09:57:51 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Wed, 10 Feb 2010 09:57:51 +0100
Subject: [Gambas-user] printer problem
In-Reply-To: <1265751054.6509.10.camel@...40...>
References: <1265233748.6432.25.camel@...40...>	<4B6A89FB.7060905@...1909...>
	<1265751054.6509.10.camel@...40...>
Message-ID: <4B72750F.70808@...1909...>

Charlie Reinl ha scritto:
> Am Donnerstag, den 04.02.2010, 09:48 +0100 schrieb Doriano Blengino:
>   
>> The above code is not tested and has several problems. It does not work 
>> with UTF8, it does not check for margins, does not go to the next line, 
>> it does not return the position of the virtual cursor after having 
>> printed a string. But the general idea should be correct.
>>
>>     
> Salut Doriano,
>
> finally got the time, better say toke the time, because wanted to finish
> it. I worked out the Draw.Text tab problem.
> Because of other circumstances, I worked out tow ways, first to replace
> it (the "\t") in the string, second to do it in Draw.Text.
>
> The attached example shows the two. And I'm not sure which one will be
> used. It's for gambas2.
>   
I got lost in the source, so the whole thing is not clear to me. Anyway, 
all the algorithms seem to work; the rest is application-dependent. The 
only suggestion is to see what is the effect of your text in the 
original context (ie: was it intended to be displayed in a text-mode 
terminal emulator? Or a word processor? Or a printer?).
> Your example worked fine, nearly  without changes (the "Do" made an
> error), thanks.
>   
The "DO" is a pascalism... can not get it out of my mind! -:)
These things happen when using several different languages, and get 
worse with age...

Best wishes for your project, and have a nice day,
Doriano





From jsheffield40 at ...125...  Thu Feb 11 03:40:53 2010
From: jsheffield40 at ...125... (jwsheff)
Date: Wed, 10 Feb 2010 18:40:53 -0800 (PST)
Subject: [Gambas-user] ColumnView Row by Mouse X & Y Coordinates
In-Reply-To: <27524780.post@...1379...>
References: <27524780.post@...1379...>
Message-ID: <27541553.post@...1379...>




jwsheff wrote:
> 
> Hi All
> 
> My question may be simple but I have spent all day trying to figure this
> out.  I have a ColumnView that I would like to have the text for a
> row/column cell displayed in a text field when my user positions their
> mouse over the ColumnView point.  I can identify the particular
> coordinates using the mouse.x and mouse.y class but can not figure out how
> to relate that to row pointed to by the x/y coordinates.  Need to consider
> the ColumnView can be sorted.
> 
> Please help me with this and thank you in advance.
> 

I figured it out.  Was using the documentation associated with the program
which was of little help.  Switched to the online help and that made the
solution clear.  Used the Find method to set the internal cursor to the item
I wanted based on the mouse x and y coordinates, then used Item property to
return the text.

Thanks to all who may have been thinking about this.
-- 
View this message in context: http://old.nabble.com/ColumnView-Row-by-Mouse-X---Y-Coordinates-tp27524780p27541553.html
Sent from the gambas-user mailing list archive at Nabble.com.




From mx4eva at ...626...  Thu Feb 11 05:57:16 2010
From: mx4eva at ...626... (Fiddler63)
Date: Wed, 10 Feb 2010 20:57:16 -0800 (PST)
Subject: [Gambas-user]  Help file download and F1
Message-ID: <27542391.post@...1379...>


is there a way to download the help file from gambasdoc site and only the
English version.
I tried with WebHTTrack but the file got 60MB and i stopped it. 
90% of the download stuff was irrelevant, ie a language I cannot comprehend.

Also if I do get a file downloaded is there a way to get it subject
sensitive from within the editior, ie highlight a word and press F1 and the
help file opens with that subject.

Just need to be able to have a helpfile offline.

Thats all, folks
-- 
View this message in context: http://old.nabble.com/Help-file-download-and-F1-tp27542391p27542391.html
Sent from the gambas-user mailing list archive at Nabble.com.




From gambas.fr at ...626...  Thu Feb 11 07:34:27 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Thu, 11 Feb 2010 07:34:27 +0100
Subject: [Gambas-user] Help file download and F1
In-Reply-To: <27542391.post@...1379...>
References: <27542391.post@...1379...>
Message-ID: <6324a42a1002102234v93ebb6au6d3e80dc55da3464@...627...>

2010/2/11 Fiddler63 :
>
> is there a way to download the help file from gambasdoc site and only the
> English version.
> I tried with WebHTTrack but the file got 60MB and i stopped it.
> 90% of the download stuff was irrelevant, ie a language I cannot comprehend.
>
> Also if I do get a file downloaded is there a way to get it subject
> sensitive from within the editior, ie highlight a word and press F1 and the
> help file opens with that subject.
>
> Just need to be able to have a helpfile offline.
>
what gambas version have you ?

what is your  distribution ?

in gambas 2 you press F1 to get the default web navigator opening the local help
and F2 to get help about the word where the text cursor is.

in gambas3 the help is not stored at all for now. it is downloaded and
cached at the need.


> Thats all, folks
> --
> View this message in context: http://old.nabble.com/Help-file-download-and-F1-tp27542391p27542391.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From vkan53 at ...2300...  Thu Feb 11 12:02:29 2010
From: vkan53 at ...2300... (Vassilis K)
Date: Thu, 11 Feb 2010 13:02:29 +0200
Subject: [Gambas-user] SHELL command with python does not execute!
Message-ID: <1265886149.6678.8.camel@...2376...>

Hello again,

I am using the following code for the creation of a table in a Mysql DB:


SHELL"python /home/delphi/Documents/Apodeixi/dimiourgiaTableMYSQLmePython1.py"
      IF ERROR THEN 
        Message.Error(DConv(Error.Text))
      ENDIF 

The command works perfectly and it creates the table.

When I use the same command on a second project it does not execute! 
With:
	python dimiourgiaTableMYSQLmePython1.py it does !
(from terminal)

Any ideas?






From rterry at ...1946...  Thu Feb 11 12:10:14 2010
From: rterry at ...1946... (richard terry)
Date: Thu, 11 Feb 2010 22:10:14 +1100
Subject: [Gambas-user] a Dumb shell question - passing quoted text
Message-ID: <201002112210.14811.rterry@...1946...>

Hi List,

I want to end up with this text to pass to the shell, and it contains 
quotation marks, I wondered how to do that.

wkhtmltopdf *.html /tmp/temp.pdf --toc --header-right "Page [page]" --footer-
center "- EasyGP Medical Records -" --footer-spacing 5 --footer-font-name 
"comic sans ms"

any help appreciated.

Regards

Richard

   



From mx4eva at ...626...  Thu Feb 11 12:29:00 2010
From: mx4eva at ...626... (Fiddler63)
Date: Thu, 11 Feb 2010 03:29:00 -0800 (PST)
Subject: [Gambas-user] Help file download and F1
In-Reply-To: <6324a42a1002102234v93ebb6au6d3e80dc55da3464@...627...>
References: <27542391.post@...1379...>
	<6324a42a1002102234v93ebb6au6d3e80dc55da3464@...627...>
Message-ID: <27544327.post@...1379...>


Ubuntu 9.10, 64bit
Gambas 2.19

F1 does nothing at all

Kim
-- 
View this message in context: http://old.nabble.com/Help-file-download-and-F1-tp27542391p27544327.html
Sent from the gambas-user mailing list archive at Nabble.com.




From mx4eva at ...626...  Thu Feb 11 12:30:33 2010
From: mx4eva at ...626... (Fiddler63)
Date: Thu, 11 Feb 2010 03:30:33 -0800 (PST)
Subject: [Gambas-user] Help file download and F1
In-Reply-To: <27544327.post@...1379...>
References: <27542391.post@...1379...>
	<6324a42a1002102234v93ebb6au6d3e80dc55da3464@...627...>
	<27544327.post@...1379...>
Message-ID: <27544328.post@...1379...>




Fiddler63 wrote:
> 
> Ubuntu 9.10, 64bit
> Gambas 2.19
> 
> F1 does nothing at all
> 
> Kim
> 

an F2 does not do anything either
Kim 
-- 
View this message in context: http://old.nabble.com/Help-file-download-and-F1-tp27542391p27544328.html
Sent from the gambas-user mailing list archive at Nabble.com.




From gambas.fr at ...626...  Thu Feb 11 12:33:38 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Thu, 11 Feb 2010 12:33:38 +0100
Subject: [Gambas-user] Help file download and F1
In-Reply-To: <27544328.post@...1379...>
References: <27542391.post@...1379...>
	<6324a42a1002102234v93ebb6au6d3e80dc55da3464@...627...>
	<27544327.post@...1379...> <27544328.post@...1379...>
Message-ID: <6324a42a1002110333q40e3c97bs1b0ec727241593dd@...627...>

installed from packages ?

have you installed the doc one ?

2010/2/11 Fiddler63 :
>
>
>
> Fiddler63 wrote:
>>
>> Ubuntu 9.10, 64bit
>> Gambas 2.19
>>
>> F1 does nothing at all
>>
>> Kim
>>
>
> an F2 does not do anything either
> Kim
> --
> View this message in context: http://old.nabble.com/Help-file-download-and-F1-tp27542391p27544328.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From gambas.fr at ...626...  Thu Feb 11 12:35:08 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Thu, 11 Feb 2010 12:35:08 +0100
Subject: [Gambas-user] Help file download and F1
In-Reply-To: <6324a42a1002110333q40e3c97bs1b0ec727241593dd@...627...>
References: <27542391.post@...1379...>
	<6324a42a1002102234v93ebb6au6d3e80dc55da3464@...627...>
	<27544327.post@...1379...> <27544328.post@...1379...>
	<6324a42a1002110333q40e3c97bs1b0ec727241593dd@...627...>
Message-ID: <6324a42a1002110335l33e0b890lb9ff62d0a4ac83cf@...627...>

sorry
gambas package are more older on ubuntu

you are using a source compiled version

normally it work ....

2010/2/11 Fabien Bodard :
> installed from packages ?
>
> have you installed the doc one ?
>
> 2010/2/11 Fiddler63 :
>>
>>
>>
>> Fiddler63 wrote:
>>>
>>> Ubuntu 9.10, 64bit
>>> Gambas 2.19
>>>
>>> F1 does nothing at all
>>>
>>> Kim
>>>
>>
>> an F2 does not do anything either
>> Kim
>> --
>> View this message in context: http://old.nabble.com/Help-file-download-and-F1-tp27542391p27544328.html
>> Sent from the gambas-user mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>> http://p.sf.net/sfu/solaris-dev2dev
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>



From gambas at ...1...  Thu Feb 11 12:35:47 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Thu, 11 Feb 2010 12:35:47 +0100
Subject: [Gambas-user] SHELL command with python does not execute!
In-Reply-To: <1265886149.6678.8.camel@...2376...>
References: <1265886149.6678.8.camel@...2376...>
Message-ID: <201002111235.47553.gambas@...1...>

> Hello again,
> 
> I am using the following code for the creation of a table in a Mysql DB:
> 
> 
> SHELL"python
>  /home/delphi/Documents/Apodeixi/dimiourgiaTableMYSQLmePython1.py" IF ERROR
>  THEN
>         Message.Error(DConv(Error.Text))
>       ENDIF
> 
> The command works perfectly and it creates the table.
> 
> When I use the same command on a second project it does not execute!
> With:
> 	python dimiourgiaTableMYSQLmePython1.py it does !
> (from terminal)
> 
> Any ideas?
> 

None. You need to give more information about your project, its running 
context, the source code...

-- 
Beno?t Minisini



From gambas at ...1...  Thu Feb 11 12:36:51 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Thu, 11 Feb 2010 12:36:51 +0100
Subject: [Gambas-user] a Dumb shell question - passing quoted text
In-Reply-To: <201002112210.14811.rterry@...1946...>
References: <201002112210.14811.rterry@...1946...>
Message-ID: <201002111236.51696.gambas@...1...>

> Hi List,
> 
> I want to end up with this text to pass to the shell, and it contains
> quotation marks, I wondered how to do that.
> 
> wkhtmltopdf *.html /tmp/temp.pdf --toc --header-right "Page [page]"
>  --footer- center "- EasyGP Medical Records -" --footer-spacing 5
>  --footer-font-name "comic sans ms"
> 
> any help appreciated.
> 
> Regards
> 
> Richard
> 

In Gambas 3, you can use the Shell$() function to quote arguments sent to a 
shell.

And in your example, you should better use Exec instead of Shell to run the 
command.

Regards,

-- 
Beno?t Minisini



From gambas.fr at ...626...  Thu Feb 11 12:38:42 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Thu, 11 Feb 2010 12:38:42 +0100
Subject: [Gambas-user] SHELL command with python does not execute!
In-Reply-To: <201002111235.47553.gambas@...1...>
References: <1265886149.6678.8.camel@...2376...>
	<201002111235.47553.gambas@...1...>
Message-ID: <6324a42a1002110338s2e8afbcas9fbfa3ef5ffb3a79@...627...>

and why are you using python to create your table ???

Le 11 f?vrier 2010 12:35, Beno?t Minisini
 a ?crit :
>> Hello again,
>>
>> I am using the following code for the creation of a table in a Mysql DB:
>>
>>
>> SHELL"python
>> ?/home/delphi/Documents/Apodeixi/dimiourgiaTableMYSQLmePython1.py" IF ERROR
>> ?THEN
>> ? ? ? ? Message.Error(DConv(Error.Text))
>> ? ? ? ENDIF
>>
>> The command works perfectly and it creates the table.
>>
>> When I use the same command on a second project it does not execute!
>> With:
>> ? ? ? python dimiourgiaTableMYSQLmePython1.py it does !
>> (from terminal)
>>
>> Any ideas?
>>
>
> None. You need to give more information about your project, its running
> context, the source code...
>
> --
> Beno?t Minisini
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From doriano.blengino at ...1909...  Thu Feb 11 12:42:56 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Thu, 11 Feb 2010 12:42:56 +0100
Subject: [Gambas-user] SHELL command with python does not execute!
In-Reply-To: <6324a42a1002110338s2e8afbcas9fbfa3ef5ffb3a79@...627...>
References: <1265886149.6678.8.camel@...2376...>	<201002111235.47553.gambas@...1...>
	<6324a42a1002110338s2e8afbcas9fbfa3ef5ffb3a79@...627...>
Message-ID: <4B73ED40.8020408@...1909...>

Fabien Bodard ha scritto:
>
>>>
>>> I am using the following code for the creation of a table in a Mysql DB:
>>>
>>>
>>> SHELL"python
>>>  /home/delphi/Documents/Apodeixi/dimiourgiaTableMYSQLmePython1.py" IF ERROR
>>>  THEN
>>>         Message.Error(DConv(Error.Text))
>>>       ENDIF
>>>
>>> The command works perfectly and it creates the table.
>>>
>>> When I use the same command on a second project it does not execute!
>>> With:
>>>       python dimiourgiaTableMYSQLmePython1.py it does !
>>> (from terminal)
>>>
>>> Any ideas?
>>>       
A reason could be that the second command is more slow than the first, 
and you don't WAIT for it to finish.
Put a WAIT clause in the SHELL statement and see if it works.

Regards,
Doriano




From doriano.blengino at ...1909...  Thu Feb 11 12:49:35 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Thu, 11 Feb 2010 12:49:35 +0100
Subject: [Gambas-user] a Dumb shell question - passing quoted text
In-Reply-To: <201002111236.51696.gambas@...1...>
References: <201002112210.14811.rterry@...1946...>
	<201002111236.51696.gambas@...1...>
Message-ID: <4B73EECF.4040806@...1909...>

Beno?t Minisini ha scritto:
>> Hi List,
>>
>> I want to end up with this text to pass to the shell, and it contains
>> quotation marks, I wondered how to do that.
>>
>> wkhtmltopdf *.html /tmp/temp.pdf --toc --header-right "Page [page]"
>>  --footer- center "- EasyGP Medical Records -" --footer-spacing 5
>>  --footer-font-name "comic sans ms"
>>
>> any help appreciated.
>>
>> Regards
>>
>> Richard
>>
>>     
>
> In Gambas 3, you can use the Shell$() function to quote arguments sent to a 
> shell.
>
> And in your example, you should better use Exec instead of Shell to run the 
> command.
>
> Regards,
>
>   
Agreed for using EXEC instead of SHELL. (but he wants to expand *.html).

Anyway, you can use tickmarks (single quotes) instead of double quotes 
in your command line.
If the text enclosed by single quotes does not need to be expanded by 
the shell, then single quotes are good if not better. Don't put 
asterisks inside single quotes, unless you really mean "*" and not "all 
files".
Your command line could be:

    EXEC "wkhtmltopdf *.html /tmp/temp.pdf --toc --header-right 'Page 
[page]' ... ..."
    ' see "Page [page]" surrounded by ticks

Ciao,
Doriano




From vkan53 at ...2300...  Thu Feb 11 13:10:59 2010
From: vkan53 at ...2300... (Vassilis K)
Date: Thu, 11 Feb 2010 14:10:59 +0200
Subject: [Gambas-user] SHELL command with python does not execute!
Message-ID: <1265890259.7317.13.camel@...2376...>

I am using python because it executes the table creation commands with
the same type like in terminal mode. For example in python we write:

sql = """CREATE TABLE Aplianikis (
         aa BIGINT(20) NOT NULL auto_increment,
         Eponimia VARCHAR(40) NOT NULL,
         AFM  VARCHAR(18) NOT NULL,
         Hmerominia DATE NOT NULL,
         Checkbox TINYINT(1) NOT NULL,
         primary key(aa)
         )
         DEFAULT CHARSET=utf8
         """
         
cursor.execute(sql)

Because of this I assume that there is less possibility of errors.

Do you suggest to use the Gambas code for table and database creation?





From arosa at ...2015...  Thu Feb 11 13:06:16 2010
From: arosa at ...2015... (Toni Rosa)
Date: Thu, 11 Feb 2010 13:06:16 +0100
Subject: [Gambas-user] Text in a TrayIcon
Message-ID: <4B73F2B8.40901@...2015...>

Hi,
I'm using the TrayIcon control in one of my projects and I wondered 
whether it would be possible to add text to it, no just a Pictures. 
(Maybe a TrayText control? )

Regards,
Toni




From gambas.fr at ...626...  Thu Feb 11 14:25:33 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Thu, 11 Feb 2010 14:25:33 +0100
Subject: [Gambas-user] Text in a TrayIcon
In-Reply-To: <4B73F2B8.40901@...2015...>
References: <4B73F2B8.40901@...2015...>
Message-ID: <6324a42a1002110525k6b2c844fn8be8f35ee66b8408@...627...>

it's in the name ... :/ tray icon ...

you can't set text nor too large icon the system tray don't accept it

2010/2/11 Toni Rosa :
> Hi,
> I'm using the TrayIcon control in one of my projects and I wondered
> whether it would be possible to add text to it, no just a Pictures.
> (Maybe a TrayText control? )
>
> Regards,
> Toni
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From demosthenesk at ...626...  Thu Feb 11 14:51:00 2010
From: demosthenesk at ...626... (Demosthenes Koptsis)
Date: Thu, 11 Feb 2010 15:51:00 +0200
Subject: [Gambas-user] Text in a TrayIcon
In-Reply-To: <6324a42a1002110525k6b2c844fn8be8f35ee66b8408@...627...>
References: <4B73F2B8.40901@...2015...>
	<6324a42a1002110525k6b2c844fn8be8f35ee66b8408@...627...>
Message-ID: 

you can create an image with written text inside but with accepted
dimensions for tray.

On Thu, Feb 11, 2010 at 3:25 PM, Fabien Bodard  wrote:

> it's in the name ... :/ tray icon ...
>
> you can't set text nor too large icon the system tray don't accept it
>
> 2010/2/11 Toni Rosa :
> > Hi,
> > I'm using the TrayIcon control in one of my projects and I wondered
> > whether it would be possible to add text to it, no just a Pictures.
> > (Maybe a TrayText control? )
> >
> > Regards,
> > Toni
> >
> >
> >
> ------------------------------------------------------------------------------
> > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> > http://p.sf.net/sfu/solaris-dev2dev
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 

???? ???? ?? ?????!!!

Regards,

Demosthenes Koptsis


From gambas.fr at ...626...  Thu Feb 11 14:41:17 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Thu, 11 Feb 2010 14:41:17 +0100
Subject: [Gambas-user] SHELL command with python does not execute!
In-Reply-To: <1265890259.7317.13.camel@...2376...>
References: <1265890259.7317.13.camel@...2376...>
Message-ID: <6324a42a1002110541p6625c0b4vbcec02a6251a1e3e@...627...>

sql = "CREATE TABLE Aplianikis ("
        "aa BIGINT(20) NOT NULL auto_increment,"
        "Eponimia VARCHAR(40) NOT NULL,"
        "AFM  VARCHAR(18) NOT NULL,"
        "Hmerominia DATE NOT NULL,"
        "Checkbox TINYINT(1) NOT NULL,"
        "primary key(aa)"
        ")"
        "DEFAULT CHARSET=utf8"

DB.Exec(sql)

gambas version :

 Dim htable As Table
  htable = db.Tables.Add("Aplianikis")

  htable.Fields.Add("aa", db.Serial, 10)
  htable.Fields.Add("Eponimia", db.String, 40)
  htable.Fields.Add("AFM", db.String, 18)
  htable.Fields.Add("Hmerominia", db.Date)
  htable.Fields.Add("Checkbox", gb.Boolean,, False)
  htable.PrimaryKey.Add("aa")

  htable.Update

Query to Benoit ... is there a way to define 'NOT NULL' entry via gambas code ?


2010/2/11 Vassilis K :
> I am using python because it executes the table creation commands with
> the same type like in terminal mode. For example in python we write:
>
> sql = """CREATE TABLE Aplianikis (
> ? ? ? ? aa BIGINT(20) NOT NULL auto_increment,
> ? ? ? ? Eponimia VARCHAR(40) NOT NULL,
> ? ? ? ? AFM ?VARCHAR(18) NOT NULL,
> ? ? ? ? Hmerominia DATE NOT NULL,
> ? ? ? ? Checkbox TINYINT(1) NOT NULL,
> ? ? ? ? primary key(aa)
> ? ? ? ? )
> ? ? ? ? DEFAULT CHARSET=utf8
> ? ? ? ? """
>
> cursor.execute(sql)
>
> Because of this I assume that there is less possibility of errors.
>
> Do you suggest to use the Gambas code for table and database creation?
>
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From gambas at ...1...  Thu Feb 11 15:23:55 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Thu, 11 Feb 2010 15:23:55 +0100
Subject: [Gambas-user] SHELL command with python does not execute!
In-Reply-To: <6324a42a1002110541p6625c0b4vbcec02a6251a1e3e@...627...>
References: <1265890259.7317.13.camel@...2376...>
	<6324a42a1002110541p6625c0b4vbcec02a6251a1e3e@...627...>
Message-ID: <201002111523.55614.gambas@...1...>

> sql = "CREATE TABLE Aplianikis ("
>         "aa BIGINT(20) NOT NULL auto_increment,"
>         "Eponimia VARCHAR(40) NOT NULL,"
>         "AFM  VARCHAR(18) NOT NULL,"
>         "Hmerominia DATE NOT NULL,"
>         "Checkbox TINYINT(1) NOT NULL,"
>         "primary key(aa)"
>         ")"
>         "DEFAULT CHARSET=utf8"
> 
> DB.Exec(sql)
> 
> gambas version :
> 
>  Dim htable As Table
>   htable = db.Tables.Add("Aplianikis")
> 
>   htable.Fields.Add("aa", db.Serial, 10)
>   htable.Fields.Add("Eponimia", db.String, 40)
>   htable.Fields.Add("AFM", db.String, 18)
>   htable.Fields.Add("Hmerominia", db.Date)
>   htable.Fields.Add("Checkbox", gb.Boolean,, False)
>   htable.PrimaryKey.Add("aa")
> 
>   htable.Update
> 
> Query to Benoit ... is there a way to define 'NOT NULL' entry via gambas
>  code ?
> 

You have to define the default value. What's the point of having a mandatory 
field (NOT NULL) without a default value?

-- 
Beno?t Minisini



From gambas.fr at ...626...  Thu Feb 11 16:29:12 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Thu, 11 Feb 2010 16:29:12 +0100
Subject: [Gambas-user] SHELL command with python does not execute!
In-Reply-To: <201002111523.55614.gambas@...1...>
References: <1265890259.7317.13.camel@...2376...>
	<6324a42a1002110541p6625c0b4vbcec02a6251a1e3e@...627...>
	<201002111523.55614.gambas@...1...>
Message-ID: <6324a42a1002110729m24351d87s9bb1855e3f66bb87@...627...>

Le 11 f?vrier 2010 15:23, Beno?t Minisini
 a ?crit :
>> sql = "CREATE TABLE Aplianikis ("
>> ? ? ? ? "aa BIGINT(20) NOT NULL auto_increment,"
>> ? ? ? ? "Eponimia VARCHAR(40) NOT NULL,"
>> ? ? ? ? "AFM ?VARCHAR(18) NOT NULL,"
>> ? ? ? ? "Hmerominia DATE NOT NULL,"
>> ? ? ? ? "Checkbox TINYINT(1) NOT NULL,"
>> ? ? ? ? "primary key(aa)"
>> ? ? ? ? ")"
>> ? ? ? ? "DEFAULT CHARSET=utf8"
>>
>> DB.Exec(sql)
>>
>> gambas version :
>>
>> ?Dim htable As Table
>> ? htable = db.Tables.Add("Aplianikis")
>>
>> ? htable.Fields.Add("aa", db.Serial, 10)
>> ? htable.Fields.Add("Eponimia", db.String, 40)
>> ? htable.Fields.Add("AFM", db.String, 18)
>> ? htable.Fields.Add("Hmerominia", db.Date)
>> ? htable.Fields.Add("Checkbox", gb.Boolean,, False)
>> ? htable.PrimaryKey.Add("aa")
>>
>> ? htable.Update
>>
>> Query to Benoit ... is there a way to define 'NOT NULL' entry via gambas
>> ?code ?
>>
>
> You have to define the default value. What's the point of having a mandatory
> field (NOT NULL) without a default value?
just say i want something ... but i can't say what because there is
not default rules.
and then advise the user that he need to say someting by himself

for example my age can't be 0

>
> --
> Beno?t Minisini
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From gambas.fr at ...626...  Thu Feb 11 16:30:31 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Thu, 11 Feb 2010 16:30:31 +0100
Subject: [Gambas-user] Text in a TrayIcon
In-Reply-To: 
References: <4B73F2B8.40901@...2015...>
	<6324a42a1002110525k6b2c844fn8be8f35ee66b8408@...627...>
	
Message-ID: <6324a42a1002110730i332be2a0o272998df7283d523@...627...>

hum ... 16X16 or 24X24 px ... not really interesting size for a text isn't it ?

2010/2/11 Demosthenes Koptsis :
> you can create an image with written text inside but with accepted
> dimensions for tray.
>
> On Thu, Feb 11, 2010 at 3:25 PM, Fabien Bodard  wrote:
>
>> it's in the name ... :/ tray icon ...
>>
>> you can't set text nor too large icon the system tray don't accept it
>>
>> 2010/2/11 Toni Rosa :
>> > Hi,
>> > I'm using the TrayIcon control in one of my projects and I wondered
>> > whether it would be possible to add text to it, no just a Pictures.
>> > (Maybe a TrayText control? )
>> >
>> > Regards,
>> > Toni
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
>> > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>> > http://p.sf.net/sfu/solaris-dev2dev
>> > _______________________________________________
>> > Gambas-user mailing list
>> > Gambas-user at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>> http://p.sf.net/sfu/solaris-dev2dev
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
>
> --
>
> ???? ???? ?? ?????!!!
>
> Regards,
>
> Demosthenes Koptsis
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From doriano.blengino at ...1909...  Thu Feb 11 20:36:28 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Thu, 11 Feb 2010 20:36:28 +0100
Subject: [Gambas-user] SHELL command with python does not execute!
In-Reply-To: <6324a42a1002110729m24351d87s9bb1855e3f66bb87@...627...>
References: <1265890259.7317.13.camel@...2376...>	<6324a42a1002110541p6625c0b4vbcec02a6251a1e3e@...627...>	<201002111523.55614.gambas@...1...>
	<6324a42a1002110729m24351d87s9bb1855e3f66bb87@...627...>
Message-ID: <4B745C3C.4020405@...1909...>

Fabien Bodard ha scritto:
> Le 11 f?vrier 2010 15:23, Beno?t Minisini
>  a ?crit :
>   
>>> sql = "CREATE TABLE Aplianikis ("
>>>         "aa BIGINT(20) NOT NULL auto_increment,"
>>>         "Eponimia VARCHAR(40) NOT NULL,"
>>>         "AFM  VARCHAR(18) NOT NULL,"
>>>         "Hmerominia DATE NOT NULL,"
>>>         "Checkbox TINYINT(1) NOT NULL,"
>>>         "primary key(aa)"
>>>         ")"
>>>         "DEFAULT CHARSET=utf8"
>>>
>>> DB.Exec(sql)
>>>
>>> gambas version :
>>>
>>>  Dim htable As Table
>>>   htable = db.Tables.Add("Aplianikis")
>>>
>>>   htable.Fields.Add("aa", db.Serial, 10)
>>>   htable.Fields.Add("Eponimia", db.String, 40)
>>>   htable.Fields.Add("AFM", db.String, 18)
>>>   htable.Fields.Add("Hmerominia", db.Date)
>>>   htable.Fields.Add("Checkbox", gb.Boolean,, False)
>>>   htable.PrimaryKey.Add("aa")
>>>
>>>   htable.Update
>>>
>>> Query to Benoit ... is there a way to define 'NOT NULL' entry via gambas
>>>  code ?
>>>
>>>       
>> You have to define the default value. What's the point of having a mandatory
>> field (NOT NULL) without a default value?
>>     
> just say i want something ... but i can't say what because there is
> not default rules.
> and then advise the user that he need to say someting by himself
>
> for example my age can't be 0
>   
A default value does not imply that a value is required, and a "not 
null" clause does not imply a default value.
It seems, indeed, very reasonable: all the four cases have a useful 
meaning, and any simplification, I think, would be limiting. Another 
example, after the one from Fabien, is the Name field of a private 
person. I am sure I want the name of the person, but which name would be 
a suitable default? John Smith? And a default value with no "not null" 
clause makes sense too in many cases.

Just a thought... regards,
Doriano



From vkan53 at ...2300...  Thu Feb 11 17:35:42 2010
From: vkan53 at ...2300... (Vassilis K)
Date: Thu, 11 Feb 2010 18:35:42 +0200
Subject: [Gambas-user] SHELL command with python does not execute!
Message-ID: <1265906142.2632.10.camel@...2376...>

I 'll use the Gambas Mysql commands to make a table ! it works !
The reason that I asked you is that the code for creating a Mysql table
in Gambas is less accurate than the code of python.




From vkan53 at ...2300...  Thu Feb 11 17:32:02 2010
From: vkan53 at ...2300... (Vassilis K)
Date: Thu, 11 Feb 2010 18:32:02 +0200
Subject: [Gambas-user] How to align cells to the Right on a Gridview ?
Message-ID: <1265905922.2632.6.camel@...2376...>

Lets say that I want to align the 2nd columns of the following code to
the right. How is this possible?

WITH GridView1
    .rows.count = 0
    .columns.count = 6
    .Columns[0].Width = 45
    .columns[0].text = "AA"
    .Columns[1].Width = 280
    .columns[1].text = "Name"
	etc..

I have tried the .Columns[1].Align = Right
but it doesn't work.





From gambas at ...1...  Thu Feb 11 23:01:31 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Thu, 11 Feb 2010 23:01:31 +0100
Subject: [Gambas-user] How to align cells to the Right on a Gridview ?
In-Reply-To: <1265905922.2632.6.camel@...2376...>
References: <1265905922.2632.6.camel@...2376...>
Message-ID: <201002112301.31684.gambas@...1...>

> Lets say that I want to align the 2nd columns of the following code to
> the right. How is this possible?
> 
> WITH GridView1
>     .rows.count = 0
>     .columns.count = 6
>     .Columns[0].Width = 45
>     .columns[0].text = "AA"
>     .Columns[1].Width = 280
>     .columns[1].text = "Name"
> 	etc..
> 
> I have tried the .Columns[1].Align = Right
> but it doesn't work.
> 

.Columns[1].Alignment = Align.Right. See the example on the GridView 
documentation page.

Regards,

-- 
Beno?t Minisini



From gambas at ...1...  Thu Feb 11 23:09:06 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Thu, 11 Feb 2010 23:09:06 +0100
Subject: [Gambas-user] SHELL command with python does not execute!
In-Reply-To: <4B745C3C.4020405@...1909...>
References: <1265890259.7317.13.camel@...2376...>
	<6324a42a1002110729m24351d87s9bb1855e3f66bb87@...627...>
	<4B745C3C.4020405@...1909...>
Message-ID: <201002112309.06184.gambas@...1...>

> Fabien Bodard ha scritto:
> > Le 11 f?vrier 2010 15:23, Beno?t Minisini
> >
> >  a ?crit :
> >>> sql = "CREATE TABLE Aplianikis ("
> >>>         "aa BIGINT(20) NOT NULL auto_increment,"
> >>>         "Eponimia VARCHAR(40) NOT NULL,"
> >>>         "AFM  VARCHAR(18) NOT NULL,"
> >>>         "Hmerominia DATE NOT NULL,"
> >>>         "Checkbox TINYINT(1) NOT NULL,"
> >>>         "primary key(aa)"
> >>>         ")"
> >>>         "DEFAULT CHARSET=utf8"
> >>>
> >>> DB.Exec(sql)
> >>>
> >>> gambas version :
> >>>
> >>>  Dim htable As Table
> >>>   htable = db.Tables.Add("Aplianikis")
> >>>
> >>>   htable.Fields.Add("aa", db.Serial, 10)
> >>>   htable.Fields.Add("Eponimia", db.String, 40)
> >>>   htable.Fields.Add("AFM", db.String, 18)
> >>>   htable.Fields.Add("Hmerominia", db.Date)
> >>>   htable.Fields.Add("Checkbox", gb.Boolean,, False)
> >>>   htable.PrimaryKey.Add("aa")
> >>>
> >>>   htable.Update
> >>>
> >>> Query to Benoit ... is there a way to define 'NOT NULL' entry via
> >>> gambas code ?
> >>
> >> You have to define the default value. What's the point of having a
> >> mandatory field (NOT NULL) without a default value?
> >
> > just say i want something ... but i can't say what because there is
> > not default rules.
> > and then advise the user that he need to say someting by himself
> >
> > for example my age can't be 0
> 
> A default value does not imply that a value is required, and a "not
> null" clause does not imply a default value.
> It seems, indeed, very reasonable: all the four cases have a useful
> meaning, and any simplification, I think, would be limiting. Another
> example, after the one from Fabien, is the Name field of a private
> person. I am sure I want the name of the person, but which name would be
> a suitable default? John Smith? And a default value with no "not null"
> clause makes sense too in many cases.
> 
> Just a thought... regards,
> Doriano
> 

Mmm. You may be right. :-) But that needs some change in the gb.db component 
and in all database drivers.

-- 
Beno?t Minisini



From vkan53 at ...2300...  Thu Feb 11 23:46:36 2010
From: vkan53 at ...2300... (Vassilis K)
Date: Fri, 12 Feb 2010 00:46:36 +0200
Subject: [Gambas-user] How to align cells to the Right on a Gridview ?
Message-ID: <1265928396.12535.8.camel@...2376...>

I tried 

.Columns[1].Alignment = Align.Right

AND I get error :

Unknown symbol 'alignment' in class '.GridviewColumn'

I'm using Gambas 2.17




From gambas at ...1...  Thu Feb 11 23:55:25 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Thu, 11 Feb 2010 23:55:25 +0100
Subject: [Gambas-user] How to align cells to the Right on a Gridview ?
In-Reply-To: <1265928396.12535.8.camel@...2376...>
References: <1265928396.12535.8.camel@...2376...>
Message-ID: <201002112355.25997.gambas@...1...>

> I tried
> 
> .Columns[1].Alignment = Align.Right
> 
> AND I get error :
> 
> Unknown symbol 'alignment' in class '.GridviewColumn'
> 
> I'm using Gambas 2.17
> 

Sorry, I made a mistakte: you must specify the alignment for each cell. There 
is no alignment for all the column. But it would be possible to implement such 
a thing in Gambas 3.

Regards,

-- 
Beno?t Minisini



From vkan53 at ...2300...  Fri Feb 12 00:15:58 2010
From: vkan53 at ...2300... (Vassilis K)
Date: Fri, 12 Feb 2010 01:15:58 +0200
Subject: [Gambas-user] How to align cells to the Right on a Gridview ?
Message-ID: <1265930158.13249.1.camel@...2376...>

How is this possible ? (to specify the alignment for each cell).




From gambas at ...1...  Fri Feb 12 00:22:17 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Fri, 12 Feb 2010 00:22:17 +0100
Subject: [Gambas-user] How to align cells to the Right on a Gridview ?
In-Reply-To: <1265930158.13249.1.camel@...2376...>
References: <1265930158.13249.1.camel@...2376...>
Message-ID: <201002120022.17575.gambas@...1...>

> How is this possible ? (to specify the alignment for each cell).
> 

Like in the example of the Gridview documentation page.

GridView[X, Y].Alignment = Align.xxxx

Or in the Data event if you use it, with the GridView.Data.Alignment property.

-- 
Beno?t Minisini



From rterry at ...1946...  Fri Feb 12 04:41:55 2010
From: rterry at ...1946... (richard terry)
Date: Fri, 12 Feb 2010 14:41:55 +1100
Subject: [Gambas-user] gb.Text, gb.case
Message-ID: <201002121441.56000.rterry@...1946...>

Benoit,

using replace, I used gb.case as per docs, gambas bauked, but gb.text does 
work as case insensitive replace.

??

Regards

Richard



From gambas.fr at ...626...  Fri Feb 12 08:35:05 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Fri, 12 Feb 2010 08:35:05 +0100
Subject: [Gambas-user] SHELL command with python does not execute!
In-Reply-To: <1265906142.2632.10.camel@...2376...>
References: <1265906142.2632.10.camel@...2376...>
Message-ID: <6324a42a1002112335k6c9fa3aeq89cf5b2f6aebb560@...627...>

2010/2/11 Vassilis K :
> I 'll use the Gambas Mysql commands to make a table ! it works !
> The reason that I asked you is that the code for creating a Mysql table
> in Gambas is less accurate than the code of python.
no at same...
but the gambas code way allow you to change the database server
without changing one line of code.

just the connection definition

>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From gambas at ...1...  Fri Feb 12 09:58:50 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Fri, 12 Feb 2010 09:58:50 +0100
Subject: [Gambas-user] gb.Text, gb.case
In-Reply-To: <201002121441.56000.rterry@...1946...>
References: <201002121441.56000.rterry@...1946...>
Message-ID: <201002120958.50509.gambas@...1...>

> Benoit,
> 
> using replace, I used gb.case as per docs, gambas bauked, but gb.text does
> work as case insensitive replace.
> 
> ??
> 
> Regards
> 
> Richard
> 

Both are deprecated. Now you must use gb.IgnoreCase instead.

-- 
Beno?t Minisini



From doriano.blengino at ...1909...  Fri Feb 12 10:27:18 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Fri, 12 Feb 2010 10:27:18 +0100
Subject: [Gambas-user] SHELL command with python does not execute!
In-Reply-To: <201002112309.06184.gambas@...1...>
References: <1265890259.7317.13.camel@...2376...>	<6324a42a1002110729m24351d87s9bb1855e3f66bb87@...627...>	<4B745C3C.4020405@...1909...>
	<201002112309.06184.gambas@...1...>
Message-ID: <4B751EF6.7030307@...1909...>

Beno?t Minisini ha scritto:
>>
>>>>>
>>>>> Query to Benoit ... is there a way to define 'NOT NULL' entry via
>>>>> gambas code ?
>>>>>           
>>>> You have to define the default value. What's the point of having a
>>>> mandatory field (NOT NULL) without a default value?
>>>>         
>>> just say i want something ... but i can't say what because there is
>>> not default rules.
>>> and then advise the user that he need to say someting by himself
>>>
>>> for example my age can't be 0
>>>       
>> A default value does not imply that a value is required, and a "not
>> null" clause does not imply a default value.
>>
>>     
>
> Mmm. You may be right. :-) But that needs some change in the gb.db component 
> and in all database drivers.
>
>   
A general idea could be to add a further optional argument "Flags". 
Those bit-mask flags could have a name like "db.bNotNull" for flags 
valid for every database, and names like MySql.bAutoincrement, for 
example, for flags only valid for certain databases. If, in code, 
someone uses a feature with the wrong backend, an error is generated by 
the compiler (unknown symbol). The definition of a field would be, for 
example:

	htable.Fields.Add("AFM", MySql.SpecialInteger, 18, db.bNotNull + MySql.bAutoIncrement)

Just an idea.
Regards,
Doriano




From gambas at ...1...  Fri Feb 12 10:33:08 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Fri, 12 Feb 2010 10:33:08 +0100
Subject: [Gambas-user] SHELL command with python does not execute!
In-Reply-To: <4B751EF6.7030307@...1909...>
References: <1265890259.7317.13.camel@...2376...>
	<201002112309.06184.gambas@...1...>
	<4B751EF6.7030307@...1909...>
Message-ID: <201002121033.08781.gambas@...1...>

> Beno?t Minisini ha scritto:
> >>>>> Query to Benoit ... is there a way to define 'NOT NULL' entry via
> >>>>> gambas code ?
> >>>>
> >>>> You have to define the default value. What's the point of having a
> >>>> mandatory field (NOT NULL) without a default value?
> >>>
> >>> just say i want something ... but i can't say what because there is
> >>> not default rules.
> >>> and then advise the user that he need to say someting by himself
> >>>
> >>> for example my age can't be 0
> >>
> >> A default value does not imply that a value is required, and a "not
> >> null" clause does not imply a default value.
> >
> > Mmm. You may be right. :-) But that needs some change in the gb.db
> > component and in all database drivers.
> 
> A general idea could be to add a further optional argument "Flags".
> Those bit-mask flags could have a name like "db.bNotNull" for flags
> valid for every database, and names like MySql.bAutoincrement, for
> example, for flags only valid for certain databases. If, in code,
> someone uses a feature with the wrong backend, an error is generated by
> the compiler (unknown symbol). The definition of a field would be, for
> example:
> 
> 	htable.Fields.Add("AFM", MySql.SpecialInteger, 18, db.bNotNull +
>  MySql.bAutoIncrement)
> 
> Just an idea.
> Regards,
> Doriano
> 

The gb.db interface is database independent, so no database specific flag 
please. 

And if there are only one flag (Not Null), auto-increment being just a special 
integer field, I will add just an extra boolean argument, after the default 
value. 

Regards,

-- 
Beno?t Minisini



From vkan53 at ...2300...  Fri Feb 12 20:45:17 2010
From: vkan53 at ...2300... (Vassilis K)
Date: Fri, 12 Feb 2010 21:45:17 +0200
Subject: [Gambas-user] How to print Greek
Message-ID: <1266003917.9486.21.camel@...2376...>

I am using a parallel printer Panasonic KX-P1150 (dot printer).

The printer is at /dev/lp0 and prints very well in English.

In Greek it only shows some strange characters like "road crossings" and
crosses with other symbols.
I have tried to use all the font options of the printer that can be
adjusted from the front panel:

0.PROGRAM
1.Courier
2.Roman
3.Bold PS
4.Sans Serif

The 1st of them is probably for the Program and the other are as
described !

All of the options print the strange crossings in Greek and everything
OK in English.
Is there any solution?

Last year I used the same printer with a Visual Basic Program and it
didn't print Greek at all (the same road crossings).

The printing code is:

hPrinter = OPEN "/dev/lp0" FOR OUTPUT
          hPrinter.EndOfLine = gb.Windows  
          PRINT #hPrinter, "Afixi" &  prosorinoAA & " " &
tEpitheto.Text 





From mx4eva at ...626...  Fri Feb 12 21:11:39 2010
From: mx4eva at ...626... (Fiddler63)
Date: Fri, 12 Feb 2010 12:11:39 -0800 (PST)
Subject: [Gambas-user] Help file download and F1
In-Reply-To: <6324a42a1002110335l33e0b890lb9ff62d0a4ac83cf@...627...>
References: <27542391.post@...1379...>
	<6324a42a1002102234v93ebb6au6d3e80dc55da3464@...627...>
	<27544327.post@...1379...> <27544328.post@...1379...>
	<6324a42a1002110333q40e3c97bs1b0ec727241593dd@...627...>
	<6324a42a1002110335l33e0b890lb9ff62d0a4ac83cf@...627...>
Message-ID: <27568747.post@...1379...>




sorry
gambas package are more older on ubuntu

you are using a source compiled version

normally it work ....

2010/2/11 Fabien Bodard :
> installed from packages ?
>

Yep, compiled the source. 
as far as i remember everything went well with no errors and no warnings

Kim
-- 
View this message in context: http://old.nabble.com/Help-file-download-and-F1-tp27542391p27568747.html
Sent from the gambas-user mailing list archive at Nabble.com.




From rterry at ...1946...  Fri Feb 12 22:05:45 2010
From: rterry at ...1946... (richard terry)
Date: Sat, 13 Feb 2010 08:05:45 +1100
Subject: [Gambas-user] PDF example
Message-ID: <201002130805.45637.rterry@...1946...>

Hi List,

I wondered if anyone was using /maintaining the pdf code from the pdf example, 
as there are  a number of problems with it and missing features.

I've emailed the original author, but the info at top of the file is quite old 
(2007) and Daniel says he is not able to contribute anymore.

Any info appreciated. I'd be happy to have a go at maintaining it but would 
need some help as I'm not that clever with anything but basic stuff.

Richard



From dosida at ...626...  Fri Feb 12 22:56:36 2010
From: dosida at ...626... (Dimitris Anogiatis)
Date: Fri, 12 Feb 2010 14:56:36 -0700
Subject: [Gambas-user] How to print Greek
In-Reply-To: <1266003917.9486.21.camel@...2376...>
References: <1266003917.9486.21.camel@...2376...>
Message-ID: <82bffccf1002121356u28ab9d81p553fb378819e8dfb@...627...>

Vassili,
You might have to convert the Greek Unicode characters into ANSI or ASCII
(not sure how your printer works I haven't
used a parallel printer in a while) in order to see some Greek characters
printed out.

if you can verify that the printer is setup correctly and an ascii plain
text with Greek characters prints out fine from your linux box then
it should be just a matter of unicode to ASCII conversion

Hope this helps
Regards,
Dimitris

On Fri, Feb 12, 2010 at 12:45 PM, Vassilis K  wrote:

> I am using a parallel printer Panasonic KX-P1150 (dot printer).
>
> The printer is at /dev/lp0 and prints very well in English.
>
> In Greek it only shows some strange characters like "road crossings" and
> crosses with other symbols.
> I have tried to use all the font options of the printer that can be
> adjusted from the front panel:
>
> 0.PROGRAM
> 1.Courier
> 2.Roman
> 3.Bold PS
> 4.Sans Serif
>
> The 1st of them is probably for the Program and the other are as
> described !
>
> All of the options print the strange crossings in Greek and everything
> OK in English.
> Is there any solution?
>
> Last year I used the same printer with a Visual Basic Program and it
> didn't print Greek at all (the same road crossings).
>
> The printing code is:
>
> hPrinter = OPEN "/dev/lp0" FOR OUTPUT
>          hPrinter.EndOfLine = gb.Windows
>          PRINT #hPrinter, "Afixi" &  prosorinoAA & " " &
> tEpitheto.Text
>
>
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


From doriano.blengino at ...1909...  Sat Feb 13 10:07:04 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Sat, 13 Feb 2010 10:07:04 +0100
Subject: [Gambas-user] How to print Greek
In-Reply-To: <82bffccf1002121356u28ab9d81p553fb378819e8dfb@...627...>
References: <1266003917.9486.21.camel@...2376...>
	<82bffccf1002121356u28ab9d81p553fb378819e8dfb@...627...>
Message-ID: <4B766BB8.8090009@...1909...>

Dimitris Anogiatis ha scritto:
> Vassili,
> You might have to convert the Greek Unicode characters into ANSI or ASCII
> (not sure how your printer works I haven't
> used a parallel printer in a while) in order to see some Greek characters
> printed out.
>
> if you can verify that the printer is setup correctly and an ascii plain
> text with Greek characters prints out fine from your linux box then
> it should be just a matter of unicode to ASCII conversion
>
> Hope this helps
> Regards,
> Dimitris
>
> On Fri, Feb 12, 2010 at 12:45 PM, Vassilis K  wrote:
>
>   
>> I am using a parallel printer Panasonic KX-P1150 (dot printer).
>>
>> The printer is at /dev/lp0 and prints very well in English.
>>
>> In Greek it only shows some strange characters like "road crossings" and
>> crosses with other symbols.
>> I have tried to use all the font options of the printer that can be
>> adjusted from the front panel:
>>
>> 0.PROGRAM
>> 1.Courier
>> 2.Roman
>> 3.Bold PS
>> 4.Sans Serif
>>
>> The 1st of them is probably for the Program and the other are as
>> described !
>>
>> All of the options print the strange crossings in Greek and everything
>> OK in English.
>> Is there any solution?
>>
>> Last year I used the same printer with a Visual Basic Program and it
>> didn't print Greek at all (the same road crossings).
>>
>> The printing code is:
>>
>> hPrinter = OPEN "/dev/lp0" FOR OUTPUT
>>          hPrinter.EndOfLine = gb.Windows
>>          PRINT #hPrinter, "Afixi" &  prosorinoAA & " " &
>> tEpitheto.Text
>>     
The problems are two. First, you should check the manual of the printer 
- you will find all the characters the printer can print (its character 
set, or its character sets); but it is unlikely that that printer can 
print all the greek characters,

If you don't have the manual you can test the characters by the 
following code:

    for i = 33 to 255
       print #hPrinter, chr$(i)
    next
    ' never use chr$(27), unless you know what you are doing

Provided that the printer *has* in its fonts the characters you need, 
you can print them with, for example, chr$(230) or chr$(145). Probably 
all the fonts have the same characters, only with different appearance. 
If you are lucky, those characters are arranged in predetermined order, 
like an old IBM codepage. If so, you could translate your strings from 
your current locale or UTF-8 to the codepage of the printer. But I see a 
lot of problems. Perhaps you should set up your own conversion routine.

Or, you can use the graphic capabilities of the printer using CUPS. It 
will print with fidelity everything you want, even in different sizes, 
but don't expect a pretty output.

Regards,

-- 
Doriano Blengino

"Listen twice before you speak.
This is why we have two ears, but only one mouth."




From vkan53 at ...2300...  Sat Feb 13 10:47:41 2010
From: vkan53 at ...2300... (Vassilis K)
Date: Sat, 13 Feb 2010 11:47:41 +0200
Subject: [Gambas-user] How to print Greek
Message-ID: <1266054461.6239.21.camel@...2376...>

Dear Doriano,

I remember from the last time that you where a kind of old printers
expert !

I printed all the characters from 33 to 255 and have found all the greek
letters somewhere between 128-180 and 224-234.

The greek letters are in order from 128 "?" to 151 "?" . The capitals
are 100% in order. The small letters are in order (from 152 "?" up to
"?" then they go to "?" and then "?", "?", "?", "?", "?" and "?" is 50
chars further ! as well as the letters with tonos "?", "?", etc.

Shall I make my-shelf a routine for greek printing out of these?




From doriano.blengino at ...1909...  Sat Feb 13 11:13:28 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Sat, 13 Feb 2010 11:13:28 +0100
Subject: [Gambas-user] How to print Greek
In-Reply-To: <1266054461.6239.21.camel@...2376...>
References: <1266054461.6239.21.camel@...2376...>
Message-ID: <4B767B48.9080005@...1909...>

Vassilis K ha scritto:
> Dear Doriano,
>
> I remember from the last time that you where a kind of old printers
> expert !
>
> I printed all the characters from 33 to 255 and have found all the greek
> letters somewhere between 128-180 and 224-234.
>
> The greek letters are in order from 128 "?" to 151 "?" . The capitals
> are 100% in order. The small letters are in order (from 152 "?" up to
> "?" then they go to "?" and then "?", "?", "?", "?", "?" and "?" is 50
> chars further ! as well as the letters with tonos "?", "?", etc.
>
> Shall I make my-shelf a routine for greek printing out of these?
>
>   
You are lucky! I am happy for you.

As I said, may be that there is an already-made way to do the conversion 
- this implies that the characters in the printer are arranged in a 
standard way, and named something like CP-850, CP-851 or alike. You 
should check the manual, if you have it. By that way, if that CP-xxxx 
maps well to some ISO-8859-yyy, then there is some way to do the 
conversion; but I don't know how to do it from gambas - perhaps it has a 
function to make arbitrarily charset conversions, but this has also to 
do with the locales installed in your computer. I suppose your current 
locale, if not UTF-8, is ok, but it may differ from the charset of the 
printer.

Making an own routine to make the conversion is straightforward, even if 
a little boring... I would make a quick check for conversion, and then 
write an easy conversion routine.

Regards,

-- 
Doriano Blengino

"Listen twice before you speak.
This is why we have two ears, but only one mouth."




From robert1juhasz at ...626...  Sat Feb 13 12:17:01 2010
From: robert1juhasz at ...626... (yuhej)
Date: Sat, 13 Feb 2010 03:17:01 -0800 (PST)
Subject: [Gambas-user]  32 or 64?
Message-ID: <27574204.post@...1379...>


Hello List,

I have to change my computer and need to install Ubuntu (9.10).
>From the Gambas point of view is there any difference? What I develop will
be installed on 32 bit Ubuntu. Is there any advantage to use the 64 bit or
any drawback?

Thanks,
Robi
-- 
View this message in context: http://old.nabble.com/32-or-64--tp27574204p27574204.html
Sent from the gambas-user mailing list archive at Nabble.com.




From gambas.fr at ...626...  Sat Feb 13 12:41:14 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Sat, 13 Feb 2010 12:41:14 +0100
Subject: [Gambas-user] 32 or 64?
In-Reply-To: <27574204.post@...1379...>
References: <27574204.post@...1379...>
Message-ID: <6324a42a1002130341p640d2b28v9e58e144cf81d9fc@...627...>

2010/2/13 yuhej :
>
> Hello List,
>
> I have to change my computer and need to install Ubuntu (9.10).
> >From the Gambas point of view is there any difference? What I develop will
> be installed on 32 bit Ubuntu. Is there any advantage to use the 64 bit or
> any drawback?
all work as same ... on 32 and 64 bit, i use a 64 bit



>
> Thanks,
> Robi
> --
> View this message in context: http://old.nabble.com/32-or-64--tp27574204p27574204.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From gambas.fr at ...626...  Sat Feb 13 12:46:28 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Sat, 13 Feb 2010 12:46:28 +0100
Subject: [Gambas-user] How to print Greek
In-Reply-To: <4B767B48.9080005@...1909...>
References: <1266054461.6239.21.camel@...2376...>
	<4B767B48.9080005@...1909...>
Message-ID: <6324a42a1002130346x892907akee85efdaea449203@...627...>

try that !

hPrinter = OPEN "/dev/lp0" FOR OUTPUT
         hPrinter.EndOfLine = gb.Windows
         PRINT #hPrinter, "Afixi" &  prosorinoAA & " " &
conv(tEpitheto.Text, "UTF-8", "ISO-8859-7")


http://gambasdoc.org/help/lang/conv?en

2010/2/13 Doriano Blengino :
> Vassilis K ha scritto:
>> Dear Doriano,
>>
>> I remember from the last time that you where a kind of old printers
>> expert !
>>
>> I printed all the characters from 33 to 255 and have found all the greek
>> letters somewhere between 128-180 and 224-234.
>>
>> The greek letters are in order from 128 "?" to 151 "?" . The capitals
>> are 100% in order. The small letters are in order (from 152 "?" up to
>> "?" then they go to "?" and then "?", "?", "?", "?", "?" and "?" is 50
>> chars further ! as well as the letters with tonos "?", "?", etc.
>>
>> Shall I make my-shelf a routine for greek printing out of these?
>>
>>
> You are lucky! I am happy for you.
>
> As I said, may be that there is an already-made way to do the conversion
> - this implies that the characters in the printer are arranged in a
> standard way, and named something like CP-850, CP-851 or alike. You
> should check the manual, if you have it. By that way, if that CP-xxxx
> maps well to some ISO-8859-yyy, then there is some way to do the
> conversion; but I don't know how to do it from gambas - perhaps it has a
> function to make arbitrarily charset conversions, but this has also to
> do with the locales installed in your computer. I suppose your current
> locale, if not UTF-8, is ok, but it may differ from the charset of the
> printer.
>
> Making an own routine to make the conversion is straightforward, even if
> a little boring... I would make a quick check for conversion, and then
> write an easy conversion routine.



>
> Regards,
>
> --
> Doriano Blengino
>
> "Listen twice before you speak.
> This is why we have two ears, but only one mouth."
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From gambas at ...1...  Sat Feb 13 14:55:16 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Sat, 13 Feb 2010 14:55:16 +0100
Subject: [Gambas-user] 32 or 64?
In-Reply-To: <27574204.post@...1379...>
References: <27574204.post@...1379...>
Message-ID: <201002131455.16475.gambas@...1...>

> Hello List,
> 
> I have to change my computer and need to install Ubuntu (9.10).
> 
> >From the Gambas point of view is there any difference? What I develop will
> 
> be installed on 32 bit Ubuntu. Is there any advantage to use the 64 bit or
> any drawback?
> 
> Thanks,
> Robi
> 

The Gambas 64 bits version should be a little bit slower to load classes, and 
uses more memory (as any other 64 bits programs). But I never did any 
benchmark.

Regards,

-- 
Beno?t Minisini



From vkan53 at ...2300...  Sat Feb 13 14:33:34 2010
From: vkan53 at ...2300... (Vassilis K)
Date: Sat, 13 Feb 2010 15:33:34 +0200
Subject: [Gambas-user] How to print Greek
Message-ID: <1266068014.6689.7.camel@...2376...>

Merci Fabien,

With this routine I get some characters printed but not the Greek ones!

I also tried the conv(tEpitheto.Text, "UTF-8", "xxxx")
where xxxx was the following char type:

windows-1253, ibm869 : I got output but not in Greek

ibm737,cp-850,cp850,cp-851,ibm869,x-EBCDIC-GreekModern, x-EBCDIC-Greek, iso-8859-3,
iso-8859-15, ibm850 :  I got Bad string conversion error

I think that the self-made routine is the only road.
Any ideas how to start?






From gambas.fr at ...626...  Sat Feb 13 17:03:43 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Sat, 13 Feb 2010 17:03:43 +0100
Subject: [Gambas-user] How to print Greek
In-Reply-To: <1266068014.6689.7.camel@...2376...>
References: <1266068014.6689.7.camel@...2376...>
Message-ID: <6324a42a1002130803m7dfadd5foc22f0ac764b537a0@...627...>

i really don't know...

2010/2/13 Vassilis K :
> Merci Fabien,
>
> With this routine I get some characters printed but not the Greek ones!
>
> I also tried the conv(tEpitheto.Text, "UTF-8", "xxxx")
> where xxxx was the following char type:
>
> windows-1253, ibm869 : I got output but not in Greek
>
> ibm737,cp-850,cp850,cp-851,ibm869,x-EBCDIC-GreekModern, x-EBCDIC-Greek, iso-8859-3,
> iso-8859-15, ibm850 : ?I got Bad string conversion error
>
> I think that the self-made routine is the only road.
> Any ideas how to start?
>
>
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From Karl.Reinl at ...2345...  Sat Feb 13 17:50:07 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Sat, 13 Feb 2010 17:50:07 +0100
Subject: [Gambas-user] How to print Greek
In-Reply-To: <1266068014.6689.7.camel@...2376...>
References: <1266068014.6689.7.camel@...2376...>
Message-ID: <1266079807.7579.9.camel@...40...>

Am Samstag, den 13.02.2010, 15:33 +0200 schrieb Vassilis K:
> Merci Fabien,
> 
> With this routine I get some characters printed but not the Greek ones!
> 
> I also tried the conv(tEpitheto.Text, "UTF-8", "xxxx")
> where xxxx was the following char type:
> 
> windows-1253, ibm869 : I got output but not in Greek
> 
> ibm737,cp-850,cp850,cp-851,ibm869,x-EBCDIC-GreekModern, x-EBCDIC-Greek, iso-8859-3,
> iso-8859-15, ibm850 :  I got Bad string conversion error
> 
> I think that the self-made routine is the only road.
> Any ideas how to start?

Salut Vassilis,

you were probably already here :
http://openprinting.org/show_printer.cgi?recnum=Panasonic-KX-P1150
and here  :
http://factorycomputerstore.com/product/574666/B00004Z8HL/Panasonic_KX_P1150_240_CPS_9_Pin_Paralle/


and here you find something for Greece
http://panasonic.net/pcc/products/printer/download/p1150download.html 
play around with WIN

http://panasonic.net/pcc/products/printer/trouble_shooting/dmptrouble.html

http://www.user-service-manuals.com/Panasonic2/KX-P.shtml

http://office.manualsonline.com/manuals/mfg/panasonic/panasonic_kx_kxp1150.html



-- 
Amicalement
Charlie




From doriano.blengino at ...1909...  Sat Feb 13 18:06:01 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Sat, 13 Feb 2010 18:06:01 +0100
Subject: [Gambas-user] How to print Greek
In-Reply-To: <1266068014.6689.7.camel@...2376...>
References: <1266068014.6689.7.camel@...2376...>
Message-ID: <4B76DBF9.2090807@...1909...>

Vassilis K ha scritto:
> Merci Fabien,
>
> With this routine I get some characters printed but not the Greek ones!
>
> I also tried the conv(tEpitheto.Text, "UTF-8", "xxxx")
> where xxxx was the following char type:
>
> windows-1253, ibm869 : I got output but not in Greek
>
> ibm737,cp-850,cp850,cp-851,ibm869,x-EBCDIC-GreekModern, x-EBCDIC-Greek, iso-8859-3,
> iso-8859-15, ibm850 :  I got Bad string conversion error
>
> I think that the self-made routine is the only road.
> Any ideas how to start?
>   
Where did you take those ibm737 and cp850? I think that those codepages 
must be installed in the system - are they? If not, "bad string 
conversion error" comes from there. I really don't know how to install 
new codepages, it is distribution-dependent, but may be 
"dpkg-reconfigure locale" does something on Debian and Ubuntu systems. 
Anyway, you should check the printer manual to see if there is a name.

While I am writing this, a message from Charlie has some information - I 
stop.

About making a conversion subroutine, you should check what code have 
your characters to print. Are they encoded in UTF-8 or in iso-8859-7? In 
the first case, you should use string.xxx() functions to obtain a 
numeric value, in the second case an asc() would do. Graphics toolkit 
work in UTF-8, so the first case is more likely. Then you create an 
array of chars, or strings, and fill it with single chars to send to the 
printer. Saying that "omega" has a code of 1420 in UTF-8 (not true - 
just to speak), then the element number 1420 of this array should 
contain the ascii value, say, 151, which makes the printer print an 
omega. Then, every time you want to print, you take a single string 
character by character, look it up through the array, and send the 
resulting character to the printer. You can save time by only filling 
cells with greek characters, and leave the other empty. If, when 
scanning the string to print, you encounter a normal, ascii character, 
you look up in the array and, if nothing found, you print the character 
as it is. If, instead, you find a value, then that value is the one to 
send to the printer.

Hope this helps,

-- 
Doriano Blengino

"Listen twice before you speak.
This is why we have two ears, but only one mouth."




From gambas at ...2377...  Sat Feb 13 19:52:13 2010
From: gambas at ...2377... (George)
Date: Sat, 13 Feb 2010 13:52:13 -0500
Subject: [Gambas-user] BUG: Problem with DateAdd function
Message-ID: <4B76F4DD.5060001@...2377...>

I've run into a strange problem with the DateAdd function, when trying 
to subtract from the current date by months.

I initially hit the problem with the following (values are hard-coded 
for clarity):
DateAdd(cdate("2/13/2010"),gb.month,-37)

It seems that any combination of Date and Interval that results in a 
date of January 2007 causes an "Invalid Date" error.  For example, the 
following are all invalid:
DateAdd(cdate("1/13/2010"),gb.month,-36)
DateAdd(cdate("2/28/2010"),gb.month,-37)
DateAdd(cdate("3/13/2010"),gb.month,-38)

Changing the starting date or the number of intervals so as to have a 
date that falls outside the month of January 2007 works okay.  It also 
works okay using periods of Year or Week that fall into those dates.

=======

System information:

Gambas Version 2.13
Components in project: gb.db, gb.db.form, gb.form, gb.gui, gb.settings, 
gb.vb

OS: Ubuntu 9.10 Karmic Koala; Kernel 2.6.31-19-generic-pae
GNOME 2.28.1

Hardware: Intel Core 2 Duo processor (E8400)



From vkan53 at ...2300...  Sat Feb 13 20:31:33 2010
From: vkan53 at ...2300... (Vassilis K)
Date: Sat, 13 Feb 2010 21:31:33 +0200
Subject: [Gambas-user] How to print Greek
Message-ID: <1266089493.2631.11.camel@...2376...>

I solved it !!
With your help !!

1. I installed the locales as Doriano said.
2. After that I found the ibm web-page with all the greek char types:
http://www-01.ibm.com/software/globalization/ccsid/ccsid_registered.jsp
3. I started printing with Fabien's routine and the different char types
of that page.
4. The solution is the following:

	sString = Conv$("????????????????", "UTF-8", "cp737")

Yesterday I was trying with "ibm737" and got error ! But the solution
was so close !!

Thank you.





From gambas at ...1...  Sat Feb 13 20:51:35 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Sat, 13 Feb 2010 20:51:35 +0100
Subject: [Gambas-user] BUG: Problem with DateAdd function
In-Reply-To: <4B76F4DD.5060001@...2377...>
References: <4B76F4DD.5060001@...2377...>
Message-ID: <201002132051.35580.gambas@...1...>

> I've run into a strange problem with the DateAdd function, when trying
> to subtract from the current date by months.
> 
> I initially hit the problem with the following (values are hard-coded
> for clarity):
> DateAdd(cdate("2/13/2010"),gb.month,-37)
> 
> It seems that any combination of Date and Interval that results in a
> date of January 2007 causes an "Invalid Date" error.  For example, the
> following are all invalid:
> DateAdd(cdate("1/13/2010"),gb.month,-36)
> DateAdd(cdate("2/28/2010"),gb.month,-37)
> DateAdd(cdate("3/13/2010"),gb.month,-38)
> 
> Changing the starting date or the number of intervals so as to have a
> date that falls outside the month of January 2007 works okay.  It also
> works okay using periods of Year or Week that fall into those dates.
> 
> =======
> 
> System information:
> 
> Gambas Version 2.13
> Components in project: gb.db, gb.db.form, gb.form, gb.gui, gb.settings,
> gb.vb
> 
> OS: Ubuntu 9.10 Karmic Koala; Kernel 2.6.31-19-generic-pae
> GNOME 2.28.1
> 
> Hardware: Intel Core 2 Duo processor (E8400)
> 

The bug has been fixed in revision #2697.

Regards,

-- 
Beno?t Minisini



From vkan53 at ...2300...  Sat Feb 13 21:18:12 2010
From: vkan53 at ...2300... (Vassilis K)
Date: Sat, 13 Feb 2010 22:18:12 +0200
Subject: [Gambas-user] automatic completion of textbox with mysql data
Message-ID: <1266092292.8912.13.camel@...2376...>

I'm trying to make a routine that fills a dropdown menu of a textbox OR
fills a listbox with data taken from mysql, with every keypress.
So if the 1st key pressed is A it shows all data from A, if the second
key pressed is b it shows only the data from Ab etc..

I have made a few efforts with "Left$":

rs33 = MODMain.$Con.exec("select * from Aplianikis where Left
$(Eponimia,1) = '" & Left$(tEponimia.Text, 1) & "'")
ListBox1.Add = rs33!Eponimia

but it fails with error:

"Query failed: FUNCTION Apodeixi1.Left$ does not exist"

----

Is there a simple way to use automatic completion in a program?







From dr.diesel at ...626...  Sat Feb 13 21:42:12 2010
From: dr.diesel at ...626... (Dr.Diesel)
Date: Sat, 13 Feb 2010 12:42:12 -0800 (PST)
Subject: [Gambas-user]  SVN 2697 - Open Project Hangs
Message-ID: <27578581.post@...1379...>


Running today's trunk SVN, 2697.  When I try to open a project by clicking on
the open project button on the startup splash screen gambas hangs with the
busy cursor.  No output on console, just sits there.  This is my first svn
pull in about a week, all was ok before.  Thanks

  
-- 
View this message in context: http://old.nabble.com/SVN-2697---Open-Project-Hangs-tp27578581p27578581.html
Sent from the gambas-user mailing list archive at Nabble.com.




From dosida at ...626...  Sat Feb 13 21:51:05 2010
From: dosida at ...626... (Dimitris Anogiatis)
Date: Sat, 13 Feb 2010 13:51:05 -0700
Subject: [Gambas-user] automatic completion of textbox with mysql data
In-Reply-To: <1266092292.8912.13.camel@...2376...>
References: <1266092292.8912.13.camel@...2376...>
Message-ID: <82bffccf1002131251i47f65485y7d2d568037f6d264@...627...>

Vasilli,

perhaps you want to try this one

rs33 = MODMain.$Con.exec("select * from Aplianikis where " &
Left$(Eponimia,1) & " = '" & Left$(tEponimia.Text, 1) & "'")
ListBox1.Add = rs33!Eponimia

I hope this helps

Regards
Dimitris

On Sat, Feb 13, 2010 at 1:18 PM, Vassilis K  wrote:

> I'm trying to make a routine that fills a dropdown menu of a textbox OR
> fills a listbox with data taken from mysql, with every keypress.
> So if the 1st key pressed is A it shows all data from A, if the second
> key pressed is b it shows only the data from Ab etc..
>
> I have made a few efforts with "Left$":
>
> rs33 = MODMain.$Con.exec("select * from Aplianikis where Left
> $(Eponimia,1) = '" & Left$(tEponimia.Text, 1) & "'")
> ListBox1.Add = rs33!Eponimia
>
> but it fails with error:
>
> "Query failed: FUNCTION Apodeixi1.Left$ does not exist"
>
> ----
>
> Is there a simple way to use automatic completion in a program?
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


From doriano.blengino at ...1909...  Sat Feb 13 23:23:06 2010
From: doriano.blengino at ...1909... (Doriano Blengino)
Date: Sat, 13 Feb 2010 23:23:06 +0100
Subject: [Gambas-user] automatic completion of textbox with mysql data
In-Reply-To: <82bffccf1002131251i47f65485y7d2d568037f6d264@...627...>
References: <1266092292.8912.13.camel@...2376...>
	<82bffccf1002131251i47f65485y7d2d568037f6d264@...627...>
Message-ID: <4B77264A.3020502@...1909...>

Dimitris Anogiatis ha scritto:
> Vasilli,
>
> perhaps you want to try this one
>
> rs33 = MODMain.$Con.exec("select * from Aplianikis where " &
> Left$(Eponimia,1) & " = '" & Left$(tEponimia.Text, 1) & "'")
> ListBox1.Add = rs33!Eponimia
>
> I hope this helps
>
> Regards
> Dimitris
>
> On Sat, Feb 13, 2010 at 1:18 PM, Vassilis K  wrote:
>
>   
>> I'm trying to make a routine that fills a dropdown menu of a textbox OR
>> fills a listbox with data taken from mysql, with every keypress.
>> So if the 1st key pressed is A it shows all data from A, if the second
>> key pressed is b it shows only the data from Ab etc..
>>
>> I have made a few efforts with "Left$":
>>
>> rs33 = MODMain.$Con.exec("select * from Aplianikis where Left
>> $(Eponimia,1) = '" & Left$(tEponimia.Text, 1) & "'")
>> ListBox1.Add = rs33!Eponimia
>>
>> but it fails with error:
>>
>> "Query failed: FUNCTION Apodeixi1.Left$ does not exist"
>>
>> ----
>>
>> Is there a simple way to use automatic completion in a program?
>>
>>     
First: are you sure that "left$()" is a SQL syntax? I think the dollar 
sign is out of place; then, surely there is a function to extract a part 
of a string, may be it is not called "left" (but may be it is).

Second: would not be more simple to search for "Eponimia >= ..."?

Regards,

-- 
Doriano Blengino

"Listen twice before you speak.
This is why we have two ears, but only one mouth."




From gambas at ...1...  Sun Feb 14 02:16:49 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Sun, 14 Feb 2010 02:16:49 +0100
Subject: [Gambas-user] SVN 2697 - Open Project Hangs
In-Reply-To: <27578581.post@...1379...>
References: <27578581.post@...1379...>
Message-ID: <201002140216.49403.gambas@...1...>

> Running today's trunk SVN, 2697.  When I try to open a project by clicking
>  on the open project button on the startup splash screen gambas hangs with
>  the busy cursor.  No output on console, just sits there.  This is my first
>  svn pull in about a week, all was ok before.  Thanks
> 

Is it better with revision 2698? Did you do a ./reconf && ./configure -C 
before recompiling?

-- 
Beno?t Minisini



From kobolds at ...2041...  Sun Feb 14 03:32:54 2010
From: kobolds at ...2041... (kobolds)
Date: Sat, 13 Feb 2010 18:32:54 -0800 (PST)
Subject: [Gambas-user] 32 or 64?
In-Reply-To: <27574204.post@...1379...>
References: <27574204.post@...1379...>
Message-ID: <27580422.post@...1379...>


I use 64 , I switch to gambas is because of 64bit . 

right now I don't see any reason to waste time on 32bit. 


yuhej wrote:
> 
> Hello List,
> 
> I have to change my computer and need to install Ubuntu (9.10).
> From the Gambas point of view is there any difference? What I develop will
> be installed on 32 bit Ubuntu. Is there any advantage to use the 64 bit or
> any drawback?
> 
> Thanks,
> Robi
> 

-- 
View this message in context: http://old.nabble.com/32-or-64--tp27574204p27580422.html
Sent from the gambas-user mailing list archive at Nabble.com.




From dr.diesel at ...626...  Sun Feb 14 04:36:38 2010
From: dr.diesel at ...626... (Dr.Diesel)
Date: Sat, 13 Feb 2010 19:36:38 -0800 (PST)
Subject: [Gambas-user] SVN 2697 - Open Project Hangs
In-Reply-To: <201002140216.49403.gambas@...1...>
References: <27578581.post@...1379...>
	<201002140216.49403.gambas@...1...>
Message-ID: <27580659.post@...1379...>




Beno?t Minisini wrote:
> 
>> Running today's trunk SVN, 2697.  When I try to open a project by
>> clicking
>>  on the open project button on the startup splash screen gambas hangs
>> with
>>  the busy cursor.  No output on console, just sits there.  This is my
>> first
>>  svn pull in about a week, all was ok before.  Thanks
>> 
> 
> Is it better with revision 2698? Did you do a ./reconf && ./configure -C 
> before recompiling?
> 
> -- 
> Beno?t Minisini
> 

Always run ./reconf && ./configure -C and 2698 is working!  Thank you!
-- 
View this message in context: http://old.nabble.com/SVN-2697---Open-Project-Hangs-tp27578581p27580659.html
Sent from the gambas-user mailing list archive at Nabble.com.




From gambas at ...2377...  Sun Feb 14 06:45:12 2010
From: gambas at ...2377... (George)
Date: Sun, 14 Feb 2010 00:45:12 -0500
Subject: [Gambas-user] BUG: Problem with DateAdd function
In-Reply-To: <201002132051.35580.gambas@...1...>
References: <4B76F4DD.5060001@...2377...>
	<201002132051.35580.gambas@...1...>
Message-ID: <1583dded1002132145h63d7ab2cvfe7a5d91fbf8e615@...627...>

Beno?t,

Thanks for the quick response.  I had thought my Gambas was
up-to-date, but apparently the repository I was using is not current.
At least I'm aware of that now.

Thank you,

-George

2010/2/13 Beno?t Minisini :

> The bug has been fixed in revision #2697.
>
> Regards,
>
> --
> Beno?t Minisini
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From rterry at ...1946...  Sun Feb 14 11:15:09 2010
From: rterry at ...1946... (richard terry)
Date: Sun, 14 Feb 2010 21:15:09 +1100
Subject: [Gambas-user] [Gambas-devel] PDF example
In-Reply-To: <201002141110.17945.gambas@...1...>
References: <201002130805.45637.rterry@...1946...>
	<201002141758.54088.rterry@...1946...>
	<201002141110.17945.gambas@...1...>
Message-ID: <201002142115.09238.rterry@...1946...>

On Sunday 14 February 2010 21:10:17 you wrote:
> > On Sunday 14 February 2010 04:05:12 you wrote:
> > > > On Saturday 13 February 2010 09:55:21 you wrote:
> > > > > > Hi List,
> > > > > >
> > > > > > I wondered if anyone was using /maintaining the pdf code from the
> > > > > > pdf example, as there are  a number of problems with it and
> > > > > > missing features.
> > > > > >
> > > > > > I've emailed the original author, but the info at top of the file
> > > > > > is quite old (2007) and Daniel says he is not able to contribute
> > > > > > anymore.
> > > > > >
> > > > > > Any info appreciated. I'd be happy to have a go at maintaining it
> > > > > > but would need some help as I'm not that clever with anything but
> > > > > > basic stuff.
> > > > > >
> > > > > > Richard
> > > > >
> > > > > Please give more details about what you want to do. I have recently
> > > > > fixed a few problems in the gb.pdf component, and modified the
> > > > > example accordingly.
> > > > >
> > > > > But if you want to play with it and add features, no problem! Just
> > > > > write clean and readable code, as it is an example.
> > > > >
> > > > > Regards,
> > > >
> > > > I had a quick look at this with my limited abilities.
> > > >
> > > > the loading of an indexed file into the tree control dosn't seem to
> > > > work if you step through it - I tried many pdf files eg postgresql
> > > > documentation and compared what it should be in okular with what
> > > > happend as you stepped through the routine that loads the tree
> > > > control, and it never seems to get into that section with the
> > > > hpdf.index.children.
> > > >
> > > > Not sure where to head with this
> > > >
> > > > Regards
> > > >
> > > > Richard
> > >
> > > I can read the PDF, but apparently the component gets the index, but
> > > never returns the associated pages correctly.
> >
> > I'm keen to get this working, can you give me any hint how to progress.
> >  When I looked at the index didn't look correct, maybe just my
> >  interpretation.
> >
> > If you give me clues I'll try and work on it.
> >
> > regards
> >
> > Richard
> 
> The problem lays apparently in the C++ code of the component: can you deal
> with it?
> 
Sorry, I know no c++ at all. What a pity. 

Maybe some kind soul on the list could help. Unfortunately I can't ask Ian as 
he is currently not programming, tied up with his psych training I'm afraid.

I'll cc this to the lists in hope of help

Let me know

Richard



From Karl.Reinl at ...2345...  Sun Feb 14 12:17:42 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Sun, 14 Feb 2010 12:17:42 +0100
Subject: [Gambas-user] did I miss something, or is that a bug
Message-ID: <1266146262.7785.7.camel@...40...>

Salut,

did I miss something, or is that a bug : 

on xterm :

me at ...2378...:~$ gbx2 -e /tmp/testArchivCopy.pdf
Unexpected '/'

at IDE Debug 
? eval("/tmp/testArchivCopy.pdf")
Unexpected '/'

? eval("/tmp/testArchivCopy_" & Format(Date(), "yyyymmdd") &
Replace(CStr(Time()), ":", "") & ".pdf")
Unexpected '/'

-- 
Amicalement
Charlie

[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.24-27-generic
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 8.04.4 LTS"

[System]
CPUArchitecture=i686
TotalRam=506932 kB

[Gambas]
Gambas1=gbx-1.0.17
Gambas1Path=/usr/bin/gbx

Gambas2=2.20.0                Revision:  2697
Gambas2Path=/usr/local/bin/gbx2

Gambas3=2.99.0                Revision: 2648 (can't compile actually)
Gambas3Path=/usr/local/bin/gbx3




From jussi.lahtinen at ...626...  Sun Feb 14 15:41:18 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sun, 14 Feb 2010 16:41:18 +0200
Subject: [Gambas-user] did I miss something, or is that a bug
In-Reply-To: <1266146262.7785.7.camel@...40...>
References: <1266146262.7785.7.camel@...40...>
Message-ID: <384d3901002140641k2530b1b7y4906ba13b7578fe4@...627...>

What are you trying to do?

~$ gbx2 -e 1+1
result: 2

? eval("1+2")
result: 3

http://gambasdoc.org/help/lang/eval

Jussi




On Sun, Feb 14, 2010 at 13:17, Charlie Reinl  wrote:
> Salut,
>
> did I miss something, or is that a bug :
>
> on xterm :
>
> me at ...2378...:~$ gbx2 -e /tmp/testArchivCopy.pdf
> Unexpected '/'
>
> at IDE Debug
> ? eval("/tmp/testArchivCopy.pdf")
> Unexpected '/'
>
> ? eval("/tmp/testArchivCopy_" & Format(Date(), "yyyymmdd") &
> Replace(CStr(Time()), ":", "") & ".pdf")
> Unexpected '/'
>
> --
> Amicalement
> Charlie
>
> [OperatingSystem]
> OperatingSystem=Linux
> KernelRelease=2.6.24-27-generic
> DistributionVendor=Ubuntu
> DistributionRelease="Ubuntu 8.04.4 LTS"
>
> [System]
> CPUArchitecture=i686
> TotalRam=506932 kB
>
> [Gambas]
> Gambas1=gbx-1.0.17
> Gambas1Path=/usr/bin/gbx
>
> Gambas2=2.20.0 ? ? ? ? ? ? ? ?Revision: ?2697
> Gambas2Path=/usr/local/bin/gbx2
>
> Gambas3=2.99.0 ? ? ? ? ? ? ? ?Revision: 2648 (can't compile actually)
> Gambas3Path=/usr/local/bin/gbx3
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From Karl.Reinl at ...2345...  Sun Feb 14 16:23:20 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Sun, 14 Feb 2010 16:23:20 +0100
Subject: [Gambas-user] did I miss something, or is that a bug
In-Reply-To: <384d3901002140641k2530b1b7y4906ba13b7578fe4@...627...>
References: <1266146262.7785.7.camel@...40...>
	<384d3901002140641k2530b1b7y4906ba13b7578fe4@...627...>
Message-ID: <1266161000.7785.10.camel@...40...>

Am Sonntag, den 14.02.2010, 16:41 +0200 schrieb Jussi Lahtinen:
> What are you trying to do?
> 
> ~$ gbx2 -e 1+1
> result: 2
> 
> ? eval("1+2")
> result: 3
> 
> http://gambasdoc.org/help/lang/eval
> 
> Jussi
> 
> 
> 
> 
> On Sun, Feb 14, 2010 at 13:17, Charlie Reinl  wrote:
> > Salut,
> >
> > did I miss something, or is that a bug :
> >
> > on xterm :
> >
> > me at ...2378...:~$ gbx2 -e /tmp/testArchivCopy.pdf
> > Unexpected '/'
> >
> > at IDE Debug
> > ? eval("/tmp/testArchivCopy.pdf")
> > Unexpected '/'
> >
> > ? eval("/tmp/testArchivCopy_" & Format(Date(), "yyyymmdd") &
> > Replace(CStr(Time()), ":", "") & ".pdf")
> > Unexpected '/'
> >
> > --
> > Amicalement
> > Charlie
> >
> > [OperatingSystem]
> > OperatingSystem=Linux
> > KernelRelease=2.6.24-27-generic
> > DistributionVendor=Ubuntu
> > DistributionRelease="Ubuntu 8.04.4 LTS"
> >
> > [System]
> > CPUArchitecture=i686
> > TotalRam=506932 kB
> >
> > [Gambas]
> > Gambas1=gbx-1.0.17
> > Gambas1Path=/usr/bin/gbx
> >
> > Gambas2=2.20.0                Revision:  2697
> > Gambas2Path=/usr/local/bin/gbx2
> >
> > Gambas3=2.99.0                Revision: 2648 (can't compile actually)
> > Gambas3Path=/usr/local/bin/gbx3
> >

Salut,

I try to work with a string in that case a Path and eval tries to
divide.

 
-- 
Amicalement
Charlie




From jussi.lahtinen at ...626...  Sun Feb 14 19:00:49 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sun, 14 Feb 2010 20:00:49 +0200
Subject: [Gambas-user] did I miss something, or is that a bug
In-Reply-To: <1266161000.7785.10.camel@...40...>
References: <1266146262.7785.7.camel@...40...>
	<384d3901002140641k2530b1b7y4906ba13b7578fe4@...627...> 
	<1266161000.7785.10.camel@...40...>
Message-ID: <384d3901002141000m3de45d21u3ad328e1a7244d87@...627...>

> I try to work with a string in that case a Path and eval tries to
> divide.

 Sorry, I still don't understand what you are trying to do.
 Eval tries to divide, that is very much expected.

 "? eval("/tmp/testArchivCopy.pdf")"
 Doesn't make any sense, "/tmp/testArchivCopy.pdf" is not mathematical
expression.
 What is the result you are expecting?


http://gambasdoc.org/help/lang/eval
"Evaluates an expression and returns its value."


Jussi



From Karl.Reinl at ...2345...  Sun Feb 14 19:20:34 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Sun, 14 Feb 2010 19:20:34 +0100
Subject: [Gambas-user] did I miss something, or is that a bug
In-Reply-To: <384d3901002141000m3de45d21u3ad328e1a7244d87@...627...>
References: <1266146262.7785.7.camel@...40...>
	<384d3901002140641k2530b1b7y4906ba13b7578fe4@...627...>
	<1266161000.7785.10.camel@...40...>
	<384d3901002141000m3de45d21u3ad328e1a7244d87@...627...>
Message-ID: <1266171634.7785.15.camel@...40...>

Am Sonntag, den 14.02.2010, 20:00 +0200 schrieb Jussi Lahtinen:
> > I try to work with a string in that case a Path and eval tries to
> > divide.
> 
>  Sorry, I still don't understand what you are trying to do.
>  Eval tries to divide, that is very much expected.
> 
>  "? eval("/tmp/testArchivCopy.pdf")"
>  Doesn't make any sense, "/tmp/testArchivCopy.pdf" is not mathematical
> expression.
>  What is the result you are expecting?
> 
> 
> http://gambasdoc.org/help/lang/eval
> "Evaluates an expression and returns its value."
> 
> 
> Jussi

Salut Jussi,

the original is:
? eval("/tmp/testArchivCopy_" & Format(Date(), "yyyymmdd") &
Replace(CStr(Time()), ":", "") & ".pdf")

that was the last in the first mail. And I expect something like :
"/tmp/testArchivCopy_20100214130107.408.pdf"


-- 
Amicalement
Charlie




From jussi.lahtinen at ...626...  Sun Feb 14 19:30:36 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sun, 14 Feb 2010 20:30:36 +0200
Subject: [Gambas-user] did I miss something, or is that a bug
In-Reply-To: <1266171634.7785.15.camel@...40...>
References: <1266146262.7785.7.camel@...40...>
	<384d3901002140641k2530b1b7y4906ba13b7578fe4@...627...> 
	<1266161000.7785.10.camel@...40...>
	<384d3901002141000m3de45d21u3ad328e1a7244d87@...627...> 
	<1266171634.7785.15.camel@...40...>
Message-ID: <384d3901002141030o611d1c6fg7cfb583bd9ee37c5@...627...>

It works perfectly without eval.
Print "/tmp/testArchivCopy_" & Format(Date(), "yyyymmdd") &
Replace(CStr(Time()), ":", "") & ".pdf"
Result: /tmp/testArchivCopy_20100214202540.428.pdf

Eval is only for math! Like Eval("1+2") or Eval("1/sqr(eo*uo)", cExpr).

Jussi


On Sun, Feb 14, 2010 at 20:20, Charlie Reinl  wrote:
> Am Sonntag, den 14.02.2010, 20:00 +0200 schrieb Jussi Lahtinen:
>> > I try to work with a string in that case a Path and eval tries to
>> > divide.
>>
>> ?Sorry, I still don't understand what you are trying to do.
>> ?Eval tries to divide, that is very much expected.
>>
>> ?"? eval("/tmp/testArchivCopy.pdf")"
>> ?Doesn't make any sense, "/tmp/testArchivCopy.pdf" is not mathematical
>> expression.
>> ?What is the result you are expecting?
>>
>>
>> http://gambasdoc.org/help/lang/eval
>> "Evaluates an expression and returns its value."
>>
>>
>> Jussi
>
> Salut Jussi,
>
> the original is:
> ? eval("/tmp/testArchivCopy_" & Format(Date(), "yyyymmdd") &
> Replace(CStr(Time()), ":", "") & ".pdf")
>
> that was the last in the first mail. And I expect something like :
> "/tmp/testArchivCopy_20100214130107.408.pdf"
>
>
> --
> Amicalement
> Charlie
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From Karl.Reinl at ...2345...  Sun Feb 14 20:42:13 2010
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Sun, 14 Feb 2010 20:42:13 +0100
Subject: [Gambas-user] did I miss something, or is that a bug
In-Reply-To: <384d3901002141030o611d1c6fg7cfb583bd9ee37c5@...627...>
References: <1266146262.7785.7.camel@...40...>
	<384d3901002140641k2530b1b7y4906ba13b7578fe4@...627...>
	<1266161000.7785.10.camel@...40...>
	<384d3901002141000m3de45d21u3ad328e1a7244d87@...627...>
	<1266171634.7785.15.camel@...40...>
	<384d3901002141030o611d1c6fg7cfb583bd9ee37c5@...627...>
Message-ID: <1266176533.7785.31.camel@...40...>

Am Sonntag, den 14.02.2010, 20:30 +0200 schrieb Jussi Lahtinen:
> It works perfectly without eval.
> Print "/tmp/testArchivCopy_" & Format(Date(), "yyyymmdd") &
> Replace(CStr(Time()), ":", "") & ".pdf"
> Result: /tmp/testArchivCopy_20100214202540.428.pdf
> 
> Eval is only for math! Like Eval("1+2") or Eval("1/sqr(eo*uo)", cExpr).
> 
> Jussi
> 
> 
> On Sun, Feb 14, 2010 at 20:20, Charlie Reinl  wrote:
> > Am Sonntag, den 14.02.2010, 20:00 +0200 schrieb Jussi Lahtinen:
> >> > I try to work with a string in that case a Path and eval tries to
> >> > divide.
> >>
> >>  Sorry, I still don't understand what you are trying to do.
> >>  Eval tries to divide, that is very much expected.
> >>
> >>  "? eval("/tmp/testArchivCopy.pdf")"
> >>  Doesn't make any sense, "/tmp/testArchivCopy.pdf" is not mathematical
> >> expression.
> >>  What is the result you are expecting?
> >>
> >>
> >> http://gambasdoc.org/help/lang/eval
> >> "Evaluates an expression and returns its value."
> >>
> >>
> >> Jussi
> >
> > Salut Jussi,
> >
> > the original is:
> > ? eval("/tmp/testArchivCopy_" & Format(Date(), "yyyymmdd") &
> > Replace(CStr(Time()), ":", "") & ".pdf")
> >
> > that was the last in the first mail. And I expect something like :
> > "/tmp/testArchivCopy_20100214130107.408.pdf"
> >
> >
> > --
> > Amicalement
> > Charlie
> >
Salut Jussi,

no, not only for math, even at http://gambasdoc.org/help/lang/eval 
it is shown.

And that works :
  gbx2 -e "Format(Date(), \"yyyymmdd\")" 
  
  gbx2 -e "iif(1=2,True,False)" 
  
  gbx2 -e "\"/tmp/testArchivCopy_\" & Format(Date(), \"yyyymmdd\")"

I have to pass it as a String, if not the / is seen as the math /.

Thanks anyway.
Charlie




From jussi.lahtinen at ...626...  Sun Feb 14 20:47:30 2010
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sun, 14 Feb 2010 21:47:30 +0200
Subject: [Gambas-user] did I miss something, or is that a bug
In-Reply-To: <1266176533.7785.31.camel@...40...>
References: <1266146262.7785.7.camel@...40...>
	<384d3901002140641k2530b1b7y4906ba13b7578fe4@...627...> 
	<1266161000.7785.10.camel@...40...>
	<384d3901002141000m3de45d21u3ad328e1a7244d87@...627...> 
	<1266171634.7785.15.camel@...40...>
	<384d3901002141030o611d1c6fg7cfb583bd9ee37c5@...627...> 
	<1266176533.7785.31.camel@...40...>
Message-ID: <384d3901002141147p3c18b22dwc52344b52ff4805a@...627...>

"AS Variant"
OK, didn't notice...
Seems that you have worked your problem out!

Jussi



On Sun, Feb 14, 2010 at 21:42, Charlie Reinl  wrote:
> Am Sonntag, den 14.02.2010, 20:30 +0200 schrieb Jussi Lahtinen:
>> It works perfectly without eval.
>> Print "/tmp/testArchivCopy_" & Format(Date(), "yyyymmdd") &
>> Replace(CStr(Time()), ":", "") & ".pdf"
>> Result: /tmp/testArchivCopy_20100214202540.428.pdf
>>
>> Eval is only for math! Like Eval("1+2") or Eval("1/sqr(eo*uo)", cExpr).
>>
>> Jussi
>>
>>
>> On Sun, Feb 14, 2010 at 20:20, Charlie Reinl  wrote:
>> > Am Sonntag, den 14.02.2010, 20:00 +0200 schrieb Jussi Lahtinen:
>> >> > I try to work with a string in that case a Path and eval tries to
>> >> > divide.
>> >>
>> >> ?Sorry, I still don't understand what you are trying to do.
>> >> ?Eval tries to divide, that is very much expected.
>> >>
>> >> ?"? eval("/tmp/testArchivCopy.pdf")"
>> >> ?Doesn't make any sense, "/tmp/testArchivCopy.pdf" is not mathematical
>> >> expression.
>> >> ?What is the result you are expecting?
>> >>
>> >>
>> >> http://gambasdoc.org/help/lang/eval
>> >> "Evaluates an expression and returns its value."
>> >>
>> >>
>> >> Jussi
>> >
>> > Salut Jussi,
>> >
>> > the original is:
>> > ? eval("/tmp/testArchivCopy_" & Format(Date(), "yyyymmdd") &
>> > Replace(CStr(Time()), ":", "") & ".pdf")
>> >
>> > that was the last in the first mail. And I expect something like :
>> > "/tmp/testArchivCopy_20100214130107.408.pdf"
>> >
>> >
>> > --
>> > Amicalement
>> > Charlie
>> >
> Salut Jussi,
>
> no, not only for math, even at http://gambasdoc.org/help/lang/eval
> it is shown.
>
> And that works :
> ?gbx2 -e "Format(Date(), \"yyyymmdd\")"
>
> ?gbx2 -e "iif(1=2,True,False)"
>
> ?gbx2 -e "\"/tmp/testArchivCopy_\" & Format(Date(), \"yyyymmdd\")"
>
> I have to pass it as a String, if not the / is seen as the math /.
>
> Thanks anyway.
> Charlie
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From joshiggins at ...1601...  Mon Feb 15 14:59:00 2010
From: joshiggins at ...1601... (Joshua Higgins)
Date: Mon, 15 Feb 2010 13:59:00 +0000
Subject: [Gambas-user] changing the picture in a columnview item
Message-ID: <4247f5441002150559k5f5c575ap4d85681c54a49e9d@...627...>

Hi list,

I'm creating a columnview item to show status, like this:

MachineView.Add("192.168.0.1", "router", Picture.Load("waiting.png"))
...
MachineView.Item[4] = "Waiting"

But then changing it later on as a status update comes in like this:

  MachineView[thekey][4] = "Online"

My question is, how can I change the picture that I originally created this
item with? I want to change it to either online.png or offline.png

Thanks.

-- 
joshua higgins
>>>>>>------


From gambas.fr at ...626...  Mon Feb 15 16:34:24 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Mon, 15 Feb 2010 16:34:24 +0100
Subject: [Gambas-user] changing the picture in a columnview item
In-Reply-To: <4247f5441002150559k5f5c575ap4d85681c54a49e9d@...627...>
References: <4247f5441002150559k5f5c575ap4d85681c54a49e9d@...627...>
Message-ID: <6324a42a1002150734x73746e8bu6b1673f0ed4252a5@...627...>

 MachineView[thekey].Picture = Picture["waiting.png"]

2010/2/15 Joshua Higgins :
> Hi list,
>
> I'm creating a columnview item to show status, like this:
>
> MachineView.Add("192.168.0.1", "router", Picture.Load("waiting.png"))
> ...
> MachineView.Item[4] = "Waiting"
>
> But then changing it later on as a status update comes in like this:
>
> ?MachineView[thekey][4] = "Online"
>
> My question is, how can I change the picture that I originally created this
> item with? I want to change it to either online.png or offline.png
>
> Thanks.
>
> --
> joshua higgins
>>>>>>>------
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From joshiggins at ...1601...  Mon Feb 15 16:38:22 2010
From: joshiggins at ...1601... (Joshua Higgins)
Date: Mon, 15 Feb 2010 15:38:22 +0000
Subject: [Gambas-user] changing the picture in a columnview item
In-Reply-To: <6324a42a1002150734x73746e8bu6b1673f0ed4252a5@...627...>
References: <4247f5441002150559k5f5c575ap4d85681c54a49e9d@...627...> 
	<6324a42a1002150734x73746e8bu6b1673f0ed4252a5@...627...>
Message-ID: <4247f5441002150738i49a412f1m7ac0b979e199ca8d@...627...>

Of course, in the simplest of places!


From sevoir75 at ...626...  Tue Feb 16 16:45:31 2010
From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert)
Date: Tue, 16 Feb 2010 16:45:31 +0100
Subject: [Gambas-user] Bad package group generating ? from Gambas2.13
Message-ID: <1266335131.17032.3.camel@...1964...>

Hi,

I uploaded a test package to launchpad ppa and I get errors:
Witch package group is valid in Ubuntu?


Launchpad error message:
...
savoir-hu-kepkezelo_0.0.6-1.diff.gz: Unknown section 'Archiving'
Further error processing not possible because of a critical previous
error.

Regards, Sevoir




From gambas at ...1...  Tue Feb 16 19:22:40 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Tue, 16 Feb 2010 19:22:40 +0100
Subject: [Gambas-user] Bad package group generating ? from Gambas2.13
In-Reply-To: <1266335131.17032.3.camel@...1964...>
References: <1266335131.17032.3.camel@...1964...>
Message-ID: <201002161922.40956.gambas@...1...>

> Hi,
> 
> I uploaded a test package to launchpad ppa and I get errors:
> Witch package group is valid in Ubuntu?
> 
> 
> Launchpad error message:
> ...
> savoir-hu-kepkezelo_0.0.6-1.diff.gz: Unknown section 'Archiving'
> Further error processing not possible because of a critical previous
> error.
> 
> Regards, Sevoir
> 

There is a package group list in the IDE for each supported distribution. I 
guess that it not valid anymore... If you can find where this list is located, 
I will update the IDE!

-- 
Beno?t Minisini



From sevoir75 at ...626...  Tue Feb 16 23:13:01 2010
From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert)
Date: Tue, 16 Feb 2010 23:13:01 +0100
Subject: [Gambas-user] Bad package group generating ? from Gambas2.13
In-Reply-To: <201002161922.40956.gambas@...1...>
References: <1266335131.17032.3.camel@...1964...>
	<201002161922.40956.gambas@...1...>
Message-ID: <1266358381.2483.2.camel@...1964...>

Hi Benoit!

I found these documents about valid Debian/Ubuntu sections alias package
groups:
http://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
https://wiki.ubuntu.com/PackagingGuide/Complete#control

regards, Sevoir

2010. 02. 16, kedd keltez?ssel 19.22-kor Beno?t Minisini ezt ?rta:
> > Hi,
> > 
> > I uploaded a test package to launchpad ppa and I get errors:
> > Witch package group is valid in Ubuntu?
> > 
> > 
> > Launchpad error message:
> > ...
> > savoir-hu-kepkezelo_0.0.6-1.diff.gz: Unknown section 'Archiving'
> > Further error processing not possible because of a critical previous
> > error.
> > 
> > Regards, Sevoir
> > 
> 
> There is a package group list in the IDE for each supported distribution. I 
> guess that it not valid anymore... If you can find where this list is located, 
> I will update the IDE!
> 





From gambas at ...1...  Wed Feb 17 00:04:14 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Wed, 17 Feb 2010 00:04:14 +0100
Subject: [Gambas-user] Bad package group generating ? from Gambas2.13
In-Reply-To: <1266358381.2483.2.camel@...1964...>
References: <1266335131.17032.3.camel@...1964...>
	<201002161922.40956.gambas@...1...>
	<1266358381.2483.2.camel@...1964...>
Message-ID: <201002170004.14534.gambas@...1...>

> Hi Benoit!
> 
> I found these documents about valid Debian/Ubuntu sections alias package
> groups:
> http://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
> https://wiki.ubuntu.com/PackagingGuide/Complete#control
> 
> regards, Sevoir
> 

OK, good. Can you compile Gambas 2 from sources and try the latest revision 
(#2700) to test the fix?

-- 
Beno?t Minisini



From sevoir75 at ...626...  Wed Feb 17 00:28:20 2010
From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert)
Date: Wed, 17 Feb 2010 00:28:20 +0100
Subject: [Gambas-user] Bad package group generating ? from Gambas2.13
In-Reply-To: <201002170004.14534.gambas@...1...>
References: <1266335131.17032.3.camel@...1964...>
	<201002161922.40956.gambas@...1...>
	<1266358381.2483.2.camel@...1964...>
	<201002170004.14534.gambas@...1...>
Message-ID: <1266362900.2483.13.camel@...1964...>

Hi Benoit!

I solved problem:

>From Gambas2.13 > Load my application > Make installation package > Fill
out changes > I selected Ubuntu version > I checked anyone package group
> I checked a correct menu place > Generating package.

I have an original application_0.0.x.orig.tar.gz > I unpacked files.
In debian directory, in changelog: all "unreleased" to "karmic"
same dir, in control file: "Section: xxx" to  "Section: net"

After in application_0.0.x.orig/ dir: debuild -S -sa
and uploaded my launchpad ppa and correct all file ;-)

Regards, Sevoir

2010. 02. 17, szerda keltez?ssel 00.04-kor Beno?t Minisini ezt ?rta:
> > Hi Benoit!
> > 
> > I found these documents about valid Debian/Ubuntu sections alias package
> > groups:
> > http://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
> > https://wiki.ubuntu.com/PackagingGuide/Complete#control
> > 
> > regards, Sevoir
> > 
> 
> OK, good. Can you compile Gambas 2 from sources and try the latest revision 
> (#2700) to test the fix?
> 





From joshiggins at ...1601...  Sat Feb 20 18:26:51 2010
From: joshiggins at ...1601... (Joshua Higgins)
Date: Sat, 20 Feb 2010 17:26:51 +0000
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
Message-ID: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...>

Hi list, I've been writing some scripts and keep getting this Error 24 No
Startup Method. This is what I get when I run them directly from the
console:

gbw2 -v index.cgi
gbs: compiling server page
--------------------
USE "gb.web"
PUBLIC SUB Main()
  Response.Buffered = TRUE
  Response.Begin
  _PrintPage()
  Response.End
END

PRIVATE SUB _PrintPage()
DIM sEnv AS String
PRINT "html stuff is here"
END

--------------------
gbs: create project
gbs: process file: /tmp/gambas.0/16002/gs.tmp
ERROR: #24: No startup method

I've tried this on two different pc's, both with a clean ubuntu 9.10 install
on and gambas 2.13. The scripts work the first time, then after a couple of
minutes literally just stops working and I have no idea why.

If anyone could shed any light on this it would be much appreciated.
(I have attached the script that I'm running thats generating this error for
me. The strange thing is this script worked the first time and I haven't
made any changes to it)
Thanks.

-- 
joshua higgins
>>>>>>------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cgi
Type: application/octet-stream
Size: 457 bytes
Desc: not available
URL: 

From gambas at ...1...  Sat Feb 20 18:53:23 2010
From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=)
Date: Sat, 20 Feb 2010 18:53:23 +0100
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
In-Reply-To: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...>
References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...>
Message-ID: <201002201853.23419.gambas@...1...>

> Hi list, I've been writing some scripts and keep getting this Error 24 No
> Startup Method. This is what I get when I run them directly from the
> console:
> 
> gbw2 -v index.cgi
> gbs: compiling server page
> --------------------
> USE "gb.web"
> PUBLIC SUB Main()
>   Response.Buffered = TRUE
>   Response.Begin
>   _PrintPage()
>   Response.End
> END
> 
> PRIVATE SUB _PrintPage()
> DIM sEnv AS String
> PRINT "html stuff is here"
> END
> 
> --------------------
> gbs: create project
> gbs: process file: /tmp/gambas.0/16002/gs.tmp
> ERROR: #24: No startup method
> 
> I've tried this on two different pc's, both with a clean ubuntu 9.10
> install on and gambas 2.13. The scripts work the first time, then after a
> couple of minutes literally just stops working and I have no idea why.
> 
> If anyone could shed any light on this it would be much appreciated.
> (I have attached the script that I'm running thats generating this error
> for me. The strange thing is this script worked the first time and I
> haven't made any changes to it)
> Thanks.
> 
> >>>>>>------

I can't reproduce your bug by running it by hand with gambas >= 2.19. 

What happens if you do the same thing? Can you try to upgrade to the latest 
gambas 2 version?

-- 
Beno?t Minisini



From gambas.fr at ...626...  Sat Feb 20 18:56:18 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Sat, 20 Feb 2010 18:56:18 +0100
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
In-Reply-To: <201002201853.23419.gambas@...1...>
References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...>
	<201002201853.23419.gambas@...1...>
Message-ID: <6324a42a1002200956n4ad72fa1p239589cf127e6001@...627...>

the problem comme from gambas 2.13... i've the same on kubuntu
karmic... too old package

Le 20 f?vrier 2010 18:53, Beno?t Minisini
 a ?crit :
>> Hi list, I've been writing some scripts and keep getting this Error 24 No
>> Startup Method. This is what I get when I run them directly from the
>> console:
>>
>> gbw2 -v index.cgi
>> gbs: compiling server page
>> --------------------
>> USE "gb.web"
>> PUBLIC SUB Main()
>> ? Response.Buffered = TRUE
>> ? Response.Begin
>> ? _PrintPage()
>> ? Response.End
>> END
>>
>> PRIVATE SUB _PrintPage()
>> DIM sEnv AS String
>> PRINT "html stuff is here"
>> END
>>
>> --------------------
>> gbs: create project
>> gbs: process file: /tmp/gambas.0/16002/gs.tmp
>> ERROR: #24: No startup method
>>
>> I've tried this on two different pc's, both with a clean ubuntu 9.10
>> install on and gambas 2.13. The scripts work the first time, then after a
>> couple of minutes literally just stops working and I have no idea why.
>>
>> If anyone could shed any light on this it would be much appreciated.
>> (I have attached the script that I'm running thats generating this error
>> for me. The strange thing is this script worked the first time and I
>> haven't made any changes to it)
>> Thanks.
>>
>> >>>>>>------
>
> I can't reproduce your bug by running it by hand with gambas >= 2.19.
>
> What happens if you do the same thing? Can you try to upgrade to the latest
> gambas 2 version?
>
> --
> Beno?t Minisini
>
> ------------------------------------------------------------------------------
> Download Intel® 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From joshiggins at ...1601...  Sat Feb 20 19:40:15 2010
From: joshiggins at ...1601... (Joshua Higgins)
Date: Sat, 20 Feb 2010 18:40:15 +0000
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
In-Reply-To: <6324a42a1002200956n4ad72fa1p239589cf127e6001@...627...>
References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...> 
	<201002201853.23419.gambas@...1...>
	<6324a42a1002200956n4ad72fa1p239589cf127e6001@...627...>
Message-ID: <4247f5441002201040x4bcafe48ia97020673e2cc19a@...627...>

its still not working with 2.18 on lucid, im compiling 2.19 now

-- 
joshua higgins
>>>>>>------


From gambas.fr at ...626...  Sat Feb 20 19:57:21 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Sat, 20 Feb 2010 19:57:21 +0100
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
In-Reply-To: <4247f5441002201040x4bcafe48ia97020673e2cc19a@...627...>
References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...>
	<201002201853.23419.gambas@...1...>
	<6324a42a1002200956n4ad72fa1p239589cf127e6001@...627...>
	<4247f5441002201040x4bcafe48ia97020673e2cc19a@...627...>
Message-ID: <6324a42a1002201057p7026a80bl9e65cc4860c50718@...627...>

me too :-) , il will see if i've the same problem and try to resolve it

2010/2/20 Joshua Higgins :
> its still not working with 2.18 on lucid, im compiling 2.19 now
>
> --
> joshua higgins
>>>>>>>------
> ------------------------------------------------------------------------------
> Download Intel® 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From joshiggins at ...1601...  Sat Feb 20 20:25:41 2010
From: joshiggins at ...1601... (Joshua Higgins)
Date: Sat, 20 Feb 2010 19:25:41 +0000
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
In-Reply-To: <6324a42a1002201057p7026a80bl9e65cc4860c50718@...627...>
References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...> 
	<201002201853.23419.gambas@...1...>
	<6324a42a1002200956n4ad72fa1p239589cf127e6001@...627...> 
	<4247f5441002201040x4bcafe48ia97020673e2cc19a@...627...> 
	<6324a42a1002201057p7026a80bl9e65cc4860c50718@...627...>
Message-ID: <4247f5441002201125i41afe6a0ra712f07a337b0da6@...627...>

The strangest thing has happened. Once I installed all the development
libraries ready to compile gambas 2.19, it started working again with 2.13
installed from the ubuntu repository.

These are what I have just installed:

Development packages:

libice-dev
libsm-dev
x11proto-xext-dev
x11proto-fixes-dev
libxfixes-dev
x11proto-composite-dev
libxext-dev
libxcomposite-dev
x11proto-render-dev
libxrender-dev
libxcursor-dev
x11proto-damage-dev
libxdamage-dev
libexpat1-dev
libfreetype6-dev
libfontconfig1-dev
libxft-dev
libxi-dev
x11proto-xinerama-dev
libxinerama-dev
x11proto-randr-dev
libxrandr-dev
libxt-dev
x11proto-record-dev
libxtst-dev
firebird2.1-dev
libart-2.0-dev
libasound2-dev
libattr1-dev
libacl1-dev
libaspell-dev
libbz2-dev
libgpg-error-dev
libgcrypt11-dev
libtasn1-3-dev
libgnutls-dev
comerr-dev
libkrb5-dev
libcups2-dev
libidn11-dev
libidn11-dev
libjasper-dev
libilmbase-dev
libopenexr-dev
libpcre3-dev
liblua50-dev
liblualib50-dev
libxmu-dev
libjpeg62-dev
liblcms1-dev
libmng-dev
libpng12-dev
libaudio-dev
mesa-common-dev
libgl1-mesa-dev
libglu1-mesa-dev
qt3-dev-tools
libqt3-mt-dev
libsasl2-dev
libtiff4-dev
libxml2-dev
libxslt1-dev
libavahi-common-dev
libdbus-1-dev
libavahi-client-dev
libavahi-qt3-dev
kdelibs4-dev
libslang2-dev
libncurses5-dev
libaa1-dev
libaa1-dev
libglib2.0-dev
libatk1.0-dev
libaudiofile-dev
libidl-dev
liborbit2-dev
libpopt-dev
libbonobo2-dev
libcaca-dev
libsysfs-dev
libdirectfb-dev
libpixman-1-dev
libxcb-render0-dev
libxcb-render-util0-dev
libcairo2-dev
libomnithread3-dev
libomniorb4-dev
libcos4-dev
libldap2-dev
libcurl4-gnutls-dev
libesd0-dev
libogg-dev
libflac-dev
libgif-dev
libglew1.5-dev
libpango1.0-dev
libgtk2.0-dev
libgtkglext1-dev
libltdl-dev
libimlib2-dev
libmikmod2-dev
libmikmod2-dev
libmysqlclient15-dev
libpoppler-dev
libpoppler-glib-dev
libpq-dev
libsqlite0-dev
libqt4-dev
libqt4-opengl-dev
librsvg2-dev
libsage-dev
libsdl1.2-dev
libsdl-image1.2-dev
libvorbis-dev
libsmpeg-dev
libsdl-mixer1.2-dev
libspeex-dev
libsdl-sound1.2-dev
libsdl-ttf2.0-dev
libsqlite3-dev
libv4l-dev
libffi-dev
unixodbc-dev

These other packages were brought in by apt too:

libexpat1
libxmu-headers
libglib2.0-0
libxml2
libkrb5support0
libk5crypto3
libkrb5-3
libgssapi-krb5-2
libgssrpc4
libkdb5-4
libkadm5srv6
firebird2.1-common-doc
firebird2.1-common
libfbclient2
gettext-kde
libcairo2
libavahi-common3
libavahi-client3
libcups2
libgtk2.0-0
libgail18
libgail-common
gtk2-engines-pixbuf
libasound2
called
libpcrecpp0
lua50
libqt3-headers
libtiffxx0c2
kdesdk-scripts
libdirectfb-extra
libomnithread3c2
libomniorb4-1
libcos4-1
libglew1.5
libgtkglext1
libimlib2
libodbcinstq1c2
libpoppler5
libpoppler-glib4
libpq5
libqt3-compat-headers
libqt4-assistant
libqt4-scripttools
libqt4-xmlpatterns
libqt4-help
libqt4-test
qt4-qmake
libsage2
libvorbis0a
libvorbisenc2
libvorbisfile3
libsdl-sound1.2
libsdl-ttf2.0-0
libtool
orbit2

I assume that one of these must be required for gbs2, but I can't think
which one.

-- 
joshua higgins
>>>>>>------


From joshiggins at ...1601...  Sat Feb 20 20:42:01 2010
From: joshiggins at ...1601... (Joshua Higgins)
Date: Sat, 20 Feb 2010 19:42:01 +0000
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
In-Reply-To: <4247f5441002201125i41afe6a0ra712f07a337b0da6@...627...>
References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...> 
	<201002201853.23419.gambas@...1...>
	<6324a42a1002200956n4ad72fa1p239589cf127e6001@...627...> 
	<4247f5441002201040x4bcafe48ia97020673e2cc19a@...627...> 
	<6324a42a1002201057p7026a80bl9e65cc4860c50718@...627...> 
	<4247f5441002201125i41afe6a0ra712f07a337b0da6@...627...>
Message-ID: <4247f5441002201142l7951a5fcy62830bf8c9d5d1@...627...>

Looks like I spoke too soon, its stopped working again.

Just waiting for 2.19 to compile.

--
joshua higgins
>>>>>>------


From gambas.fr at ...626...  Sat Feb 20 20:45:31 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Sat, 20 Feb 2010 20:45:31 +0100
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
In-Reply-To: <4247f5441002201142l7951a5fcy62830bf8c9d5d1@...627...>
References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...>
	<201002201853.23419.gambas@...1...>
	<6324a42a1002200956n4ad72fa1p239589cf127e6001@...627...>
	<4247f5441002201040x4bcafe48ia97020673e2cc19a@...627...>
	<6324a42a1002201057p7026a80bl9e65cc4860c50718@...627...>
	<4247f5441002201125i41afe6a0ra712f07a337b0da6@...627...>
	<4247f5441002201142l7951a5fcy62830bf8c9d5d1@...627...>
Message-ID: <6324a42a1002201145g6607c6ecw41aa7844f5b1aa1f@...627...>

the svn version work correctly

2010/2/20 Joshua Higgins :
> Looks like I spoke too soon, its stopped working again.
>
> Just waiting for 2.19 to compile.
>
> --
> joshua higgins
>>>>>>>------
> ------------------------------------------------------------------------------
> Download Intel® 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From joshiggins at ...1601...  Sat Feb 20 23:07:20 2010
From: joshiggins at ...1601... (Joshua Higgins)
Date: Sat, 20 Feb 2010 22:07:20 +0000
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
In-Reply-To: <6324a42a1002201145g6607c6ecw41aa7844f5b1aa1f@...627...>
References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...> 
	<201002201853.23419.gambas@...1...>
	<6324a42a1002200956n4ad72fa1p239589cf127e6001@...627...> 
	<4247f5441002201040x4bcafe48ia97020673e2cc19a@...627...> 
	<6324a42a1002201057p7026a80bl9e65cc4860c50718@...627...> 
	<4247f5441002201125i41afe6a0ra712f07a337b0da6@...627...> 
	<4247f5441002201142l7951a5fcy62830bf8c9d5d1@...627...> 
	<6324a42a1002201145g6607c6ecw41aa7844f5b1aa1f@...627...>
Message-ID: <4247f5441002201407v49b02c7cs10ce3f726fd484cb@...627...>

I'm still having this problem, I haved tried it now with 2.13, 2.18, 2.19
and svn and they are all the same. I have a feeling its something Ubuntu
related, because it is intermittent. It has been working for the last 30
mins, but now it has stopped again, giving me the Error 24 again and again.

I've noticed that in /tmp/gambas.0/script-cache, there are all my scripts
compiled. It is not working normally (through the web browser), but if I run
one of the scripts directly from the cache when it was compiled 30 mins ago
(when it was working), it works. But the script I've tried to run just now
does not work, even if you manually run the executable in the script cache.

This is all very strange. It seems that sometimes gbw2 will compile an
executable that has the error 24, and sometimes it does not. Or is it the
interpreter, gbr2, that is sometimes producing the error 24?

-- 
joshua higgins
>>>>>>------


From joshiggins at ...1601...  Sun Feb 21 02:06:01 2010
From: joshiggins at ...1601... (Joshua Higgins)
Date: Sun, 21 Feb 2010 01:06:01 +0000
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
In-Reply-To: <4247f5441002201407v49b02c7cs10ce3f726fd484cb@...627...>
References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...> 
	<201002201853.23419.gambas@...1...>
	<6324a42a1002200956n4ad72fa1p239589cf127e6001@...627...> 
	<4247f5441002201040x4bcafe48ia97020673e2cc19a@...627...> 
	<6324a42a1002201057p7026a80bl9e65cc4860c50718@...627...> 
	<4247f5441002201125i41afe6a0ra712f07a337b0da6@...627...> 
	<4247f5441002201142l7951a5fcy62830bf8c9d5d1@...627...> 
	<6324a42a1002201145g6607c6ecw41aa7844f5b1aa1f@...627...> 
	<4247f5441002201407v49b02c7cs10ce3f726fd484cb@...627...>
Message-ID: <4247f5441002201706u33825b0ak49ca7560e676f2b7@...627...>

OK, I started from scratch, installed Ubuntu 9.10, compiled svn, and it
works as expected.

-- 
joshua higgins
>>>>>>------


From gambas.fr at ...626...  Sun Feb 21 08:59:26 2010
From: gambas.fr at ...626... (Fabien Bodard)
Date: Sun, 21 Feb 2010 08:59:26 +0100
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
In-Reply-To: <4247f5441002201706u33825b0ak49ca7560e676f2b7@...627...>
References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...>
	<201002201853.23419.gambas@...1...>
	<6324a42a1002200956n4ad72fa1p239589cf127e6001@...627...>
	<4247f5441002201040x4bcafe48ia97020673e2cc19a@...627...>
	<6324a42a1002201057p7026a80bl9e65cc4860c50718@...627...>
	<4247f5441002201125i41afe6a0ra712f07a337b0da6@...627...>
	<4247f5441002201142l7951a5fcy62830bf8c9d5d1@...627...>
	<6324a42a1002201145g6607c6ecw41aa7844f5b1aa1f@...627...>
	<4247f5441002201407v49b02c7cs10ce3f726fd484cb@...627...>
	<4247f5441002201706u33825b0ak49ca7560e676f2b7@...627...>
Message-ID: <6324a42a1002202359s377fb240hfa9341f9cdf7177f@...627...>

i think a usuakky it come from ubuntu 9.10 ... some ppa repository create errors

2010/2/21 Joshua Higgins :
> OK, I started from scratch, installed Ubuntu 9.10, compiled svn, and it
> works as expected.
>
> --
> joshua higgins
>>>>>>>------
> ------------------------------------------------------------------------------
> Download Intel® 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



From dosida at ...626...  Sun Feb 21 12:17:59 2010
From: dosida at ...626... (Dimitris Anogiatis)
Date: Sun, 21 Feb 2010 05:17:59 -0600
Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup
	Method
In-Reply-To: <6324a42a1002202359s377fb240hfa9341f9cdf7177f@...627...>
References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...>
	<6324a42a1002200956n4ad72fa1p239589cf127e6001@...627...>
	<4247f5441002201040x4bcafe48ia97020673e2cc19a@...627...>
	<6324a42a1002201057p7026a80bl9e65cc4860c50718@...627...>
	<4247f5441002201125i41afe6a0ra712f07a337b0da6@...627...>
	<4247f5441002201142l7951a5fcy62830bf8c9d5d1@...627...>
	<6324a42a1002201145g6607c6ecw41aa7844f5b1aa1f@...627...>
	<4247f5441002201407v49b02c7cs10ce3f726fd484cb@...627...>
	<4247f5441002201706u33825b0ak49ca7560e676f2b7@...627...>
	<6324a42a1002202359s377fb240hfa9341f9cdf7177f@...627...>
Message-ID: <82bffccf1002210317s3db87df1ge2748bab7ba9191b@...627...>

Hey Joshua,
Try this instead of the original cgi example.

#!/usr/bin/env gbw2
<%
DIM sEnv AS String
PRINT ""
PRINT ""
PRINT ""
PRINT "

Test1 - check this out


" PRINT "Test link" PRINT "" PRINT "" %> If this works it means that all your html tags need to be included in a Print statement I hope this helps Regards Dimitris On Sun, Feb 21, 2010 at 1:59 AM, Fabien Bodard wrote: > i think a usuakky it come from ubuntu 9.10 ... some ppa repository create > errors > > 2010/2/21 Joshua Higgins : > > OK, I started from scratch, installed Ubuntu 9.10, compiled svn, and it > > works as expected. > > > > -- > > joshua higgins > >>>>>>>------ > > > ------------------------------------------------------------------------------ > > Download Intel® 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Download Intel® 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Feb 21 12:26:43 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 21 Feb 2010 12:26:43 +0100 Subject: [Gambas-user] trouble with cgi scripting - Error 24 No Startup Method In-Reply-To: <82bffccf1002210317s3db87df1ge2748bab7ba9191b@...627...> References: <4247f5441002200926gaef4b54i57296f28b6184bd3@...627...> <4247f5441002201040x4bcafe48ia97020673e2cc19a@...627...> <6324a42a1002201057p7026a80bl9e65cc4860c50718@...627...> <4247f5441002201125i41afe6a0ra712f07a337b0da6@...627...> <4247f5441002201142l7951a5fcy62830bf8c9d5d1@...627...> <6324a42a1002201145g6607c6ecw41aa7844f5b1aa1f@...627...> <4247f5441002201407v49b02c7cs10ce3f726fd484cb@...627...> <4247f5441002201706u33825b0ak49ca7560e676f2b7@...627...> <6324a42a1002202359s377fb240hfa9341f9cdf7177f@...627...> <82bffccf1002210317s3db87df1ge2748bab7ba9191b@...627...> Message-ID: <6324a42a1002210326p2f3b5b43y505b3f1afbee9484@...627...> 2010/2/21 Dimitris Anogiatis : > Hey Joshua, > Try this instead of the original cgi example. > > #!/usr/bin/env gbw2 > <% > DIM sEnv AS String > PRINT "" > PRINT "" > PRINT "" > PRINT "

Test1 - check this out


" > PRINT "Test link" > PRINT "" > PRINT "" > %> > > If this works it means that all your html tags need to be included in a > Print statement > > I hope this helps > > Regards > Dimitris true or if you want to use programe without that use gbs2 instead of gbw2 > On Sun, Feb 21, 2010 at 1:59 AM, Fabien Bodard wrote: > >> i think a usuakky it come from ubuntu 9.10 ... some ppa repository create >> errors >> >> 2010/2/21 Joshua Higgins : >> > OK, I started from scratch, installed Ubuntu 9.10, compiled svn, and it >> > works as expected. >> > >> > -- >> > joshua higgins >> >>>>>>>------ >> > >> ------------------------------------------------------------------------------ >> > Download Intel® 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 at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> Download Intel® 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Download Intel® 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Sun Feb 21 20:56:37 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 21 Feb 2010 20:56:37 +0100 Subject: [Gambas-user] unusual problems Message-ID: <1266782197.13041.18.camel@...40...> Salut, set up a new box (a Laptop) with Mandriva 2010.0 and gambas2 (r2707) and gambas3 (r2708). 1. since I pushed the main-window of the IDE to the upper/left corner, I can't reach the "window title bar" anymore, after closing and re-running it. In .config/gambas3.conf I found [FMain] Geometry=[0,0,1389,968] 2. When I try to upgrade gambas2 projects to gambas3, the "Update all forms" seems not to work again (because I can't compile after .. 'Bad form file version'). And I can not save these forms. I have on files and folders w/r rights as owner, all other s only r rights. Can anybody confirm such problems, or is the box wired ? [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.31.12-desktop-1mnb DistributionVendor=MandrivaLinux DistributionRelease="Mandriva Linux 2010.0" [System] CPUArchitecture=i686 TotalRam=497100 kB [Gambas] Gambas1=Not Installed Gambas2=2.20.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 -- Charlie From dr.diesel at ...626... Sun Feb 21 23:20:22 2010 From: dr.diesel at ...626... (Dr.Diesel) Date: Sun, 21 Feb 2010 14:20:22 -0800 (PST) Subject: [Gambas-user] SVN 2708 Make error Message-ID: <27677291.post@...1379...> FYI on SVN 2708, I did do"./reconf-all && ./configure -C". Please ask if any further info is needed. Thanks make[5]: Leaving directory `/home/george/trunk/gb.qt4/src/opengl' make[5]: Entering directory `/home/george/trunk/gb.qt4/src' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DQT3_SUPPORT -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtNetwork -I/usr/include/QtSql -I/usr/include/QtSvg -I../share -I../src/share -DGB_QT_COMPONENT -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gb_qt4_la-CTabStrip.lo -MD -MP -MF .deps/gb_qt4_la-CTabStrip.Tpo -c -o gb_qt4_la-CTabStrip.lo `test -f 'CTabStrip.cpp' || echo './'`CTabStrip.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DQT3_SUPPORT -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtNetwork -I/usr/include/QtSql -I/usr/include/QtSvg -I../share -I../src/share -DGB_QT_COMPONENT -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gb_qt4_la-CTabStrip.lo -MD -MP -MF .deps/gb_qt4_la-CTabStrip.Tpo -c CTabStrip.cpp -fPIC -DPIC -o .libs/gb_qt4_la-CTabStrip.o CTabStrip.cpp: In member function ?void MyTabWidget::layoutContainer()?: CTabStrip.cpp:201: error: ?QStyleOptionTabWidgetFrameV2? was not declared in this scope CTabStrip.cpp:201: error: expected ?;? before ?option? CTabStrip.cpp:203: error: expected primary-expression before ?)? token CTabStrip.cpp:204: error: expected primary-expression before ?,? token make[5]: *** [gb_qt4_la-CTabStrip.lo] Error 1 make[5]: Leaving directory `/home/george/trunk/gb.qt4/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/george/trunk/gb.qt4/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/george/trunk/gb.qt4' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/george/trunk/gb.qt4' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/george/trunk' make: *** [all] Error 2 [george at ...2374... trunk]$ -- View this message in context: http://old.nabble.com/SVN-2708-Make-error-tp27677291p27677291.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Feb 21 23:33:13 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 21 Feb 2010 23:33:13 +0100 Subject: [Gambas-user] SVN 2708 Make error In-Reply-To: <27677291.post@...1379...> References: <27677291.post@...1379...> Message-ID: <201002212333.13491.gambas@...1...> > FYI on SVN 2708, I did do"./reconf-all && ./configure -C". Please ask if > any further info is needed. > > Thanks > > make[5]: Leaving directory `/home/george/trunk/gb.qt4/src/opengl' > make[5]: Entering directory `/home/george/trunk/gb.qt4/src' > /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. > -DQT3_SUPPORT -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore > -I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtNetwork > -I/usr/include/QtSql -I/usr/include/QtSvg -I../share -I../src/share > -DGB_QT_COMPONENT -pipe -Wall -fno-exceptions -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > gb_qt4_la-CTabStrip.lo -MD -MP -MF .deps/gb_qt4_la-CTabStrip.Tpo -c -o > gb_qt4_la-CTabStrip.lo `test -f 'CTabStrip.cpp' || echo './'`CTabStrip.cpp > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DQT3_SUPPORT -DQT_SHARED > -DQT3_SUPPORT -I/usr/include/QtCore -I/usr/include/QtGui > -I/usr/include/Qt3Support -I/usr/include/QtNetwork -I/usr/include/QtSql > -I/usr/include/QtSvg -I../share -I../src/share -DGB_QT_COMPONENT -pipe > -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden > -g -Os -fno-omit-frame-pointer -MT gb_qt4_la-CTabStrip.lo -MD -MP -MF > .deps/gb_qt4_la-CTabStrip.Tpo -c CTabStrip.cpp -fPIC -DPIC -o > .libs/gb_qt4_la-CTabStrip.o > CTabStrip.cpp: In member function ?void MyTabWidget::layoutContainer()?: > CTabStrip.cpp:201: error: ?QStyleOptionTabWidgetFrameV2? was not declared > in this scope > CTabStrip.cpp:201: error: expected ?;? before ?option? > CTabStrip.cpp:203: error: expected primary-expression before ?)? token > CTabStrip.cpp:204: error: expected primary-expression before ?,? token > make[5]: *** [gb_qt4_la-CTabStrip.lo] Error 1 > make[5]: Leaving directory `/home/george/trunk/gb.qt4/src' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/george/trunk/gb.qt4/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/george/trunk/gb.qt4' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/george/trunk/gb.qt4' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/george/trunk' > make: *** [all] Error 2 > [george at ...2374... trunk]$ Is it better with revision #2709? -- Beno?t Minisini From rterry at ...1946... Mon Feb 22 00:33:32 2010 From: rterry at ...1946... (richard terry) Date: Mon, 22 Feb 2010 10:33:32 +1100 Subject: [Gambas-user] SVN 2708 Make error In-Reply-To: <201002212333.13491.gambas@...1...> References: <27677291.post@...1379...> <201002212333.13491.gambas@...1...> Message-ID: <201002221033.32324.rterry@...1946...> On Monday 22 February 2010 09:33:13 Beno?t Minisini wrote: > > FYI on SVN 2708, I did do"./reconf-all && ./configure -C". Please ask if > > any further info is needed. > > > > Thanks > > > > make[5]: Leaving directory `/home/george/trunk/gb.qt4/src/opengl' > > make[5]: Entering directory `/home/george/trunk/gb.qt4/src' > > /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > > -I.. -DQT3_SUPPORT -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore > > -I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtNetwork > > -I/usr/include/QtSql -I/usr/include/QtSvg -I../share -I../src/share > > -DGB_QT_COMPONENT -pipe -Wall -fno-exceptions -Wno-unused-value > > -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > > gb_qt4_la-CTabStrip.lo -MD -MP -MF .deps/gb_qt4_la-CTabStrip.Tpo -c -o > > gb_qt4_la-CTabStrip.lo `test -f 'CTabStrip.cpp' || echo > > './'`CTabStrip.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. > > -DQT3_SUPPORT -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore > > -I/usr/include/QtGui > > -I/usr/include/Qt3Support -I/usr/include/QtNetwork -I/usr/include/QtSql > > -I/usr/include/QtSvg -I../share -I../src/share -DGB_QT_COMPONENT -pipe > > -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden > > -g -Os -fno-omit-frame-pointer -MT gb_qt4_la-CTabStrip.lo -MD -MP -MF > > .deps/gb_qt4_la-CTabStrip.Tpo -c CTabStrip.cpp -fPIC -DPIC -o > > .libs/gb_qt4_la-CTabStrip.o > > CTabStrip.cpp: In member function ?void MyTabWidget::layoutContainer()?: > > CTabStrip.cpp:201: error: ?QStyleOptionTabWidgetFrameV2? was not declared > > in this scope > > CTabStrip.cpp:201: error: expected ?;? before ?option? > > CTabStrip.cpp:203: error: expected primary-expression before ?)? token > > CTabStrip.cpp:204: error: expected primary-expression before ?,? token > > make[5]: *** [gb_qt4_la-CTabStrip.lo] Error 1 > > make[5]: Leaving directory `/home/george/trunk/gb.qt4/src' > > make[4]: *** [all-recursive] Error 1 > > make[4]: Leaving directory `/home/george/trunk/gb.qt4/src' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory `/home/george/trunk/gb.qt4' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory `/home/george/trunk/gb.qt4' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/george/trunk' > > make: *** [all] Error 2 > > [george at ...2374... trunk]$ > > Is it better with revision #2709? > Compiles ok on my ARCH box (previous one didn't)) richard From dr.diesel at ...626... Mon Feb 22 01:44:12 2010 From: dr.diesel at ...626... (Dr.Diesel) Date: Sun, 21 Feb 2010 16:44:12 -0800 (PST) Subject: [Gambas-user] SVN 2708 Make error In-Reply-To: <201002212333.13491.gambas@...1...> References: <27677291.post@...1379...> <201002212333.13491.gambas@...1...> Message-ID: <27681508.post@...1379...> Bugzilla from gambas at ...1... wrote: > >> FYI on SVN 2708, I did do"./reconf-all && ./configure -C". Please ask if >> any further info is needed. >> >> Thanks > > Is it better with revision #2709? > > -- > Beno?t Minisini > https://lists.sourceforge.net/lists/listinfo/gambas-user > > It compiled fine but now I receive these errors on an app that was fine before, this happens when attempting to open from the splash screen: CComponent.Load.613 Out of bounds Cannot open project file : /home/george/Desktop/George/George Void key FToolBox.RefreshToolbar.172 Then returns to the open splash screen. Thanks! -- View this message in context: http://old.nabble.com/SVN-2708-Make-error-tp27677291p27681508.html Sent from the gambas-user mailing list archive at Nabble.com. From kobolds at ...2041... Mon Feb 22 05:36:40 2010 From: kobolds at ...2041... (kobolds) Date: Sun, 21 Feb 2010 20:36:40 -0800 (PST) Subject: [Gambas-user] error running gambas3 rev2710 Message-ID: <27682794.post@...1379...> ERROR: #2: Cannot load class 'Project': Unable to load class file -- View this message in context: http://old.nabble.com/error-running-gambas3-rev2710-tp27682794p27682794.html Sent from the gambas-user mailing list archive at Nabble.com. From kobolds at ...2041... Mon Feb 22 11:06:40 2010 From: kobolds at ...2041... (kobolds) Date: Mon, 22 Feb 2010 02:06:40 -0800 (PST) Subject: [Gambas-user] error running gambas3 rev2710 In-Reply-To: <27682794.post@...1379...> References: <27682794.post@...1379...> Message-ID: <27685066.post@...1379...> same with rev 2711 kobolds wrote: > > ERROR: #2: Cannot load class 'Project': Unable to load class file > > -- View this message in context: http://old.nabble.com/error-running-gambas3-rev2710-tp27682794p27685066.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Feb 22 21:58:51 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Feb 2010 21:58:51 +0100 Subject: [Gambas-user] Beware, users of the development version Message-ID: <201002222158.51224.gambas@...1...> Hi, I'm currently working on IDE support for editing reports and other kind of forms. The changes may break the current form editor unexpectedly, so save your GUI projects before editing them! Sorry for any possible inconvenience in advance! Regards, -- Beno?t Minisini From kobolds at ...2041... Mon Feb 22 22:36:24 2010 From: kobolds at ...2041... (kobolds) Date: Mon, 22 Feb 2010 13:36:24 -0800 (PST) Subject: [Gambas-user] error running gambas3 rev2710 In-Reply-To: <27682794.post@...1379...> References: <27682794.post@...1379...> Message-ID: <27694913.post@...1379...> same with rev 2712 kobolds wrote: > > ERROR: #2: Cannot load class 'Project': Unable to load class file > > -- View this message in context: http://old.nabble.com/error-running-gambas3-rev2710-tp27682794p27694913.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Feb 22 22:38:48 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Feb 2010 22:38:48 +0100 Subject: [Gambas-user] error running gambas3 rev2710 In-Reply-To: <27694913.post@...1379...> References: <27682794.post@...1379...> <27694913.post@...1379...> Message-ID: <201002222238.48571.gambas@...1...> > same with rev 2712 > > kobolds wrote: > > ERROR: #2: Cannot load class 'Project': Unable to load class file If you give *no* details, I can hardly help you! -- Beno?t Minisini From Karl.Reinl at ...2345... Mon Feb 22 22:41:28 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 23 Feb 2010 10:41:28 +1300 Subject: [Gambas-user] error running gambas3 rev2710 In-Reply-To: <27694913.post@...1379...> References: <27682794.post@...1379...> <27694913.post@...1379...> Message-ID: <1266874888.7166.2.camel@...40...> Am Montag, den 22.02.2010, 13:36 -0800 schrieb kobolds: > same with rev 2712 > > > kobolds wrote: > > > > ERROR: #2: Cannot load class 'Project': Unable to load class file > > > > Salut, same for me, gambas3 the IDE won't start. [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.31.12-desktop-1mnb DistributionVendor=MandrivaLinux DistributionRelease="Mandriva Linux 2010.0" [System] CPUArchitecture=i686 TotalRam=497100 kB [Gambas] Gambas1=Not Installed Gambas2=2.20.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 -- Charlie From kobolds at ...2041... Mon Feb 22 23:15:45 2010 From: kobolds at ...2041... (kobolds) Date: Mon, 22 Feb 2010 14:15:45 -0800 (PST) Subject: [Gambas-user] error running gambas3 rev2710 In-Reply-To: <201002222238.48571.gambas@...1...> References: <27682794.post@...1379...> <27694913.post@...1379...> <201002222238.48571.gambas@...1...> Message-ID: <27695194.post@...1379...> here i attach the log http://old.nabble.com/file/p27695194/konsole.txt.tar.gz konsole.txt.tar.gz Bugzilla from gambas at ...1... wrote: > >> same with rev 2712 >> >> kobolds wrote: >> > ERROR: #2: Cannot load class 'Project': Unable to load class file > > If you give *no* details, I can hardly help you! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Download Intel® 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/error-running-gambas3-rev2710-tp27682794p27695194.html Sent from the gambas-user mailing list archive at Nabble.com. From nh at ...2379... Tue Feb 23 00:47:23 2010 From: nh at ...2379... (nelsonhoover) Date: Mon, 22 Feb 2010 15:47:23 -0800 (PST) Subject: [Gambas-user] PictureBox1.Picture.Clear doesn't seem to work Message-ID: <27695403.post@...1379...> I have a picture box with an image loaded and I'd like to clear it. Here's what I'm trying: PictureBox1.Picture.Clear PictureBox1.Picture.Flush PictureBox1.Refresh It doesn't work. Am I missing something? I'm using Gambas 2.13. -- View this message in context: http://old.nabble.com/PictureBox1.Picture.Clear-doesn%27t-seem-to-work-tp27695403p27695403.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Feb 23 01:02:57 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 23 Feb 2010 01:02:57 +0100 Subject: [Gambas-user] PictureBox1.Picture.Clear doesn't seem to work In-Reply-To: <27695403.post@...1379...> References: <27695403.post@...1379...> Message-ID: <201002230102.57742.gambas@...1...> > I have a picture box with an image loaded and I'd like to clear it. > Here's what I'm trying: > > PictureBox1.Picture.Clear > PictureBox1.Picture.Flush > PictureBox1.Refresh > > It doesn't work. Am I missing something? > I'm using Gambas 2.13. PictureBox1.Picture = NULL ? -- Beno?t Minisini From nh at ...2379... Tue Feb 23 02:40:45 2010 From: nh at ...2379... (nelsonhoover) Date: Mon, 22 Feb 2010 17:40:45 -0800 (PST) Subject: [Gambas-user] PictureBox1.Picture.Clear doesn't seem to work In-Reply-To: <201002230102.57742.gambas@...1...> References: <27695403.post@...1379...> <201002230102.57742.gambas@...1...> Message-ID: <27697464.post@...1379...> OK, thanks. That works. Isn't Picture.Clear supposed to do the same thing? Bugzilla from gambas at ...1... wrote: > >> I have a picture box with an image loaded and I'd like to clear it. >> Here's what I'm trying: >> >> PictureBox1.Picture.Clear >> PictureBox1.Picture.Flush >> PictureBox1.Refresh >> >> It doesn't work. Am I missing something? >> I'm using Gambas 2.13. > > PictureBox1.Picture = NULL ? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Download Intel® 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/PictureBox1.Picture.Clear-doesn%27t-seem-to-work-tp27695403p27697464.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Feb 23 03:55:36 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 23 Feb 2010 03:55:36 +0100 Subject: [Gambas-user] PictureBox1.Picture.Clear doesn't seem to work In-Reply-To: <27697464.post@...1379...> References: <27695403.post@...1379...> <201002230102.57742.gambas@...1...> <27697464.post@...1379...> Message-ID: <201002230355.36356.gambas@...1...> > OK, thanks. That works. > Isn't Picture.Clear supposed to do the same thing? > Not really: it clears the Gambas picture object, but not the internal picture affected to the picture box. The only control property that modify the control accordingly is the Font property. Regards, -- Beno?t Minisini From rterry at ...1946... Tue Feb 23 04:33:17 2010 From: rterry at ...1946... (richard terry) Date: Tue, 23 Feb 2010 14:33:17 +1100 Subject: [Gambas-user] Something that's been bugging me for a while Message-ID: <201002231433.17371.rterry@...1946...> Nothing important, but I've always wonder why collections eg the data, then the key, but lists get the key then the data? After all, they are both collections. (here I was just reading in a file line by line to a collection and a listview. SampleData.Add(sLineInput, icounter) lvSampleData.Add(icounter, sLineInput) regards richard From kobolds at ...2041... Tue Feb 23 06:04:28 2010 From: kobolds at ...2041... (kobolds) Date: Mon, 22 Feb 2010 21:04:28 -0800 (PST) Subject: [Gambas-user] error running gambas3 rev2710 In-Reply-To: <27682794.post@...1379...> References: <27682794.post@...1379...> Message-ID: <27698553.post@...1379...> solved in rev 2713 . thanks kobolds wrote: > > ERROR: #2: Cannot load class 'Project': Unable to load class file > > -- View this message in context: http://old.nabble.com/error-running-gambas3-rev2710-tp27682794p27698553.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...2345... Tue Feb 23 11:17:25 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 23 Feb 2010 11:17:25 +0100 Subject: [Gambas-user] error running gambas3 rev2710 In-Reply-To: <1266874888.7166.2.camel@...40...> References: <27682794.post@...1379...> <27694913.post@...1379...> <1266874888.7166.2.camel@...40...> Message-ID: <1266920245.6434.3.camel@...40...> Am Dienstag, den 23.02.2010, 10:41 +1300 schrieb Charlie Reinl: > Am Montag, den 22.02.2010, 13:36 -0800 schrieb kobolds: > > same with rev 2712 > > > > > > kobolds wrote: > > > > > > ERROR: #2: Cannot load class 'Project': Unable to load class file > > > > > > > Salut, > > same for me, gambas3 the IDE won't start. > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.31.12-desktop-1mnb > DistributionVendor=MandrivaLinux > DistributionRelease="Mandriva Linux 2010.0" > > [System] > CPUArchitecture=i686 > TotalRam=497100 kB > > [Gambas] > Gambas1=Not Installed > Gambas2=2.20.0 > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=2.99.0 > Gambas3Path=/usr/local/bin/gbx3 Salut, 2713 now the IDE starts. But takes 6 min 22 sec to show the first screen. (2708 took also very long) -- Amicalement Charlie From gambas at ...1... Tue Feb 23 12:39:58 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 23 Feb 2010 12:39:58 +0100 Subject: [Gambas-user] Something that's been bugging me for a while In-Reply-To: <201002231433.17371.rterry@...1946...> References: <201002231433.17371.rterry@...1946...> Message-ID: <201002231239.58202.gambas@...1...> > Nothing important, but I've always wonder why collections eg the data, then > the key, but lists get the key then the data? After all, they are both > collections. > > (here I was just reading in a file line by line to a collection and a > listview. > > SampleData.Add(sLineInput, icounter) > lvSampleData.Add(icounter, sLineInput) > > regards > > richard > Because ListViews are not collection at all? Or maybe because I wanted to be logical in ListView, and wanted to follow the VB syntax for collection? :-) -- Beno?t Minisini From gambas at ...1... Tue Feb 23 12:41:25 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 23 Feb 2010 12:41:25 +0100 Subject: [Gambas-user] error running gambas3 rev2710 In-Reply-To: <1266920245.6434.3.camel@...40...> References: <27682794.post@...1379...> <1266874888.7166.2.camel@...40...> <1266920245.6434.3.camel@...40...> Message-ID: <201002231241.25720.gambas@...1...> > Am Dienstag, den 23.02.2010, 10:41 +1300 schrieb Charlie Reinl: > > Am Montag, den 22.02.2010, 13:36 -0800 schrieb kobolds: > > > same with rev 2712 > > > > > > kobolds wrote: > > > > ERROR: #2: Cannot load class 'Project': Unable to load class file > > > > Salut, > > > > same for me, gambas3 the IDE won't start. > > > > [OperatingSystem] > > OperatingSystem=Linux > > KernelRelease=2.6.31.12-desktop-1mnb > > DistributionVendor=MandrivaLinux > > DistributionRelease="Mandriva Linux 2010.0" > > > > [System] > > CPUArchitecture=i686 > > TotalRam=497100 kB > > > > [Gambas] > > Gambas1=Not Installed > > Gambas2=2.20.0 > > Gambas2Path=/usr/local/bin/gbx2 > > Gambas3=2.99.0 > > Gambas3Path=/usr/local/bin/gbx3 > > Salut, > > 2713 now the IDE starts. > But takes 6 min 22 sec to show the first screen. > (2708 took also very long) !!! Do you have a slow machine? Can you run the IDE with the "strace" program and send me the output until the welcome screen appears? -- Beno?t Minisini From rterry at ...1946... Tue Feb 23 12:58:42 2010 From: rterry at ...1946... (richard terry) Date: Tue, 23 Feb 2010 22:58:42 +1100 Subject: [Gambas-user] Return after a dialog > end program prematurely Message-ID: <201002232258.42511.rterry@...1946...> This seems really odd, perhaps it is my typing, but for a number of versions I've noticed this odd behaviour which I can't track down, but what is happening is that when a dialog box is presented during a function that returns something eg boolean, then when the program continues to execute back in the calling routine, when it gets to the 'end' of a subroutine, the 'end' terminates the program and drops the user back into the IDE. If no dialog in the subroutine, nothing happens. Almost like the 'end' is becoming a signal to quit the program. The following is a typical subroutine: Public Sub EditArea_Buttons_Click() Select Case Last.tag Case "clear" Editarea_Clear() Case "analyse" Analyse_Data() Case "import" Import() End Select End Notice, that it ends with end, not end sub ?am I typing it wrong? Now, prior to importing, I want to analyse the thousands of lines of patient demographic data, to make sure they all have appropriate sex, title, suburbs, postcodes, as legacy data is often falty, so I do this: Public Sub Analyse_Data() '------------------------------------------------------------- 'Analyse the file, point out any glaring errors but don't save 'Display progress as we go by counter, the patients details 'show error messages '------------------------------------------------------------- If Not Valid_Selection() Then Return ...etc Public Sub Valid_Selection() As Boolean If cmbDemographicSource.index = -1 Or cmbVersion.index = -1 Then Message.Info("Please select the source program and version before proceeding") Return False End If Now, if this subroutine returns false and I step through the subroutine, when it gets to the 'end' statement designated here by *****, then the program literally ends, and deposits me back in the IDE ( or quits if compiled) Public Sub EditArea_Buttons_Click() Select Case Last.tag Case "clear" Editarea_Clear() Case "analyse" Analyse_Data() Case "import" Import() End Select End ****** Any thoughts? Regards Richard From ivanwms64 at ...43... Tue Feb 23 16:00:25 2010 From: ivanwms64 at ...43... (Ivan Williams) Date: Tue, 23 Feb 2010 07:00:25 -0800 (PST) Subject: [Gambas-user] how to click a check button on a web page? Message-ID: <576457.88108.qm@...2380...> Greetings I am writing a web app that checks a web page status periodically and if certain events occur, I need to click a button on the web page. Can someone point me to some sample code to do this with. I already have the code in place to check the status of the page but the button click is evading me. Thank You Ivan \~/ I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough Without ever having felt sorry for itself. -- D.H. Lawrence http://www.usconstitution.net/const.html Linux - Live Free or Die. From Karl.Reinl at ...2345... Tue Feb 23 17:35:03 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 23 Feb 2010 17:35:03 +0100 Subject: [Gambas-user] error running gambas3 rev2710 In-Reply-To: <201002231241.25720.gambas@...1...> References: <27682794.post@...1379...> <1266874888.7166.2.camel@...40...> <1266920245.6434.3.camel@...40...> <201002231241.25720.gambas@...1...> Message-ID: <1266942903.7099.7.camel@...40...> Am Dienstag, den 23.02.2010, 12:41 +0100 schrieb Beno?t Minisini: > > Am Dienstag, den 23.02.2010, 10:41 +1300 schrieb Charlie Reinl: > > > Am Montag, den 22.02.2010, 13:36 -0800 schrieb kobolds: > > > > same with rev 2712 > > > > > > > > kobolds wrote: > > > > > ERROR: #2: Cannot load class 'Project': Unable to load class file > > > > > > Salut, > > > > > > same for me, gambas3 the IDE won't start. > > > > > > [OperatingSystem] > > > OperatingSystem=Linux > > > KernelRelease=2.6.31.12-desktop-1mnb > > > DistributionVendor=MandrivaLinux > > > DistributionRelease="Mandriva Linux 2010.0" > > > > > > [System] > > > CPUArchitecture=i686 > > > TotalRam=497100 kB > > > > > > [Gambas] > > > Gambas1=Not Installed > > > Gambas2=2.20.0 > > > Gambas2Path=/usr/local/bin/gbx2 > > > Gambas3=2.99.0 > > > Gambas3Path=/usr/local/bin/gbx3 > > > > Salut, > > > > 2713 now the IDE starts. > > But takes 6 min 22 sec to show the first screen. > > (2708 took also very long) > > !!! > > Do you have a slow machine? Can you run the IDE with the "strace" program and > send me the output until the welcome screen appears? > Salut, that's a Laptop AMD Mobile Sempron 3100+ Speed : 1800 MHz and 496 MB Memory gambas3 (r2708) ran "normal" as it does gambas2 (r2707) ~ 10 sec. OK, for strace, but have to install it first, any hints ? -- Amicalement Charlie From doriano.blengino at ...1909... Tue Feb 23 17:57:35 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 23 Feb 2010 17:57:35 +0100 Subject: [Gambas-user] how to click a check button on a web page? In-Reply-To: <576457.88108.qm@...2380...> References: <576457.88108.qm@...2380...> Message-ID: <4B8408FF.40909@...1909...> Ivan Williams ha scritto: > Greetings > > I am writing a web app that checks a web page status periodically and if certain events occur, I need to click a button on the web page. Can someone point me to some sample code to do this with. I already have the code in place to check the status of the page but the button click is evading me. > Uhm... not easy at all... Look at the source of the page. If it is a "good" page, then you will see something like:
...