[Gambas-user] Images and Pictures

2010-12-31 Thread Demosthenes Koptsis
Good morning to all,

i make an example for the Image class.
i want to demostrate the methods of Image class.
the example will Clear  Copy  Draw  Fill  Flip  Mirror  Replace  Resize
Rotate  Save  Stretch a picture in an Image class and put the result in
a PictureBox.

Firstly i want the picture from an Image object to put it in a
Picturebox without modify image.
i use the following code:

--
PRIVATE hImage AS Image

PUBLIC SUB Form_Open()

ME.Center
hImage = NEW Image(500, 375, FALSE)
hImage.Load(Application.Path  /nature.png)
PictureBox1.Picture = hImage.Picture

END
--

but the PictureBox1 at runtime is empty.
Why? what am i doing wrong?




-- 
Regards,
Demosthenes Koptsis.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Images and Pictures

2010-12-31 Thread Benoît Minisini
 Good morning to all,
 
 i make an example for the Image class.
 i want to demostrate the methods of Image class.
 the example will Clear  Copy  Draw  Fill  Flip  Mirror  Replace  Resize
 Rotate  Save  Stretch a picture in an Image class and put the result in
 a PictureBox.
 
 Firstly i want the picture from an Image object to put it in a
 Picturebox without modify image.
 i use the following code:
 
 --
 PRIVATE hImage AS Image
 
 PUBLIC SUB Form_Open()
 
 ME.Center
 hImage = NEW Image(500, 375, FALSE)
 hImage.Load(Application.Path  /nature.png)
 PictureBox1.Picture = hImage.Picture
 
 END
 --
 
 but the PictureBox1 at runtime is empty.
 Why? what am i doing wrong?

I guess you didn't read the documentation of the Image class :-). 

Image.Load() is a static method. So:

hImage = Image.Load(Application.Path / nature.png)

And you didn't specify which version of gambas you use. Please do make an 
example for Gambas 3!

Regards,

-- 
Benoît Minisini

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] time measure milliseconds ?

2010-12-31 Thread Benoît Minisini
 (aded the code here, maybe easier now)
 I have some general questions to the attached code.
 
  'A: this works ok
 
   DIM result_T as Date
   result_T = Now - start_T
   ValueBox1.Value = Format$(result_T, uu)
 
   'B: bad fornmat string
   'ValueBox1.Value = Format$(Now - start_T, uu)
 
   'C: no msec possible ?
   'ValueBox1.Value = DateDiff(start_T, Now, 1)
 
 why B gives a bad formatstring error ?

Because Now - start_T is not a date. Arithmetic operators always convert date 
to float at the moment.

 Is there a possibility to make DateDiff return msec ?

In Gambas 3, I could add an option for that.

 
 Since SVN 3410 my error balloon are shown too short to read them.
 How can i change this ?

Is it better with the last revision?

 
 I there a pool for example contributions ?
 I want to send a _draw_event example code.

Send them to the mailing-list, I will tell you if they are good enough! Or 
post them to Fabien's Gambas web site, if it is ready.

Regards,

-- 
Benoît Minisini

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ProgressBar(gb.qt4)

2010-12-31 Thread Benoît Minisini
ProgressBar.Background works ok (but the colors are somewhat dark-grey).
But ProgressBar.Foreground does nothing.
The bar is always blue, and the label stays black/white.
Shouldn't it be possible to change the color of the bar?
Regards
Matti

Maybe not. This is controlled by the underlying widget style.

Regards,

-- 
Benoît Minisini

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [OT]gambas 3 release or otherwise as binary package

2010-12-31 Thread EA7DFH
El 17/09/10 02:09, Benoît Minisini escribió:

 
 I want to make at least a first release candidate before the end of the year.
 
...
 
 So is the plan!
 

Finally, 2010 is over and we have not an RC of Gambas3. No problem at
all, no rush here. I only want to wish you guys all the best for the New
Year 2011. Many thanks to Benoît and to all developers for your hard work.

HNY 2011 !!

Sincerely
-- 
Jesus, EA7DFH

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] time measure milliseconds ?

2010-12-31 Thread wally
On Friday 31 December 2010 14:45:53 Benoît Minisini wrote:
  Since SVN 3410 my error balloon are shown too short to read them.
  How can i change this ?
 
 Is it better with the last revision?
 

Yes, much better. Thank you

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Using a timer and Last

2010-12-31 Thread richard terry
Hi List

I've a couple of timers on different forms, which I need to auto-update some 
stuff periodically.

What's the theory with Last and timers.

for example say my program is executing a subroutine which uses Last, but at 
that instance the timer fires and becomes Last, can things go wrong?

Can just the Public = False property of the timer, mean it then cannot be the 
Last event to fire?

Regards

Richard

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Further news on valuebox bugs in Gambas3

2010-12-31 Thread Michael
I reported bugs when a date valuebox is housed in a Vbox. I then moved 
all my controls to a Panel and got the same problems if the 
Panel.Arrangement was set to Vertical.
I then moved all Valueboxes to a Frame and got no problems. Obviously 
the Frame does not have an Arrangement property.

One further clue. When overcoming the problems, by using a Frame or by 
setting .Arrangement to NONE in Vbox or Panel, the datePicker disappears 
from the ValueBox.

Hope this helps.

-- 
Regards
Michael


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] More on Print bugs.

2010-12-31 Thread Michael
Benoit,
I have investigated print problems further and posted following question 
on Ubuntu One website. It would appear to be a Ubuntu problem not a 
Gambas problem.

There are many different Print dialogs but one is very common and is 
used by Gimp, Shutter, Evloution and Simple Scan. In all these apps the 
Page Size and Orientation are disabled. The same dialog in Firefox, 
Thunderbird and GEdit works OK. I program in Gambas3 which uses this 
dialog in conjunction with the GTK+ library and it also has these 
options disabled. If I use the QT4 library then a different print dialog 
is displayed with no problems. Anybody else notice this problem and 
found a solution?

-- 
Regards
Michael


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [OT]gambas 3 release or otherwise as binary package

2010-12-31 Thread Benoît Minisini

 Finally, 2010 is over and we have not an RC of Gambas3. No problem at
 all, no rush here. I only want to wish you guys all the best for the New
 Year 2011. Many thanks to Benoît and to all developers for your hard work.
 
 HNY 2011 !!
 
 Sincerely

Yep. But I'm not so far from the goal! It's Gambas users' fault: how could 
they find so many bugs in the last two weeks? :-)

Happy new year!

-- 
Benoît Minisini

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Label.Adjust

2010-12-31 Thread Demosthenes Koptsis
Hello, and happy new year with best wishes!

Yes, now the width dimension is ok.


On Fri, 2010-12-31 at 15:46 +0100, Benoît Minisini wrote:
  sorry Benoit i send you wrong project
  
  here it is the corect, but it is not something special.
  
  the code is
  
  -
  PUBLIC SUB Form_Open()
  
   PRINT Label1.Height
   PRINT Label1.Width
   Label1.Text =  This is a long text, sghssgh fshsfg dfg fdg sad
  gfsda asdg sd
   Label1.Adjust
   PRINT Label1.Height
   PRINT Label1.Width
  
   END
  -
  
  
  in my machine with ubuntu 10.04 i get
  
  117
  72
  
  19
  72
  
 
 Is it better with revision #3417?
 

-- 
Regards,
Demosthenes Koptsis.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user