Re: [Gambas-user] chop project

2009-09-22 Thread Dimitris Anogiatis
Hey JY,

One approach would be to create a main message-passing class, and link the
sub-projects to that class passing messages through a common set of
properties and methods

Another approach is to create the sub-projects with a class of common
properties and methods that pass the message from one
sub-project to the other.

The tricky part would be to dynamically load that sub-project in your main
project, effectivelly creating a sort of plugin.

I hope this helps

Regards
Dimitris

On Tue, Sep 22, 2009 at 8:22 PM, Jean-Yves F. Barbier <12u...@gmail.com>wrote:

> Hi people,
>
> I wonder if it is possible to chop a big project into some smaller ones?
>
> My only problem is to keep a kinda global class linked to all sub-projects
> in oder to "pass" parms from one sub-project to another; is there a manner
> to do that or not?
>
> JY
> --
> Life is like an onion: you peel it off one layer at a time, and sometimes
> you weep.  -- Carl Sandburg
>
>
> --
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] chop project

2009-09-22 Thread Jean-Yves F. Barbier
Hi people,

I wonder if it is possible to chop a big project into some smaller ones?

My only problem is to keep a kinda global class linked to all sub-projects
in oder to "pass" parms from one sub-project to another; is there a manner
to do that or not?

JY
-- 
Life is like an onion: you peel it off one layer at a time, and sometimes
you weep.  -- Carl Sandburg

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


Re: [Gambas-user] Passive wait ???

2009-09-22 Thread M0E Lnx
Never heard of a statuslabel before... but yes... I need it to clear after 5
seconds

On Sep 22, 2009 5:07 PM, "Benoît Minisini" 
wrote:

> > I'm trying to implement soft of a "status bar" on my application. > >
When certain actions are p...
Sorry: ...and starts a timer to clear the status five seconds later.

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


Re: [Gambas-user] Passive wait ???

2009-09-22 Thread Benoît Minisini
> > I'm trying to implement soft of a "status bar" on my application.
> > When certain actions are performed, I want to display the successful
> > results on this status bar, rather than a pop-up message. This is an
> > attempt to reduce the number of clicks necessary (get annoying after a
> > while).
> >
> > So I thought, to accomplish this, I can add a text label a the bottom
> > of my form, and use it as a status bar.
> > When a task is performed succesffully, I want it to display the
> > message for 5 seconds and then clear the status bar, so I thogh
> >
> > tlStatusLbl.text = "Task succeeded"
> > wait 5
> 
> Why waiting for five seconds? Just use WAIT.
> 

Sorry: ...and starts a timer to clear the status five seconds later.

-- 
Benoît Minisini

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


Re: [Gambas-user] Passive wait ???

2009-09-22 Thread Benoît Minisini
> I'm trying to implement soft of a "status bar" on my application.
> When certain actions are performed, I want to display the successful
> results on this status bar, rather than a pop-up message. This is an
> attempt to reduce the number of clicks necessary (get annoying after a
> while).
> 
> So I thought, to accomplish this, I can add a text label a the bottom
> of my form, and use it as a status bar.
> When a task is performed succesffully, I want it to display the
> message for 5 seconds and then clear the status bar, so I thogh
> 
> tlStatusLbl.text = "Task succeeded"
> wait 5

Why waiting for five seconds? Just use WAIT.

-- 
Benoît Minisini

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


Re: [Gambas-user] Passive wait ???

2009-09-22 Thread David Villalobos Cambronero
What about using MessageLabel?

 Regards


--
David



- Original Message 
From: M0E Lnx 
To: mailing list for gambas users 
Sent: Tuesday, September 22, 2009 2:55:24 PM
Subject: [Gambas-user] Passive wait ???

I'm trying to implement soft of a "status bar" on my application.
When certain actions are performed, I want to display the successful
results on this status bar, rather than a pop-up message. This is an
attempt to reduce the number of clicks necessary (get annoying after a
while).

So I thought, to accomplish this, I can add a text label a the bottom
of my form, and use it as a status bar.
When a task is performed succesffully, I want it to display the
message for 5 seconds and then clear the status bar, so I thogh

tlStatusLbl.text = "Task succeeded"
wait 5
tlStatusLbl.text = ""

And that works, except that while it's in that WAIT loop, the whole
app lags, and the app doesn't move or refresh until the wait period is
over.

Does anyone know a way to send this wait to the background or another
way to implement this behaviour?

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



  


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


[Gambas-user] Passive wait ???

2009-09-22 Thread M0E Lnx
I'm trying to implement soft of a "status bar" on my application.
When certain actions are performed, I want to display the successful
results on this status bar, rather than a pop-up message. This is an
attempt to reduce the number of clicks necessary (get annoying after a
while).

So I thought, to accomplish this, I can add a text label a the bottom
of my form, and use it as a status bar.
When a task is performed succesffully, I want it to display the
message for 5 seconds and then clear the status bar, so I thogh

tlStatusLbl.text = "Task succeeded"
wait 5
tlStatusLbl.text = ""

And that works, except that while it's in that WAIT loop, the whole
app lags, and the app doesn't move or refresh until the wait period is
over.

Does anyone know a way to send this wait to the background or another
way to implement this behaviour?

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


Re: [Gambas-user] How to sent a line line to a lp1 printer and form to lp0 printer directly.

2009-09-22 Thread Benoît Minisini
> Hello,
> 
> I want to print one line each time in order to keep the entrance book of a
> little hotel.
> I want to print one line each time.
> How can I do it?
> With SHELL command it can only print files.
> I have tried:
> 
> SHELL "lp1 tEpitheto.Text" WAIT
> 
> (where tEpitheto.Text is the text I want to print)
> 
> but it doesn't work!
> 

What kind of printer do you use?

I'm afraid that only old printers with pins is able to do that.

If you have such one, you can bypass the printing system and sends your 
characters directly to /dev/lp0.

> I also want to print a reciept form directly to a second printer at lp0
> I know that I can do it with :
> 
> Draw.Begin(Printer)
> Draw.Text(tEpitheto.Text & " " & tOnoma.Text & " " & tEthnikotita.Text,
>  200, 200)
> Draw.End
> 
> But is this normal to print with Draw.Begin(Printer) ? What will happen if
> I change the lp ports? Is there any other way to print directly to a port
> like Draw.Begin(lp0)?

Draw.Begin(Printer) ... Draw.End actually generates a postscript file that is 
sent then to the printing system. Only him knows how to transform the ps file 
into something that the printer will understand, how to send the data to the 
printer, and on which device.

Regards,

-- 
Benoît Minisini

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


[Gambas-user] How to sent a line line to a lp1 printer and form to lp0 printer directly.

2009-09-22 Thread Vassilis K
Hello,

I want to print one line each time in order to keep the entrance book of a 
little hotel.
I want to print one line each time.
How can I do it?
With SHELL command it can only print files.
I have tried:

SHELL "lp1 tEpitheto.Text" WAIT

(where tEpitheto.Text is the text I want to print)

but it doesn't work!

I also want to print a reciept form directly to a second printer at lp0 
I know that I can do it with :

Draw.Begin(Printer) 
Draw.Text(tEpitheto.Text & " " & tOnoma.Text & " " & tEthnikotita.Text, 200, 
200)
Draw.End

But is this normal to print with Draw.Begin(Printer) ? What will happen if 
I change the lp ports? Is there any other way to print directly to a port
like Draw.Begin(lp0)?

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


Re: [Gambas-user] listBox loop selected

2009-09-22 Thread Dan Sheffner
I want all selected values from the listBox.

On Tue, Sep 22, 2009 at 11:04 AM, Dan Sheffner wrote:

> Can someone please give me the code to loop through a listBox and put all
> values into a string array?
>
> I would think this would be very straight forward but I'm having a very
> hard time finding any documentation on this or an examples.
>
> Thanks in advance.
>
> ~Dan
>
--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] listBox loop selected

2009-09-22 Thread Dan Sheffner
Can someone please give me the code to loop through a listBox and put all
values into a string array?

I would think this would be very straight forward but I'm having a very hard
time finding any documentation on this or an examples.

Thanks in advance.

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


Re: [Gambas-user] listBox loop selected

2009-09-22 Thread Dan Sheffner
Never mind I found it.

'-
---
PUBLIC FUNCTION multipleSelections(targetLB AS ListBox) AS String
 DIM targetCount AS Integer
 DIM foundSelected AS Integer
 DIM Res AS String

 targetCount = 0
 foundSelected = 0
 DO WHILE targetCount < targetLB.Count
  IF targetLB[targetCount].selected = TRUE THEN
   Res &= targetLB[targetCount].Text & "|"
   INC foundSelected
  ENDIF
 INC targetCount
 LOOP

IF foundSelected = 0 THEN
   RETURN "Nothing found"
 ELSE
   RETURN Left(Res, Len(Res) - 1)
ENDIF

END
'




On Tue, Sep 22, 2009 at 11:06 AM, Dan Sheffner wrote:

> I want all selected values from the listBox.
>
>
> On Tue, Sep 22, 2009 at 11:04 AM, Dan Sheffner wrote:
>
>> Can someone please give me the code to loop through a listBox and put all
>> values into a string array?
>>
>> I would think this would be very straight forward but I'm having a very
>> hard time finding any documentation on this or an examples.
>>
>> Thanks in advance.
>>
>> ~Dan
>>
>
>
--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user