[Gambas-user] Code Editor Problem

2009-10-16 Thread Kad Mann
This looks like a bug to me. If I create a module name modConstants and add these two lines: PUBLIC CONST BTN_CANCEL AS Integer = 0 PUBLIC CONST BTN_OK AS Integer = 1 If I then edit, say, FMain, I can then refer to those constants by typing the module name and a period. Gambas will then show me

Re: [Gambas-user] Form exit code when [X] clicked

2009-10-16 Thread Kad Mann
On Fri, 2009-10-16 at 17:44 -0700, bbb888 wrote: > I can get an exit code from a form shown with rtn = fm.ShowDialog() correctly > if the user uses an in-form exit such as a exit button : > > > PUBLIC SUB btExit_Click() > > ME.Close(60) > > END > > > > But if the user clicks on the [X] i

Re: [Gambas-user] Form exit code when [X] clicked

2009-10-16 Thread Kad Mann
On Fri, 2009-10-16 at 20:13 -0600, Dimitris Anogiatis wrote: > Hey Bruce, > > Does it work for a normal form (not a Modal one)? lol -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only dev

Re: [Gambas-user] Form exit code when [X] clicked

2009-10-16 Thread Dimitris Anogiatis
Hey Bruce, Does it work for a normal form (not a Modal one)? Regards, Dimitris On Fri, Oct 16, 2009 at 6:44 PM, bbb888 wrote: > > I can get an exit code from a form shown with rtn = fm.ShowDialog() > correctly > if the user uses an in-form exit such as a exit button : > > > PUBLIC SUB btExit_C

[Gambas-user] Project description

2009-10-16 Thread bbb888
Is there a way to access the project description field like Application.title? (or is it a missing property? :thinking: ) bruce -- View this message in context: http://www.nabble.com/Project-description-tp25919813p25919813.html Sent from the gambas-user mailing list archive at Nabble.com. --

[Gambas-user] Form exit code when [X] clicked

2009-10-16 Thread bbb888
I can get an exit code from a form shown with rtn = fm.ShowDialog() correctly if the user uses an in-form exit such as a exit button : PUBLIC SUB btExit_Click() ME.Close(60) END But if the user clicks on the [X] in the titlebar all I get is 0 in rtn. Is there a way to trap the exit

[Gambas-user] saving picturebox as video

2009-10-16 Thread Hartmut Eilers
Hi all, I'm currently writing an application where I have the output of a webcam in a picturebox. After modifying the picturebox with overlayed text and graphics, I want to save the contents of this picturebox in any video format. ( avi, mpg, ogg whatever ) How can that be done ? Can anybody give

Re: [Gambas-user] make Label background from Database field

2009-10-16 Thread Dimitris Anogiatis
Vassili, you might also want to take a look at The Gridview control http://www.gambasdoc.org/help/comp/gb.qt/gridview and the Tableview control http://www.gambasdoc.org/help/comp/gb.form/tableview perhaps one of those two is a better approach than manipulating individual labels If you still wa

Re: [Gambas-user] make Label background from Database field

2009-10-16 Thread Vassilis K
Since I did not want to make labels on run time, I got a solution to show red color as following: PUBLIC SUB Form_Open() DIM i AS Integer DIM rsThesi AS Result DIM iD AS Long MODMain.Connect() rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0") WHILE iD

Re: [Gambas-user] Gambas and cgi

2009-10-16 Thread Alarch
Dimitris Anogiatis wrote: > Hey Marc, > > gambas2-runtime and gambas2-gb-web might be enough to run a cgi > script on your webserver... however if you need to use any other libraries > you need to download then before you can actually use them. > > You also need to set up your webserver to run g

Re: [Gambas-user] Gambas and cgi

2009-10-16 Thread Dimitris Anogiatis
Hey Marc, gambas2-runtime and gambas2-gb-web might be enough to run a cgi script on your webserver... however if you need to use any other libraries you need to download then before you can actually use them. You also need to set up your webserver to run gbw2 as a CGI executable (like php-cgi is

[Gambas-user] Gambas and cgi

2009-10-16 Thread Alarch
Hello, I would like some informations about gambas for cgi. I can't find tutorials about this aspect, in the wiki the link about web app in gambas is in italic (not yet existing). First of all, I am using debian, and I found the package gambas2-gb-web wich seems had hoc. if I dry run the inst

[Gambas-user] How can I zoom -in, zoom-out and rotate a picture?

2009-10-16 Thread Jorge CarriĆ³n
I need a images and pdf viewer. I've found a pdf viewer in the examples and I'm modifiying it to accept both pdf an image files. The problem is that the pdf class has the zoom and orientation method who allows rotate an zoom the image. But I can't find any example about do the same thing with a pic