Re: [Gambas-user] Happy new year...
On Thu, 01 Jan 2015 10:12:06 +0100 Benoît Minisini wrote: > ...to all Gambas users and developers! > > I'd like to release Gambas 3.7 as soon as possible, because I won't be > able to create a Gambas 3.6.3 release. Too much work to backport some > important fixes. > > Please tell me if you have something blocking that release: Fabien, > Tobias, Adrien, anyone needing a forgotten bug fix. > > The most important feature for me is the software farm. I think it is > now usable, at least since the very last development version. Not > beautiful, not perfect, but usable. > > I think I will just add a global software heading to the client > interface: games, examples, development, education, multimedia, > networking... > > So... If you have a project to publish, don't hesitate to push it on the > current 'gambaswiki.org' farm server. 'gambasfarm.org' has been bought, > but it does not point to the farm server at the moment. > > It needs some tests, it needs some love, it needs your projects! > > Best wishes, > > -- > Benoît Minisini > > OK I tried uploading vrecentfilesd. Seems to go alright but I have the following questions: 1) How do I set up a screenshot? 2) The upload wizard is a bit confusing at the end, it says it published OK but then I have to click on the cancel button to exit the wizard. This seems a bit confusing? regards Bruce -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Happy new year...
On Thu, 1 Jan 2015 22:52:43 +0100 Tobias Boege wrote: > On Fri, 02 Jan 2015, adamn...@gmail.com wrote: > > On Thu, 01 Jan 2015 10:12:06 +0100 > > Beno?t Minisini wrote: > > > > > ...to all Gambas users and developers! > > > > > > I'd like to release Gambas 3.7 as soon as possible, because I won't be > > > able to create a Gambas 3.6.3 release. Too much work to backport some > > > important fixes. > > > > > > Please tell me if you have something blocking that release: Fabien, > > > Tobias, Adrien, anyone needing a forgotten bug fix. > > > > > > The most important feature for me is the software farm. I think it is > > > now usable, at least since the very last development version. Not > > > beautiful, not perfect, but usable. > > > > > > I think I will just add a global software heading to the client > > > interface: games, examples, development, education, multimedia, > > > networking... > > > > > > So... If you have a project to publish, don't hesitate to push it on the > > > current 'gambaswiki.org' farm server. 'gambasfarm.org' has been bought, > > > but it does not point to the farm server at the moment. > > > > > > It needs some tests, it needs some love, it needs your projects! > > > > > > Best wishes, > > > > > > -- > > > Beno?t Minisini > > > > > > > > OK I tried uploading vrecentfilesd. Seems to go alright but I have the > > following questions: > > 1) How do I set up a screenshot? > > The IDE seems to have gotten a screenshot feature (see Tools). If you take a > screenshot from there, project/.hidden/screenshots is created and the file > is placed there. From this directory you can select screenshots in the > publish ComboBox. > > [ I must say that I'm not a fan of this. I'd like my screenshots to show > only the application window (if there is only one window), so until now > I created that directory manually and inserted a screenshot from outside > the IDE. My normal desktop screenshot program offers me to take > screenshots from a specific window (the one under the cursor after some > adjustable delay) only. > > Maybe Benoit can implement this in the IDE's screenshot module, too? That > or a new popup menu entry for the project TreeView, "Paste screenshot", > which would paste a file (path) from the clipboard and create the necessary > directories automatically. ] > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > Ah, I see. Yes that seems a bit clunky. I use Shutter, Which allows a fair bit of creativity with the screenshot. The one I just uploaded shows the menu (faked, but it only took a few seconds) that is created by the component. Yes, I think there is enough screenshot/screenshot+enhancer utilities available to encourage your idea of pasting one into the project. cheers Bruce -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IF Not (any boolean) then
On Thu, 01 Jan 2015 16:07:10 -0600 Lewis Balentine wrote: > If I use "NOT" in an "IF" statement with any boolean (function or value) > then I get an error. example: > > If NOT (BooleanFuntion) then Do this > unknown identifier: NOT > > Am I mistaken in thinking that one should be able to use the NOT > operator in this manner ? > > I can get around this by changing the syntax to. example: > If BooleanFuntion = False then Do this > > Regards, > > Lewis > Hmm, I just tried the following bit of silliness in a form_Open method and it seems to work "ok"? If Not (Not (Me.Close(1))) Then Error " This cannot be true " Else Error " or what???" Endif -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IF Not (any boolean) then
On Thu, 1 Jan 2015 23:13:20 +0100 Tobias Boege wrote: > On Thu, 01 Jan 2015, Lewis Balentine wrote: > > If I use "NOT" in an "IF" statement with any boolean (function or value) > > then I get an error. example: > > > > If NOT (BooleanFuntion) then Do this > > unknown identifier: NOT > > > > Am I mistaken in thinking that one should be able to use the NOT > > operator in this manner ? > > > > I can get around this by changing the syntax to. example: > > If BooleanFuntion = False then Do this > > > > Attached is a script which works over here. If you use Not in the same way, > there must be an error in your Gambas or the parts of your code which you > didn't show us. (The latter being a common outcome of not sending the whole > script/project ;-)) > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk Hey Tobi! Didn't we do this one a few weeks ago? The error is not the NOT it's the missing () b :-) -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Happy new year...
On Fri, 02 Jan 2015 01:01:33 +0100 Benoît Minisini wrote: > Le 01/01/2015 23:11, adamn...@gmail.com a écrit : > > On Thu, 1 Jan 2015 22:52:43 +0100 > > Tobias Boege wrote: > > > >> On Fri, 02 Jan 2015, adamn...@gmail.com wrote: > >>> On Thu, 01 Jan 2015 10:12:06 +0100 > >>> Beno?t Minisini wrote: > >>> > >>>> ...to all Gambas users and developers! > >>>> > >>>> I'd like to release Gambas 3.7 as soon as possible, because I won't be > >>>> able to create a Gambas 3.6.3 release. Too much work to backport some > >>>> important fixes. > >>>> > >>>> Please tell me if you have something blocking that release: Fabien, > >>>> Tobias, Adrien, anyone needing a forgotten bug fix. > >>>> > >>>> The most important feature for me is the software farm. I think it is > >>>> now usable, at least since the very last development version. Not > >>>> beautiful, not perfect, but usable. > >>>> > >>>> I think I will just add a global software heading to the client > >>>> interface: games, examples, development, education, multimedia, > >>>> networking... > >>>> > >>>> So... If you have a project to publish, don't hesitate to push it on the > >>>> current 'gambaswiki.org' farm server. 'gambasfarm.org' has been bought, > >>>> but it does not point to the farm server at the moment. > >>>> > >>>> It needs some tests, it needs some love, it needs your projects! > >>>> > >>>> Best wishes, > >>>> > >>>> -- > >>>> Beno?t Minisini > >>>> > >>>> > >>> OK I tried uploading vrecentfilesd. Seems to go alright but I have the > >>> following questions: > >>> 1) How do I set up a screenshot? > >> > >> The IDE seems to have gotten a screenshot feature (see Tools). If you take > >> a > >> screenshot from there, project/.hidden/screenshots is created and the file > >> is placed there. From this directory you can select screenshots in the > >> publish ComboBox. > >> > >> [ I must say that I'm not a fan of this. I'd like my screenshots to show > >>only the application window (if there is only one window), so until now > >>I created that directory manually and inserted a screenshot from outside > >>the IDE. My normal desktop screenshot program offers me to take > >>screenshots from a specific window (the one under the cursor after some > >>adjustable delay) only. > >> > >>Maybe Benoit can implement this in the IDE's screenshot module, too? > >> That > >>or a new popup menu entry for the project TreeView, "Paste screenshot", > >>which would paste a file (path) from the clipboard and create the > >> necessary > >>directories automatically. ] > >> > >> Regards, > >> Tobi > >> > >> -- > >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk > >> > > > > Ah, I see. Yes that seems a bit clunky. > > I use Shutter, Which allows a fair bit of creativity with the screenshot. > > The one I just uploaded shows the menu (faked, but it only took a few > > seconds) that is created by the component. > > Yes, I think there is enough screenshot/screenshot+enhancer utilities > > available to encourage your idea of pasting one into the project. > > > > cheers > > Bruce > > > > You were right guys, all that was clumsy. I tried to fix that in > revision #6789. > > I removed the screenshot tool, and now the publish dialog have four options: > > 1) Keep the screenshot stored on the server. > > 2) Delete it. > > 3) Upload a new screenshot from the clipboard. > > 4) Upload a new screenshot from any file. > > The screenshot is now automatically reduced and degraded to a jpeg file > so that it does not take too much space. > > Regards, > > -- > Benoît Minisini > That all sounds a lot better. But... It is now 41C here... Yes, I am not joking... I'll have to take a look later. -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Not good
http://www.weatherzone.com.au/news/dangerous-fire-weather-flaring-through-sa-and-vic/215583 Not good at all. Hope to see you all mater -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Not happy!
The "Show only components used in this project" button has gone missing in the new project properties form. :-( Bruce -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Not happy!
On Sat, 03 Jan 2015 02:06:11 +0100 Benoît Minisini wrote: > Le 03/01/2015 00:11, adamn...@gmail.com a écrit : > > The "Show only components used in this project" button has gone missing in > > the new project properties form. > > > > :-( > > Bruce > > > > You must click on the magnifer icon in the component filter to open a > menu where you can check that. > > -- > Benoît Minisini > Hmm. To coin a phrase from 20 years of software testing.. "Now, that is not exactly intuitive to most casual observers" b -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Removing an argument from the project properties form
crashes the IDE. regards Bruce -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Removing an argument from the project properties form
On Sun, 04 Jan 2015 02:32:22 +0100 Benoît Minisini wrote: > Le 04/01/2015 01:05, adamn...@gmail.com a écrit : > > crashes the IDE. > > > > regards > > Bruce > > > > Can you elaborate? I have no problem there. > > -- > Benoît Minisini > Hmm. Maybe I've done something silly to the local IDE. No matter what I do in the project properties popup as soon as I click on the save button I get an error 13 at FProjectProperty.WriteComponent .1512 which is: $aNeed.Clear ... Aha! It only happens with projects that are components. Try (say) 1) open gb.markdown 2) open project properties 3) click OK (no need to worry about the arguments tab - it appears to be a furphy) here I get when running the IDE from the IDE a null object for $aNeed ??? Bruce -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Just as a matter of interest...
with the cursor in the IDE Console tab, I just pressed Ctrl+Enter. This had a strange effect of sort of collapsing the visible console text to a single line. Repeating that, all the original text reappears. Is this intentional or is it something weird that only happens to me in LXDE? If it is intentional, what was the intent? ??? Bruce -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] (hard?) Testing for a treeview key with Like
Something new? I have a treeview (actually a columnview) whose Item keys are a concatenated string of filename and version via Subst("&1-&2", hItem.Name, hItem.Version) When loading the view and I encounter an item with the same filename but a different version I'd like to add the new version as a child node under the existing original. Short of processing the key of every node in the view I can't see a way to detect the parent node I am looking for. What I am looking for is a partial key recognition of the following ilk: If ColumnView1.Exists(Like NewItem.FileName&"-*") Then ' add a child node Else ' add a parent (root) node EndIf Any clues? tia Bruce -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Array.Sort
On Fri, 09 Jan 2015 01:12:50 +0100 Benoît Minisini wrote: > Le 09/01/2015 01:09, T Lee Davidson a écrit : > > "The empty set of parentheses is REQUIRED when sort is used as a function > > to return an array without the optional mode parameter" > > > > I don't know. Wouldn't it be more accurate to say that the parentheses are > > required to be able to use the function call as the object which it > > returns; as opposed to the syntax, without the parentheses, referring to > > the function itself? > > > > > > Lee > > Why not just say that? > > « You can omit the "()" at the end of a function or method call > statement only. If you don't understand the previous sentence, always > use "()" to call a function or a method. » > > :-) > I would have thought that the issue is "the other way up", viz: If any class method is used as the predicate of an assignment or as the implied object of a command, then the parentheses "()" must be included, even if any or all (optional) method parameters are not specified. The parentheses "()" may be left out if the method is used purely to manipulate the internal state of the object (whether or not that method may return a value). Examples Consider a hypothetical class method "Negate" that inverts the value of some attribute of the object and returns that value. Thus the "()" is required for: SomeLocalVar = MyObject.Negate() Print MyObject.Negate() but MyObject.Negate is perfectly legal. In this case the value is inverted but the result is "thrown away" by the interpreter. I cannot think of any exceptions to this. regards Bruce -- B Bruen -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Getting the "source string" for a picture
I need to get the "source string" for a control's Picture property (specifically a ToolButton control). However, the control's Picture property returns a picture. Is there any way of determining what that source string e.g. "icon:/22/connect.png" or "img/somepic.png" is? tia Bruce -- B Bruen -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Getting the "source string" for a picture
On Tue, 20 Jan 2015 23:24:58 +0100 Tobias Boege wrote: > On Wed, 21 Jan 2015, adamn...@gmail.com wrote: > > I need to get the "source string" for a control's Picture property > > (specifically a ToolButton control). However, the control's Picture > > property returns a picture. > > > > Is there any way of determining what that source string e.g. > > "icon:/22/connect.png" or "img/somepic.png" is? > > > > I don't think that this information is anywhere. When you assign the Picture > property, you assign a Picture object which does not contain a path. > > As usual, the best way to get hold again of lost information is to not lose > it in the first place: you can try to extend the Picture class. Add a Path > property and override Picture's _get() and Load() methods to set the path of > a Picture when its loaded. > > Regards, > Tobi > Hmmm, bugger! I know it is in the form configuration file, but that's of little use to me in this instance. I was trying to implement a "Style" property for toolbars, i.e. {Default}, IconOnly, Icon+Text, TextOnly. I can handle the first three OK, but TextOnly means I need to know that path so I can reload the picture if the user selects one of the others after selecting TextOnly. The way I look at it now, if a toolbutton has both the Picture and Text properties set in the IDE then there is no way for "experienced" users to select a shorter rendition for their use, the picture and text are always displayed. Ce'st la vie! I guess I'll just go for the first three. regards Bruce -- B Bruen -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Getting the "source string" for a picture
On Wed, 21 Jan 2015 01:59:25 +0100 Benoît Minisini wrote: > Le 21/01/2015 01:26, adamn...@gmail.com a écrit : > > > > Hmmm, bugger! > > > > I know it is in the form configuration file, but that's of little use > > to me in this instance. > > > > I was trying to implement a "Style" property for toolbars, i.e. > > {Default}, IconOnly, Icon+Text, TextOnly. I can handle the first > > three OK, but TextOnly means I need to know that path so I can reload > > the picture if the user selects one of the others after selecting > > TextOnly. The way I look at it now, if a toolbutton has both the > > Picture and Text properties set in the IDE then there is no way for > > "experienced" users to select a shorter rendition for their use, the > > picture and text are always displayed. > > > > Ce'st la vie! I guess I'll just go for the first three. > > > > regards Bruce > > > > > > This must be implemented in gb.form.mdi. > > How the toolbar works? At the moment, it just shows or hides its > children. If it would modify the text or icon of its children, it would > lost the data. > > So I think something must be added to the ToolButton control: the > ability to hide/show text and icon on demand. > > Usually, the hide/show text/icon is global to the toolbar, but I find > that really useless. This is something that should be enabled or > disabled individually for each ToolButton. > > What do you think? > > -- > Benoît Minisini > > If it would modify the text or icon of its children, it would > lost the data. Yes, that is the current problem. I was working around it by modifying the toolbutton .Tag property to save the developer set text so it could be restored within the session. But then ran up against the problem of saving the picture. > Usually, the hide/show text/icon is global to the toolbar, but I find > that really useless. Interesting. We have discussed this with our users and they preferred that the option to show/hide the text be at the toolbar level. Why do you think it's "useless"? The conversation we have had went sort of like this: [THEY] "We generally want pictures and text on every toolbar, but would like to be able to turn off the text when we are familiar with using that toolbar." [ME] (Thinks) OK, we can customise the gb.form.mdi component to implement a Toolbar.Style property that can be changed "on demand" using the FToolbarConfig form ... and also maybe make it a Settings option. "Do you want to be able to select the style at the toolbar level or for each button on the toolbar?" [THEY] No, as long as there are tooltips for each button then it would be preferrable to set it at the toolbar level. The issue we have is that there is a fairly high turnover for our client's staff. To be more correct, they have a floating population of staff that they wish to have access to the system. Sometimes a particular trainer has a high demand for staff, sometimes lower, depending on how many horses they are managing at the time. So people who have to use our training system come and go and come back again and go away again... (and while they are away we may have changes to the system ... ) So those users oscillate between "newbies" and "experts" all the time. Hence the need for a user configurable toolbar style (amongst a million other things :-) as usual!) But, given what you said, I think there is a case for implementing both a toolbutton level style and also an overriding toolbar level style. However, I can't imagine at the moment the user interface required for managing individual toolbuttons. Perhaps you have an idea? So far we have managed to do this in (our version of)) gb.form.mdi: 1) implement the Style property for the Toolbar class (it has the previously mentioned 4 values "{Default}", "IconOnly", "Icon+Text", and "TextOnly". Of these "{Default}" means that if the button has text it will be displayed, otherwise only the icon is shown. (I've also managed to get around a problem of allowing Icon size changes to work properly when the ToolButton.Expand property is nt set to true.); "IconOnly" works fine, the original text is saved in the button .Tag property and can be restored when necessary e.g. by the user selecting "Icon+Text"; the "TextOnly" option is a failure for the original reason. 2) modify the FToolbar Config form to allow the style to be set on the fly (see Pic1 attached) I haven't got to changing the local Settings "save" yet - I think I need to be looking at the FToolbar.SaveConfig and FToolbar.LoadConfig methods but just haven't got to
Re: [Gambas-user] Getting the "source string" for a picture
On Wed, 21 Jan 2015 11:40:47 +0100 Fabien Bodard wrote: > > One other thing "THEY" continue to ask for is a "Huge" option for > > the icon size. This is related to our low light environment situation. > > Any chance of this? > > What is the size of HUGE ? I take it to mean the size from Picture["icon:/huge/something"] B -- B Bruen -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Getting the "source string" for a picture
On Thu, 22 Jan 2015 20:58:22 +0100 Benoît Minisini wrote: > > "Huge" toolbar icons were implemented in revision #6854. > > Regards, > > -- > Benoît Minisini > I rigged up a laptop this morning and took it out to the local track where one of our client trainers was working horses. We compared him using the system with large icons for one horse and huge toolbar icons for another. The difference was amazing. This guy is 68 years old and has hands the size of pork legs. It took him about half the time, using the mousepad, to hit the correct tool button with huge as compared to large. So thanks for that quick response. A couple of things emerged though. I haven't thought them through yet ( this getting up at 3:30am has got fur on it and I am going to have a little lie down for a few hours to recover lost beauty sleep) but quickly: * is there a way to change the cursor/pointer size when the mouse is over a toolbar? * there appears to be some oddities that occur with vertical toolbars. (I'll get back with more info on this one later) best regards Bruce -- B Bruen -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Explictly sized array parameters in method signatures?
Hmm, I've never tried this before. Suppose a function GetCurrent(DateRange as Date[]), now intuitively DateRange is an array of 2 dates. No-one would be silly enough to pass an array with more than two elements would they? My cynical nature says yes they could/would. I could ignore the array length and just use DateRange[0] and DateRange[1] as the limits but that may produce confusing outcomes, or an error if DateRange contains only one element. I would like to define the function as GetCurrent(DateRange as Date[2]) but this is apparently a syntax error. Obviously, in this trivialised example, I could check the bounds of the passed array in the function body, I just expected that the runtime would check an explicitly sized array parameter. The real function is (of course) much more complex. The function requires an array of Dates[3][2] and another 5 parameters, some of which are optional. Any thoughts? Bruce -- B Bruen -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Explictly sized array parameters in method signatures?
On Wed, 28 Jan 2015 00:43:26 -0500 T Lee Davidson wrote: > This may be over-simplified, but couldn't you define a DateRange structure? > Or > would that not provide the constraints you need? > > > Lee > __ > > "Artificial Intelligence is no match for natural stupidity." > Aha! That was the clue! It's actually a struct of structs (3x2) Good thinking 99, I'll give that a go. B -- B Bruen -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Non-linux line ending files are seen as binary by the IDE
If I have a data file in the project which has windows style line endings, i.e. CRLF then the IDE thinks it's a binary file. Don't really know if this is a bug or just an anomaly or what is the expected behaviour? e.g. attached. In the IDE, Data|New > Existing, add the attached file. Double clicking on it raises the error balloon "Cannot open a binary file". cheers B -- B Bruen BEGIN:VCALENDAR CALSCALE:GREGORIAN PRODID:-//day-planner.org//NONSGML Day Planner 0.10//EN VERSION:2.0 BEGIN:VEVENT CREATED:20150128T225100 DTEND:19900209 DTSTART:19900209 LAST-MODIFIED:20150128T225100 RRULE:FREQ=YEARLY SUMMARY:Michael's birthday UID:dp-142248546620150209769-bb@localhost.localdomain X-DP-BIRTHDAY:TRUE X-DP-BIRTHDAYNAME:Michael X-DP-BORNATDTSTART:TRUE END:VEVENT BEGIN:VEVENT DTEND:19880520 DTSTART:19880520 LAST-MODIFIED:20150128T231500 RRULE:FREQ=YEARLY SUMMARY:Claire's birthday UID:dp-1422485494201505207177-bb@localhost.localdomain X-DP-BIRTHDAY:TRUE X-DP-BIRTHDAYNAME:Claire X-DP-BORNATDTSTART:TRUE END:VEVENT END:VCALENDAR -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Non-linux line ending files are seen as binary by the IDE
On Wed, 04 Feb 2015 03:27:28 +0100 Benoît Minisini wrote: > Le 02/02/2015 08:49, adamn...@gmail.com a écrit : > > If I have a data file in the project which has windows style line endings, > > i.e. CRLF then the IDE thinks it's a binary file. > > > > Don't really know if this is a bug or just an anomaly or what is the > > expected behaviour? > > > > e.g. attached. In the IDE, Data|New > Existing, add the attached file. > > Double clicking on it raises the error balloon "Cannot open a binary file". > > > > cheers > > B > > > > The end-of-line problem should have been fixed in revision #6883. > > Now you have a menu and a toolbar button that allows you to switch > between Unix, Windows and MAC end-of-line formats. > > Regards, > > -- > Benoît Minisini > Thanks Benoît, Looking forward to trying this tomorrow. cheers B -- B Bruen -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] FileChooser Settings format
Could you decipher the format of the .config settings for a FileChooser please. [FMain] Geometry=[205,186,840,564,0] FileChooser1=[1,"/home/horsedownload","/home/horsedownload","",True,[182,642],[1,True,False,"3,37.143,+,12.571,>,39.143",32,False],1] In particular, I'm looking for whether it saves the users "view" preference (because it doesn't seem to be preserved or reloaded by Settings.Read(FileCooser1). tia Bruce -- B Bruen -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] FileChooser Settings format
On Fri, 06 Feb 2015 23:24:47 +0100 Benoît Minisini wrote: > Le 06/02/2015 23:09, adamn...@gmail.com a écrit : > > Could you decipher the format of the .config settings for a > > FileChooser please. > > > > [FMain] Geometry=[205,186,840,564,0] > > FileChooser1=[1,"/home/horsedownload","/home/horsedownload","",True,[182,642],[1,True,False,"3,37.143,+,12.571,>,39.143",32,False],1] > > > > In particular, I'm looking for whether it saves the users "view" > > preference (because it doesn't seem to be preserved or reloaded by > > Settings.Read(FileCooser1). > > > > tia Bruce > > > > What exactly is not saved according to you? > > -- > Benoît Minisini > > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user It's the state of the "View Details" button. I'm not sure if it's not saved or not reloaded. B -- B Bruen -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] FileChooser Settings format
Sorry, that's the "Detailed view" toggle button. B -- B Bruen -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Quickie on SELECT
Does anyone know if you can use an EVAL in a CASE selector? e.g. SELECT hSomething ... CASE EVAL(hSomething.SomeArray.Exisits(hSomething.Value)) ... (I am just being too lazy to try it) regards Bruce -- B Bruen -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Rpi 2
On Thu, 12 Feb 2015 13:53:08 +0100 Tobias Boege wrote: > (Although I fear that Bruce will jump in with your solution any moment:) nah, i have been up and out for 16 hours followed by a v. large lunch. ... aha! i see the bed post,now ... b -- B Bruen -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] A couple of questions about building web / cgi applications
On Sat, 14 Feb 2015 00:45:03 +0100 Tobias Boege wrote: > On Fri, 13 Feb 2015, T Lee Davidson wrote: > > Named pipes do indeed require a node on the file system. > > While that's true, they only require a node on the *virtua* file system. No > physical disk is touched ever: > > $ man 7 fifo > [...] > When processes are exchanging data via the FIFO, the kernel passes all > data internally without writing it to the filesystem. Thus, the FIFO > special file has no contents on the filesystem; the filesystem entry > merely serves as a reference point so that processes can access the > pipe using a name in the filesystem. > [...] > > and luckily, Gambas has support for named pipes[0]. Or sockets[1]... > > Regards, > Tobi > Indeed! One thing for linux "L"-platers to understand is that "everything is a file" ! :-) Hence that is why Stream is the basis for "everything" in Gambas. http://en.wikipedia.org/wiki/Everything_is_a_file or from Google: https://www.google.com.au/search?q=linux+%22everything+is+a+file%22&ie=utf-8&oe=utf-8&gws_rd=cr&ei=9KXeVJKoC-W7mgW-7IKADQ cheers Bruce -- B Bruen -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Official name change notification!
Seeing as there are now two many Bruce's here, which has been known to confuse me, I am officially changing my name to "bruce". cheers bruce -- B Bruen -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Official name change notification!
On Fri, 13 Feb 2015 23:02:49 -0500 Kevin Fishburne wrote: > On 02/13/2015 09:05 PM, Benoît Minisini wrote: > > Le 14/02/2015 02:38, adamn...@gmail.com a écrit : > >> Seeing as there are now two many Bruce's here, which has been known to > >> confuse me, I am officially changing my name to > >> "bruce". > >> > >> cheers > >> bruce > >> > > :-) Not sure that it will work for me... Maybe this is the reason why we > > invented the "full name" concept? :-) > > > > Just register with the UDIC (http://www.udic.org/) and use your Dragon > name. I'm Boolean Dragon, for example. Bruce Dragon has a nice ring to > it. :) > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sa...@eightvirtues.com > phone: (770) 853-6271 > > Yeah, right bruce dragon aka "fists of marshmallow, fights like a snail, snores like a Komatsu D9 starting up on a cold day" which reminds me... bb tomorrow. bd (F.M.F.S.S.K.) -- B Bruen -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Possible IDE enhancement
On Wed, 18 Feb 2015 02:03:16 +0100 Benoît Minisini wrote: > Le 12/02/2015 01:31, Benoît Minisini a écrit : > > Le 12/02/2015 00:55, adamn...@gmail.com a écrit : > >> Hi guys, > >> > >> I have had a bit of a try at implementing this in our local IDE with > >> no joy, so I thought I'd throw the idea open to the experts. > >> > >> When running in debug mode and displaying an object properties popup, > >> I'd like to be able to select a property in the list and add it to the > >> current watchlist. > >> > >> For example, in the attached pic, I'd like to add > >> TreeView1.Current.Expanded to the watchlist. > >> > >> Over to you. > >> > >> Bruce > >> > >> > > > > Good idea. > > > > Done in revision #6901. > > Regards, > > -- > Benoît Minisini > Great! b -- B Bruen -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Another IDE feature request
Benoit, Thanks again for that popup menu for the debugger to add watch items, it really is a great help. But here's another request: Could you add an item to that menu to print the value of an object property to the console please. When looking at a long or complex string it would be nice to be able to scroll across it easily. I know it is possible using the "edit" mode, but that is a bit clunky. As an extension to this, I think there is a TODO item about printing (all) an object's property values, or perhaps it was the interpreter item "Make objects printable, with a "_print" hidden method or something else." However, I believe that being able to print them all from the debugger to the console would be a great step forward. regards Bruce -- B Bruen -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] A little feature request about checkboxes
On Wed, 4 Mar 2015 11:35:27 +0100 Jorge Carrión wrote: > Ok. > > I'll try to do user control who extend the class then. > > Regards. > > > > 2015-03-04 11:32 GMT+01:00 Benoît Minisini : > > > Le 04/03/2015 11:27, Jorge Carrión a écrit : > > > I don't like the checkbox always at left of text. Is posible add a > > > propertie Invert like hboxes has? > > > > > > It would be great. > > > > > > Regards > > > > I don't think so. At least I didn't see any property to do that in Qt > > the last time I checked. > > > > -- > > Benoît Minisini > > > > > > -- > > Dive into the World of Parallel Programming The Go Parallel Website, > > sponsored > > by Intel and developed in partnership with Slashdot Media, is your hub for > > all > > things parallel software development, from weekly thought leadership blogs > > to > > news, videos, case studies, tutorials and more. Take a look and join the > > conversation now. http://goparallel.sourceforge.net/ > > ___ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user The following may get you started. ' Gambas class file ''' A checkbox with the label on the left hand side! Export Inherits UserControl '= ' Control Infrastructure '= 'Property declaration for the IDE (*=show all "UserContainer" Properties) Public Const _Properties As String = "*," "Action," "Offset{Range}=15," "LabelText," "LabelColon=True," "ReadOnly=False," "TriState=False," "Value{CheckBox.*}=False," "-Expand" Public Const _IsControl As Boolean = True Public Const _Family As String = "Form" Public Const _Group As String = "Paddys-Hill" Public Const _DefaultSize As String = "25,3"'These are in pixels/7 Public Const _DefaultEvent As String = "Changed"'Set the default event handler Public Const _IsContainer As Boolean = True ' Public Const _DrawWith As String = "CheckBox"'Still cant get what we want here AND THIS CRASHES THE IDE '= ' Event Declarations '= Event Activate() Event Changed() Event Click() '= ' Property Declarations '= Property Offset As Integer ' Sets or retuns the width of the label Property LabelText As String' Sets or returns the label text Property LabelColon As Boolean ' Sets or returns whether the label is automatically "colonised" Property Background As Integer ' Sets or returns the checkbox background ??? ' New properties Property ReadOnly As Boolean' Returns or sets whether the checkbox is readonly ' Native properties that need exposing Property Value As Integer ' Returns or sets the value of the check-box. Property TriState As Boolean' Sets or returns whether null values are allowed '= 'Local Property Variables '= Private $offset As Integer = 15 Private $labeltext As String Private $labelcolon As Boolean = True Private $readonly As Boolean = False '' Needs to be handled locally, native checkbox has no ReadOnly property '= ' Local Variables '= ' 1) Contained items Private $hbox As HBox ' This will act as t
Re: [Gambas-user] A little feature request about checkboxes
On Wed, 4 Mar 2015 20:11:34 +0100 Fabien Bodard wrote: > Public Sub SELF_Arrange() > > $label.Width = $offset * Desktop.Scale > $innercheckbox.x = $offset * Desktop.Scale + 2 > Me.Height = 3 * Desktop.Scale > > ' $innerBackground = $innercheckbox.Background > ' $innerForeground = Me.Foreground > > End > > ... Why ? > > I don't understand the need for using these event > Ah, yes, that is a bit obscure. This code is from a suite of labelled controls. LabelCheckbox, LabelTextBox, LabelCombo etc, all of which have labels set via the IDE. The Offset property ($offset) is used to align the data content of each of these so they line up vertically automatically as in the attached pic. bruce -- B Bruen -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Connections.Count ??? :-!
I have a component that provides generic database -> object translations. I have used (and enhaced) it for some years. At one point in its' initialisation routine the code refers to Connections.Count which property does not exist. IIRC some months ago I started a thread requesting that the Connections class have a Count property to return the number of defined connections defined in the project. This is where this gets weird. Today I started a new project using that component. It fails with the "Unknown symbol ..." error. But other projects using the same component run fine. To be more specific, other executables (from source compiled a few months ago) run fine ... against the same component. This has got me beat. I am not sure whether that Count property was ever implemented or whether I implemented it locally or whether I had some local Components override class? I cant find a) the original post I mentioned above, b) anything here in our code base that has an override Components class, nor c) anything in our local gambas3 source code that would be an attempt to provide that property. Does anyone recall anything about this? tia bruce -- B Bruen -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Red no entry sign on Debug
On Sun, 08 Mar 2015 19:58:56 + John Rose wrote: > I compiled and saved a project OK. When I try to run it within the IDE, > all it does is to display a red no entry sign near the bottom of the > screen. It does not display an icon in Ubuntu's Unity Launcher let alone > open the form: screenshot attached. AFAIK I've never seen this behaviour > before. The first few lines of code are: > ' Gambas class file > > Private aStartPositions As Integer[] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] > Private aCams As String[] = [] > Private sPrinted As String > ' Private sPlain As String = "" > ' Private sCyphered As String = "" > ' Private iLimitation As Integer > ' Private sLimitation As String > Private aExecParameters As String[] > Private fResults As File > Private sResultsPath As String > > Public Sub Form_Open() > Inc Application.Busy > Me.Title = "Lorenz with Chi2 Limitation: Version " & Application.Version > Me.Center() > Me.Show > StartPositionValueBox1.SetFocus() > Finally > Application.Busy = 0 > Catch > Message.Warning(ERROR.Text) > > I don't see anything significantly different in this code from that used > in my other projects. > > If people insist on my attaching a stripped down project, then I will do > so. However, it may just be something obvious: it's always a fair amount > of work to create stripped down projects from actual ones. > -- > > John > > > This would be indicative of something failing in the initialisation of the application. Try expanding the traceback panel, both horizontally and vertically. Also the error message in the bubble is probably transparent due to theme settings. Try a diffferent desktop theme and see if you can read the error. hth bruce -- B Bruen -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GridView Row Height
WARNING : Thread steal :-) While we're on the subject (almost)... Is there any way to set the row height in a column view. I have tried the -1 trick on everything I can see including the hidden objects to no avail. regards bruce -- B Bruen -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Autotools packaging ???
Something has happened that I don't quite understand. For several years we have used autotools packaging to distribute our stuff to clients. The IDE options for packaging have always been: Vendor Name="Paddys-Hill" Prefix package name with the vendor name=Yes This has always worked up till the last time we sent some stuff out via autotools (around Oct last year?), we would have a package called (say) "paddys-hill-parseform-0.1.2.tar.gz". Now, when I first package up a project, the wizard "Prefix package with the vendor name" checkbox is writeable but we have had our name prefix changed to "paddys_hill" instead of "paddys-hill"??? And subsequent packaging doesn't let me alter the checkbox and adds "gambas3-" to the front of the package name. So I end up with "gambas3-paddys_hill-parseform-0.1.2.tar.gz". This is really playing havoc with the downloader/installer we have provided our customers with and is causing me no end of headache. What is going on? regards bruce -- B Bruen -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Autotools packaging ???
On Thu, 19 Mar 2015 00:40:54 +0100 Benoît Minisini wrote: > Le 19/03/2015 00:38, adamn...@gmail.com a écrit : > > Something has happened that I don't quite understand. > > > > For several years we have used autotools packaging to distribute our stuff > > to clients. > > The IDE options for packaging have always been: > > Vendor Name="Paddys-Hill" > > Prefix package name with the vendor name=Yes > > > > This has always worked up till the last time we sent some stuff out via > > autotools (around Oct last year?), we would have a package called (say) > > "paddys-hill-parseform-0.1.2.tar.gz". > > > > Now, when I first package up a project, the wizard "Prefix package with the > > vendor name" checkbox is writeable but we have had our name prefix changed > > to "paddys_hill" instead of "paddys-hill"??? > > > > And subsequent packaging doesn't let me alter the checkbox and adds > > "gambas3-" to the front of the package name. So I end up with > > "gambas3-paddys_hill-parseform-0.1.2.tar.gz". > > > > This is really playing havoc with the downloader/installer we have provided > > our customers with and is causing me no end of headache. What is going on? > > > > regards > > bruce > > > > Sorry but the "-" character inside vendor name makes packaging fail in > some cases and some distributions, so it is automatically replaced by "_". > > Regards, > > -- > Benoît Minisini > > Benoît, With respect, where is the code that does this mucking about? I have over 90 packages to test and distribute to our customers this month, a huge upgrade. I will carve this change out of our local IDE version "with extreme prejudice"! If I can't use the existing downloader/installer I will have to visit each of the 36 customers to "fix" it. Please, if this is something to do with that *&^*(&^ U-voodoo distro, don't tell me so. I have had a gut-full of it and its' refusal to follow convention!!! Not happy, in fact panicking. regards bruce -- B Bruen -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] WebView - override the current page stylesheet
Is there a way to direct a Webview control to use a specific (local) css stylesheet? tia bruce -- B Bruen -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] WebView - override the current page stylesheet
On Sat, 4 Apr 2015 21:53:31 +0200 Fabien Bodard wrote: > By modifying the code html ?... you can use replace. > > 2015-04-04 5:49 GMT+02:00 adamn...@gmail.com : > > Is there a way to direct a Webview control to use a specific (local) css > > stylesheet? > > > > tia > > bruce > > > > -- > > B Bruen > > > > -- > > Dive into the World of Parallel Programming The Go Parallel Website, > > sponsored > > by Intel and developed in partnership with Slashdot Media, is your hub for > > all > > things parallel software development, from weekly thought leadership blogs > > to > > news, videos, case studies, tutorials and more. Take a look and join the > > conversation now. http://goparallel.sourceforge.net/ > > ___ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > -- > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Thanks Fabien. (Doh!) bruce -- B Bruen -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] gb.xml feature request
@Adrien Prokopowicz ? I ask for an enhancement to XMLNode (and descendants). Currently the TextContent property returns the concatenated text of the currenode and all child nodes thereof. What I want to get is the text of the current node only, ignoring any child nodes. Dim sText as String Dim hElt as XMLElement ' = some node sText = hElt.GetLocalTextContent() i.e. a new method to return just the local node text. I think this requires modifying the serializer class GBGetXMLTextContent() method to avoid descending in to the child nodes but it is far beyond my C++ abilities and the attempts I made are too embarrassing to reveal. :-( tia bruce -- B Bruen -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Question about libraries and components
On Sun, 05 Apr 2015 17:42:45 +0200 Charlie Reinl wrote: > Am Donnerstag, den 12.03.2015, 21:56 +0100 schrieb Benoît Minisini: > > Le 12/03/2015 21:51, Charlie Reinl a écrit : > > > Salut Benoît, > > > > > > I have a library where I use the ToolBar and ToolButtons, now the > > > project which uses this library claims "the class ToolBar could not be > > > loaded" if I call the form with the toolbar. > > > > > > Q: is that behave normal? > > > > > > Sorry, I posted the same mail with a wrong subject. > > > > > > > Give more details please. > > > > Salut Benoît, > > ok, very late, (comme on dit, vieux motard) but didn't take the time > to make an example.Here it is. > LETS_see is a library which uses the ToolBar. Works pretty well. > LEST_Start use that library and I can't open the window with the > ToolBar. > I think, because the components from LETS_see are not used. > > happy Easter > -- > Amicalement > Charlie You need to include gb.form.mdi in LETS_start project components. regards bruce -- B Bruen -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.xml feature request
On Tue, 07 Apr 2015 00:01:02 +0200 "Adrien Prokopowicz" wrote: > Le Sun, 05 Apr 2015 04:58:05 +0200, adamn...@gmail.com > a écrit: > > > @Adrien Prokopowicz ? > > > > I ask for an enhancement to XMLNode (and descendants). Currently the > > TextContent property returns the concatenated text of the currenode and > > all child nodes thereof. What I want to get is the text of the current > > node only, ignoring any child nodes. > > > > Dim sText as String > > Dim hElt as XMLElement ' = some node > > sText = hElt.GetLocalTextContent() > > > > i.e. a new method to return just the local node text. > > > > I think this requires modifying the serializer class > > GBGetXMLTextContent() method to avoid descending in to the child nodes > > but it is far beyond my C++ abilities and the attempts I made are too > > embarrassing to reveal. :-( > > > > tia > > bruce > > > > XML elements do not actually have text. All they have are child nodes, > that can be XML text nodes (represented by the XmlTextNode class). > > Let's say you have the following XML structure : > > Hello world ! :-) > |^ | ^ | ^ | > || | XmlText | | | > | XmlText|=XmlElement=| XmlText | > | | > |= XmlElement ==| > > (XmlText should be XmlTextNode, but it doesn't fit on the diagram) > > By definition (according to the W3C), the TextContent property of > an XML element contains the text content of all the child nodes > (and therefore all descendants if some child nodes are elements). > > If I understood correctly, you would like to only retreive the text > "Hello ! :-)" in the case of the above structure. > What you should do is iterating over the element's nodes, and > retreiving only the text content of the XmlTextNodes, which is easily > feasible in pure Gambas, like so : > >Dim hElement As XmlElement '= some element >Dim hNode As XmlNode >Dim sText As String > >For Each hNode In hElement.ChildNodes > If hNode Is XmlTextNode Then sText &= hNode.TextContent >Next > >Print sText 'Prints : "Hello ! :-)" > > Regards, > -- > Adrien Prokopowicz > Aaah! Thanks Adrien (doubly)! First, that is the solution. Secondly, your example highlighted a condition that I haven't encountered / envisaged. regards bruce -- B Bruen -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Announcement: Gambas 3.7.1 available on pclinuxos
It is with some pleasure that I can relate that the 3.7.1 release [is in/is about to go into] the pclinuxos stable repostitory. It is also relevant that I would like to thank the pclos packager/tester "ghostbunny" for his work on this package. For any pclos fans out there - enjoy! regards bruce -- B Bruen -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.util: Unit conversions
On Sun, 26 Apr 2015 09:34:42 +0200 Charlie Reinl wrote: > Am Samstag, den 25.04.2015, 23:13 +0200 schrieb Tobias Boege: > > On Sat, 25 Apr 2015, Beno?t Minisini wrote: > > > Le 20/04/2015 23:28, Tobias Boege a ?crit : > > > > Hi Benoit, > > > > > > > > I have a quick feature suggestion for gb.util: when working with > > > > components > > > > like gb.cairo which partially uses millimeters (e.g. > > > > CairoPdfSurface._new) > > > > to measure things, it would be nice to have a global module from > > > > somewhere > > > > official which implements those unit conversions. > > > > > > > > I am myself always uncertain with "graphical" units and if they could > > > > under > > > > any circumstances depend on resolutions or not. A bunch of working > > > > methods > > > > would be nice and gb.util is the right place for that it seems. > > > > > > > > Regards, > > > > Tobi > > > > > > > > > > I don't see what conversion you need exactly. Can you be more precise? > > > > > > > Things like px <-> mm <-> in. I'm sure there are a lot more unit conversions > > that people may find useful. Although I'm not sure anymore if it's a good > > idea to put those into a component, because it's basically multiplying by > > some constant... The thing is simply that these constants are not easy to > > memorise and sometimes they depend on some resolution or other factors of > > which people like me aren't aware. A conversion function in a component, > > once written by a clever person would come to the rescue then. > > > > Regards, > > Tobi > > > > Salut, > > what's about a conversions page on gambaswiki.org? > That would be one page about measure conversion more in the net, but > easy to find for gambas coder. > > -- > Amicalement > Charlie > > Conversely, why re-invent the wheel? http://www.unitconversion.org/index.html hth bruce -- B Bruen -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] A few questions prompted by recent posts
The comments on identifier naming, about both conventions (like sWhatever for a string and bWhatever for a boolean) and also IDE interpretations (like "_MyClass" is hidden) have reminded me of a couple of things I have been meaning to ask: 1) the automatic hiding of Identifiers beginning with "_" : I know that is a fact so I learnt it somewhere, but where? Is it discussed in the help wiki somewhere? 2) (on a different tack) In the Component properties page (i.e. the Project Properties/Information tab these days) there is a setting for "This component is hidden". What does setting this to true do? regards bruce -- B Bruen -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Rev. 7062 - gb.qt5 component: disabled
On Fri, 8 May 2015 23:46:48 +0100 Ru Vuott wrote: > Hello, > > with rev. 7062 I obtain this notice: > > || > || THESE COMPONENTS ARE DISABLED: > || - gb.qt5 > || > > > What library "qt5" I have to install ? > > Regards > vuott > Well, a quick look at the config output tells me that at least: Qt5Core >= 5.3.0, Qt5Gui Qt5Widgets Qt5Svg Qt5PrintSupport Qt5X11Extras and the associated devel header packages are required. But have you also see the commit notes for this rev? regards bruce -- B Bruen -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Proposal: IDE / custom control components
@Benoît & Fabien I have been hacking around in our local IDE code over the last month attempting to create a way to make a popup control property editor (like say, the list editor for a combobox, but please bear with me) entirely contained within the custom control component itself. A more illustrative example would be Fabien's Angle property for a Report.?? control. My theory is this: It would be (generally) better to be able to define the property editor within the actual component itself, rather than having to change the IDE code each time a new popup property editor is needed. The IDE would then have to invoke the required editor from within that component. My actual situation is this: I have a (yes, the dreaded) virtual menu control component "vappoptions" that reduces the management of the user's application configuration down to a reasonably simple IDE virtual control. That is, we drag a "vappoptions" control from the toolbox onto a form and it provides the entire "Tools|Options" popup with no further coding needed. However, it has an IDE exposed property "Options" that needs a specialised property value editor (which exists inside the custom control component itself). That popup editor (to cut a long story short) edits via a nice gui a ".options" file in the project. So I need, for our purposes a way to invoke that popup editor from within the IDE form designer. Gawd. I hope that was understandable? Anyway, our local version of the IDE has a modified FProperty.class (and some other things) that makes this all possible... sort of but it works! It's essentially a "hack" at the moment. So here's the guts of this: 1) It is possible to have a custom property editor, encased entirely within a custom component. 2) The hack is v e r y undeveloped. 3) I think this has great possibilities for "lightening the load" on the IDE for custom controls. 4) I need some help !!! So if any of the above is sensical and/or of interest, let me know. best regards bruce -- B Bruen -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Beware of the recent changes in the development version
On Wed, 20 May 2015 00:31:11 +0200 Benoît Minisini wrote: > Hi, > > Since revision #7089, the IDE uses the new TextEditor control that > replaced the Editor control. > > The TextEditor control has not all the features of the old Editor > control yet, and it surely still have bugs. So please report any problem! > (snip) Still appears to be some leftover problems with folding at rev 7091. The attached pic is when opening a project, Similar errors occur when opening a class from within a project. -- B Bruen -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Beware of the recent changes in the development version
OK! I see the CollapseAll problem seems to be line 2199 in FEditor.class: If Settings["/Editor/Fold"] Then edtEditor.CollapseAll I have changed my local gambas3.conf file and all projects seem to load OK now. regards bruce -- B Bruen -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Rev7093 : Fatal package build error. (Urgent to me :-) )
Occurred when making an autotools package at the final step. FMakeInstall.AddLog.547 perhaps should be " edtLog.Goto(0, edtLog.Count)". Works locally, but wider wisdom respectfully requested. regards bruce -- B Bruen -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] r7093 IDE seems to be marking every line
I'm not sure if this is a local error but since folding has been re-introduced, the IDE seems to be marking every line in an opened source file as changed. Thus opening a project (which has several files automatically opened, as they were last time) and then immediately closing it results in the "These files have been changed ..." popup happening. Any one else see this? regards bruce -- B Bruen -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Souirce code line splitting?
Maybe I dreamed this but didn't it used to be possible to split declarations with signatures (methods, events etc ) between parameters? As in: Private Sub MySub(aParam As String, bParam As Integer) ' etc... End tia bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Souirce code line splitting?
On Sat, 06 Jun 2015 16:47:32 +0200 Benoît Minisini wrote: > Le 05/06/2015 09:59, adamn...@gmail.com a écrit : > > Maybe I dreamed this but didn't it used to be possible to split > > declarations with signatures (methods, events etc ) between parameters? As > > in: > > > > Private Sub MySub(aParam As String, > >bParam As Integer) > > > > ' etc... > > > > End > > > > tia > > bruce > > > > It's not difficult for the compiler, but for the highlighting routine > the IDE source code analyze. So I can't tell you now. > > Regards, > > -- > Benoît Minisini > Ah well. Never mind. I must have been dreaming after all. regards Bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Editor word wrap mode
On Sat, 06 Jun 2015 16:45:52 +0200 Benoît Minisini wrote: > Pfew ! > > I think I finally succeeded in implementing word wrap mode in the new > text editor. It was painful, but here it is. > > I have added two options in the IDE so that you can test: > > - A button to toggle word wrap mode individually in each editor. > > - A global option to define if word wrap mode must be enabled by default > when you open a new editor. > > Enabling the wrap mode makes the editor slower, as a text line must be > layouted each time the editor is resized, and it can take more than one > line to be displayed. > > But you will tell me if you have any problem! > > Regards, > > -- > Benoît Minisini > ... And another few anomalies 1) When wrapped mode is active and the cursor is on the last visible line in the editor panel, switching to unwrapped mode results in the active line being covered by the horizontal scroll bar. (Minor irritation) 2) When the cursor is on a line towards the middle of the editor panel AND we are viewing the final lines in the source file , toggling from unwrapped to wrapped mode results in the source being scrolled so that the current line is at the bottom of the editor panel. (Moderately irritating) 3) In wrapped mode, if the cursor is on a wrapped part of the line then toggling to unwrapped mode results in the current line indicator appearing on the next line (the cursor is still on the now unwrapped line at its' proper position). This is considerably annoying and it is unclear where you are about to type. regards Bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Editor word wrap mode
On Sat, 06 Jun 2015 16:45:52 +0200 Benoît Minisini wrote: > Pfew ! > > I think I finally succeeded in implementing word wrap mode in the new > text editor. It was painful, but here it is. > > I have added two options in the IDE so that you can test: > > - A button to toggle word wrap mode individually in each editor. > > - A global option to define if word wrap mode must be enabled by default > when you open a new editor. > > Enabling the wrap mode makes the editor slower, as a text line must be > layouted each time the editor is resized, and it can take more than one > line to be displayed. > > But you will tell me if you have any problem! > > Regards, > > -- > Benoît Minisini > Ah Benoît, sorry to spoil your weekend but this one is a bit of a problem. The attached project demonstrates wrappng problems with "very" long source lines. In particular, pre-declaration inline help. Hopefully the source explains and shows the problem well enough at your end. If not I can send screen shots separately. Open the project in the IDE with line wrapping turned off. Read the explanation at MMain.module line 9. Then set wrapping on. regards Bruce -- B Bruen demowrapproblems-0.0.1.tar.gz Description: Binary data -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] know if program is compiled
On Sun, 14 Jun 2015 10:19:08 +0200 Marco Ancillotti wrote: > Hi all, > > is there a way to detect from a gambas program if it's running under the > ide or is compiled into a .gambas file ? > > thank's in advance. > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user #If Exec ' ... do whatever #End hth bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IDE crash
On Thu, 18 Jun 2015 20:27:37 +0200 Charlie Reinl wrote: > Am Donnerstag, den 18.06.2015, 17:10 +0200 schrieb Benoît Minisini: > > Le 18/06/2015 16:56, Charlie Reinl a écrit : > > > Salut Benoît, > > > > > > the IDE crash sometimes now > > > See attachment > > > > > > [System] > > > Gambas=3.7.90 rev.7139 > > > OperatingSystem=Linux > > > Kernel=3.2.0-86-generic > > > Architecture=x86 > > > Distribution=Ubuntu 12.04.5 LTS > > > Desktop=GNOME > > > Theme=Plastique > > > Language=de_DE.UTF-8 > > > Memory=3025M > > > > > > [Libraries] > > > Cairo=libcairo.so.2.11000.2 > > > Curl=libcurl.so.4.2.0 > > > DBus=libdbus-1.so.3.5.8 > > > GStreamer=libgstreamer-0.10.so.0.30.0 > > > GTK+3=libgtk-3.so.0.400.2 > > > GTK+=libgtk-x11-2.0.so.0.2400.10 > > > Poppler=libpoppler.so.19.0.0 > > > Qt4=libQtCore.so.4.8.1 > > > SDL=libSDL-1.2.so.0.11.3 > > > > > > > > > > I need either a stack backtrace or what you did before it crashes. > > > > To get the stack backtrace, run the IDE from a console. > > > > Regards, > > > > Salut Benoît, > > here it is, one: > TextEditor.LinePos.1008: #21: Out of bounds > TextEditor.Clear.320 FOutput.Clear.45 Design.ClearOutput.1091 > Design.Start.774 Design.Run.653 Project.Run.2609 > FMain.Action_Activate.1360 >Action.Raise.204 > > + playing with WebBrowser 1.0.1 > + run it > + got an error > + try to re-run (F5) it > -> crash > -- > Amicalement > Charlie > > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user This seems easy to reproduce here, just by clicking on the clear button in the console tab while paused in debug mode. ( r7136) hth bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] How to tell what invoked this program?
This is driving me insane! How can I tell at runtime if the executable was invoked manually by a user or automatically by a scheduler, e.g. cron, anacron, at etc. Can't use the process userid as it may have been invoked as a user cron job. I am sure I have done this at least a gazillion times before but today tia bruce -- B Bruen -- Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to tell what invoked this program?
On Sat, 27 Jun 2015 10:12:01 +0200 Tobias Boege wrote: > On Sat, 27 Jun 2015, adamn...@gmail.com wrote: > > This is driving me insane! > > > > How can I tell at runtime if the executable was invoked manually by a user > > or automatically by a scheduler, e.g. cron, anacron, at etc. > > > > Can't use the process userid as it may have been invoked as a user cron job. > > I am sure I have done this at least a gazillion times before but > > today > > > > *Maybe* examine the parent PID and look behind the symlink /proc//exe? > I didn't test it though and I don't know how many names there are for > (ana)cron, at, etc. on different distributions. Another idea would be, if > that's possible, to introduce a command line option to your program and > require the user to set it iff the program is started by such a daemon. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > Thanks Tobi, I had been going down the task parent PID route (as I thought there was a "simple" answer that way) but I fear you may be correct - setting a "-d" option may ultimately be the easiest way to go. ... Grrr :-( Some days are better than others. b -- B Bruen -- Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] "Frozen" collections - quick answers only needed
Hi all, I have a class that exposes a collection of child objects as a property. How can I make it that the only object that can add or delete child items to/from the collection is that class? In other words, no client class is allowed to Add a new item, or Remove or nullify any existing item. tia bruce -- B Bruen -- Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] "Frozen" collections - quick answers only needed
On Thu, 16 Jul 2015 00:22:29 +0200 Benoît Minisini wrote: > Le 16/07/2015 00:17, adamn...@gmail.com a écrit : > > Hi all, > > > > I have a class that exposes a collection of child objects as a > > property. How can I make it that the only object that can add or > > delete child items to/from the collection is that class? In other > > words, no client class is allowed to Add a new item, or Remove or > > nullify any existing item. > > > > tia bruce > > > > You have to create your own collection class that behaves like you want. > > -- > Benoît Minisini > Thanks for the quick reply Benoît. That was the answer I was afraid of :-( b -- B Bruen -- Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] This is a test
On Wed, 22 Jul 2015 13:08:41 +0200 Charlie Reinl wrote: > Am Mittwoch, den 22.07.2015, 12:27 +0200 schrieb Benoît Minisini: > > Is Sourceforge finally working again? > > > > Salut, > > not everything is back. > > http://trouble-maker.sourceforge.net/ > > http://sourceforge.net/blog/category/sitestatus/ > > > -- > Amicalement > Charlie > Well, the website is finally back! B -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] New Gambas bug tracker (alpha)
On Fri, 24 Jul 2015 00:25:36 +0200 Benoît Minisini wrote: > Hi, > > As sourceforge was down for a week, I decided to start implementing a > bug tracker in Gambas for Gambas, based on the software I develop for > the company I'm working in. > > You will find a very alpha version of the bug tracker there: > > http://gambaswiki.org/bugtracker > > so that you can check it early. > > The software I made for my company is sort of "Access on the web", so it > does not support sophisticated HTLM/javascript user interface easily. > But it allows to define a database structure quickly, and it took me a > few days to have something workable. > > The bugtracker does not send mails yet, but it's already usable. > > I developed a very simple "gambas captcha system" that you can find on > the Gambas software farm. Maybe you will find it useful for your own needs. > > I'm waiting for your comments now! > > Regards, > > -- > Benoît Minisini Hi Benoît, Looks nice and simple! The only comment I'd make at this stage is the number of new windows (tabs) that are opened. Might be a good idea to add a "Save and Close" button to pages like the Add Comment page, maybe even the Create Bug page Oh, that reminds me, maybe the title of the "Create a Bug" page would better be "Create a Bug Report". :-) b -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Print SizeOf(t) 't is a string
On Wed, 29 Jul 2015 21:21:09 -0400 "nando" wrote: > Benoit, > Perhaps you could provide an example. I find nothing for the correct > syntax/use. > > For example... > > Private p As Pointer > > Public Struct EmployeeStruct > FirstName as String > Age as integer > End Struct > > Public AnEmployee as EmployeeStruct > > AnEmployee = New EmployeeStruct > > p = AnEmployee > > Print p.Sizeof() 'run-time error > > -N > See the wiki help. I have added an example. http://gambaswiki.org/wiki/comp/gb/object b -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] datediff problem
On Thu, 13 Aug 2015 16:22:13 +0200 "Adrien Prokopowicz" wrote: > Le Mon, 10 Aug 2015 13:41:17 +0200, Jussi Lahtinen > a écrit: > > > Sorry to say, but this doesn't seem to be fixed. > > > > ? DateDiff(Now, DateAdd(Now, gb.Day, 2), gb.Day) > > 1 > > > > > > Jussi > > > > On Sat, Aug 1, 2015 at 7:16 PM, Benoît Minisini < > > gam...@users.sourceforge.net> wrote: > > > >> Le 01/08/2015 17:52, Benoît Minisini a écrit : > >> > Le 01/08/2015 17:33, nando a écrit : > >> >> Here's an example. > >> >> > >> >>Dim FirstDate as Date > >> >> > >> >>FirstDate = Date(2015, 1, 1, 0, 0, 0, 0) > >> >>Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 00), gb.day) > >> 'ok > >> >>Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 01), gb.day) > >> 'ok > >> >>Print DateDiff(firstdate, Date(2015, 8, 1, 03, 59, 59), gb.day) > >> 'ok > >> >>Print DateDiff(firstdate, Date(2015, 8, 1, 04, 00, 00), gb.day) > >> >> 'Wrong > >> >>Print DateDiff(firstdate, Date(2015, 8, 1, 11, 21, 51), gb.day) > >> >> 'Wrong > >> >> > >> >> 212 > >> >> 212 > >> >> 212 > >> >> 213 <---Wrong should be 212 > >> >> 213 <---Wrong should be 212 > >> >> > >> >> Of course, this is looks like it might be a TimeZone problem. > >> >> I am in GMT -5 but daylight savings during the summer it is -4 > >> >> > >> >> Am I correct to say this is not correct operation? > >> >> > >> >> -Nando > >> >> > >> >> > >> > > >> > Argh, a just too late bug! You did that to spoil my holidats? 8-o > >> > > >> > >> OK, I couldn't let you alone. I have updated the Gambas 3.8 source > >> package with the fix for that bug. > >> > >> Regards, > >> > >> -- > >> Benoît Minisini > > That's weird, but the examples given (both jussi's and nando's) all work > correctly before Benoît's fix (pre-7212), but not after (post-7212) ! > > Am I missing something completely obvious, or do you get the same behavior > ? > > Here's my test code : > > Dim FirstDate As Date > > FirstDate = Date(2015, 1, 1, 0, 0, 0, 0) > Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 00), gb.day) > Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 01), gb.day) > Print DateDiff(firstdate, Date(2015, 8, 1, 03, 59, 59), gb.day) > Print DateDiff(firstdate, Date(2015, 8, 1, 04, 00, 00), gb.day) > Print DateDiff(firstdate, Date(2015, 8, 1, 11, 21, 51), gb.day) > Print DateDiff(firstdate, DateAdd(firstdate, GB.Day, 2), GB.Day) > > Output (Before 7212) : > > 212 > 212 > 212 > 212 > 212 > 2 > > Output (After 7212) : > > 211 > 212 > 212 > 212 > 212 > 1 > > -- > Adrien Prokopowicz > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Confirmed at 7219 and I've added more output and tests: Dim FirstDate As Date Dim SecondDate As Date FirstDate = Date(2015, 1, 1, 0, 0, 0, 0) SecondDate = Date(2015, 8, 1, 00, 00, 00) Print "1 First:"; Format(FirstDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(FirstDate); ") Second:"; Format(SecondDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(SecondDate); ") Diff:"; DateDiff(firstdate, SecondDate, gb.day); " ("; CFloat(SecondDate) - CFloat(FirstDate); ")" SecondDate = Date(2015, 8, 1, 00, 00, 01) Print "2 First:"; Format(FirstDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(FirstDate); ") Second:"; Format(SecondDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(SecondDate); ") Diff:"; DateDiff(firstdate, SecondDate, gb.day); " ("; CFloat(SecondDate) - CFloat(FirstDate); ")" SecondDate = Date(2015, 8, 1, 03, 59, 59) Print "3 First:"; Format(FirstDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(FirstDate); ") Second:"; Format(SecondDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(SecondDate); ") Diff:"; DateDiff(firstdate, SecondDate, gb.day); " ("; CFloat(SecondDate) - CFloat(FirstDate); ")" SecondDate = Date(2015, 8, 1, 04, 00, 00) Print "4 First:"; Format(FirstDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(FirstDate); ") Second:"; Format(SecondDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(SecondDate); ") Diff:"; DateDiff(firstdate, SecondDate, gb.day); " ("; CFloat(SecondDate) - CFloat(FirstDate); ")" SecondDate = Date(2015, 8, 1, 11, 21, 51) Print "5 First:"; Format(FirstDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(FirstDate); ") Second:"; Format(SecondDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(SecondDate); ") Diff:"; DateDiff(firstdate, SecondDate, gb.day); " ("; CFloat(SecondDate) - CFloat(FirstDate); ")" SecondDate = Date(2015, 8, 1, 23, 59, 59.999) Print "6 First:"; Format(FirstDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(FirstDate); ") Second:"; Format(SecondDate, "dd-mmm-yy hh:nn:ss:uu"); " ("; CFloat(SecondDate); ") Diff:"; DateDiff(firstdate, SecondDate, gb.day); " ("; CFloat(SecondDate) - CFloat(FirstDate); ")" SecondDate = DateAdd(firstdate, GB.Day, 2) Pri
Re: [Gambas-user] These new color constants ...
Hi Adrien, Thanks for lookin\g at this. Your response solves problem #2 in that I now know what causes it and it is a local issue - I am using a modified version of gbx3 and that is definitely why the Read/Write property change fouls up. Sorry for the noise. On the other hand - re problem 1 (no Color class override) : could you clarify that you dont get that black fill rendering when using a Color constant in the IDE. I don't believe that is related to the above but feel it may be local due to QT4 installed here, or themes, or something... tia bruce On Fri, 14 Aug 2015 10:58:17 +0200 "Adrien Prokopowicz" wrote: > Le Fri, 14 Aug 2015 03:58:32 +0200, adamn...@gmail.com > a écrit: > > > With these new color constant changes (rev 7189) in the IDE (pursuant to > > Marco Ancillotti's "Adding custom colors" thread) I'm getting some > > anomalous outcomes. > > > > 1) In a project without any override for the Color class the following > > occurs: > > If any of the old or new constants are selected (say as a background > > color) from the dialog [selcol_dlg.png] the background is rendered in > > the IDE with a black background [blackbg.png]. Conversely if a custom > > color is selected from the "Free" tab it gets rendered correctly. > > > > 2) In a project with an override for the Color class (e.g. see > > Color.class attached) > > The IDE does not show any of the custom "constants" e.g. DarkBackground > > or LightBackground in the color selector dialog [newcol_dlg.png]. > > > > Can anyone confirm similar anomalies please. > > b > > > > I can't reproduce this on my system. Moreover, the Color class you sent > does not work, as the properties are incorrectly overridden (they should be > read-only like the original Color class, otherwise an error is thrown). > > Can you send a full project, as well as some details on your system ? > > -- > Adrien Prokopowicz > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] These new color constants ...
On Sat, 15 Aug 2015 18:14:59 +0200 "Adrien Prokopowicz" wrote: > Le Sat, 15 Aug 2015 04:16:28 +0200, adamn...@gmail.com > a écrit: > > > Hi Adrien, > > > > Thanks for lookin\g at this. Your response solves problem #2 in that I > > now know what causes it and it is a local issue - I am using a modified > > version of gbx3 and that is definitely why the Read/Write property > > change fouls up. Sorry for the noise. > > > > On the other hand - re problem 1 (no Color class override) : could you > > clarify that you dont get that black fill rendering when using a Color > > constant in the IDE. I don't believe that is related to the above but > > feel it may be local due to QT4 installed here, or themes, or > > something... > > > > tia > > bruce > > > > With or without a Color class override, the background/forground properties > are rendered correctly when using a Color constant in the IDE. > > I've tried both Qt4 and Qt5, and still no problem. > > If you think the problem is local, can you provide some more info about the > Qt and theme versions you are using ? > > -- > Adrien Prokopowicz > Hi Adrien, I found my problem. It is local. I was getting a checksum error when updating from the svn repo and that was preventing two of the IDE files from being updated. I have no idea why that had occurred but I have now cleaned up my local source and everything works properly again. thanks again Bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] I am getting really irritated.
More changes to how packaging needs project names in a specific format, can't use hyphens in our vendor name, everything gets prefixed with "gambas" anyway. WHY? I dont need all my project directories named "paddys-hill.something" I know who we are. Yes we have a hyphen in the company name. No I want all our autotools packages named "paddys-hill-something-version.tar.gz" so our installer works. WHY ALL THESE CHANGES? IT ALWAYS WORKED BEFORE. NFH! :-( -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] I am getting really irritated.
On Tue, 18 Aug 2015 16:56:48 +0300 Jussi Lahtinen wrote: > I tested packaging with revision 7222. In vendor name "-" is translated as > "_". I have some vague image in my head that this was done to comply with > some linux standard. > But I don't see *anything *get prefixed with "gambas"?? > a) there is no such standard. b) it only happens with component projects - see attached pic > > I dont need all my project directories named "paddys-hill.something" I know > > who we are. > > > > I don't understand this. You are free to use any unix name for your > directories..? > Again see the attached. > > > > No I want all our autotools packages named > > "paddys-hill-something-version.tar.gz" so our installer works. > > > > I think this is the standard form; "paddys_hill-something-version.tar.gz", > but I might be wrong. > > > > Jussi > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user :-( bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] I am getting really irritated.
On Sat, 29 Aug 2015 01:05:12 +0200 Benoît Minisini wrote: > > Hi, > > > > Can you try revision #7245 and tell me if it is fine for you? > > > > Now a component project can have any name you want. > > > > Then the packager will internally prefix the project name with the > > vendor name if not present, so that he is sure to create a component > > name and a package name that do not collide with another one from a > > different vendor. > > > > The other requirement on hyphens still remains. > > > > For example, if your project is "newgrid2" and your vendor name is > > "Paddys-Hill", then: > > > > - The component will be visible as "paddys-hill.newgrid2" > > - The package name will be "gambas3-paddys_hill-newgrid2" > > > > Regards, > > > > If it is ok for you, I will make a Gambas 3.8.1 release as soon as possible. > > -- > Benoît Minisini > Of course, it is up to you. The package naming we can cope with. (Our installer now reverses the underscores to hyphens). The only concern I have is the component naming scheme. I understand the rationale - so our "newgrid2" doesn't collide with say Tobi's "newgrid2". However, I have some fear that due to the internal naming of the component (within the installed library) that we will be up for some serious effort supporting existing clients. This is because, as I understand it at present, if we make a change to "newgrid2" and release it, then all the application level projects at all client sites will need to be changed to use the "paddys-hill.newgrid2" component. Such is life. I can see how this will be beneficial should such naming collisions occur. I will adjust our thinking to comply. best regards bruce p.s. BUT! Be aware that I have now filed a patent application to the MegaDodo Publications Bureau Corporation claiming all rights to the "ph." prefix (apparently there is prior art on the "gb." prefix.) Any violations will result in the usual Vogon poetical justice! -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Svn update problem: Checksum mismatch
Hi, Tried updating today and the following error occurred. svn update gbsrcclean --username brucebruen --password ** --non-interactive Updating 'gbsrcclean': Restored 'gbsrcclean/gb.net.curl/src/gb.net.curl/.gambas' Restored 'gbsrcclean/comp/src/gb.util/.gambas' Restored 'gbsrcclean/comp/src/gb.dbus.trayicon/.gambas' Restored 'gbsrcclean/comp/src/gb.form.editor/.gambas' Restored 'gbsrcclean/comp/src/gb.util.web/.gambas' U gbsrcclean/acinclude.m4 U gbsrcclean/gb.db.mysql/src/main.c U gbsrcclean/comp/src/gb.report2/.component U gbsrcclean/comp/src/gb.report2/.startup U gbsrcclean/comp/src/gb.report2/.project U gbsrcclean/comp/src/gb.report2/.src/Viewer/FPreview.form U gbsrcclean/comp/src/gb.report2/.src/Viewer/ReportView.class U gbsrcclean/comp/src/gb.report2/.src/Viewer/FPreview.class U gbsrcclean/comp/src/gb.report2/.src/Tests/Report8.report U gbsrcclean/comp/src/gb.eval.highlight/.component U gbsrcclean/comp/src/gb.eval.highlight/.project U gbsrcclean/comp/src/gb.gui.base/.component U gbsrcclean/comp/src/gb.gui.base/.startup U gbsrcclean/comp/src/gb.gui.base/.project U gbsrcclean/comp/src/gb.gui.base/.src/Shortcut.class U gbsrcclean/comp/src/gb.gui.base/.src/TreeView/_TreeView.class G gbsrcclean/comp/src/gb.gui.base/.info U gbsrcclean/comp/src/gb.form/.lang/fr.po U gbsrcclean/comp/src/gb.form/.component U gbsrcclean/comp/src/gb.form/.project U gbsrcclean/comp/src/gb.form/.src/Test/FTestDateChooser.form U gbsrcclean/comp/src/gb.form/.src/Stock.class U gbsrcclean/comp/src/gb.form/.src/Wizard/Wizard.class U gbsrcclean/comp/src/gb.form/.src/Button/ButtonBox.class U gbsrcclean/comp/src/gb.form/.src/ImageView/ImageView.class U gbsrcclean/comp/src/gb.form/.src/Message/MessageView.class U gbsrcclean/comp/src/gb.form/.hidden/CHANGELOG U gbsrcclean/comp/src/gb.net.smtp/.component U gbsrcclean/comp/src/gb.net.smtp/.startup U gbsrcclean/comp/src/gb.net.smtp/.project U gbsrcclean/comp/src/gb.net.smtp/.src/SmtpClient.class U gbsrcclean/comp/src/gb.net.smtp/.src/Main.module U gbsrcclean/comp/src/gb.net.smtp/.info svn: E155017: Checksum mismatch while updating '/home/bb/gbsrcclean/comp/src/gb.form.mdi/.src/ToolBar/FToolBar.class': expected: 4daa47ce367cf1d4db2b3e469a78bacb actual: 85d3e7e427c69203cb7f4d5c5c5b8c1a svn: E23: Delta source ended unexpectedly error (1) I tried reverting it, clenups and even deleting the local source copy to force a reload, but the error still occurs. Any clues? tia bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Svn update problem: Checksum mismatch
On Mon, 31 Aug 2015 02:37:59 +0200 Benoît Minisini wrote: > Le 31/08/2015 02:07, adamn...@gmail.com a écrit : > > Hi, > > > > Tried updating today and the following error occurred. > > > > svn update gbsrcclean --username brucebruen --password ** > > --non-interactive > > Updating 'gbsrcclean': ...(SNIP)... > > U gbsrcclean/comp/src/gb.net.smtp/.src/Main.module > > U gbsrcclean/comp/src/gb.net.smtp/.info > > svn: E155017: Checksum mismatch while updating > > '/home/bb/gbsrcclean/comp/src/gb.form.mdi/.src/ToolBar/FToolBar.class': > > expected: 4daa47ce367cf1d4db2b3e469a78bacb > > actual: 85d3e7e427c69203cb7f4d5c5c5b8c1a > > svn: E23: Delta source ended unexpectedly > > error (1) > > > > > > I tried reverting it, clenups and even deleting the local source copy to > > force a reload, but the error still occurs. > > > > Any clues? > > > > tia > > bruce > > > > No idea. Did you try a checkout from scratch? > > -- > Benoît Minisini > In the end I had to resort to that (and reapply all our local mods). It looked like the local svn directory was very very mucked up. I read the "svn cleanup" help a bit more closely and I suspect that is the culprit as I ran it a few days ago (because it wanted me to). I'll be a lot more careful in the future! thanks for the input. bruce -- B Bruen -- Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Pre-release of Gambas 3.8.1
On Thu, 3 Sep 2015 02:46:49 +0200 Benoît Minisini wrote: > Le 03/09/2015 01:57, Benoît Minisini a écrit : > > Hi, > > > > As usual, here is a pre-release package of Gambas 3.8.1 at: > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.8.1.tar.bz2/download > > > > Please test it if possible, and report any problem before I make the > > release official. > > > > Regards, > > > > The list of bug fixes is available now at > http://gambaswiki.org/wiki/doc/release/3.8.1 > > Regards, > > -- > Benoît Minisini > There is a problem with the Packager for autotools. I am still trying to figure out whether it is something in the Package.module:MakeAutotoolsPackage method or in one of the data/install/ template files. Essentially even though the "COMPONENT_build" AC_SUBST seems to be set correctly (to '1') the "COMPONENT_name" AC_SUBST is not being set. This happens as far back as the ./configure stage as per config.log excerpt below: ## - ## ## Output variables. ## ## - ## ACLOCAL='${SHELL} /home/bb/paddys-hill-workarea/horseUtil-0.0.16/missing aclocal-1.14' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' AUTOCONF='${SHELL} /home/bb/paddys-hill-workarea/horseUtil-0.0.16/missing autoconf' AUTOHEADER='${SHELL} /home/bb/paddys-hill-workarea/horseUtil-0.0.16/missing autoheader' AUTOMAKE='${SHELL} /home/bb/paddys-hill-workarea/horseUtil-0.0.16/missing automake-1.14' AWK='gawk' COMPONENT_build='1' COMPONENT_name='' CYGPATH_W='echo' as a result the autotools package will not "make install" properly - it creates a /usr/lib/gambas/.gambas file etc. I suspect (but am not sure) the bit of code that creates the configure.ac file at ~line 1967 of the Package.module - I beleive GB_INIT_PROJECT needs two arguments, the second being the component name. Have to go out today so I won't have a chance to add any further info till later. regards bruce -- B Bruen -- Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Pre-release of Gambas 3.8.1
On Thu, 3 Sep 2015 02:46:49 +0200 Benoît Minisini wrote: > Le 03/09/2015 01:57, Benoît Minisini a écrit : > > Hi, > > > > As usual, here is a pre-release package of Gambas 3.8.1 at: > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.8.1.tar.bz2/download > > > > Please test it if possible, and report any problem before I make the > > release official. > > > > Regards, > > > > The list of bug fixes is available now at > http://gambaswiki.org/wiki/doc/release/3.8.1 > > Regards, > > -- > Benoît Minisini > OK, there are a couple of small changes needed to the app/src/gambas3/install/ files. The first part of the solution is that the GB_INIT_PROJECT in acinclude.m4 needs to be changed. The bit where it is checking for a component build should be: ## Check if the project is a component COMPONENT_build=`cat $1/.project | grep "^Type=Component" | sed s/"Type=Component"/1/g` AC_SUBST(COMPONENT_build) if test "$COMPONENT_build" = "1"; then COMPONENT_name=$2 AC_SUBST(COMPONENT_name) fi Note the change is removal of the brackets on the "if test" line. The second part is a small change to Makefile.am ... at line 24 : $(INSTALL) -d .info $(DESTDIR)/$(GBINFO_path); \ just remove the word ".info" regards bruce -- B Bruen -- Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] The interview on FLOSS
On Wed, 9 Sep 2015 16:55:26 +0200 Benoît Minisini wrote: > I have been interviewed by Randall Schwartz and Simon Phipps on the > FLOSS weekly show on twit.tv. You can show the interview at: > > https://twit.tv/shows/floss-weekly/episodes/353 > > If you watch it, you will probably notice that I will never become an > english teacher. > > Enjoy anyway! > > -- > Benoît Minisini > Very interesting! (and yes, but I would hazard a guess that you can speak english better than you can understand American :-) ) bruce -- B Bruen -- Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Suggestion (low priority)
The label re use of the vendor information in the packager wizard could be confusing to the naive. I suggest "Use vendor prefix in package name" regards bruce -- B Bruen -- Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Suggestion (low priority)
On Thu, 10 Sep 2015 23:47:17 +0200 Benoît Minisini wrote: > Le 10/09/2015 22:36, adamn...@gmail.com a écrit : > > The label re use of the vendor information in the packager wizard could be > > confusing to the naive. > > > > I suggest "Use vendor prefix in package name" > > > > regards > > bruce > > > > Is it more clear in version #7296? > > -- > Benoît Minisini > Uh? Does it add the vendor name anywhere now? I am only seeing the prefix used for autotools, Fedora, Suse and Mageia packages (for all project types - Normal, Library and Component). b -- B Bruen -- Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas new icon
On Sat, 19 Sep 2015 01:26:54 +0200 Moviga Technologies wrote: > > > I think this is getting somewhere :) The best I have seen so far! > > > -- I actually wish I had never looked at this thread. Now I can see both the damned duck and the damned chicken, I have locked my /usr/share/gambas3/icons directory (chmod 444 *), I hope this stops any changes. I guess by now you should have guessed that I don't like it. But don't let that stop you all. regards bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Align consts for gridview
It seems to me that Align.TopCenter and Align.BottomCenter are missing. Can these be added or is there something mysterious regards bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] _gridview_cell border property
I have previously had this working really nicely, but now I can't find any information on how to use the Border class as a static function nor how to set the border "css". Any ideas? I think Benoit may have only described how to in the original mail message? tia bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Align consts for gridview
On Sat, 19 Sep 2015 02:30:32 +0200 Benoît Minisini wrote: > Le 19/09/2015 02:07, adamn...@gmail.com a écrit : > > It seems to me that Align.TopCenter and Align.BottomCenter are missing. > > Can these be added or is there something mysterious > > > > regards > > bruce > > > > It's "Align.Top" and "Align.Bottom". > > Regards, > > -- > Benoît Minisini > Aha! Thanks. b -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature removal suggestion: Pressing Escape hides debug pane
On Mon, 21 Sep 2015 00:54:22 -0400 Kevin Fishburne wrote: > On 09/21/2015 12:52 AM, Kevin Fishburne wrote: > > On 09/19/2015 03:40 PM, Lewis Balentine wrote: > >> On 09/19/2015 05:48 AM, Patrik Karlsson wrote: > >>> 2015-09-19 7:16 GMT+02:00 Kevin Fishburne > >>> : > >>> > When modifying a line of code there are context-sensitive pop-ups for > syntax help, code completion and method/property enumeration, which is > awesome. However, one type of pop-up requires that you press Escape to > clear and the others do not. Being unable to reliably differentiate > between pop-up types results in Escape being pressed in error which then > causes the debug pane to be hidden. When using the debug pane to jump > between search results, accidentally pressing Escape in an attempt to > clear the context-sensitive pop-up results in the debug pane, and > consequently the search results, being hidden. This significantly > interrupts workflow and has been annoying the shit out of me for > possibly years. > > I think the Escape key should be uncoupled from debug pane functionality > entirely, forcing the user to use a different key or perhaps the mouse > alone to show/hide or otherwise manipulate it. Is anyone else > experiencing this or is it just me? > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sa...@eightvirtues.com > phone: (770) 853-6271 > > > >>> You are not alone. :) > >> "... perhaps the mouse alone to show/hide or otherwise manipulate it." > >> There should always exist an alternate way to gracefully exit a dialog > >> box lest the farmer's wife is hanging about with her carving knife. > > Just use the window and you can generally avoid any run-ins with the > > farmer or his knife-wielding wife...unless something else entirely is > > going on and I've misunderstood. > > > > In any case, I've attached two images. Pressing Escape for enumeration > > clears the enumeration pop-up. Pressing Escape for syntax help hides the > > debug pane. Maybe Alt-Escape, Alt-Tab or something similar could toggle > > debug pane visibility. > > > > Forgot the damned images...sorry. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sa...@eightvirtues.com > phone: (770) 853-6271 > Actually, removing the escape that closes the console seems to me to be a better idea as it is not only the completion help that causes this problem. Sometimes I end up keyboarding something that opens a menu item, then Esc kills the console and but whatever ... jai yen -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] The interview on FLOSS
On Sun, 20 Sep 2015 23:22:27 -0400 Kevin Fishburne wrote: > On 09/19/2015 01:16 PM, Caveat wrote: > > Really not sure what you mean by 'doesn't come from English'... of > > course it comes from Greek, but it's a word appearing in most English > > dictionaries... so? Should we exclude anorexia as an English word > > because it also comes from Greek, or manxome because it was made up by > > Lewis Carroll... ? :-) > > All words came from half-human apes in caves making grunting sounds, > which at some point they decided was more useful than the usual boolean > expression of "hit with club" or "do not hit with club". The evolution > of language is a complex topic, and these days to some degree they all > bleed together borrowing from each other (especially English, which is > messy and fluid). > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sa...@eightvirtues.com > phone: (770) 853-6271 > > I will tell you why; so shall my anticipation prevent your discovery, and your secrecy to the king and queen moult no feather. I have of late—but wherefore I know not— lost all my mirth, forgone all custom of exercises; and indeed it goes so heavily with my disposition that this goodly frame, the earth, seems to me a sterile promontory, this most excellent canopy, the air, look you, this brave o’erhanging firmament, this majestical roof fretted with golden fire, why, it appears no other thing to me than a foul and pestilent congregation of vapours. What a piece of work is a man! How noble in reason! How infinite in faculty! In form and moving how express and admirable! In action how like an angel! In apprehension how like a god! The beauty of the world! The paragon of animals! And yet, to me, what is this quintessence of dust? Man delights not me: no, nor woman neither, though by your smiling you seem to say so. mmmneh, one grunter did alright, methinks. -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Project templates
On Fri, 18 Sep 2015 02:53:25 +0200 Ah, yes. A couple of observations inline. Benoît Minisini wrote: > Hi, > > Since revision #732Z, project creation is now based on project templates. > > Project templates are just normal projects that are stored: > > - In '/usr/share/gambas3/template' : they are the default templates > provided with the Gambas sources. (Don't forget to issue a ./reconf && > ./configure -C if you compile from /trunk). So, I presume that I cannot "localize" the default templates as they will be replaced on a new make install? > > - In '~/.local/share/gambas3/template' : they are templates defined by > the user. To define a custom template, just save a project there. Ah, yes but.. There are more than one of us here. Custom templates would suit us better if they were stored in a shared directory. Is there any chance of this in the (near) future? If not I will see if I can hack our local IDE to suit. > > A bookmark has been added in the 'open project' dialog and in the 'save > project as' dialog that points at the user template directory. > > The title and the description of a template project are used for > describing the template in the project creation dialog. > > These title and description can be translated inside the project > template, and it will be taken into account. > > Of course, when creating a project, the template title and description > are replaced by those specificed in the project creation dialog. Cool, just what's needed. > > At the moment, I made only two templates. I will make other templates, > to mimic the old project creation dialog behaviour. I am with others commenting in this thread - we must have a QT4 template as that is what we expect our clients to be using. We have had a look at the QT5 option and like others have said it lacks a few things that are in QT4 that we have used fairly extensively across our products, so at the moment defaulting to QT5 will generate lots of headaches if Mr Client X installs QT5. > > You are welcome to send templates to be integrated by default with > Gambas! A template is usually a void project, but we can imagine > providing an application skeleton. > > Regards, > > -- > Benoît Minisini > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user regards bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Connections[] no longer application wide?
Previously a component or a library could access a connection defined at the application level at run time. This seems to fail now for some reason that I cannot fathom. For example, we have a database abstraction component ("phdb11") that is used by a data object layer library ("horseBO", and other data object layer) that is used by many different applications. The live db is defined as a Connection in these applications. The "phdb11" component looks for a Connection named "Main", connects to it and handles all the low level access to that database, "horseBO" defines a set of ("business") objects that are available to the application and provides an interface between the application and the phdb11 component, so all the application need see is a bunch of objects that can be "Load"ed, "Add"ed, "Save"d etc to the database connection it defines. In one of the recent revisions, somewhere around when project templates were introduced something changed and now (rev 7345) as soon as the whole structure tries to connect I get a "Cannot locate Main connection" error. I am trying to find where and at which revision the something changed and aren't having too much luck. This could be a major setback for us, so if anyone can shed a bit of light, please help. tia bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Project templates
On Fri, 25 Sep 2015 12:36:16 +0200 Tobias Boege wrote: > On Fri, 25 Sep 2015, adamn...@gmail.com wrote: > > > Project templates are just normal projects that are stored: > > > > > > - In '/usr/share/gambas3/template' : they are the default templates > > > provided with the Gambas sources. (Don't forget to issue a ./reconf && > > > ./configure -C if you compile from /trunk). > > > > So, I presume that I cannot "localize" the default templates as they will > > be replaced on a new make install? > > > > That's a point. I haven't checked out templates yet but maybe it would be > easy to make user templates override default templates like classes do in > the interpreter's global symbol table: if a user template has the same name > as a default template, the user files override the default... > > I'd guess it suffices to do the overriding on a file basis. By using a > Collection indexed with relative paths of the files, this should be really > easy. If we do this, we would also have the gears ready to implement > template dependencies / inheritance. > > OTOH, would it bother you so much to prefix your user templates with "PH" or > something? :-) Yep, will probably do that. I will do some more checking to see if this is optimal. > > > > > > > - In '~/.local/share/gambas3/template' : they are templates defined by > > > the user. To define a custom template, just save a project there. > > > > Ah, yes but.. > > There are more than one of us here. Custom templates would suit us better > > if they were stored in a shared directory. Is there any chance of this in > > the (near) future? If not I will see if I can hack our local IDE to suit. > > > > Before you hack, you could maybe solve your problem by symlinking all your > template directories to some globally accessible location? I realised that after I posted but then we would lose all the advantages provided by the IDE and have to "manage" the shared templates manually. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk So true :-) regards bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Connections[] no longer application wide?
On Sat, 26 Sep 2015 10:46:43 +0200 Benoît Minisini wrote: > Le 26/09/2015 03:38, adamn...@gmail.com a écrit : > > Previously a component or a library could access a connection defined > > at the application level at run time. This seems to fail now for some > > reason that I cannot fathom. For example, we have a database > > abstraction component ("phdb11") that is used by a data object layer > > library ("horseBO", and other data object layer) that is used by many > > different applications. The live db is defined as a Connection in > > these applications. > > > > The "phdb11" component looks for a Connection named "Main", connects > > to it and handles all the low level access to that database, > > "horseBO" defines a set of ("business") objects that are available to > > the application and provides an interface between the application and > > the phdb11 component, so all the application need see is a bunch of > > objects that can be "Load"ed, "Add"ed, "Save"d etc to the database > > connection it defines. > > > > In one of the recent revisions, somewhere around when project > > templates were introduced something changed and now (rev 7345) as > > soon as the whole structure tries to connect I get a "Cannot locate > > Main connection" error. > > > > I am trying to find where and at which revision the something changed > > and aren't having too much luck. > > > > This could be a major setback for us, so if anyone can shed a bit of > > light, please help. > > > > tia bruce > > > > > > > > Is it better with revision #7347? > > -- > Benoît Minisini > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Yes. Thanks Benoit. b -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Possible IDE crash bug with Properrty editor
(I only have my laptop with me today which doesn't have a clean copy of the IDE, so ...) Could someone please check the following as a possible bug. 1) Open any GUI project in the IDE and load a form (the form itself should be selected) 2) Double click on the Text property (The Edit text property popup is shown) 3) Close it using the window manager X button N.B. not the Cancel button on the popup 4) Double click on the Name property (The Edit text property popup is shown) 5) Again, close it using the window manager X button ---> This application has raised an unexpected error and must abort. [13] Null object. FProperty.txtProperty_Click.985 bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Possible IDE crash bug with Properrty editor
On Sun, 27 Sep 2015 03:45:20 +0300 Jussi Lahtinen wrote: > Also the name field is not editable! > > > Jussi > > On Sun, Sep 27, 2015 at 3:44 AM, Jussi Lahtinen > wrote: > > > Yes, it does crash with revision 7333. > > > > > > Jussi I don't think it should be. As it is the file name in this case, But the bug remains an issue for BM. I'll raise the report. Thanks Jussi. bruce > > > > On Sun, Sep 27, 2015 at 2:37 AM, adamn...@gmail.com > > wrote: > > > >> (I only have my laptop with me today which doesn't have a clean copy of > >> the IDE, so ...) > >> > >> Could someone please check the following as a possible bug. > >> > >> 1) Open any GUI project in the IDE and load a form (the form itself > >> should be selected) > >> 2) Double click on the Text property (The Edit text property popup is > >> shown) > >> 3) Close it using the window manager X button N.B. not the Cancel button > >> on the popup > >> 4) Double click on the Name property (The Edit text property popup is > >> shown) > >> 5) Again, close it using the window manager X button > >> > >> ---> > >> > >> This application has raised an unexpected > >> error and must abort. > >> > >> [13] Null object. > >> FProperty.txtProperty_Click.985 > >> > >> > >> bruce > >> -- > >> B Bruen > >> > >> > >> -- > >> ___ > >> Gambas-user mailing list > >> Gambas-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Question
On Tue, 29 Sep 2015 21:18:40 +0200 Tobias Boege wrote: > On Tue, 29 Sep 2015, Jussi Lahtinen wrote: > > How does the mapviewer work..? I get only empty view, and quickly I don't > > see way to define the map. > > > > I believe we have a gb.map example using MapView here[0], German though. > Scroll all the way down the page to find the download section. > > Regards, > Tobi > > [0] http://www.gambas-buch.de/dw/doku.php?id=k24:k24.8:k24.8.1:start > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Tobi, That was great, I have been struggling with the MapView for 3 days. A couple of questions though. 1) Is there an example using the GoogleMaps provider? 2) If the provided lat/long numbers are invalid, a "Mathematical Error" occurs, but I cant seem to trap this in the client program. Both Try and Catch methods don't work. I get a stack backtrace of: Geo.MapPointToTile.19 _MapTile.Load.166 Map.tmrLoad_Timer.172 in the IDE which then stops. 3) Have you considered an interface to the Nokia "Here" map provider? It seems faster than the GoogleMaps web and has a couple of nice features. e.g. https://www.here.com/?map=52.79089,11.7536,15,satellite regards bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] IDE code questions - property editors
I think this is way out there in the cosmos somewhere, but I'll ask anyway. I am wading through the FProperty code of the IDE trying to understand how the values for properties are set (bad term) in the grid. When I get down to CControl.GetProperty(sProp As String) I see the following (with annotations): Try hProp = Project.Documentation.Classes[Kind].Properties[sProp] If hProp Then If hProp.AlwaysRead Then <--- Question1 vVal = Object.GetProperty(Control, sProp) < Question 2 ... Endif Endif Return $cValue[sProp] < Question 3 1) I see that these are set in the CPropertyInfo class but why are some properties AlwaysRead? 2) This is messy. If a control is a custom control then it appears that this line tries to get the property value from the object whose class name is the _DrawWith constant defined in the custom control not the actual control class? 3) I dont understand how the $cValue array is initialised nor indeed what its' intent is. Could you enlighten me? Why all this? I am trying to modify the IDE so that the property editor can use special popup editor forms for some extra-special property types for custom controls. In short, the goal is to have the property editor form inside the custom control component rather than in the IDE. A "visible" example is the AngleBox class control "txtAngle" in the current IDE. I believe this is only used(?) for the report controls. Because we have a bunch of custom controls that have some extra-special properties, I have to continually maintain the IDE code updates because of svn differences and conflicts. So, I have so far managed to make a minimal set of mods that allows the (local) IDE to recognize custom properties (i.e. the extra-special ones) and use a pop-up editor that is contained within the custom control component. The pic attached is an example to explain it better .. (1) is a custom control, in that control I have a property (2) "Options" that has a custom editor. When I click on the "..." button the popup editor shown appears. and when the Save button is clicked the property "value" is saved where I want it. All well and groovy. In summary, I think this would be a good IDE enhancement. i.e. moving the editor for custom control extra-special properties from inside the IDE to within the custom control component itself. So... tia bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IDE code questions - property editors
On Wed, 7 Oct 2015 01:50:04 +0200 Benoît Minisini wrote: > Le 06/10/2015 06:37, adamn...@gmail.com a écrit : > > I think this is way out there in the cosmos somewhere, but I'll ask > > anyway. > > > > I am wading through the FProperty code of the IDE trying to > > understand how the values for properties are set (bad term) in the > > grid. When I get down to CControl.GetProperty(sProp As String) I see > > the following (with annotations): > > > > Try hProp = Project.Documentation.Classes[Kind].Properties[sProp] > > > > If hProp Then If hProp.AlwaysRead Then <--- Question1 > > > > vVal = Object.GetProperty(Control, sProp) < Question 2 > > > > ... > > > > Endif Endif > > > > Return $cValue[sProp] < Question 3 > > > > 1) I see that these are set in the CPropertyInfo class but why are > > some properties AlwaysRead? > > Because property values are cached, and the real property value may > change without the cache seeing it. > > For example, the value of a RadioButton, that may change if another > RadioButton is set. > > > > > 2) This is messy. If a control is a custom control then it appears > > that this line tries to get the property value from the object whose > > class name is the _DrawWith constant defined in the custom control > > not the actual control class? > > The IDE can only display controls that comes from components it uses. > For controls of other components, it relies on the _DrawWith property > that tells him which control to use instead. Of course, that control > must be in one the components used by the IDE. > > > > > 3) I dont understand how the $cValue array is initialised nor indeed > > what its' intent is. Could you enlighten me? > > It's the collection that caches the value of the control property. > > It's not necessarily the real value, but the value you see in the > property editor. For example, the Background property of a control is an > integer, but a String for the IDE. > > > > > Why all this? > > > > I am trying to modify the IDE so that the property editor can use > > special popup editor forms for some extra-special property types for > > custom controls. In short, the goal is to have the property editor > > form inside the custom control component rather than in the IDE. A > > "visible" example is the AngleBox class control "txtAngle" in the > > current IDE. I believe this is only used(?) for the report controls. > > Because we have a bunch of custom controls that have some > > extra-special properties, I have to continually maintain the IDE code > > updates because of svn differences and conflicts. > > > > So, I have so far managed to make a minimal set of mods that allows > > the (local) IDE to recognize custom properties (i.e. the > > extra-special ones) and use a pop-up editor that is contained within > > the custom control component. The pic attached is an example to > > explain it better .. (1) is a custom control, in that control I have > > a property > > > > (2) "Options" that has a custom editor. When I click on the "..." > > button the popup editor shown appears. > > > > and when the Save button is clicked the property "value" is saved > > where I want it. All well and groovy. > > > > In summary, I think this would be a good IDE enhancement. i.e. moving > > the editor for custom control extra-special properties from inside > > the IDE to within the custom control component itself. So... > > > > tia bruce > > > > The IDE can't use code located in other components, because he will have > to load them, which is not always possible. So the code that "manages" > special properties can't be inside the components. > > So I put them directly in the IDE. It's not nice, but it's not a > problem, because the IDE is always released with the entire Gambas > development stack, so you can ensure that everything is synced. > > Now the IDE source code should be better organized if you and other want > to develop custom dialogs for special properties. > > If you want to have custom dialogs associated with custom components, > I'm afraid it's not possible at the moment. > > What is needed is: > - A way to have a gambas library side by side with a component, that > would include the custom dialogs. > - A way for the IDE to load these libraries automatically at runtime. > - A way for the IDE to unload a library. This is not technically
[Gambas-user] Super quickie - array equality
If anyone is awake. Can I test that an integer array of the form (x,y) is equal to [0,0] simply? In other words Dim MyDimensions as Integer[]=[0,0] (some user stuff happens) If MyDimensions=[0,0} then ... tia bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Super quickie - array equality
On Wed, 21 Oct 2015 11:42:59 +1030 "adamn...@gmail.com" wrote: > If anyone is awake. > > Can I test that an integer array of the form (x,y) is equal to [0,0] simply? > In other words > > Dim MyDimensions as Integer[]=[0,0] > (some user stuff happens) > If MyDimensions=[0,0} then ... > > tia > bruce > -- > B Bruen Damn. It doesn't work. Oh well. :-( b -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Super quickie - array equality
The value, I need to know if the user has changed the default value from [0,0] to something else. [0,0] is a special case and I just thought that maybe there was a quick way to check it that I didn't know of. cheers bruce On Wed, 21 Oct 2015 15:30:28 +0300 Jussi Lahtinen wrote: > I don't get what you mean... do you want to test array bounds, or value, > or..? > > > Jussi > > On Wed, Oct 21, 2015 at 4:12 AM, adamn...@gmail.com > wrote: > > > If anyone is awake. > > > > Can I test that an integer array of the form (x,y) is equal to [0,0] > > simply? In other words > > > > Dim MyDimensions as Integer[]=[0,0] > > (some user stuff happens) > > If MyDimensions=[0,0} then ... > > > > tia > > bruce > > -- > > B Bruen > > > > > > -- > > ___ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Super quickie - array equality
On Wed, 21 Oct 2015 22:54:48 +0300 Jussi Lahtinen wrote: > Your original question hinted at 2D arrays, but [0, 0] is one dimensional > array with two values. > So, in other words you would like quick way to check first two values of > the array? and that its length is 2. > > I think this is the simplest: > > If myArray[0] = 0 And If myArray[1] = 0 Then so If myArray.Count=2 And If myArray[0] = 0 And If myArray[1] = 0 Then > > However, why you need an array for only two values? It's just for simplicity of passing the two numbers around as parameters... The actual use is a layout for tiling, i.e. x tiles wide by y tiles tall. I could have of course used LayoutX and LayoutY but as the pair is used in may parts of this app and passed as a parameter to many functions it is easier to use an array. (The app is a design tool for a "client" (my sister) who is a mosaic artist and the layout is for the repeating tiles of a design pattern. It was supposed to be a quicky to solve a "simple" problem she had. As ever - simple, hah!) > > > Jussi > > regards bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Super quickie - array equality
On Thu, 22 Oct 2015 18:27:22 +0200 Fabien Bodard wrote: > 2015-10-22 15:48 GMT+02:00 Jussi Lahtinen : > > Maybe you could use Point datatype, it does use compare method. > > > > So you can compare them like this: > > > > If hFirstPoint = hSecondPoint Then > > > > > > > > Jussi > > Jussi is true, for your idea it's maybe better than an array. > Ha! You guys are brilliant! It is exactly what I need. If Layout=Point() then ... thanks bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Dialog and relative paths
I have an executable archive that contains several text files with some metadata in them pertinent to that executable. Suffice to say they are text files with a ".def" extension. At run time the user needs to select one of these files to be loaded. Is there some way I can use the standard Dialog.OpenFile to achieve this? i.e. is there some way to make the Dialog.Path a relative path so it will show the files contained in the executable? tia bruce -- B Bruen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user