Add new classes FCheckMenuItem and FRadioMenuItem
This commit is contained in:
parent
bfac128c3d
commit
4778258364
|
@ -628,12 +628,12 @@ void FMenu::drawItems()
|
|||
{
|
||||
FString accel_name (getKeyName(accel_key));
|
||||
int accel_len = int(accel_name.getLength());
|
||||
int len = maxItemWidth - (to_char + accel_len + c + 2);
|
||||
int len = int(maxItemWidth) - (to_char + accel_len + c + 2);
|
||||
if ( len > 0 )
|
||||
{
|
||||
FString spaces (len, wchar_t(' '));
|
||||
print (spaces + accel_name);
|
||||
to_char = maxItemWidth - (c + 2);
|
||||
to_char = int(maxItemWidth) - (c + 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -446,9 +446,6 @@ void FMenuBar::adjustSize()
|
|||
void FMenuBar::leaveMenuBar()
|
||||
{
|
||||
resetMenu();
|
||||
if ( hasSelectedItem() )
|
||||
getSelectedItem()->unsetSelected();
|
||||
setSelectedItem(0);
|
||||
redraw();
|
||||
activatePrevWindow();
|
||||
getActiveWindow()->getFocusWidget()->setFocus();
|
||||
|
|
|
@ -1885,7 +1885,7 @@ void FWidget::drawShadow()
|
|||
{
|
||||
if ( x2 < xmax )
|
||||
{
|
||||
uInt block;
|
||||
int block;
|
||||
gotoxy (x2+1, y1);
|
||||
ch = getCoveredCharacter (x2+1, y1, this);
|
||||
setColor (wc.shadow_fg, ch.bg_color);
|
||||
|
|
Loading…
Reference in New Issue