update the alignment menu based on the current alignment of the text view

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2175 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2002-12-07 19:50:33 +00:00
parent e11a052e91
commit 9e159bcf9a

View File

@ -716,6 +716,21 @@ StyledEditWindow::MenusBeginning()
}
}
}
switch (fTextView->Alignment()) {
case B_ALIGN_LEFT:
fAlignLeft->SetMarked(true);
break;
case B_ALIGN_CENTER:
fAlignCenter->SetMarked(true);
break;
case B_ALIGN_RIGHT:
fAlignRight->SetMarked(true);
break;
default:
// I am so confused.
break;
}
}
void