My toolbar has up to 25 AISS images (no text). Depending on what the user is doing I change the SBNA_Disabled state of all 25 at once. Some get disabled, some get enabled. When I do this the entire speedbar is "removed" (all the buttons are gone), then all redrawn. This causes a major flashing of the bar. Not smooth at all.
Code: Select all
IIntuition->SetGadgetAttrs((struct Gadget *)Objects[GAD_TOOLBAR1_SPEEDBAR],MainWindow,NULL,
SPEEDBAR_Buttons, NULL,
TAG_DONE);
// go through all 25
ISpeedBar->SetSpeedButtonNodeAttrs(MasterToolBarNode->SBNode,
SBNA_Disabled, TRUE,
TAG_DONE);
IIntuition->SetGadgetAttrs((struct Gadget *)Objects[GAD_TOOLBAR1_SPEEDBAR],MainWindow,NULL,
SPEEDBAR_Buttons, ToolBar1SpeedBarList,
TAG_DONE);