[Gambas-devel] Gambas IDE bug
Daniel Campos
daniel.campos at ...103...
Sat Oct 23 18:11:11 CEST 2004
Hi Benoît:
I was trying to add a new graphical component,
and I created a component very similar to gb.qt.ext to do that.
However, when opening the IDE, and adding the new component, I tried
to put my new object into a form, and the IDE crashed. That's the
point where it fails:
(at FForm.class )
PUBLIC SUB Control_Draw(OPTIONAL iIndex AS Integer)
DIM hForm AS Form
DIM X AS Integer
DIM Y AS Integer
DIM SX AS Integer
DIM SY AS Integer
DIM SXF AS Integer
DIM SYF AS Integer
DIM iMod AS Integer
DIM DX AS Integer
DIM DY AS Integer
IF LAST.Tag <> Name THEN
Draw.Picture(Picture["img/control" &/ LCase(Control[LAST.Tag].Kind)
& ".png"], 4, 4)
Draw.ForeColor = Color.Black
Draw.Text(LAST.Tag, 44, 4)
....
The program tries to load an image that does not exist, so it fails. I
think it should
it just should give a warning message, or even not any visible error
(just 'TRY Draw.Picture'
is OK), so the developers can test new graphical components, without
having to modify all
the Gambas IDE...
Regards,
Daniel Campos
More information about the Devel
mailing list