applied from idefix to fix the tab order for the Expander app (bug #4076). Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31533 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -87,20 +87,17 @@ ExpanderWindow::ExpanderWindow(BRect frame, const entry_ref *ref, BMessage *sett
|
|||||||
fDestButton = new BButton(rect, "destButton", "Destination",
|
fDestButton = new BButton(rect, "destButton", "Destination",
|
||||||
new BMessage(MSG_DEST), B_FOLLOW_LEFT | B_FOLLOW_TOP);
|
new BMessage(MSG_DEST), B_FOLLOW_LEFT | B_FOLLOW_TOP);
|
||||||
fDestButton->ResizeToPreferred();
|
fDestButton->ResizeToPreferred();
|
||||||
topView->AddChild(fDestButton);
|
|
||||||
|
|
||||||
rect = fDestButton->Frame();
|
rect = fDestButton->Frame();
|
||||||
fDestButton->MoveBy(0, rect.Height() + 4);
|
fDestButton->MoveBy(0, rect.Height() + 4);
|
||||||
|
|
||||||
fSourceButton = new BButton(rect, "sourceButton", "Source",
|
fSourceButton = new BButton(rect, "sourceButton", "Source",
|
||||||
new BMessage(MSG_SOURCE), B_FOLLOW_LEFT | B_FOLLOW_TOP);
|
new BMessage(MSG_SOURCE), B_FOLLOW_LEFT | B_FOLLOW_TOP);
|
||||||
topView->AddChild(fSourceButton);
|
|
||||||
|
|
||||||
rect = fDestButton->Frame();
|
rect = fDestButton->Frame();
|
||||||
rect.OffsetBy(0, rect.Height() + 4);
|
rect.OffsetBy(0, rect.Height() + 4);
|
||||||
fExpandButton = new BButton(rect, "expandButton", "Expand",
|
fExpandButton = new BButton(rect, "expandButton", "Expand",
|
||||||
new BMessage(MSG_EXPAND), B_FOLLOW_LEFT | B_FOLLOW_TOP);
|
new BMessage(MSG_EXPAND), B_FOLLOW_LEFT | B_FOLLOW_TOP);
|
||||||
topView->AddChild(fExpandButton);
|
|
||||||
fExpandButton->SetEnabled(false);
|
fExpandButton->SetEnabled(false);
|
||||||
|
|
||||||
// TextControls
|
// TextControls
|
||||||
@@ -116,6 +113,7 @@ ExpanderWindow::ExpanderWindow(BRect frame, const entry_ref *ref, BMessage *sett
|
|||||||
fSourceText->ResizeTo(rect.Width(), height);
|
fSourceText->ResizeTo(rect.Width(), height);
|
||||||
float offset = (rect.Height() - fSourceText->Bounds().Height()) / 2;
|
float offset = (rect.Height() - fSourceText->Bounds().Height()) / 2;
|
||||||
fSourceText->MoveBy(0, offset);
|
fSourceText->MoveBy(0, offset);
|
||||||
|
topView->AddChild(fSourceButton);
|
||||||
topView->AddChild(fSourceText);
|
topView->AddChild(fSourceText);
|
||||||
|
|
||||||
rect = fSourceText->Frame();
|
rect = fSourceText->Frame();
|
||||||
@@ -123,6 +121,7 @@ ExpanderWindow::ExpanderWindow(BRect frame, const entry_ref *ref, BMessage *sett
|
|||||||
fDestText = new BTextControl(rect, "destText", "", NULL,
|
fDestText = new BTextControl(rect, "destText", "", NULL,
|
||||||
new BMessage(MSG_DESTTEXT), B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP);
|
new BMessage(MSG_DESTTEXT), B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP);
|
||||||
fDestText->SetDivider(0);
|
fDestText->SetDivider(0);
|
||||||
|
topView->AddChild(fDestButton);
|
||||||
topView->AddChild(fDestText);
|
topView->AddChild(fDestText);
|
||||||
|
|
||||||
rect.OffsetBy(0, fSourceButton->Bounds().Height() + 4 + offset);
|
rect.OffsetBy(0, fSourceButton->Bounds().Height() + 4 + offset);
|
||||||
@@ -131,6 +130,7 @@ ExpanderWindow::ExpanderWindow(BRect frame, const entry_ref *ref, BMessage *sett
|
|||||||
fShowContents->ResizeToPreferred();
|
fShowContents->ResizeToPreferred();
|
||||||
fShowContents->MoveTo(Bounds().right - 8 - fShowContents->Bounds().Width(),
|
fShowContents->MoveTo(Bounds().right - 8 - fShowContents->Bounds().Width(),
|
||||||
rect.top);
|
rect.top);
|
||||||
|
topView->AddChild(fExpandButton);
|
||||||
topView->AddChild(fShowContents);
|
topView->AddChild(fShowContents);
|
||||||
fShowContents->SetEnabled(false);
|
fShowContents->SetEnabled(false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user