[Gambas-user] gb.qt.editor  .TabLength

Benoit Minisini gambas at ...1...
Mon Jun 28 13:48:30 CEST 2004


On Sunday 27 June 2004 19:16, Charlie Reinl wrote:
> Salut Benoit,

Hi!

>
> is that right, that editor.TabLength returns a Boolean ??
>
> here from CEditor.cpp at 590
>
> BEGIN_PROPERTY(CEDITOR_tab_length)
>
>   if (READ_PROPERTY)
>     GB.ReturnBoolean(!WIDGET->tabSpace());
>   else
>     WIDGET->setTabSpace(VPROP(GB_INTEGER));
>
> END_PROPERTY

It's a mistake. It should do 'GB.ReturnInteger(WIDGET->tabSpace())'

>
> And why belongs .TabLength to the project and not to the IDE-Editor ?

Because two different projects can be made by two different people having 
different preferences about the length of a tabulation.

>
> Amicalement
> Charlie
>

Regards,

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




More information about the User mailing list