Difference between revisions of "Gambas"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
m (revised intro, other minor edits)
m (→‎Flaws: field pop-up flaw)
Line 13: Line 13:
 
* (Semi-minor) The field-list doesn't pop up under certain circumstances; checking into this.
 
* (Semi-minor) The field-list doesn't pop up under certain circumstances; checking into this.
 
* (significant) Help system is not context-sensitive; you have to type the term in manually and search for it. Similarly, there doesn't seem to be a way to go to an identifier's definition.
 
* (significant) Help system is not context-sensitive; you have to type the term in manually and search for it. Similarly, there doesn't seem to be a way to go to an identifier's definition.
 +
* The field-list popup isn't smart in certain circumstances:
 +
*# Type me.controlname.field (use a real control name and a real field name)
 +
*# Move cursor somewhere else
 +
*# go back to same line, and highlight the "." between "controlname" and "field"
 +
*# type "."
 +
*#* (minor) The list doesn't automatically select the field which was there already
 +
*#* (annoying) When you select the field you want, it is inserted between "." and the fieldname that was there before. This follows logically from the editing rules, but is not what we want to happen; the selected fieldname should replace the old fieldname.
 +
 
==Notes==
 
==Notes==
 
* The Help system appears to be wiki-based, possibly feeding directly off the Gambas wiki -- so any errors found can be corrected by anyone, in theory. Not sure how easy this is in practice. (Edit buttons do not appear in the Help app, so you would have to find the correct page on the wiki.)
 
* The Help system appears to be wiki-based, possibly feeding directly off the Gambas wiki -- so any errors found can be corrected by anyone, in theory. Not sure how easy this is in practice. (Edit buttons do not appear in the Help app, so you would have to find the correct page on the wiki.)

Revision as of 23:58, 2 January 2006

Gambas is a programming language and IDE.

This is a growing seedling article. You can help HTYP by watering it.

Gambas is intended to fill the same niche as VB, though it is not intended to be code-compatible. Gambas is currently only available for Linux; it is open-source, however, and porting to Windows or other OSs is a possibility.

Reference

Woozle Notes

I'm currently trying to learn Gambas, as it appears the easiest of the Linux IDEs I've been able to find so far. Here are the issues I've run into so far.

Stumbling Blocks

  • The form resize event doesn't pass the form's size as an event parameter. Answer: the size is easily available as a form property. So this issue was just over-VisualBasicization on my part.
  • When you make a set of controls into a group and then assign an event to the group, how do you get a pointer back to the control which initiated the event? The most obvious solution would have been for the event to pass the control as a parameter; Gambas events don't seem to use parameters. Another intuitive solution would have been for the group itself to appear on the form's list of controls/methods, as an alias for the currently active/effective control, but this doesn't seem to be the case. Finally, if the form had an ActiveControl property, I could pull the .Tag value from there, although I would expect to run into problems using this technique under some circumstances. Answer: The LAST keyword refers to the control which generated the current event.

Flaws

  • (Minor) Identifiers are not automatically capitalized to match their declaration, as in VB; fortunately, identifiers are not case-sensitive, so this doesn't make things ugly the way it does in C/C++.
  • (Semi-minor) The field-list doesn't pop up under certain circumstances; checking into this.
  • (significant) Help system is not context-sensitive; you have to type the term in manually and search for it. Similarly, there doesn't seem to be a way to go to an identifier's definition.
  • The field-list popup isn't smart in certain circumstances:
    1. Type me.controlname.field (use a real control name and a real field name)
    2. Move cursor somewhere else
    3. go back to same line, and highlight the "." between "controlname" and "field"
    4. type "."
      • (minor) The list doesn't automatically select the field which was there already
      • (annoying) When you select the field you want, it is inserted between "." and the fieldname that was there before. This follows logically from the editing rules, but is not what we want to happen; the selected fieldname should replace the old fieldname.

Notes

  • The Help system appears to be wiki-based, possibly feeding directly off the Gambas wiki -- so any errors found can be corrected by anyone, in theory. Not sure how easy this is in practice. (Edit buttons do not appear in the Help app, so you would have to find the correct page on the wiki.)