Re: [Gambas-user] How to read mouse wheel string

2013-04-13 Thread Simonart Dominique
May be you have to make Clipboard.Copy() before to Paste? hth Simonart Le 13/04/2013 17:32, Fabien Bodard a écrit : I don't know... Le 13 avr. 2013 14:24, Ru Vuott vu...@yahoo.it a écrit : Thank you Fabien, but if I want to use clipboard.Paste() Gambas function, after simply highlighted an

Re: [Gambas-user] String and textboxes

2011-03-08 Thread Simonart Dominique
Hi, With Gambas2 v2.21 it works exactly as you want! Tested with Label and TextBox regards Le 08/03/2011 20:11, k p a écrit : When doing the following: TextLabel1.Text = i TextBox1.TextiEQU 0 I expect a string in a text box, which I get. However the length of the spacing

[Gambas-user] feature suggestion

2011-01-09 Thread Simonart Dominique
Hi, Often I've to write things like that: With Joueur(0) If Joueur(2).Nombre(Joueur(2).C1) .Nombre(.C1) Then ... ... End With As I already have a With Joueur(0) activated I cannot define another one for Joueur(2). It would be nice to have the possibility to define temporary Alias

Re: [Gambas-user] feature suggestion

2011-01-09 Thread Simonart Dominique
Of course you are right! The Joueur() instances of my class are quite big, but nowadays the RAM is gigantic! this is surely a reminiscence of my economy of RAM syndrom coming from the Amiga's days (512KK) so, Forget it! regards Dominique Simonart Le 09/01/2011 23:06, Benoît Minisini a

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Simonart Dominique
Le 19/11/2010 14:58, Fabien Bodard a écrit : 2010/11/19 Demosthenes Koptsisdemosthen...@gmail.com: ok! i was cofused from two things Hi all, I tend to get a little confused too! Are these assumptions correct? If array notation is on Variable name, array is STATIC If array notation is on

Re: [Gambas-user] Huge executable.

2010-10-22 Thread Simonart Dominique
Le 22/10/2010 16:33, Fabien Bodard a écrit : 2010/10/22 Demosthenes Koptsisdemosthen...@gmail.com: i use Gambas 2.21 on Ubuntu 10.04. i test the project at 32bit and 64 bit Pcs and produce the same behavior (huge executable) this is the project

Re: [Gambas-user] How to create event to control created at runtime

2010-05-12 Thread Simonart Dominique
Hi, Just add As ClickEventName regards Le 12/05/2010 17:18, craf a écrit : Hi. I would like to know how to associate a click event to a button control created at runtime. I know the code to create the button is: Dim myButton as new Button (Fmain) but what I need is to create the click

Re: [Gambas-user] fastest way to zero-out a huge binary file

2010-01-25 Thread Simonart Dominique
not permit me to say more. Please, if someone could correct me, thanks in advance to do it! regards, Dominique Simonart Le 25/01/2010 00:17, Simonart Dominique a écrit : Hi, I've just a crude idea and know nothing more on this subject! If you assume that each value in your big array is a color

Re: [Gambas-user] fastest way to zero-out a huge binary file

2010-01-24 Thread Simonart Dominique
Hi, I've just a crude idea and know nothing more on this subject! If you assume that each value in your big array is a color value instead of an integer, may be you can find some graphic effect wich simulate your algorithm. It seems to me that it's like to find an intermediate color between 2

Re: [Gambas-user] LEN()

2009-12-12 Thread Simonart Dominique
Hi, Len() function is based on one-byte character, but some characters need 2 bytes code, like the german's you mentionned. Use the String class methods and all will works as you expected HTH Dominique Simonart Norarg a écrit : hi, I get a bit strange results from the LEN()-function. If

Re: [Gambas-user] The define style of many element string array

2009-06-25 Thread Simonart Dominique
Steven James Drinnan a écrit : As far as I know just one by one. Write one line by one line. ss[0] = jkl ss[1] = 9080| ss[2] = jim ss[3] = ren ss[4] = mu8 I may be wrong and others can give there 2 cents worth. Steven On Thu, 2009-06-25 at 15:40 -0700, Swee Kwang Tan wrote:

Re: [Gambas-user] Pb with transparency?

2009-04-27 Thread Simonart Dominique
Benoît Minisini a écrit : Hi, Gambas 2.12 with QT I had a prog that worked well in Gambas 2.11 but now it doesn't work correctly for all the images with transparent areas. Here is a very short illustration of the problem DIM PicSac AS Picture DIM PicCase AS Object[] Dim i AS Integer

Re: [Gambas-user] Pb with transparency?

2009-04-27 Thread Simonart Dominique
Benoît Minisini a écrit : Benoît Minisini a écrit : Hi, Gambas 2.12 with QT I had a prog that worked well in Gambas 2.11 but now it doesn't work correctly for all the images with transparent areas. Here is a very short illustration of the problem DIM PicSac AS Picture DIM PicCase AS

[Gambas-user] Pb with transparency?

2009-04-26 Thread Simonart Dominique
Hi, Gambas 2.12 with QT I had a prog that worked well in Gambas 2.11 but now it doesn't work correctly for all the images with transparent areas. Here is a very short illustration of the problem DIM PicSac AS Picture DIM PicCase AS Object[] Dim i AS Integer PicCase.Resize(2) FOR i = 0 TO 1

Re: [Gambas-user] Object creating properties? ball.speed, ball.solid, etc

2009-04-18 Thread Simonart Dominique
jbskaggs a écrit : I need to know how to either create an object to where I can attach a list of variables or how to give myself the ability to do the following: lets say I want to name my special object: ball. I want to be able to create special properties for that ball I can access

Re: [Gambas-user] binary numeral system

2009-04-15 Thread Simonart Dominique
vlahonick vlahonick a écrit : hello all :D i am trying to create a program that calculates a number from the binary numeral system and gives a result example of what the program will do : we have the number (at binary numeral system) 10011 so to have result we have to do

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Simonart Dominique
vlahonick vlahonick a écrit : hello all :D i am trying to create a program that calculates a number from the binary numeral system and gives a result example of what the program will do : we have the number (at binary numeral system) 10011 so to have result we have to do

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Simonart Dominique
Ron_1st a écrit : On Tuesday 14 April 2009, Simonart Dominique wrote: PUBLIC SUB Button1_Click() DIM S AS String DIM i, y, N AS Integer S = TextArea1.Text y = Len(S) if y = 0 THEN RETURN N = 0 FOR i = 1 to y d = Val(Mid(S, i, 1)) ' I assume that d is 0 or 1

Re: [Gambas-user] A random sort of listview

2009-04-13 Thread Simonart Dominique
Hi Doriano, I agree to everything you wrote. I thought the same about what you wrote! :) ... Then, recalling to my mind the way a person shuffles cards by hand, I tried to express another algorithm, which in a certain way lets you to adjust the randomness: a person can shuffle very

Re: [Gambas-user] A random sort of listview

2009-04-11 Thread Simonart Dominique
Hi, jbskaggs a écrit : Okay I thought this was worked out but its still not working- I always end up losing the last two list items. Here is the console output from my print statements: This first list is printing i, a from this command SWAP myArray[i], myArray[a] 21 21 20 13

Re: [Gambas-user] A random sort of listview

2009-04-08 Thread Simonart Dominique
On Wed, Apr 8, 2009 at 00:12, Simonart Dominique simonart.domini...@wanadoo.fr wrote: Hi, jbskaggs a écrit : Okay, But why does it do that? I don't see why the direction should matter what am I missing ? Becuase maybe this is something that has plagued me and caused me headaches

Re: [Gambas-user] A random sort of listview

2009-04-07 Thread Simonart Dominique
be any of the non selected values myArray[199] will never be affected anymore * i=197 ... at each step, NEVER you could affect an already selected value I found the second case more satisfying for my mind! :) Hope this send your headache away! :) Dominique Simonart Simonart Dominique wrote: Hi

Re: [Gambas-user] A random sort of listview

2009-04-06 Thread Simonart Dominique
jbskaggs a écrit : I came up with a way to random sort listview. (Iuse this for random shuffling card slots on games) But it isnt efficient some pointers if you dont mind? I use two listviews one to sort from and one to sort to: I first copy all the listitems from list 1 to list 2

Re: [Gambas-user] A random sort of listview

2009-04-06 Thread Simonart Dominique
Simonart Dominique a écrit : jbskaggs a écrit : I came up with a way to random sort listview. (Iuse this for random shuffling card slots on games) But it isnt efficient some pointers if you dont mind? I use two listviews one to sort from and one to sort to: I first copy all the listitems

Re: [Gambas-user] Function Len in gambas2

2009-04-01 Thread Simonart Dominique
vlahonick vlahonick a écrit : hi again...sorry about the delay in my reply :D but i really didnt understand ur example here of course now i realise that even the textbox2.text had the reasult i wanted the problem will be in the letters appering because of their bytes... but the main

Re: [Gambas-user] How to compile Gambas in Fedora 10

2009-03-27 Thread Simonart Dominique
Marc Miralles a écrit : Hi all: Some idea or link about how to compile Gambas 2.12 or Gambas 3 in Fedora 10 In gambas website don't have information about what packages are necessaries for compile Gambas in Fedora 10 and some components are disabled when compile in Fedora 10. Please,

Re: [Gambas-user] How to know permanently the cursor coordinates in a gridview?

2009-02-24 Thread Simonart Dominique
Benoît Minisini a écrit : Hi, I've a main Gridview (grdGame) surrounded by 2 other grids, grdHdef on top and grdVdef on left of grdGame When the mouse cursor is over the main grid, I want to highlight a column of the top grid and a row of the left grid facing the cursor position. How to

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

2009-01-29 Thread Simonart Dominique
Dominique SIMONART a écrit : Hi evererybody, If I code the few lines showed below: DIM X AS Byte DIM Texte AS String[64] X = h2E X += hE0 TextBox1.Text = Hex(X) Texte[X] = Hex(X) I get '10E' displayed. Is this correct for a byte? If you put a breakpoint on the TextBox1

Re: [Gambas-user] Signal 11 while initializing a property

2009-01-23 Thread Simonart Dominique
small (15.4K) regards Dominique Simonart Simonart Dominique a écrit : Hi Julien, You are right! I read your post and I understand the reason, but you don't speak about Signal 11, so I was thinking for another problem although similar regards, Dominique Simonart Jussi Lahtinen a écrit

Re: [Gambas-user] Emulating wizard Back/Next navigation

2008-12-11 Thread Simonart Dominique
it work on the IDE :( On Thu, Dec 11, 2008 at 2:23 PM, Simonart Dominique simonart.domini...@wanadoo.fr wrote: M0E Lnx a écrit : I have to say, the array idea makes more sense to me, simply because otherwise, it'll be hard to tell the next and back buttons which sub to run. I have tried an array

[Gambas-user] Infinite loop with the image editor

2008-12-09 Thread Simonart Dominique
Hi, May be it's me, but ... in the gambas 2.9 IDE (opensuse 11.0 KDE 3, Qt project), create a new image1.png file. after drawing something on the area, select the transparent color and the fill tool then click on a colored pixel and you enter in infinite loop. By the way, I search a solution