gambas-devel Mailing List for Gambas (Page 6)
Brought to you by:
gambas
This list is closed, nobody may subscribe to it.
| 2003 |
Jan
(8) |
Feb
(17) |
Mar
(10) |
Apr
(19) |
May
(39) |
Jun
(82) |
Jul
(12) |
Aug
(21) |
Sep
(50) |
Oct
(21) |
Nov
(45) |
Dec
(42) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(83) |
Feb
(58) |
Mar
(18) |
Apr
(63) |
May
(33) |
Jun
(36) |
Jul
(42) |
Aug
(154) |
Sep
(90) |
Oct
(117) |
Nov
(120) |
Dec
(73) |
| 2005 |
Jan
(231) |
Feb
(117) |
Mar
(157) |
Apr
(94) |
May
(42) |
Jun
(41) |
Jul
(62) |
Aug
(75) |
Sep
(46) |
Oct
(72) |
Nov
(74) |
Dec
(25) |
| 2006 |
Jan
(34) |
Feb
(18) |
Mar
(84) |
Apr
(40) |
May
(19) |
Jun
(43) |
Jul
(59) |
Aug
(101) |
Sep
(123) |
Oct
(49) |
Nov
(80) |
Dec
(18) |
| 2007 |
Jan
(28) |
Feb
|
Mar
(1) |
Apr
(25) |
May
(11) |
Jun
(8) |
Jul
(9) |
Aug
(12) |
Sep
(13) |
Oct
(17) |
Nov
(73) |
Dec
(15) |
| 2008 |
Jan
(108) |
Feb
(34) |
Mar
(112) |
Apr
(82) |
May
(56) |
Jun
(74) |
Jul
(31) |
Aug
(72) |
Sep
(47) |
Oct
(9) |
Nov
(17) |
Dec
(11) |
| 2009 |
Jan
(139) |
Feb
(33) |
Mar
(16) |
Apr
(10) |
May
(11) |
Jun
(6) |
Jul
(86) |
Aug
(50) |
Sep
(13) |
Oct
(27) |
Nov
(59) |
Dec
(243) |
| 2010 |
Jan
(61) |
Feb
(31) |
Mar
(7) |
Apr
(22) |
May
(15) |
Jun
(12) |
Jul
(13) |
Aug
(33) |
Sep
(5) |
Oct
(33) |
Nov
(27) |
Dec
(19) |
| 2011 |
Jan
(16) |
Feb
(41) |
Mar
(7) |
Apr
(13) |
May
|
Jun
|
Jul
(10) |
Aug
(67) |
Sep
(7) |
Oct
(23) |
Nov
(5) |
Dec
(5) |
| 2012 |
Jan
(40) |
Feb
(53) |
Mar
(6) |
Apr
(35) |
May
(50) |
Jun
(19) |
Jul
(43) |
Aug
(110) |
Sep
(71) |
Oct
(24) |
Nov
(13) |
Dec
(18) |
| 2013 |
Jan
(13) |
Feb
(9) |
Mar
(29) |
Apr
(6) |
May
(18) |
Jun
(4) |
Jul
(24) |
Aug
(25) |
Sep
(30) |
Oct
(30) |
Nov
(8) |
Dec
(6) |
| 2014 |
Jan
(1) |
Feb
(3) |
Mar
|
Apr
(28) |
May
(6) |
Jun
(12) |
Jul
(8) |
Aug
(14) |
Sep
(128) |
Oct
(31) |
Nov
(27) |
Dec
(19) |
| 2015 |
Jan
(5) |
Feb
(3) |
Mar
(11) |
Apr
(4) |
May
(10) |
Jun
|
Jul
(1) |
Aug
(11) |
Sep
(20) |
Oct
(19) |
Nov
|
Dec
(6) |
| 2016 |
Jan
(1) |
Feb
(1) |
Mar
(11) |
Apr
(4) |
May
|
Jun
(7) |
Jul
|
Aug
|
Sep
(6) |
Oct
(22) |
Nov
(6) |
Dec
(8) |
| 2017 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(2) |
May
|
Jun
(6) |
Jul
(28) |
Aug
(87) |
Sep
(4) |
Oct
(1) |
Nov
|
Dec
|
|
From: Karl R. <kar...@fe...> - 2017-06-21 13:53:18
|
Salut Benoît since Revision: 8143 I get the svn-mail twice Any idea? -- Amicalement Charlie |
|
From: Yizhou He <yiz...@gm...> - 2017-04-24 04:59:13
|
Hi, Sorry if I post in wrong mail list. Lost all my contact in email after finish graduate school. They take my mail box away. Please let me know where I'm supposed to submit the updated translation file if I post in wrong list. Thanks, Yizhou He |
|
From: Tobias B. <ta...@gm...> - 2017-04-02 18:41:22
|
On Sun, 02 Apr 2017, tob...@us... wrote: > Revision: 8116 > http://sourceforge.net/p/gambas/code/8116 > Author: tobiasboe > Date: 2017-04-02 14:59:50 +0000 (Sun, 02 Apr 2017) > Log Message: > ----------- > [GB.XML] > * BUG: .XmlReader.Node.Attributes: Raise an error instead of segfault when an attribute does not exist > * NEW: .XmlReader.Node.Attributes.Exist() is a new method to check if an attribute is present > * BUG: XmlReader: Fix recognition of CDATA elements when their contents look like XML > * BUG: XmlReader: Correctly detect ending sequence of CDATA and comment sections (reset the recognition state when the sequence is interrupted) > I just explained these changes to someone else and became aware that these 4 lines may not be specific enough as to where the errors were. Well, at least the last two lines. The first line was simply a NULL pointer dereference and prompted me to add the Exist() method. The error from the third line could be triggered by a CDATA node such as: <![CDATA[<b>Hello</b>]]> Entering a CDATA node sets inCDATA = true, but this state wasn't considered in nearly enough places. Before this commit, the <b> tag inside CDATA would have been found (although it should have been ignored), the CDATA node discarded and a <b> node reported instead. The fourth line's error was revealed by a CDATA node like: <![CDATA[Text with a "]" inside]]> As I understood the previous code, it would *not* search for the exact sequence "]]>" to terminate a CDATA node but it would only *count* "have I seen one ']'?", "have I seen two ']'?" and "have I seen a '>" after that?" which results in the first occurence of "]" being eaten and the last occurence being treated as a superfluous "]" character. For a superfluous character you chose to append it to the end of the CDATA string, so the above XML would produce a CDATA node with value Text with a "" inside] Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk |
|
From: Benoît M. <ga...@us...> - 2017-03-03 19:47:03
|
Le 03/02/2017 à 13:08, Casper a écrit : > Greetings all, > > I have started an Afrikaans translation for Gambas. I am about 40% > complete already with gambas3, 100% with gb.wiki and gambas-wiki, > though not the wiki content (for which I have already registered on > the Gambas bugtracker.) > > My sourceforge user name is casperl > > I believe someone has to grant svn access so that I may submit the > following three files: > > gambas3-3.9.2/app/src/gambas-wiki/.lang/af.po > gambas3-3.9.2/app/src/gb.wiki/.lang/af.po > gambas3-3.9.2/app/src/gambas3/.lang/af.po > > I trust that I have understood the instructions regarding translation correctly. > > Thanks in advance. > Hi, Sorry, I forgot your mail. You should have now write access to the svn repository, so that you can commit your translations. Regards, -- Benoît Minisini |
|
From: Casper <cas...@gm...> - 2017-02-03 12:08:47
|
Greetings all, I have started an Afrikaans translation for Gambas. I am about 40% complete already with gambas3, 100% with gb.wiki and gambas-wiki, though not the wiki content (for which I have already registered on the Gambas bugtracker.) My sourceforge user name is casperl I believe someone has to grant svn access so that I may submit the following three files: gambas3-3.9.2/app/src/gambas-wiki/.lang/af.po gambas3-3.9.2/app/src/gb.wiki/.lang/af.po gambas3-3.9.2/app/src/gambas3/.lang/af.po I trust that I have understood the instructions regarding translation correctly. Thanks in advance. |
|
From: Fabien B. <gam...@gm...> - 2017-01-10 20:29:38
|
cool :-) 2017-01-10 20:42 GMT+01:00 Bastian Germann <bas...@fi...>: > My cygport was finally published in the official Cygwin repository: > https://cygwin.com/ml/cygwin-announce/2017-01/msg00018.html > > I added installation instructions at > http://gambaswiki.org/wiki/install/cygwin > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-devel mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Fabien Bodard |
|
From: Bastian G. <bas...@fi...> - 2017-01-10 20:06:47
|
My cygport was finally published in the official Cygwin repository: https://cygwin.com/ml/cygwin-announce/2017-01/msg00018.html I added installation instructions at http://gambaswiki.org/wiki/install/cygwin |
|
From: RichardB <dee...@bi...> - 2016-12-22 21:47:15
|
Thanks Fabien! That's precisely what I was looking for. -- View this message in context: http://gambas.8142.n7.nabble.com/Transparent-DrawingArea-tp58023p58056.html Sent from the gambas-devel mailing list archive at Nabble.com. |
|
From: Fabien B. <gam...@gm...> - 2016-12-22 09:33:22
|
Ok Richard this is a working exemple just for you. Fill free to query us about all you want. |
|
From: RichardB <dee...@bi...> - 2016-12-21 03:40:52
|
Hi Fabien:
Thanks for your advice. Still having problems.
I've changed my code to what you gave me:
Private $hImage As Image
Public Sub btnImage_Click()
Dialog.Path = "/ home / gambas / projects / images"
Dialog.Filter = ["Image files (* .jpg; * .jpeg; * .png; * .bmp)", "All
files( * . * )"]
If Dialog.OpenFile() Then Return
$hImage = New Image
$hImage.Load(Dialog.Path)
dwgImage.Resize($hImage.Width, $hImage.Height)
dwgImage.Refresh
Catch
Message.Warning(Error.Text & "!")
End
Public Sub dwgImage_Draw()
Draw.Begin(dwgImage)
Draw.Fillcolor = Color.Gray
Draw.FillStyle = Fill.Solid
Draw.Rect(0, 0, $hImage.Width, $hImage.Height)
Draw.Image($hImage, 0, 0)
Draw.End
End
Public Sub btnDraw_Click()
dwgImage_Draw
End
Running the code will allow me to open the dialog and select a jpg.
Stopping the code after executing the "$hImage.Load(Dialog.Path)" line shows
me that the value of Pixels for $hImage is "Out of bounds" and that the
height and width are both 0, so something is causing the image load to fail.
The Dialog.Path is correct, showing the correct path and filename. The
Cached property for dwgImage is True. What am I missing?
--
View this message in context: http://gambas.8142.n7.nabble.com/Transparent-DrawingArea-tp58023p58052.html
Sent from the gambas-devel mailing list archive at Nabble.com.
|
|
From: Fabien B. <gam...@gm...> - 2016-12-20 09:05:45
|
You cant drawing in a DrawingArea outside the draw event. Gambas use
ascynchronous drawing. (You can nevertheless set the cache mode to
true)
But prefer this :
Private $hImage as Image
Public Sub btnImage_Click()
Dialog.Path = "/ home / gambas / projects / images"
Dialog.Filter = ["Image files (* .jpg; * .jpeg; * .png; * .bmp)", "All
files (*. *)"]
If Dialog.OpenFile() Then Return
$hImage = New Image
$hImage.Load(Dialog.Path)
dwgImage.Resize(hImage.Width, hImage.Height)
dwgImage.Refresh
Catch
Message.Warning(Error.Text & "!")
End
Public Sub dwgImage_Draw()
Draw.Fillcolor = Color.Gray
Draw.FillStyle = Fill.Solid
Draw.Rect(0, 0, $hImage.Width, $hImage.Height)
Draw.Image($hImage, 0, 0)
Draw.End
End
Nota: The Draw Class is Deprecated, prefer the use of the Paint Class
for drawing. Paint is vector based and is far more powerfull. (and the
current Draw class is based on the paint one)
The _Draw Sub with the _Data sub of the grid view is one of the
fabulous things of gambas. But it take a little bit of cerebral
training, because thinking in term of separate Data / Viewer is not
natural. But so powerfull.
2016-12-19 22:24 GMT+01:00 RichardB <dee...@bi...>:
> Thanks for the advice - much appreciated. But I'm still having problems.
>
> I tried a simple test by creating a form with just a single button
> (btnImage) and a DrawingArea (dwgImage) on it. I added the following code
> to the button's click function:
>
> Public Sub btnImage_Click()
> Dim hImage As Image
> Dialog.Path = "/ home / gambas / projects / images"
> Dialog.Filter = ["Image files (* .jpg; * .jpeg; * .png; * .bmp)", "All
> files (*. *)"]
> If Dialog.OpenFile() Then Return
> hImage = New Image
> hImage.Load(Dialog.Path)
> dwgImage.Resize(hImage.Width, hImage.Height)
> dwgImage.Clear()
> Draw.Begin(dwgImage)
> Draw.Fillcolor = Color.Gray
> Draw.FillStyle = Fill.Solid
> Draw.Rect(0, 0, hImage.Width, hImage.Height)
> Draw.Image(hImage, 0, 0)
> Draw.End
> dwgImage.Visible = True
> Catch
> Message.Warning(Error.Text & "!")
> End
>
> When run, the dialog opens fine, I select the image ok...but it fails on the
> "Draw.Begin(dwgImage) " line, with the error "Cannot paint outside of draw
> event handler". I can't see where I've made an error.
>
> Thanks again for your help.
>
>
>
> --
> View this message in context: http://gambas.8142.n7.nabble.com/Transparent-DrawingArea-tp58023p58033.html
> Sent from the gambas-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> _______________________________________________
> Gambas-devel mailing list
> Gam...@li...
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
--
Fabien Bodard
|
|
From: RichardB <dee...@bi...> - 2016-12-19 22:57:06
|
Thanks for the advice - much appreciated. But I'm still having problems.
I tried a simple test by creating a form with just a single button
(btnImage) and a DrawingArea (dwgImage) on it. I added the following code
to the button's click function:
Public Sub btnImage_Click()
Dim hImage As Image
Dialog.Path = "/ home / gambas / projects / images"
Dialog.Filter = ["Image files (* .jpg; * .jpeg; * .png; * .bmp)", "All
files (*. *)"]
If Dialog.OpenFile() Then Return
hImage = New Image
hImage.Load(Dialog.Path)
dwgImage.Resize(hImage.Width, hImage.Height)
dwgImage.Clear()
Draw.Begin(dwgImage)
Draw.Fillcolor = Color.Gray
Draw.FillStyle = Fill.Solid
Draw.Rect(0, 0, hImage.Width, hImage.Height)
Draw.Image(hImage, 0, 0)
Draw.End
dwgImage.Visible = True
Catch
Message.Warning(Error.Text & "!")
End
When run, the dialog opens fine, I select the image ok...but it fails on the
"Draw.Begin(dwgImage) " line, with the error "Cannot paint outside of draw
event handler". I can't see where I've made an error.
Thanks again for your help.
--
View this message in context: http://gambas.8142.n7.nabble.com/Transparent-DrawingArea-tp58023p58033.html
Sent from the gambas-devel mailing list archive at Nabble.com.
|
|
From: Fabien B. <gam...@gm...> - 2016-12-16 10:36:04
|
Maybe you can share your code so we can drive you in the good way. And say us what is your goal. 2016-12-16 9:28 GMT+01:00 Moviga Technologies <mo...@my...>: > You can draw the image in the DrawingArea, and then draw on top of it. > > > Den 16. des. 2016 00:46, skrev RichardB: >> I’m trying to develop an app in Gambas v3.9.1 that uses a transparent >> DrawingArea layered over a PictureBox – the intention is to load a picture >> into the PictureBox and mark points (or lines) on the DrawingArea for >> measurement. I’m a newbie to Gambas – does anyone have any advice on how to >> get this to work? Or is there a better way to do this? >> >> >> >> -- >> View this message in context: http://gambas.8142.n7.nabble.com/Transparent-DrawingArea-tp58023.html >> Sent from the gambas-devel mailing list archive at Nabble.com. >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-devel mailing list >> Gam...@li... >> https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-devel mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Fabien Bodard |
|
From: Moviga T. <mo...@my...> - 2016-12-16 08:28:27
|
You can draw the image in the DrawingArea, and then draw on top of it. Den 16. des. 2016 00:46, skrev RichardB: > I’m trying to develop an app in Gambas v3.9.1 that uses a transparent > DrawingArea layered over a PictureBox – the intention is to load a picture > into the PictureBox and mark points (or lines) on the DrawingArea for > measurement. I’m a newbie to Gambas – does anyone have any advice on how to > get this to work? Or is there a better way to do this? > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Transparent-DrawingArea-tp58023.html > Sent from the gambas-devel mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-devel mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-devel |
|
From: RichardB <dee...@bi...> - 2016-12-16 01:18:04
|
I’m trying to develop an app in Gambas v3.9.1 that uses a transparent DrawingArea layered over a PictureBox – the intention is to load a picture into the PictureBox and mark points (or lines) on the DrawingArea for measurement. I’m a newbie to Gambas – does anyone have any advice on how to get this to work? Or is there a better way to do this? -- View this message in context: http://gambas.8142.n7.nabble.com/Transparent-DrawingArea-tp58023.html Sent from the gambas-devel mailing list archive at Nabble.com. |
|
From: Benoît M. <ga...@us...> - 2016-11-13 20:41:42
|
Le 13/11/2016 à 21:32, Benoît Minisini a écrit : > Le 13/11/2016 à 21:26, Fabien Bodard a écrit : >> Hi Benoit, >> Why this need to have a prefix ? In the case of this component there >> is no way to have collid with a graphical component ! isn't it ? >> > > For the IDE, and because if two classes have the same name, they should > do the same thing more or less, and be interchangeable. > > I don't think that you can replace a gb.qt4 Window by a gb.term.form > window, like you can do with a gb.gtk Window. Do you? > But you have a counter-example with gb.sdl(2), which does not use any prefix for its Window class. Well... Don't put any prefix at the moment, and we will see if the IDE has any problem with it, when your component will be advanced enough to be managed by the IDE form editor. Regards, -- Benoît Minisini |
|
From: Benoît M. <ga...@us...> - 2016-11-13 20:32:52
|
Le 13/11/2016 à 21:26, Fabien Bodard a écrit : > Hi Benoit, > Why this need to have a prefix ? In the case of this component there > is no way to have collid with a graphical component ! isn't it ? > For the IDE, and because if two classes have the same name, they should do the same thing more or less, and be interchangeable. I don't think that you can replace a gb.qt4 Window by a gb.term.form window, like you can do with a gb.gtk Window. Do you? -- Benoît Minisini |
|
From: Fabien B. <gam...@gm...> - 2016-11-13 20:27:41
|
Hi Benoit, Why this need to have a prefix ? In the case of this component there is no way to have collid with a graphical component ! isn't it ? 2016-11-13 15:29 GMT+01:00 Benoît Minisini <ga...@us...>: > Le 13/11/2016 à 15:27, Benoît Minisini a écrit : >> Le 13/11/2016 à 09:28, Fabien Bodard a écrit : >>> This a first preview of some terminal windows with VBoxes Hboxes, >>> Buttons, and Labels. >>> >>> >> >> Cool. >> >> You have to prefix all exported classes, for example with the "Term" >> string: TermForm, TermWindow, TermHBox, TermVBox, and so on... >> >> Regards, >> > > Sorry: only the control classes need to have the "Term" prefix. > > Regards, > > -- > Benoît Minisini > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Gambas-devel mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Fabien Bodard |
|
From: Benoît M. <ga...@us...> - 2016-11-13 14:30:06
|
Le 13/11/2016 à 15:27, Benoît Minisini a écrit : > Le 13/11/2016 à 09:28, Fabien Bodard a écrit : >> This a first preview of some terminal windows with VBoxes Hboxes, >> Buttons, and Labels. >> >> > > Cool. > > You have to prefix all exported classes, for example with the "Term" > string: TermForm, TermWindow, TermHBox, TermVBox, and so on... > > Regards, > Sorry: only the control classes need to have the "Term" prefix. Regards, -- Benoît Minisini |
|
From: Benoît M. <ga...@us...> - 2016-11-13 14:28:01
|
Le 13/11/2016 à 09:28, Fabien Bodard a écrit : > This a first preview of some terminal windows with VBoxes Hboxes, > Buttons, and Labels. > > Cool. You have to prefix all exported classes, for example with the "Term" string: TermForm, TermWindow, TermHBox, TermVBox, and so on... Regards, -- Benoît Minisini |
|
From: Fabien B. <gam...@gm...> - 2016-11-13 08:28:44
|
This a first preview of some terminal windows with VBoxes Hboxes, Buttons, and Labels. -- Fabien Bodard |
|
From: Benoît M. <ga...@us...> - 2016-10-27 17:15:57
|
Le 27/10/2016 à 19:07, Bastian Germann a écrit : > Thank you! Will you also integrate the gb.db.odbc patch? > https://sourceforge.net/p/gambas/mailman/message/35422296 > I need to know what "zxMarce" thinks about that. -- Benoît Minisini |
|
From: Bastian G. <bas...@fi...> - 2016-10-27 17:07:21
|
Thank you! Will you also integrate the gb.db.odbc patch? https://sourceforge.net/p/gambas/mailman/message/35422296 Am 27.10.2016 um 13:18 schrieb Benoît Minisini: > Le 19/10/2016 à 14:11, Bastian Germann a écrit : >> I have one more patch not related to packaging. It integrates Cygwin >> in the gb.desktop component. >> > > Merged in revision #7938. > > Regards, > |
|
From: Benoît M. <ga...@us...> - 2016-10-27 11:18:52
|
Le 19/10/2016 à 14:11, Bastian Germann a écrit : > I have one more patch not related to packaging. It integrates Cygwin > in the gb.desktop component. > Merged in revision #7938. Regards, -- Benoît Minisini |
|
From: Bastian G. <bas...@fi...> - 2016-10-19 12:11:44
|
I have one more patch not related to packaging. It integrates Cygwin in the gb.desktop component. |