Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
DRAWAREA - draw cubes
DRAW CUBES

qsdf.png
Here you find a small application to draw thousand of cubes in a drawarea

DOWNLOAD EXAMPLE HERE

sample code of application :

' gambas class File
PUBLIC SUB _new()
END
PUBLIC SUB form_OPEN()
me.center
END
PUBLIC SUB button1_click()
DIM i AS Integer
DIM x AS Integer
DIM y AS Integer
draw.begin(da)
FOR i = 1 TO 200000
draw.fillcolor = int(rnd(&hffffff&))
draw.fillstyle = fill.solid
x = int(rnd(da.width))
y = int(rnd(da.height))
draw.rect(x - 7, y - 7, 7, 7)
NEXT
draw.END
END
PUBLIC SUB button2_click()
me.CLOSE
END
 

Creation date : 20/12/2009 @ 10:48
Last update : 27/01/2012 @ 22:23
Category : DRAWAREA
Page read 5738 times


Print the article Print the article


react.gifReactions to this article


Reaction #2 

by spheris 17/06/2020 @ 21:18

Jacques,
Ce code était pour la version 2 de gambas. Voici le même code pour la version 3 de gambas. Celui ci fonctionne :

http://gambaslinux.fr/file/drawarea/drawareagb3-0.0.2.tar.gz

k

Reaction #1 

by Jacques 17/06/2020 @ 16:54

 Salut ...!
Hé j' ai essayé mais ça ne marche pas !!!
Hélas ...!
J-B

QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^