Discussion:
A couple of questions
(too old to reply)
Ken Schrock
2003-06-03 21:35:06 UTC
Permalink
Can I "send" an event? (like Win PostMessage)
i.e. Can I call Button1_Click() if I have no sub (code) for it?
(more useful real things would be select something in a listbox
or perhaps drop down the list in a combo box programmatically)
If so how? (It is often helpful to do this asynchronous)

How does the grid control work?
The component explorer shows how to extract a cell
But no way I can see to set a cell contents
(I can't even make it show the grid)

I see people ask for MDI things
Why wouldn't the tabstrip work for this type of thing?
Spreadsheets and browsers both use this paradigm now
It seems neater and more organized than MDI
--
Using Lindows
Rob
2003-06-03 19:40:25 UTC
Permalink
Post by Ken Schrock
Can I "send" an event? (like Win PostMessage)
i.e. Can I call Button1_Click() if I have no sub (code) for it?
(more useful real things would be select something in a listbox
or perhaps drop down the list in a combo box programmatically)
If so how? (It is often helpful to do this asynchronous)
Well, as I understand it, you can pretty much do anything with events that you
can do in VB (with the addition of being able to name your event subs
anything you like if you want.) The example you give, PostMessage, was an
API call and not really part of VB, though I can see how such a thing would
be useful. Maybe it's possible already (like the Qt emit macro) and I just
don't know about it.

I always had to SendKeys "{F4}" to drop down listboxes in my VB days and I
actually don't know what the equivalent is in Gambas, but other things (like
simulating a mouse click by calling the event sub directly) work much the
same.
Post by Ken Schrock
How does the grid control work?
The component explorer shows how to extract a cell
But no way I can see to set a cell contents
(I can't even make it show the grid)
I haven't used the grid control yet, but I'll try to make an example project
this afternoon for you. It seems to me you could also load up the Gambas
Database Manager project and see how it's used there. I suspect it's
something like needing to dim a variable as a cell object, extract the cell
to that object and using the cell's value (or something) property to get the
contents of the cell.
Post by Ken Schrock
I see people ask for MDI things
Why wouldn't the tabstrip work for this type of thing?
Spreadsheets and browsers both use this paradigm now
It seems neater and more organized than MDI
The MDI discussion came up because some people wanted the VB5/VB6 MDI look for
Gambas, and once the capability became available I demonstrated how such an
IDE could be made easily. I think a tabstrip is a different paradigm and not
one that's well suited for an IDE (after all, you'd often want a form and its
code onscreen at the same time.) An MDI form with tabbed subforms in it, on
the other hand, could work well.

Rob
Benoit Minisini
2003-06-03 20:40:11 UTC
Permalink
Post by Rob
Post by Ken Schrock
How does the grid control work?
The component explorer shows how to extract a cell
But no way I can see to set a cell contents
(I can't even make it show the grid)
I haven't used the grid control yet, but I'll try to make an example
project this afternoon for you. It seems to me you could also load up the
Gambas Database Manager project and see how it's used there. I suspect
it's something like needing to dim a variable as a cell object, extract the
cell to that object and using the cell's value (or something) property to
get the contents of the cell.
Be careful, The GridView control and the TableView (used in the gambas
database manager) are very different.

The GridView control is a simple grid. To understand how to use it, the
quicker is to read the FProperty.class file in the IDE source.

The TableView is a bit more complicated. It does not contain any data, it just
raises a event each time it must get a data. Look in the g-d-m source !
Post by Rob
Post by Ken Schrock
I see people ask for MDI things
Why wouldn't the tabstrip work for this type of thing?
Spreadsheets and browsers both use this paradigm now
It seems neater and more organized than MDI
The MDI discussion came up because some people wanted the VB5/VB6 MDI look
for Gambas, and once the capability became available I demonstrated how
such an IDE could be made easily. I think a tabstrip is a different
paradigm and not one that's well suited for an IDE (after all, you'd often
want a form and its code onscreen at the same time.) An MDI form with
tabbed subforms in it, on the other hand, could work well.
Rob
I'm not sure I will make a MDI interface for gambas. I would prefer a
interface like Kate. It is like a MDI with all windows maximized.

But before doing anything, I will post examples so that people can tell what
they prefer.
--
Benoit Minisini
mailto:***@users.sourceforge.net
Dan Phillips
2003-06-03 22:32:03 UTC
Permalink
-------snip--------
Post by Benoit Minisini
I'm not sure I will make a MDI interface for gambas. I would prefer a
interface like Kate. It is like a MDI with all windows maximized.
But before doing anything, I will post examples so that people can tell
what they prefer.
Don't forget, there are occasions where you want to be able to see two or more
subforms (mdi child forms) at the same time side-by-side within the mdi
parent. If you were to simply do this w/ excel style tabs that showed
subForm1 full size, or subForm2 full size, you wouldn't get the benefit from
being able to position your windows for multi viewing purposes.

I guess one example of such an app would be stock trading, you'd want to be
able to watch stocks in one window while working in another.

Maybe not the best example but works anyway.

-----------------------
-Thanks, Dan
-Haight & Associates, Inc.
-907.586.9788
-----------------------
Ken Schrock
2003-06-04 03:24:34 UTC
Permalink
Post by Benoit Minisini
Post by Rob
Post by Ken Schrock
How does the grid control work?
The component explorer shows how to extract a cell
But no way I can see to set a cell contents
(I can't even make it show the grid)
I haven't used the grid control yet, but I'll try to make an example
project this afternoon for you. It seems to me you could also load up the
Gambas Database Manager project and see how it's used there. I suspect
it's something like needing to dim a variable as a cell object, extract the
cell to that object and using the cell's value (or something) property to
get the contents of the cell.
Be careful, The GridView control and the TableView (used in the gambas
database manager) are very different.
The GridView control is a simple grid. To understand how to use it, the
quicker is to read the FProperty.class file in the IDE source.
Ok, I keep falling into this trap
I have Gambas from a binary package
There is no source, no example.info or other things referred to
repeatedly here

Now I suppose I could get the whole source package, unpack, hunt, seek, etc
Couldn't someone just pack up the relevant pieces on the web site?
Rob
2003-06-04 02:13:04 UTC
Permalink
Post by Ken Schrock
Post by Benoit Minisini
Post by Rob
Post by Ken Schrock
How does the grid control work?
The component explorer shows how to extract a cell
But no way I can see to set a cell contents
(I can't even make it show the grid)
I haven't used the grid control yet, but I'll try to make an example
project this afternoon for you. It seems to me you could also load up
the Gambas Database Manager project and see how it's used there. I
suspect it's something like needing to dim a variable as a cell object,
extract the cell to that object and using the cell's value (or
something) property to get the contents of the cell.
Be careful, The GridView control and the TableView (used in the gambas
database manager) are very different.
The GridView control is a simple grid. To understand how to use it, the
quicker is to read the FProperty.class file in the IDE source.
Ok, I keep falling into this trap
I have Gambas from a binary package
There is no source, no example.info or other things referred to
repeatedly here
Now I suppose I could get the whole source package, unpack, hunt, seek, etc
Couldn't someone just pack up the relevant pieces on the web site?
Well, I can put them on mine anyway. These are all from 0.57.

Example Gambas projects that should have come with Gambas:
http://www.kudla.org/gambas/gambas057examples.tar.gz

Gambas source for Gambas IDE and DB manager:
http://www.kudla.org/gambas/gambasguisrc.tar.gz

Example of new Gambas component in C:
http://www.kudla.org/gambas/examplegambas057component.tar.gz

I'm surprised Lindows' Gambas package didn't at least come with the example
projects since they're meant to be a newbie distro and newbies can always use
example code.

Rob
Ken Schrock
2003-06-04 03:15:45 UTC
Permalink
Post by Rob
Well, I can put them on mine anyway. These are all from 0.57.
Thank you kind sir.

[snip]
Post by Rob
I'm surprised Lindows' Gambas package didn't at least come with the example
projects since they're meant to be a newbie distro and newbies can always
use example code.
The Lindows folks are a little scitzo, one foot in two different worlds
It defaults to you auto-logging in as root as standard procedure
But leaves Debian Fort Knox security on other simple things

They also package Kdevelop with about half the docs
And things like Glade come without docbook stuff
Most often the stuff is hiding in the warehouse
So I can usually grab it easily. Not this time

Question:

Would you be interested in helping me write a unified docs for this?
(so that the people the thing looks like it is designed for can use it)
Most of the pieces seem to be lying around somewhere or other
But it all needs some glue and a little polishing up here and there
--
Using Lindows
Rob
2003-06-04 04:36:54 UTC
Permalink
Post by Ken Schrock
Would you be interested in helping me write a unified docs for this?
(so that the people the thing looks like it is designed for can use it)
Most of the pieces seem to be lying around somewhere or other
But it all needs some glue and a little polishing up here and there
Yeah, I'd been meaning to write a "Gambas for VB users" intro type of thing
for a while but hadn't had time. I had also been thinking of setting up a
Gambas wiki (not to compete with theeasygambasdoku, but a set of pages anyone
could edit with the goal of making a reference and tutorial that could be
exported to HTML and distributed as an RPM to go with Gambas.) What are your
ideas? I would say we could take it private except that there's no reason
other people shouldn't get involved in documenting.

Hey, maybe it's time to write the Gambas Help Browser app in Gambas ;) If we
took the "help browser" route then eventually people would be able to
contribute translations of our docs as well. And currently F1 is unbound in
the IDE ;)

Rob
Dimitri Bellini
2003-06-04 11:10:32 UTC
Permalink
Post by Rob
Yeah, I'd been meaning to write a "Gambas for VB users" intro type of thing
Great idea... I can translate it when is made :-) ...
Dimitri
Benoit Minisini
2003-06-04 19:31:15 UTC
Permalink
Post by Rob
Post by Ken Schrock
Would you be interested in helping me write a unified docs for this?
(so that the people the thing looks like it is designed for can use it)
Most of the pieces seem to be lying around somewhere or other
But it all needs some glue and a little polishing up here and there
Yeah, I'd been meaning to write a "Gambas for VB users" intro type of thing
for a while but hadn't had time. I had also been thinking of setting up a
Gambas wiki (not to compete with theeasygambasdoku, but a set of pages
anyone could edit with the goal of making a reference and tutorial that
could be exported to HTML and distributed as an RPM to go with Gambas.)
What are your ideas? I would say we could take it private except that
there's no reason other people shouldn't get involved in documenting.
Hey, maybe it's time to write the Gambas Help Browser app in Gambas ;) If
we took the "help browser" route then eventually people would be able to
contribute translations of our docs as well. And currently F1 is unbound
in the IDE ;)
Rob
Making a wiki is a great idea. If you do it, I will fill it !
--
Benoit Minisini
mailto:***@users.sourceforge.net
Charlie
2003-06-04 20:13:39 UTC
Permalink
Post by Benoit Minisini
Post by Rob
Post by Ken Schrock
Would you be interested in helping me write a unified docs for this?
(so that the people the thing looks like it is designed for can use it)
Most of the pieces seem to be lying around somewhere or other
But it all needs some glue and a little polishing up here and there
Yeah, I'd been meaning to write a "Gambas for VB users" intro type of thing
for a while but hadn't had time. I had also been thinking of setting up a
Gambas wiki (not to compete with theeasygambasdoku, but a set of pages
anyone could edit with the goal of making a reference and tutorial that
could be exported to HTML and distributed as an RPM to go with Gambas.)
What are your ideas? I would say we could take it private except that
there's no reason other people shouldn't get involved in documenting.
Hey, maybe it's time to write the Gambas Help Browser app in Gambas ;) If
we took the "help browser" route then eventually people would be able to
contribute translations of our docs as well. And currently F1 is unbound
in the IDE ;)
Rob
Making a wiki is a great idea. If you do it, I will fill it !
Jochen has a started wiki on his http://www.theeasygambasdoku.de/
go http://linuxwiki.de/Gambas

and fill it with live.

Charlie
Benoit Minisini
2003-06-05 22:02:22 UTC
Permalink
Post by Charlie
Post by Benoit Minisini
Making a wiki is a great idea. If you do it, I will fill it !
Jochen has a started wiki on his http://www.theeasygambasdoku.de/
go http://linuxwiki.de/Gambas
and fill it with live.
Charlie
It is in german ? Is it possible to have an english-only wiki for gambas
documentation ?
--
Benoit Minisini
mailto:***@users.sourceforge.net
Charlie
2003-06-05 22:42:15 UTC
Permalink
Post by Benoit Minisini
Post by Charlie
Post by Benoit Minisini
Making a wiki is a great idea. If you do it, I will fill it !
Jochen has a started wiki on his http://www.theeasygambasdoku.de/
go http://linuxwiki.de/Gambas
and fill it with live.
Charlie
It is in german ? Is it possible to have an english-only wiki for gambas
documentation ?
Salut,

yes the first ( and only ) lines are in german and the site also,
but if you have remaked it uses your browser languages for explications,
why not talking english on it.

Thats internet.

I do not know who was starting this, Jochen ?
And Jochen invents you also to talk english.

I just have this questions here around, to whom who started that wiki ?
- Is there a grand possibility using this wiki for a longer time ?
- Is it possible to make him a little more closed ( I mean a login, for
signed up users etc.)
I say that, because this evening I added a 'Hi All start here' and
I'm identified by 'dialn-nbg-088.fen-net.de'
what means 'nobody', every one has access to this pages.

I founde out the work on the user access.

Set up a simple wiki is easy, but you need a admin who follows the
demand of the users.

Dit you know there are wiki implementations in nearly every programming
language, including VB?

amicalement
Charlie
Jochen Georges
2003-06-06 05:43:25 UTC
Permalink
Post by Charlie
Post by Benoit Minisini
Post by Charlie
Post by Benoit Minisini
Making a wiki is a great idea. If you do it, I will fill it !
Jochen has a started wiki on his http://www.theeasygambasdoku.de/
go http://linuxwiki.de/Gambas
and fill it with live.
Charlie
It is in german ? Is it possible to have an english-only wiki for gambas
documentation ?
Salut,
yes the first ( and only ) lines are in german and the site also,
but if you have remaked it uses your browser languages for explications,
why not talking english on it.
Thats internet.
I do not know who was starting this, Jochen ?
And Jochen invents you also to talk english.
I just have this questions here around, to whom who started that wiki ?
that was me
Post by Charlie
- Is there a grand possibility using this wiki for a longer time ?
yes, i think so
Post by Charlie
- Is it possible to make him a little more closed ( I mean a login, for
signed up users etc.)
that is possible


beste gruesse
jochen
Ken Schrock
2003-06-04 22:36:13 UTC
Permalink
My favorite is docbook, but not everybody has it or can get it easily
Benoit has the manual at the site in pdf for like .35 and SO for .5x
I find the PDF one MUCH easier to use

So either...
1. Stich all the pieces together into a big PDF doc
(1 doc, 1 chapter each for overview, tutorial, manual,
components, making extentions, db stuff, examples, etc)
2. Find out how to get it into the currently used place (view ???)
(1 new menu item for each of the above [component there now])

I also think we need icons at the top of the page like Win SDK help
* NEW FOR VER 0.57 (NEW autostart form, etc, blah, blah)
# VER 0.57 CHANGE (mine's .53, I can't run most of your .57 example)
@ Difference from VB (this funtion, property, method, etc, blah, blah. etc)

Again, these guys have touch on all this, just none is joined or done
Post by Rob
Post by Ken Schrock
Would you be interested in helping me write a unified docs for this?
(so that the people the thing looks like it is designed for can use it)
Most of the pieces seem to be lying around somewhere or other
But it all needs some glue and a little polishing up here and there
Yeah, I'd been meaning to write a "Gambas for VB users" intro type of thing
for a while but hadn't had time. I had also been thinking of setting up a
Gambas wiki (not to compete with theeasygambasdoku, but a set of pages
anyone could edit with the goal of making a reference and tutorial that
could be exported to HTML and distributed as an RPM to go with Gambas.)
What are your ideas? I would say we could take it private except that
there's no reason other people shouldn't get involved in documenting.
Hey, maybe it's time to write the Gambas Help Browser app in Gambas ;) If
we took the "help browser" route then eventually people would be able to
contribute translations of our docs as well. And currently F1 is unbound
in the IDE ;)
Rob
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Gambas-user mailing list
https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Using Lindows
Rob
2003-06-05 04:22:56 UTC
Permalink
Post by Ken Schrock
My favorite is docbook, but not everybody has it or can get it easily
Benoit has the manual at the site in pdf for like .35 and SO for .5x
I find the PDF one MUCH easier to use
I don't know if PDF is the way to go presently because there's no way to bring
it up inside the Gambas IDE and there's no navigation around all those
documents. I mean, yeah, you can paste all kinds of documentation on the end
of that SXW document and then save as PDF, and I think that's a great way to
start getting all the documentation together, but I don't know if that'll be
enough for the help system.

Your ideas regarding "New in *** version..." are right on, though I don't
think we can do that retroactively very easily. The "difference from VB"
stuff on each page is a great idea and one I hadn't thought of. That makes
much more sense than an intro, though a "Help! I'm a VB user! What do I
do?" page linked off the front page of the manual might be good too ;)

I'm actually leaning towards the wiki idea, and tonight I started working on a
Gambas help viewer that will parse simple HTML files (like those that should
be created when you export from a wiki) and navigate between different HTML
files via links (which you can't do with the regular TextLabel control
because the underlying Qt component QTextBrowser's link following event isn't
supported in Gambas yet). I'm also thinking I should do a full text index
when I do the export from the wiki (whichever one we end up using.... mein
Deutsch ist leider sehr schlecht...) and include that with the HTML and
pixmap files.

I can't figure out how to subclass TextLabel and add my own events, not that I
think it'd be possible in the first place to find out what word you just
clicked on, so I'm rolling my own using a Scrollview and lots of individual
TextLabel objects, meticulously spaced and tagged ;) So far it's MUCH
snappier than you might imagine, but I've done similar things successfully in
Tcl which is a nasty and slow language so I'm not too surprised. And, well,
I actually have only gotten as far as parsing <B> and <IMG... tags.

But just now my awesome MDI hack of the Gambas IDE just exited without error
on me as I was messing with the properties dialog, and I hadn't saved in
about an hour, and so instead I'm going to bed ;)

Rob
Jochen Georges
2003-06-05 18:15:55 UTC
Permalink
Post by Rob
Post by Ken Schrock
My favorite is docbook, but not everybody has it or can get it easily
Benoit has the manual at the site in pdf for like .35 and SO for .5x
I find the PDF one MUCH easier to use
snip .......
Post by Rob
I'm actually leaning towards the wiki idea, and tonight I started working
on a Gambas help viewer that will parse simple HTML files (like those that
should be created when you export from a wiki) and navigate between
different HTML files via links (which you can't do with the regular
TextLabel control because the underlying Qt component QTextBrowser's link
following event isn't supported in Gambas yet). I'm also thinking I should
do a full text index when I do the export from the wiki (whichever one we
end up using.... mein Deutsch ist leider sehr schlecht...) and include that
with the HTML and pixmap files.
wiki is cool.
http://linuxwiki.de/Gambas
feel free to write there (in english?!)

beste gruesse
jochen
Rob
2003-06-05 23:46:50 UTC
Permalink
Post by Jochen Georges
wiki is cool.
http://linuxwiki.de/Gambas
feel free to write there (in english?!)
I've been there, but figured it was meant to be in German. I actually have
already started a wiki, though there's not too much out there at the moment
(just the contents of the Gambas Encyclopedia converted to wiki format using
a perl script I wrote, and it probably needs some cleaning up) but here it
is:

http://www.binara.com/gambas-wiki

I don't know whether it'll require a login to edit pages, but if it does,
GambasUser/GambasUser should do it. I'm working on at least getting the
index by category working right this evening.

Rob
Rob
2003-06-06 04:04:37 UTC
Permalink
Post by Rob
I don't know whether it'll require a login to edit pages, but if it does,
GambasUser/GambasUser should do it. I'm working on at least getting the
index by category working right this evening.
I just got in under the wire. See what you guys think of the "by category"
index.

http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasIndexByCategory

If you don't like it, there's an edit button at the bottom of the page ;)

username GambasUser password GambasUser

Rob
Ken Schrock
2003-06-06 04:59:08 UTC
Permalink
Impressive from every angle, particularly speed completed
What other chunks do you currenly envision, if any?
Post by Rob
Post by Rob
I don't know whether it'll require a login to edit pages, but if it does,
GambasUser/GambasUser should do it. I'm working on at least getting the
index by category working right this evening.
I just got in under the wire. See what you guys think of the "by category"
index.
http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasIndexByCategory
If you don't like it, there's an edit button at the bottom of the page ;)
username GambasUser password GambasUser
Rob
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Gambas-user mailing list
https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Using Lindows
Rob
2003-06-06 16:39:14 UTC
Permalink
Post by Ken Schrock
Impressive from every angle, particularly speed completed
What other chunks do you currenly envision, if any?
The "How do I...." is a big missing part, and a lot of that can be filled in
short term by linking to theeasygambasdoku (which I'll start working on today
or over the weekend.) I think maybe making tutorials out of one of the
example apps might be a good thing too.

But anything that anyone wants to add is as simple as hitting the edit link,
adding a link to a page that doesn't exist and then clicking on that link
when you're done editing.... don't be too afraid of messing up because all
the revisions are tracked in RCS (as with most wikis.)

Rob
Ken Schrock
2003-06-06 22:52:46 UTC
Permalink
Post by Rob
Post by Ken Schrock
Impressive from every angle, particularly speed completed
What other chunks do you currenly envision, if any?
The "How do I...." is a big missing part, and a lot of that can be filled in
short term by linking to theeasygambasdoku (which I'll start working on today
or over the weekend.) I think maybe making tutorials out of one of the
example apps might be a good thing too.
But anything that anyone wants to add is as simple as hitting the edit link,
adding a link to a page that doesn't exist and then clicking on that link
when you're done editing.... don't be too afraid of messing up because all
the revisions are tracked in RCS (as with most wikis.)
I don't know if you noticed
But there is considerable sentiment here
To "limit" who can contribute to these things
(kind of runs counter to the idea of wiki, but oh well : -)
Post by Rob
Rob
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Gambas-user mailing list
https://lists.sourceforge.net/lists/listinfo/gambas-user
Benoit Minisini
2003-06-07 09:23:25 UTC
Permalink
Post by Ken Schrock
Post by Rob
Post by Ken Schrock
Impressive from every angle, particularly speed completed
What other chunks do you currenly envision, if any?
The "How do I...." is a big missing part, and a lot of that can be filled
in short term by linking to theeasygambasdoku (which I'll start working
on today or over the weekend.) I think maybe making tutorials out of one
of the example apps might be a good thing too.
But anything that anyone wants to add is as simple as hitting the edit
link, adding a link to a page that doesn't exist and then clicking on
that link when you're done editing.... don't be too afraid of messing up
because all the revisions are tracked in RCS (as with most wikis.)
I don't know if you noticed
But there is considerable sentiment here
To "limit" who can contribute to these things
(kind of runs counter to the idea of wiki, but oh well : -)
I think we should not limit access to the gambas wiki, but we must know who
has written what.
--
Benoit Minisini
mailto:***@users.sourceforge.net
Rob
2003-06-07 19:55:24 UTC
Permalink
Post by Benoit Minisini
I think we should not limit access to the gambas wiki, but we must know who
has written what.
I agree. To that end I've set up the wiki so that it can manage users and
passwords directly. I put a link to register for a username/password on the
front page, and from that page you can change or reset your password as well.
Please let me know if anyone has troubles with it.

Benoit and Jochen, since so much of the wiki depends upon your existing
documentation please let me know if you'd like me to add you to the admin
group after you've set yourself up accounts.

Rob

Jochen Georges
2003-06-06 05:55:35 UTC
Permalink
Post by Rob
Post by Rob
I don't know whether it'll require a login to edit pages, but if it does,
GambasUser/GambasUser should do it. I'm working on at least getting the
index by category working right this evening.
I just got in under the wire. See what you guys think of the "by category"
index.
http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasIndexByCategory
If you don't like it, there's an edit button at the bottom of the page ;)
username GambasUser password GambasUser
Rob
wow, that's great!!
i will start first to set links to the easygambasdoku (and back) and later
integrate the easygambasdokustuff in that wiki.

i wont add stuff to the easygambasdoku, because the wiki is much more powerful
than a conventional html-page.
btw: http://c2.com/cgi/wiki?WhyWikiWorks

in my opinion that wiki should become the central information-complex of
gambas.

i would apreciate that only subscribed members can edit the wiki.
so one can see who changed which content.

rob, will you do the admin work for this wiki?

yipeah
jochen
Jochen Georges
2003-06-06 06:04:18 UTC
Permalink
Post by Jochen Georges
i wont add stuff to the easygambasdoku, because the wiki is much more
powerful than a conventional html-page.
btw: http://c2.com/cgi/wiki?WhyWikiWorks
hi
btw:
if you wonder, why i did not write the easygambasdoku in a wiki,
i know wiki just for a very short time now.
in the beginning i was a bit skeptical if it works.
and then my work changed.

now i see that in the new wiki is big bunch of good work done already, so it
is a very good basis to work on.

beste gruesse
jochen
Rob
2003-06-06 16:43:37 UTC
Permalink
Post by Jochen Georges
in my opinion that wiki should become the central information-complex of
gambas.
Thanks, that's heavy praise coming from someone who put together what's been
the most useful Gambas documentation page so far ;)
Post by Jochen Georges
i would apreciate that only subscribed members can edit the wiki.
so one can see who changed which content.
Not a bad idea, I added an account for myself as a test. You can do the same
but I haven't figured out how to automatically add accounts to the web
server's .htpasswd file yet. Maybe I need to make an "add password" CGI.
Post by Jochen Georges
rob, will you do the admin work for this wiki?
I already am actually ;) Binara is the company I work for and own half of. I
put the wiki there rather than on kudla.org because kudla.org is running off
of my cable modem and binara.com is on a T1 which should be more than enough
for wiki work as long as I don't get slashdotted ;)

Rob
Benoit Minisini
2003-06-05 22:03:56 UTC
Permalink
Post by Rob
Post by Ken Schrock
My favorite is docbook, but not everybody has it or can get it easily
Benoit has the manual at the site in pdf for like .35 and SO for .5x
I find the PDF one MUCH easier to use
I don't know if PDF is the way to go presently because there's no way to
bring it up inside the Gambas IDE and there's no navigation around all
those documents. I mean, yeah, you can paste all kinds of documentation on
the end of that SXW document and then save as PDF, and I think that's a
great way to start getting all the documentation together, but I don't know
if that'll be enough for the help system.
Your ideas regarding "New in *** version..." are right on, though I don't
think we can do that retroactively very easily. The "difference from VB"
stuff on each page is a great idea and one I hadn't thought of. That makes
much more sense than an intro, though a "Help! I'm a VB user! What do I
do?" page linked off the front page of the manual might be good too ;)
I'm actually leaning towards the wiki idea, and tonight I started working
on a Gambas help viewer that will parse simple HTML files (like those that
should be created when you export from a wiki) and navigate between
different HTML files via links (which you can't do with the regular
TextLabel control because the underlying Qt component QTextBrowser's link
following event isn't supported in Gambas yet). I'm also thinking I should
do a full text index when I do the export from the wiki (whichever one we
end up using.... mein Deutsch ist leider sehr schlecht...) and include that
with the HTML and pixmap files.
I can't figure out how to subclass TextLabel and add my own events, not
that I think it'd be possible in the first place to find out what word you
just clicked on, so I'm rolling my own using a Scrollview and lots of
individual TextLabel objects, meticulously spaced and tagged ;) So far
it's MUCH snappier than you might imagine, but I've done similar things
successfully in Tcl which is a nasty and slow language so I'm not too
surprised. And, well, I actually have only gotten as far as parsing <B>
and <IMG... tags.
You will have a TextBrowser widget in the next version. It is like a TextLabel
with scrollbars, link management, and browsing capabilities.
--
Benoit Minisini
mailto:***@users.sourceforge.net
Rob
2003-06-06 23:13:51 UTC
Permalink
Oh yeah, I missed this one...
Post by Benoit Minisini
Post by Rob
I can't figure out how to subclass TextLabel and add my own events, not
that I think it'd be possible in the first place to find out what word
you just clicked on, so I'm rolling my own using a Scrollview and lots of
You will have a TextBrowser widget in the next version. It is like a
TextLabel with scrollbars, link management, and browsing capabilities.
Yep, I've used Qt's TextBrowser in perl and c++. Thank you very much! Guess
I'll put off the help browser for a version ;)

Rob
Fabien
2003-06-04 19:24:59 UTC
Permalink
Salut

if you have a middle button on your mouse :

IF Button AND Mouse.Middle THEN
CreateMenu
mnuGoto.Popup
ENDIF

at the line : 192, in fact in the edtEditor_MouseUp event of FEditor

It's more practicle to go rapidly to a sub....

Fabien
Benoit Minisini
2003-06-04 19:34:47 UTC
Permalink
Post by Fabien
Salut
IF Button AND Mouse.Middle THEN
CreateMenu
mnuGoto.Popup
ENDIF
at the line : 192, in fact in the edtEditor_MouseUp event of FEditor
It's more practicle to go rapidly to a sub....
Fabien
For popup menus, you should use the Menu event instead of the MousePress
event. This Menu event is raised when you hit the Windows keyboard menu key,
not the MousePress event.

It's better than VB :-)
--
Benoit Minisini
mailto:***@users.sourceforge.net
Fabien
2003-06-06 18:41:33 UTC
Permalink
Post by Benoit Minisini
Post by Fabien
Salut
IF Button AND Mouse.Middle THEN
CreateMenu
mnuGoto.Popup
ENDIF
at the line : 192, in fact in the edtEditor_MouseUp event of FEditor
It's more practicle to go rapidly to a sub....
Fabien
For popup menus, you should use the Menu event instead of the MousePress
event. This Menu event is raised when you hit the Windows keyboard menu
key, not the MousePress event.
It's better than VB :-)
Maybe but, i've don't see this event key anywhere... It's new for me..., hum I
must to see better in the component explorer.!
yes, now gambas have lot of better thing than vb.
(it's not really difficult ;-) )
But gambas is not a vb !, (visual basic) but a gb!!! (Graphical basic), i
prefer this terme, to stop all compare !


Fabien
Ken Schrock
2003-06-04 02:13:37 UTC
Permalink
Post by Rob
Post by Ken Schrock
Can I "send" an event? (like Win PostMessage)
i.e. Can I call Button1_Click() if I have no sub (code) for it?
(more useful real things would be select something in a listbox
or perhaps drop down the list in a combo box programmatically)
If so how? (It is often helpful to do this asynchronous)
Well, as I understand it, you can pretty much do anything with events that you
can do in VB (with the addition of being able to name your event subs
anything you like if you want.) The example you give, PostMessage, was an
API call and not really part of VB, though I can see how such a thing would
be useful. Maybe it's possible already (like the Qt emit macro) and I just
don't know about it.
Ok, sounds like a hint...
Is the Qt emit call synchronous or asynchronous?
(SendMessage is synchronous, PostMessage asynchronous)
Can I call it from Gambas somehow?

[snip]
Rob
2003-06-04 02:05:28 UTC
Permalink
Post by Ken Schrock
would be useful. Maybe it's possible already (like the Qt emit macro)
and I just don't know about it.
Ok, sounds like a hint...
It was more of a hint to Benoit since he wrote the Gambas Qt interface. I was
hoping maybe there was already some functionality like this in Gambas (since
Qt supports it) and I just didn't know about it :)
Post by Ken Schrock
Is the Qt emit call synchronous or asynchronous?
(SendMessage is synchronous, PostMessage asynchronous)
Asynchronous, as are all Qt signals as far as I know.
Post by Ken Schrock
Can I call it from Gambas somehow?
That's what I'm hoping to find out myself ;)

Rob
Benoit Minisini
2003-06-04 19:33:22 UTC
Permalink
Post by Ken Schrock
Post by Rob
Post by Ken Schrock
Can I "send" an event? (like Win PostMessage)
i.e. Can I call Button1_Click() if I have no sub (code) for it?
(more useful real things would be select something in a listbox
or perhaps drop down the list in a combo box programmatically)
If so how? (It is often helpful to do this asynchronous)
Well, as I understand it, you can pretty much do anything with events that
you can do in VB (with the addition of being able to name your event subs
anything you like if you want.) The example you give, PostMessage, was
an API call and not really part of VB, though I can see how such a thing
would be useful. Maybe it's possible already (like the Qt emit macro)
and I just don't know about it.
Ok, sounds like a hint...
Is the Qt emit call synchronous or asynchronous?
(SendMessage is synchronous, PostMessage asynchronous)
Can I call it from Gambas somehow?
[snip]
Stop dreaming. You will never see anything from the internal of QT in gambas.
Remember that I want to make a GTK+ component compatible with the QT one in
the future.

Events raised by gambas source code are immediately dispatched, (SendMessage
for Win32 guys) they have nothing to do with QT events.

Events raised by QT are dispatched when QT dispatch them, so it depends.
--
Benoit Minisini
mailto:***@users.sourceforge.net
Benoit Minisini
2003-06-03 20:45:43 UTC
Permalink
Post by Ken Schrock
Can I "send" an event? (like Win PostMessage)
i.e. Can I call Button1_Click() if I have no sub (code) for it?
(more useful real things would be select something in a listbox
or perhaps drop down the list in a combo box programmatically)
If so how? (It is often helpful to do this asynchronous)
You can raise a event from a class if you tell gambas that this class can
raise events with the EVENT keyword.

MyClass.class:

EVENT MyEvent(MyParam AS String) AS Boolean ' event declaration

...

' Somewhere in a function
Result = MyEvent("Test")

MyMain.module:

DIM hTest AS MYClass

hTest = NEW MyClass AS "Test"

...

PUBLIC FUNCTION Test_MyEvent(sParam AS String) AS Boolean

...

END
Post by Ken Schrock
I see people ask for MDI things
Why wouldn't the tabstrip work for this type of thing?
Spreadsheets and browsers both use this paradigm now
It seems neater and more organized than MDI
The TabStrip of QT are not practical when they have too many tabs, because you
must to click many times on two little arrow buttons to access each tab. This
is a complaint of Konqueror users since they can browse with tabs, and I
think this widget will be rewritten under the users pressure.
--
Benoit Minisini
mailto:***@users.sourceforge.net
Ken Schrock
2003-06-04 03:23:15 UTC
Permalink
Post by Benoit Minisini
Post by Ken Schrock
Can I "send" an event? (like Win PostMessage)
i.e. Can I call Button1_Click() if I have no sub (code) for it?
(more useful real things would be select something in a listbox
or perhaps drop down the list in a combo box programmatically)
If so how? (It is often helpful to do this asynchronous)
You can raise a event from a class if you tell gambas that this class can
raise events with the EVENT keyword.
Thanks, but here's the problem (perhaps I missed something)
The subs (callbacks, whatever) execute synchronously
No events are processed until the sub ends
So if I do

PrintDialog1.showmodal
GrabForm(me)

The dialog erases the window
The GrabForm() grabs a blank window
Even if you put Form1.Refresh between the two line
It still gets a blank window as the refresh doesn't happen until the sub
ends
Calling a created event from here does no good as it isn't processing
messages

Wait doesn't release like sleep() does
There seems to be a DoEvent like VB

PostMessage (or something similar)
Allows you to put an event in the queue to be called later
After the other events have finally finished processing
Post a refresh, post a print routine (created event)
And it all happens in the right order

I have several other examples, but you get the idea
I have found workarounds in each situation, but
Something like PostMessage would be easier
(or emit, or signal or whatever semantics)
Post by Benoit Minisini
EVENT MyEvent(MyParam AS String) AS Boolean ' event declaration
...
' Somewhere in a function
Result = MyEvent("Test")
DIM hTest AS MYClass
hTest = NEW MyClass AS "Test"
...
PUBLIC FUNCTION Test_MyEvent(sParam AS String) AS Boolean
...
END
Post by Ken Schrock
I see people ask for MDI things
Why wouldn't the tabstrip work for this type of thing?
Spreadsheets and browsers both use this paradigm now
It seems neater and more organized than MDI
The TabStrip of QT are not practical when they have too many tabs, because you
must to click many times on two little arrow buttons to access each tab. This
is a complaint of Konqueror users since they can browse with tabs, and I
think this widget will be rewritten under the users pressure.
Loading...