Tobias Boege | 24 May 2013 23:14
Picon

Feature request: Read a component's .info file for help in the IDE

Hi,

it is said in [0] that the IDE can access an .info file of a project to get
documentation out of it.

I tried this with gb.openssl which I documented in its source code. It did
not work since it's a component and not a project. As the gambas-devels may
already know, I have a bunch of scripts to extract these comments and merge
them into existing .info files. This works properly meanwhile. Consequently,
I'd like to see the IDE display the help comments in a *component's* .info
file. Is that possible?

Regards,
Tobi

[0] http://gambasdoc.org/help/doc/helpcomments?v3

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
Tobias Boege | 23 May 2013 18:27
Picon

HBox.Margin and .Padding not cumulative?

Hi Benoit,

the wiki[0] says that HBox.Margin and HBox.Padding produce a cumulative
margin when both are defined. This seems to be wrong in reality.

Test project attached. Note that the first click makes HBox.Padding equal to
Desktop.Scale while HBox.Margin is set - but nothing happens. If both
properties were cumulative, shouldn't the margin then be 2*Desktop.Scale?

Regards,
Tobi

[0] http://gambasdoc.org/help/comp/gb.qt4/hbox/margin?v3
Attachment (hvboxen-0.0.1.tar.gz): application/octet-stream, 4865 bytes
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Gambas-user mailing list
Gambas-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
Antonio Sánchez | 22 May 2013 23:18
Picon

Again with the color of the grid

It seems to be a problem with qt component. I saved a little screencast
with the issue:

*https://www.youtube.com/watch?v=hwDom_WBdCU&hd=1

*
I have tested all parameters of my qt theme and the hexadecimal number that
changes the background and doesn't belong to the background that gambas
shows.

I also attach another screenshot with xt7 program and you can see that
occurs the same. It seems to be a change in the new version because with
3.3.4 version all worked ok.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Gambas-user mailing list
Gambas-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
Ru Vuott | 22 May 2013 16:10
Picon
Favicon

New version isql: empty results with gambas-3

Hello,

our friend of italian Gambas forum has a problem:

he updated his management that uses MS-SQL 2008 as database. He, to connect to the db, uses Microsoft odbc
freetds driver. With the release of MS-SQL 2000 is no problem with the isql program from a terminal and with gambas.
With the new version isql no problem, gambas does not give him error in the query, but it returns the "empty"
results !

Our friend says with gambas-3 latest release it behaves as described above.
With Gambas 2.20 and earlier (version 2.21 does not work) it works, that is it will return the records in the result.

---> Our friend'ld like to know what differs a version with the other. <---

He add a clarification: in gambas 2 (all releases) with 64-bit systems the odbc connection not working,
what was repaired with version 3.

Regards
vuott

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
Marco | 22 May 2013 15:11
Picon

Click image get coordinates

Hi all,

I'm trying to write something so that I can display an image (a map of a 
building). On this image several temperature probes are displayed. I'd 
like to click the image on specific regions and want a textbox to be 
filled with the temperature value of this probe.

The real problem isn't the connection to the probes and displaying the 
values in the textbox. I allready made this work with normal buttons and 
no image. But to make it more fancy I'd want to use the image with the 
nice map of the building. This way it's more understanding for everyone 
using it.

I allready tried to get coordinates out of clicking on the image, but 
without any results.

Hope there is a solution for this.

Thanks,

Marco

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
bill-lancaster | 22 May 2013 08:22

LastModified value for hidden files not available

If I list the LastModified value for all the files in a folder some of them
are null values.

All of those with null values are hidden files.

Is this a bug or something on mu system?

Any ideas would be welcome.

--
View this message in context: http://gambas.8142.n7.nabble.com/LastModified-value-for-hidden-files-not-available-tp42005.html
Sent from the gambas-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
Richard Terry | 22 May 2013 00:41
Favicon

Detecting if a scroll bar has scrolled to the bottom.

In our installation wizard for EasyGP, Ian and I have put in the gnu 
public licence.

I want to be able to detect if the user has scrolled all the way to the 
bottom before I allow the wizard to progress to the next page, after 
they have checked the 'agree' checkbox.

Any help appreciated.

richard

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
Emanuele Sottocorno | 21 May 2013 17:29
Picon

gbc3-gb_error.o compiling rev #5670

Rev. #5670 make aborts immediately with error:
make[4]: enter directory "/home/emanuele/Gambas3/trunk/main/gbc"
  CC     gbc3-gb_error.o
gcc: error: 5638: File o directory does not exists

Logs and sysinfo attached.

Attachment (rev5670.logs.tar.gz): application/x-compressed-tar, 7051 bytes
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Gambas-user mailing list
Gambas-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
Tobias Boege | 21 May 2013 16:13
Picon

Global error management routine

Hi Benoit,

when programming a component in C/C++, one can use the error hook to execute
a function when the interpreter is about to abort because of an error.

In Gambas itself, we only have the local Catch blocks to execute code in
case of error in this or any context above in the stack.

However, there is no global error handling routine like the above error hook
available for Gambas programs. It would be handy if the program ultimately
has to tidy up some of its business before it is killed.

A rather dull example would be the one we initially intended: a Circular
from gb.data might be good to store program logs because it has a fixed
size. In case of an unexpected program error we would like to dump this
Circular. Easy when programming a component in C/C++ but impossible in
Gambas. AFAIK!

Thoughts?

Regards,
Tobi

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
(Continue reading)

Tobias Boege | 20 May 2013 23:58
Picon

New gb.crypt.openssl component

Hi folks,

seems to be the day of new components... I just committed a gb.crypt.openssl
component to wrap the cryptographic functions in OpenSSL's libcrypto. The
idea came actually from Sebastian in conjunction with his gambas-online
project. But maybe it's useful to someone else.

I've been working on it since yesterday. Even if I wrote almost straight
since then, this seemed kind of quick to me - which is usually not a good
sign regarding code quality :-)

Additionally, I'm not even a cryptography novice, so I encourage anyone with
knowledge of this matter to look at the code and report any (security)
problem (but not too much, please).

At least, the test cases (see attachment) work correctly and without crash
or memory leak (on non-Linux platforms, I can't promise anything, though;
there may trigger some assert()s!) and the design seems future-proof.

You basically have two classes which work somewhat alike: Digest and Cipher.
One gets access to an algorithm by giving its name to the array accessors:

	Digest["md5"].Hash("some string")

et voila.

The conversion between the string "md5" and the actual hashing function is
done by libcrypto itself. The names are *not* provided by my component. You
can get a full list of all supported algorithm names in the Digest.List:

(Continue reading)

Sebastian Kulesz | 20 May 2013 04:44
Picon

New gb.logging component

Hey there!

I just pushed the new component to the svn repository. It provides a
flexible API for logging and tracking events while the software is running.

It outputs to stdout by default, but you can simply point to a file when
creating an instance of the Logger object.

It provides 5 levels of severity, them being: Critical, Error, Warning,
Info, Debug
You can control the output by providing the minimum level required. For
example, if the minimum level is Warning, only Warning, Error and Critical
messages will be printed (or saved to the file)

Another great feature is a flexible formatted output. When creating an
instance, you can pass a string which will tell the logger how the string
will be formatted. A single tag is represented as "$(TAG)". The default one
is:

[$(now)] [$(levelname)] [$(callLocation)] $(message)

So, the message "Starting logger" would look like this:

[05/20/2013 02:13:46.267] [WARNING] [MTest.Main.9] Starting logger

The following tags are available as of now:

$(message) : The message passed to the logger
$(callLocation) : The full location of where the logger was called. In the
form of FILE.FUNCTION.LINE (look above at the example line)
(Continue reading)


Gmane