#82 Vertical Window Scrollbar doesn't work with TE

open
nobody
None
5
2012-09-17
2008-07-31
No

As topic, if you set a scrollbar in this way:

temp.slider = MUI_NewObject(MUIC_Scrollbar,
MUIA_Prop_UseWinBorder, MUIV_Prop_UseWinBorder_Right,
TAG_DONE);

And a Window in this way:

window = (Object *) MUI_NewObject(MUIC_Window,
MUIA_Window_Title,(IPTR) "Refresh test",
MUIA_Window_ScreenTitle, (IPTR) "Refresh test",
MUIA_Window_ID, (IPTR) MAKE_ID('M','a','i','n'),
WindowContents, mgroup,
MUIA_Window_UseRightBorderScroller, TRUE,
MUIA_Window_SizeRight, TRUE,
TAG_DONE);

when you add to your TE obj the scrollbar:

SetAttrs(data->ed, MUIA_TextEditor_Slider, data->slider, TAG_DONE);

You should have the window right scrollbar to work with your TE obj,
instead it works bad, in fact it is notified from texteditor, but
if you use with pointer the scrollbar it doesn't scroll TE obj.

I've attached a test code (same of Refresh bug one with right modifies
to show this bug), and I've tested it on OS4 (you can even compile it for OS3).

Discussion


Anonymous


Cancel   Add attachments