[Gambas-user] Drop Event not being raised... but Change is...

2011-03-07 Thread Stephen Bungay
Gambas 2.22

   I am dragging from a listview to a textarea testing drag and drop 
functionality. The interesting thing is that when I drop the item the 
text in the textarea receives it but the drop() event never fires, I can 
trap the Change() event, but not the Drop... anyone else ever run into 
this kind of behaviour?

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Missing data from Process_Read()

2011-03-07 Thread Jussi Lahtinen
There is Make code pretty feature! ;)

Jussi


2011/3/6 Benoît Minisini gam...@users.sourceforge.net

  Hi!
  I'm still working with my experimental profiler.
  It is unconventional and slow (for big projects, very slow), but it seems
  to work (not tested well) if you record whole run (or end of run) of the
  profiled program.
 
  However if you stop recording data before you close profiled program, you
  will lose some data.
  It will never arrive to Process_Read().
 
  So any ideas where that data is lost and how to prevent it?
  Sources attached.
 
  Jussi
  P.S If you run profiler from IDE you may get less accurate results.

 By not correctly indenting your code, you make it very difficult to read...

 --
 Benoît Minisini


 --
 What You Don't Know About Data Connectivity CAN Hurt You
 This paper provides an overview of data connectivity, details
 its effect on application quality, and explores various alternative
 solutions. http://p.sf.net/sfu/progress-d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Missing data from Process_Read()

2011-03-07 Thread Jussi Lahtinen
 In Process_Read(), why do you write that the ReadLine() method does not
 work,
  whereas it does exactly the same thing as Line Input?


You didn't try to uncomment it?
With some earlier revision, it gave strings like something here\nsomething
more, while
Line Input #RunProject, sLine gave them correctly without \n.

This was under investigation and now when I tried to reproduce the problem,
I got broken pipe and signal 11.
With some sources just signal 11.

Gambas 3 rev 3639 @ Ubuntu 10.10 64bit



 Otherwise, you are running the project with the Shell. Use Exec instead,
 the
 behavour may be better. Shell may create a buffered stream between your
 project and the profiled project. That would explain why you lose data.


Tried... but no luck.

I attached new version of profiler.
Now using exec and it doesn't waste memory anymore.

Jussi
BTW, by unconventional I meant inconvenient, but I think that was
obvious to everyone who tried it.


Profiler-0.0.14.tar.gz
Description: GNU Zip compressed data
--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] music error

2011-03-07 Thread abdurrahman ulusoy
Music example  on gambas3 giving error.

Abdurrahman ULUSOY


--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] music error

2011-03-07 Thread Matti
Could you please at least describe the error?
Or send a screenshot?
Or give some informations about your machine?
How should anybody help you or make Gambas better without any information?


Am 07.03.2011 20:41, schrieb abdurrahman ulusoy:
 Music example  on gambas3 giving error.
 
 Abdurrahman ULUSOY
 
 
 --
 What You Don't Know About Data Connectivity CAN Hurt You
 This paper provides an overview of data connectivity, details
 its effect on application quality, and explores various alternative
 solutions. http://p.sf.net/sfu/progress-d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Using Character constants in Gambas

2011-03-07 Thread vikram
Hi,

I am working on an application in which I reuse the same dialog for performing 
different tasks. I have a PUBLIC INTEGER variable(named dialogType) in the 
dialog's .class file. When creating instances of this dialog I set the 
DialogInstance.dialogType to the value(0,1,2,...) which indicates the purpose 
of the dialog. The value of DialogInstance.dialogType is used within the dialog 
to decide what to do with the user input.

I am using numeric values to indicate the dialog type. This isn't very elegant. 
I am looking for the Gambas equivalent of doing a #define CHARCONST value in C.

I have tried using a Collection.

DIM DialogType AS NEW Collection
DialogType[SomeType0] = 0
DialogType[SomeType1] = 1
DialogType[SomeType2] = 2
DialogType[SomeType3] = 3
DialogType[SomeType4] = 4

I am thinking of placing the collection's definition in a Module and then using 
it to replace the numeric constants:
DIM DialogInstance as DialogName
DialogInstance = NEW DialogName
DialogInstance.dialogType = ModuleName.DialogType[SomeType0]
'current code
'DialogInstance.dialogType = 0

Is there a better way of using character constants in Gambas?

Gambas 2.21/Debian 6

Thanks,
Vikram Nair



  
--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user