[Gambas-user] Disable closing window with X?

2008-09-10 Thread Ron

Hi,

is there a way to disable closing a window by using the X in the titlebar?
or removing the X?

If i use:
PUBLIC SUB Form_Close()
 
  STOP EVENT
 
END

ME.close is also disable ofcourse.

I need it for a login window, I only want to accept closing via a 
buttonpress after some checks...
Hmm I can add some logic I guess, and only do a stop event when user is 
not auth.

Regards,
Ron_2nd

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Suggestion for IDE behaviour

2008-09-10 Thread Benoit Minisini
On lundi 08 septembre 2008, richard terry wrote:
> I keep a directory in my project where I keep a text file for changes I
> want to make to forms
> I note at run-time that like all forms, any file in here is not editable.
>
> I wondered if it would be possible to allow files not used during the
> running of the project to be editable at run-time - as I find I'd like to
> make notes as I watch the behaviour of my program, and am unable to do this
> because of the above behaviour.
>
> Regards
>
> Richard
>

How can you know that a file won't be used?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Maybe a bug in how Gambas manages open DB connections

2008-09-10 Thread Benoit Minisini
On dimanche 07 septembre 2008, Leonardo Miliani wrote:
> Benoit Minisini ha scritto:
> > On vendredi 05 septembre 2008, Leonardo Miliani wrote:
> >> Ops I forgot the version: 2.8.1, but got the same error with
> >> previous versions 2.8 and, if I remember correctly, 2.7.
> >
> > Then please post the actual code that shows your problem.
> >
> > Thanks.
>
> English is not my native language so maybe I can not explain the problem
> very well.
> But it's very easy to understand (don't think at the code, now: just
> think in "pseudocode" or logical steps):
>
> 1) I open a connection named C1
> 2) I get some results from it
> 3) I open a new connection named C2
> 4) Just after the point 3), if I try to get some other results from C1,
> I get the error the the C1 is not a valid object. I must call another
> MySQL query (even with C1.Find or C1.Execute or whatever I want) before
> to look for a result.
>
> I send the complete form (class and gui) that give me the error: not the
> complete project (too big, several MBs), not the original DB (tooo
> big...).

I cannot do anything with that. If you cannot send the full project, please 
create and send a project that allows me to reproduce the bug.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Nice book of Gambas

2008-09-10 Thread Benoit Minisini
On mardi 02 septembre 2008, Stefano Palmeri wrote:
> Fabien, bad idea to spread the world with J.R. health conditions.
> It's against privacy law on many countries, unless J.R. gave you
> permission to do that. I think it's a good idea removing
> that message from Gambas online archives.
> Benoit, can you do it?
>
> Best regards,
>
> Stefano Palmeri
>

Done.

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2008-09-10 Thread Benoit Minisini
On lundi 25 août 2008, jbskaggs wrote:
> On the  packager utility in gambas- would it be possible to add a feature
> so when you create more than one linux flavor installation it asks you for
> a new directory for each flavor?
>
> This would make distribution updates much faster.
>
> JB Skaggs

Can you elaborate?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Disable closing window with X?

2008-09-10 Thread Laurent Carlier
Le mercredi 10 septembre 2008 15:05:17 Ron, vous avez écrit :
> Hi,
>
> is there a way to disable closing a window by using the X in the titlebar?
> or removing the X?
>
> If i use:
> PUBLIC SUB Form_Close()
>
>   STOP EVENT
>
> END
>
> ME.close is also disable ofcourse.
>
> I need it for a login window, I only want to accept closing via a
> buttonpress after some checks...
> Hmm I can add some logic I guess, and only do a stop event when user is
> not auth.
>
> Regards,
> Ron_2nd
>

PRIVATE UserNotAuth AS BOOLEAN

PUBLIC SUB Form_Close()

   if NOT UserNotAuth THEN STOP EVENT

END


Regards,


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Disable closing window with X?

2008-09-10 Thread Ron
Laurent Carlier schreef:
> Le mercredi 10 septembre 2008 15:05:17 Ron, vous avez écrit :
>   
>> Hi,
>>
>> is there a way to disable closing a window by using the X in the titlebar?
>> or removing the X?
>>
>> If i use:
>> PUBLIC SUB Form_Close()
>>
>>   STOP EVENT
>>
>> END
>>
>> ME.close is also disable ofcourse.
>>
>> I need it for a login window, I only want to accept closing via a
>> buttonpress after some checks...
>> Hmm I can add some logic I guess, and only do a stop event when user is
>> not auth.
>>
>> Regards,
>> Ron_2nd
>>
>> 
>
> PRIVATE UserNotAuth AS BOOLEAN
>
> PUBLIC SUB Form_Close()
>
>if NOT UserNotAuth THEN STOP EVENT
>
> END
>
>
> Regards,
>   

Yes thanks,

That will do just fine!
Just after typing my question something like this flashed before my eyes ;-)

Regards,
Ron.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Nice book of Gambas

2008-09-10 Thread gambas
Am Mittwoch, 10. September 2008 15:51:56 schrieb Benoit Minisini:
> On mardi 02 septembre 2008, Stefano Palmeri wrote:
> > Fabien, bad idea to spread the world with J.R. health conditions.
> > It's against privacy law on many countries, unless J.R. gave you
> > permission to do that. I think it's a good idea removing
> > that message from Gambas online archives.
> > Benoit, can you do it?
> >
> > Best regards,
> >
> > Stefano Palmeri
>
> Done.

Sorry, for bringing up thist hread. Perhaps missed a mail or didn't understand 
something between the lines, butis there still some interest or working 
active on this topic?

Greetz
Stevie


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Menu disable?

2008-09-10 Thread Ron

Hi,

Having build login functionality in my application brings up the next 
challenge ;-)

Can you disable a menu, so you see it (greyed out) but can't select 
anything?

I have tried to uncheck Enabled in menu editor, but I see no change.
Also setting property like MenuDevices.Enabled = FALSE doesn't change a 
thing,  I can still use it.

Hide and Show are working, but enable/disable aren't, any clue(s)?

Thanks.

Gambas 2.8.1, gb.qt

Regards,
Ron_2nd.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Menu disable?

2008-09-10 Thread Leonardo Miliani
Ron ha scritto:
> Hi,
> 
> Having build login functionality in my application brings up the next 
> challenge ;-)
> 
> Can you disable a menu, so you see it (greyed out) but can't select 
> anything?
> 
> I have tried to uncheck Enabled in menu editor, but I see no change.
> Also setting property like MenuDevices.Enabled = FALSE doesn't change a 
> thing,  I can still use it.
> 
> Hide and Show are working, but enable/disable aren't, any clue(s)?
> 
> Thanks.
> 
> Gambas 2.8.1, gb.qt
> 
> Regards,
> Ron_2nd.
> 

Do it by code
Let's imagine that you have this menus:

Menu1
-First
-Second
Menu2
-Third
-Fourth

If you want to deselect a voice, just use i.e. First.Enabled = False, if
you want to hide it just use First.Visible = False.
If you want to hide an entire menu just type in i.e. Menu1.Visible = False.

-- 
Ciao.
Leo.

Web: www.leonardomiliani.com
E-mail: [EMAIL PROTECTED]
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunità italiana degli utenti di Gambas
www.gambas-it.org

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Maybe a bug in how Gambas manages open DB connections

2008-09-10 Thread Leonardo Miliani
Benoit Minisini ha scritto:
> I cannot do anything with that. If you cannot send the full project, please 
> create and send a project that allows me to reproduce the bug.
> 
> Regards,
> 

I was creating a little example for you and I was thinking that I got
the error... but I didn't!
So there is a bug in the project I sent you, or something that Gambas
doesn't like... I don't understand...

-- 
Ciao.
Leo.

Web: www.leonardomiliani.com
E-mail: [EMAIL PROTECTED]
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunità italiana degli utenti di Gambas
www.gambas-it.org

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Maybe a bug in how Gambas manages op en DB connections

2008-09-10 Thread Benoit Minisini
On mercredi 10 septembre 2008, Leonardo Miliani wrote:
> Benoit Minisini ha scritto:
> > I cannot do anything with that. If you cannot send the full project,
> > please create and send a project that allows me to reproduce the bug.
> >
> > Regards,
>
> I was creating a little example for you and I was thinking that I got
> the error... but I didn't!
> So there is a bug in the project I sent you, or something that Gambas
> doesn't like... I don't understand...

Maybe you should try to send the full project, with the database. If the 
database is too big, maybe you can just put a few data in it, just what is 
needed to reproduce the bug.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2008-09-10 Thread jbskaggs

Sure-

When I make a package release for say ubuntu, mandrake, debian, fedora, etc
and have gambas IDE make all the packages. It places all the make packages
in one single directory.

When I try and make the packages at seperate times it changes the release
number which really complicates tracking the software.  And its a pain to
manually go back and either change the release number or to try and copy out
which files go with which packages and cut and move them.  (I almost always
end up losing or missing files)

If there was a way to have the IDE request a directory for each different
package:

Right now the IDE asks for one destination directory, but if I could have it
ask for a destination dirctory for each type of linux chosen that would help
alot.

Example:

so for ubuntu I could choose: /home/distro/ubuntu

for fedora I could choose: /home/distro/fedora

etc

does that make sense?

JB


Benoit Minisini wrote:
> 
> On lundi 25 août 2008, jbskaggs wrote:
>> On the  packager utility in gambas- would it be possible to add a feature
>> so when you create more than one linux flavor installation it asks you
>> for
>> a new directory for each flavor?
>>
>> This would make distribution updates much faster.
>>
>> JB Skaggs
> 
> Can you elaborate?
> 
> -- 
> Benoit Minisini
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Feature-request-tp19136261p19425714.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2008-09-10 Thread Benoit Minisini
On jeudi 11 septembre 2008, jbskaggs wrote:
> Sure-
>
> When I make a package release for say ubuntu, mandrake, debian, fedora, etc
> and have gambas IDE make all the packages. It places all the make packages
> in one single directory.
>
> When I try and make the packages at seperate times it changes the release
> number which really complicates tracking the software.  And its a pain to
> manually go back and either change the release number or to try and copy
> out which files go with which packages and cut and move them.  (I almost
> always end up losing or missing files)
>
> If there was a way to have the IDE request a directory for each different
> package:
>
> Right now the IDE asks for one destination directory, but if I could have
> it ask for a destination dirctory for each type of linux chosen that would
> help alot.
>
> Example:
>
> so for ubuntu I could choose: /home/distro/ubuntu
>
> for fedora I could choose: /home/distro/fedora
>
> etc
>
> does that make sense?
>
> JB
>

If I add a the sub-directory automatically from the name of the distribution, 
will it be enough?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2008-09-10 Thread jbskaggs

Perfect!  Thank you.

JB


Benoit Minisini wrote:
> 
> On jeudi 11 septembre 2008, jbskaggs wrote:
>> Sure-
>>
>> When I make a package release for say ubuntu, mandrake, debian, fedora,
>> etc
>> and have gambas IDE make all the packages. It places all the make
>> packages
>> in one single directory.
>>
>> When I try and make the packages at seperate times it changes the release
>> number which really complicates tracking the software.  And its a pain to
>> manually go back and either change the release number or to try and copy
>> out which files go with which packages and cut and move them.  (I almost
>> always end up losing or missing files)
>>
>> If there was a way to have the IDE request a directory for each different
>> package:
>>
>> Right now the IDE asks for one destination directory, but if I could have
>> it ask for a destination dirctory for each type of linux chosen that
>> would
>> help alot.
>>
>> Example:
>>
>> so for ubuntu I could choose: /home/distro/ubuntu
>>
>> for fedora I could choose: /home/distro/fedora
>>
>> etc
>>
>> does that make sense?
>>
>> JB
>>
> 
> If I add a the sub-directory automatically from the name of the
> distribution, 
> will it be enough?
> 
> -- 
> Benoit Minisini
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Feature-request-tp19136261p19426571.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user