problem with horizontal slider in listbrowser-gadget
Posted: Sun Jun 24, 2012 7:14 pm
hello,
i have a little problem with the listbrowser-gadget and the horizontal-props.
the size of the horizontal-slider-knob is too little when the x-size of all columns is (some points ) bigger then the window (gadget). then you can scroll very large and at the end you can see the columns again.
in the first i think i have a problem with the code in my program, but i also can produce this problem with the example-program "twocolumn" from the sdk. is this a bug in the listbrowser-gadget or is my use of the gadget-parameters wrong???
i modify only this:
deaktivate AUTOFIT
activate HorizontalProp
modify the sizes of window and columns.
here the code-lines (sorry i can not add an attachment):
columninfo = IListBrowser->AllocLBColumnInfo(2,
LBCIA_Column, 0,
LBCIA_Title, " GUI Attributes",
LBCIA_Width, 290,
LBCIA_Column, 1,
LBCIA_Title, " BOOL",
LBCIA_Width, 120,
TAG_DONE);
return IIntuition->NewObject(NULL, "window.class",
WA_ScreenTitle, "ReAction Example",
WA_Title, "Two Column Example",
WA_DragBar, TRUE,
WA_CloseGadget, TRUE,
WA_SizeGadget, TRUE,
WA_DepthGadget, TRUE,
WA_Activate, TRUE,
WA_InnerWidth, 320,
WA_InnerHeight, 300,
WINDOW_IconifyGadget, TRUE,
WINDOW_IconTitle, "Iconified",
WINDOW_AppPort, AppPort,
WINDOW_Position, WPOS_CENTERSCREEN,
WINDOW_Layout, IIntuition->NewObject(NULL, "layout.gadget",
LAYOUT_Orientation, LAYOUT_ORIENT_VERT,
LAYOUT_SpaceOuter, TRUE,
LAYOUT_AddChild, IIntuition->NewObject(NULL, "layout.gadget",
LAYOUT_Orientation, LAYOUT_ORIENT_VERT,
LAYOUT_SpaceOuter, TRUE,
LAYOUT_BevelStyle, BVS_GROUP,
LAYOUT_Label, " GUI Tags ",
LAYOUT_AddChild, OBJ(OBJ_LISTBROWSER) = IIntuition->NewObject(NULL, "listbrowser.gadget",
GA_ID, OBJ_LISTBROWSER,
GA_RelVerify, TRUE,
GA_TabCycle, TRUE,
//LISTBROWSER_AutoFit, TRUE,
LISTBROWSER_Labels, &listbrowser_list,
LISTBROWSER_ColumnInfo, columninfo,
LISTBROWSER_ColumnTitles, TRUE,
LISTBROWSER_ShowSelected, TRUE,
LISTBROWSER_HorizontalProp,TRUE,
LISTBROWSER_Striping, LBS_ROWS,
TAG_DONE),
i hope someone can help me.
i have a little problem with the listbrowser-gadget and the horizontal-props.
the size of the horizontal-slider-knob is too little when the x-size of all columns is (some points ) bigger then the window (gadget). then you can scroll very large and at the end you can see the columns again.
in the first i think i have a problem with the code in my program, but i also can produce this problem with the example-program "twocolumn" from the sdk. is this a bug in the listbrowser-gadget or is my use of the gadget-parameters wrong???
i modify only this:
deaktivate AUTOFIT
activate HorizontalProp
modify the sizes of window and columns.
here the code-lines (sorry i can not add an attachment):
columninfo = IListBrowser->AllocLBColumnInfo(2,
LBCIA_Column, 0,
LBCIA_Title, " GUI Attributes",
LBCIA_Width, 290,
LBCIA_Column, 1,
LBCIA_Title, " BOOL",
LBCIA_Width, 120,
TAG_DONE);
return IIntuition->NewObject(NULL, "window.class",
WA_ScreenTitle, "ReAction Example",
WA_Title, "Two Column Example",
WA_DragBar, TRUE,
WA_CloseGadget, TRUE,
WA_SizeGadget, TRUE,
WA_DepthGadget, TRUE,
WA_Activate, TRUE,
WA_InnerWidth, 320,
WA_InnerHeight, 300,
WINDOW_IconifyGadget, TRUE,
WINDOW_IconTitle, "Iconified",
WINDOW_AppPort, AppPort,
WINDOW_Position, WPOS_CENTERSCREEN,
WINDOW_Layout, IIntuition->NewObject(NULL, "layout.gadget",
LAYOUT_Orientation, LAYOUT_ORIENT_VERT,
LAYOUT_SpaceOuter, TRUE,
LAYOUT_AddChild, IIntuition->NewObject(NULL, "layout.gadget",
LAYOUT_Orientation, LAYOUT_ORIENT_VERT,
LAYOUT_SpaceOuter, TRUE,
LAYOUT_BevelStyle, BVS_GROUP,
LAYOUT_Label, " GUI Tags ",
LAYOUT_AddChild, OBJ(OBJ_LISTBROWSER) = IIntuition->NewObject(NULL, "listbrowser.gadget",
GA_ID, OBJ_LISTBROWSER,
GA_RelVerify, TRUE,
GA_TabCycle, TRUE,
//LISTBROWSER_AutoFit, TRUE,
LISTBROWSER_Labels, &listbrowser_list,
LISTBROWSER_ColumnInfo, columninfo,
LISTBROWSER_ColumnTitles, TRUE,
LISTBROWSER_ShowSelected, TRUE,
LISTBROWSER_HorizontalProp,TRUE,
LISTBROWSER_Striping, LBS_ROWS,
TAG_DONE),
i hope someone can help me.