Lines Matching defs:button
586 // adjust button state
587 BButton* button = dynamic_cast<BButton*>(FindView("default button"));
588 if (button == NULL)
627 // selection mode then we don't disable button ever
646 button->SetLabel(buttonText.String());
647 button->SetEnabled(enabled);
727 BButton* default_button = new BButton(BRect(), "default button",
739 BButton* cancel_button = new BButton(BRect(), "cancel button",
1169 BButton* button
1170 = dynamic_cast<BButton*>(FindView("cancel button"));
1171 if (button == NULL)
1174 float old_width = button->StringWidth(button->Label());
1175 button->SetLabel(text);
1176 float delta = old_width - button->StringWidth(text);
1178 button->MoveBy(delta, 0);
1179 button->ResizeBy(-delta, 0);
1188 BButton* button
1189 = dynamic_cast<BButton*>(FindView("default button"));
1190 if (button != NULL) {
1191 float old_width = button->StringWidth(button->Label());
1192 button->SetLabel(text);
1193 delta = old_width - button->StringWidth(text);
1195 button->MoveBy(delta, 0);
1196 button->ResizeBy(-delta, 0);
1200 // now must move cancel button
1201 button = dynamic_cast<BButton*>(FindView("cancel button"));
1202 if (button != NULL)
1203 button->MoveBy(delta, 0);
1251 // panel; all we have to do is see if the button is enabled.
1255 BButton* button = dynamic_cast<BButton*>(FindView("default button"));
1256 if (button == NULL || !button->IsEnabled())
1276 // clicked the save button
1280 // button should be enabled