Re: [Gambas-user] R: how to generation 12 random letters (A-Z and 0-9)

2015-06-02 Thread Paul Horechuk
Just being a bit picky here, but shouldn't that be Rnd(1,36) ? 26 letters and 10 digits? On 15-06-02 08:49 AM, nando wrote: > Alternate: > > Dim j as Byte > Dim s as String > > For j = 1 To 12 >s &= Mid("ABCDEFGJIJKLMOPQRSTUVWXYZ0123456789", Int(1, 13), 1) > Next > > Print s > > > --

Re: [Gambas-user] [gambas-user] Possible bug in gb.gui

2014-12-15 Thread Paul Horechuk
/12/2014 21:10, Paul Horechuk a écrit : >> OK, then let's rephrase that slightly. The gb.gtk component does not >> behave the same as the gb.qt4 component. If I disable the capability to >> autodetect the environment and force the use of gb.qt4, then everything >> works. Hen

Re: [Gambas-user] [gambas-user] Possible bug in gb.gui

2014-12-14 Thread Paul Horechuk
gb.qt4. I do use gb.db, gb.mysql, and gb.odbc, but these should not be an issue without the /Use Database/ option selected. On 14-12-13 07:16 PM, Benoît Minisini wrote: Le 14/12/2014 01:01, Paul Horechuk a écrit : I finally nailed down a bug in my environment. During development using Ubuntu

[Gambas-user] [gambas-user] Possible bug in gb.gui

2014-12-13 Thread Paul Horechuk
I finally nailed down a bug in my environment. During development using Ubuntu 14.04 with the KDE/Plasma desktop and Gambas 3.5.4 up to 3.6.2, everything works. Problems were encountered when I installed a source archive on Fedora 20. This Fedora was with the default Gnome desktop. Gambas was

Re: [Gambas-user] Bad Image format

2014-12-09 Thread Paul Horechuk
; paint.begin(myimage) > > paint.whatyouwant > > paint.end > > myimage.save("myfile.ext") > > > 2014-12-09 15:00 GMT+01:00 Paul Horechuk : >> The actual purpose of the code is to get rid of the DrawingArea. I have a >> program that currently prints an area (not an i

Re: [Gambas-user] Bad Image format

2014-12-09 Thread Paul Horechuk
Picture/Image so that it can be saved? Sent from my ASUS Pad Fabien Bodard wrote: >Le 8 déc. 2014 22:35, "Paul Horechuk" a écrit : >> >> Kubuntu 14.04 LTS x86_64 >> Gambas 3.6.2 >> --- >> Dim PageImage

Re: [Gambas-user] Bad Image format

2014-12-08 Thread Paul Horechuk
Thank you. I wasn't aware of the dimension option. I will give that a try. Sent from my ASUS Pad Jussi Lahtinen wrote: >The image must have some size, example: >PageImage = New Image(10, 10) As "PageImage" > > >Jussi > >On Mon, Dec 8, 2014 at 11:34 PM, Paul

[Gambas-user] Bad Image format

2014-12-08 Thread Paul Horechuk
Kubuntu 14.04 LTS x86_64 Gambas 3.6.2 --- Dim PageImage as Image ... Public Sub Preview() PageImage = New Image As "PageImage" Paint.Begin(PageImage) ' Bad Format PageImage.Load("picture.jpg", 0, 0, 100, 100) Paint.End End -

Re: [Gambas-user] Desktop requirements

2014-11-30 Thread Paul Horechuk
ly happens on my KDE desktop. On a VM session with Fedora 20, there are no crashes, but different problems occur in the printer section. On 14-11-30 02:04 PM, Benoît Minisini wrote: > Le 30/11/2014 19:41, Paul Horechuk a écrit : >> Are there special considerations to implement w

[Gambas-user] Desktop requirements

2014-11-30 Thread Paul Horechuk
Are there special considerations to implement when moving a source project archive from say a KDE desktop to xfce or gnome3? I've developed an app in Gmabas 3.6.2 that is not accepting keyboard input into TextBoxes under alternate desktops. -- Think Free ... Use Open Source Software

Re: [Gambas-user] print resolution issues

2014-10-13 Thread Paul Horechuk
enoit. On 14-10-13 02:22 PM, Paul Horechuk wrote: > Thank you for the examples. > > It appears we are doing a similar process. You use 72 as the resolution > and with 25.4 mm per inch, you get a factor of 0.352778 (MM_X_PX). > > I use 100 for the resolution and use the page di

Re: [Gambas-user] print resolution issues

2014-10-13 Thread Paul Horechuk
nd I use the > compensation factor for the font size (see my examples). > > hope that helps > > gianluigi > > PS: But I think that GTK not interested at the resolution. :-) > > > Il 10/10/2014 21:12, Paul Horechuk ha scritto: >> Thanks. I'll ch

Re: [Gambas-user] print resolution issues

2014-10-10 Thread Paul Horechuk
Thanks. I'll check them out. On 14-10-10 05:04 AM, Gian wrote: > Hello Paul, > > attached two small demonstrations that might inspire you. > gianluigi > > > >> Le 08/10/2014 18:20, Paul Horechuk a écrit : >>> I have a successful project that formats a

Re: [Gambas-user] print resolution issues

2014-10-10 Thread Paul Horechuk
Row + 200 'Play with this to adjust for other Avery form card heights End If Wend 'Make sure everything has been set and locked to the DrawingArea Paint.Stroke 'The page is done Paint.End End Hope this helps. As I mentioned, this process works for th

[Gambas-user] print resolution issues

2014-10-08 Thread Paul Horechuk
I have a successful project that formats a sheet of labels on an Avery form and prints directly to an HP OfficeJet 7500 E910. I set the printer width to 850 and length to 1100 with a resolution of 100. These may not be correct for all (PrinterWidth and length are seen as 216 by 279mm), but by s

[Gambas-user] Gambas3 component Docs

2014-02-15 Thread Paul Horechuk
I've been to gambasdoc.org and it works reasonably well, except if you dig through deep enough, it starts to ask you to log in. I think what I'm really looking for is a list of the end objects, methods, classes, and properties, what they provide, and then what component is required for its use.

[Gambas-user] [Gambas-User] StarField Example

2014-02-14 Thread Paul Horechuk
Could someone please explain the program flow for the Examples/Games/Starfield project? I've stepped through the code after setting a breakpoint. The screen_draw procedure executes immediately following the Public Sub Main() procedure when it finishes. What triggers the Public Sub screen_draw p

Re: [Gambas-user] Problem with Byte datatype ?

2009-01-30 Thread Paul Horechuk
--- >- This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ga