[Gambas-devel] Gambas IDE bug

Benoit Minisini gambas at ...1...
Sun Oct 24 15:50:00 CEST 2004


On Saturday 23 October 2004 18:11, Daniel Campos wrote:
> 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
>
>

OK. I added a TRY in front of the line.

-- 
Benoit Minisini
mailto:gambas at ...1...





More information about the Devel mailing list