[Gambas-devel] [Gambas-devel-svn] SF.net SVN: gambas:[6578] gambas/trunk

Fabien Bodard gambas.fr at ...176...
Sun Oct 26 11:08:24 CET 2014


well :
GB_DESC StyleDesc[] =
{
GB_DECLARE("Style", 0), GB_VIRTUAL_CLASS(),
GB_STATIC_PROPERTY_READ("ScrollbarSize", "i", Style_ScrollbarSize),
GB_STATIC_PROPERTY_READ("ScrollbarSpacing", "i", Style_ScrollbarSpacing),
GB_STATIC_PROPERTY_READ("FrameWidth", "i", Style_FrameWidth),
GB_STATIC_PROPERTY_READ("TextBoxFrameWidth", "i", Style_FrameWidth),
GB_STATIC_PROPERTY_READ("BoxFrameWidth", "i", Style_BoxFrameWidth),
GB_STATIC_PROPERTY_READ("BoxFrameHeight", "i", Style_BoxFrameWidth),
GB_STATIC_PROPERTY_READ("Name", "s", Style_Name),
GB_STATIC_METHOD("PaintArrow", NULL, Style_PaintArrow,
"(X)i(Y)i(Width)i(Height)i(Type)i[(Flag)i]"),
GB_STATIC_METHOD("PaintCheck", NULL, Style_PaintCheck,
"(X)i(Y)i(Width)i(Height)i(Value)i[(Flag)i]"),
GB_STATIC_METHOD("PaintOption", NULL, Style_PaintOption,
"(X)i(Y)i(Width)i(Height)i(Value)b[(Flag)i]"),
GB_STATIC_METHOD("PaintSeparator", NULL, Style_PaintSeparator,
"(X)i(Y)i(Width)i(Height)i[(Vertical)b(Flag)i]"),
GB_STATIC_METHOD("PaintButton", NULL, Style_PaintButton,
"(X)i(Y)i(Width)i(Height)i(Value)b[(Flag)i(Flat)b]"),
GB_STATIC_METHOD("PaintPanel", NULL, Style_PaintPanel,
"(X)i(Y)i(Width)i(Height)i(Border)i[(Flag)i]"),
GB_STATIC_METHOD("PaintHandle", NULL, Style_PaintHandle,
"(X)i(Y)i(Width)i(Height)i[(Vertical)b(Flag)i]"),
GB_STATIC_METHOD("PaintBox", NULL, Style_PaintBox,
"(X)i(Y)i(Width)i(Height)i[(Flag)i(Color)i]"),
GB_CONSTANT("Normal", "i", GB_DRAW_STATE_NORMAL),
GB_CONSTANT("Disabled", "i", GB_DRAW_STATE_DISABLED),
GB_CONSTANT("HasFocus", "i", GB_DRAW_STATE_FOCUS),
GB_CONSTANT("Hovered", "i", GB_DRAW_STATE_HOVER),
GB_CONSTANT("Active", "i", GB_DRAW_STATE_ACTIVE),

GB_STATIC_METHOD("StateOf", "i", Style_StateOf, "(Control)Control;"),
GB_STATIC_METHOD("BackgroundOf", "i", Style_BackgroundOf, "(Control)Control;"),
GB_STATIC_METHOD("ForegroundOf", "i", Style_ForegroundOf, "(Control)Control;"),

--------->//GB_STATIC_METHOD("FontOf", "Font", Style_FontOf,
"(Control)Control;"),   <-------   COMMENTED ?????

GB_END_DECLARE
};



And it exist only  on gb.qt4 !!



I ve correct it by just set in TabPanel.class

Private Function TextFont_Read() As Font

  Return $hTabBar.Font

End

2014-10-26 10:22 GMT+01:00 Fabien Bodard <gambas.fr at ...176...>:
> This application has raised an unexpected
> error and must abort.
>
> [11] Unknown symbol 'FontOf' in class 'Style'.
> TabPanel.TextFont_Read.537
>
>
> Ouch i've a BUG here !!  I'm unable to start the ide
>
> 2014-10-26 9:53 GMT+01:00 Tobias Boege <taboege at ...176...>:
>> On Sun, 26 Oct 2014, gambas at ...1... wrote:
>>> [GB.FORM]
>>> * NEW: Completion is a new class to implement automatic completion on an
>>>   already existing TextBox.
>>
>> Keep in mind that the Trie class in gb.data can do completion of an
>> arbitrary prefix P of length M among N strings in time O(M) where
>> the naive approach of searching the strings for the longest common
>> prefix containing P (like in two nested For loops) would be O(N*M).
>>
>> The Trie scales even better if your prefixes become finer-grained
>> over time (like if a human is typing a specific word), then you can
>> incorporate a new letter in quasi-constant time.
>>
>> Regards,
>> Tobi
>>
>> --
>> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Gambas-devel mailing list
>> Gambas-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>
>
>
> --
> Fabien Bodard



-- 
Fabien Bodard




More information about the Devel mailing list