Kaydet (Commit) c675575c authored tarafından Markus Mohrhard's avatar Markus Mohrhard

impreove the cond format dialog a little bit

Change-Id: I4c7fdb15440ef0fca5b262a37549e96c85d8ab1f
üst 9894c5a3
...@@ -320,7 +320,7 @@ void ScCondFrmtEntry::Init() ...@@ -320,7 +320,7 @@ void ScCondFrmtEntry::Init()
Point aPointCol = maLbColMiddle.GetPosPixel(); Point aPointCol = maLbColMiddle.GetPosPixel();
Point aPointEdDataBar = maEdDataBarMin.GetPosPixel(); Point aPointEdDataBar = maEdDataBarMin.GetPosPixel();
Point aPointLbDataBar = maLbDataBarMaxType.GetPosPixel(); Point aPointLbDataBar = maLbDataBarMaxType.GetPosPixel();
const long nMovePos = 150; const long nMovePos = 250;
aPointLb.X() += nMovePos; aPointLb.X() += nMovePos;
aPointEd.X() += nMovePos; aPointEd.X() += nMovePos;
aPointCol.X() += nMovePos; aPointCol.X() += nMovePos;
...@@ -453,6 +453,7 @@ void ScCondFrmtEntry::SetCondType() ...@@ -453,6 +453,7 @@ void ScCondFrmtEntry::SetCondType()
HideColorScaleElements(); HideColorScaleElements();
HideDataBarElements(); HideDataBarElements();
SwitchToType(CONDITION); SwitchToType(CONDITION);
ConditionTypeSelectHdl(NULL);
} }
void ScCondFrmtEntry::HideColorScaleElements() void ScCondFrmtEntry::HideColorScaleElements()
...@@ -565,7 +566,11 @@ void ScCondFrmtEntry::SetFormulaType() ...@@ -565,7 +566,11 @@ void ScCondFrmtEntry::SetFormulaType()
maEdVal2.Hide(); maEdVal2.Hide();
maLbCondType.Hide(); maLbCondType.Hide();
maLbStyle.Show(); maLbStyle.Show();
maFtCondition.Show();
maWdPreview.Show(); maWdPreview.Show();
maFtStyle.Show();
Size aSize(440, 30);
maEdVal1.SetSizePixel(aSize);
} }
void ScCondFrmtEntry::Select() void ScCondFrmtEntry::Select()
...@@ -895,7 +900,7 @@ IMPL_LINK_NOARG( ScCondFrmtEntry, ConditionTypeSelectHdl ) ...@@ -895,7 +900,7 @@ IMPL_LINK_NOARG( ScCondFrmtEntry, ConditionTypeSelectHdl )
else else
{ {
maEdVal2.Hide(); maEdVal2.Hide();
Size aSize(193, 30); Size aSize(440, 30);
maEdVal1.SetSizePixel(aSize); maEdVal1.SetSizePixel(aSize);
} }
return 0; return 0;
......
...@@ -134,13 +134,13 @@ Control RID_COND_ENTRY ...@@ -134,13 +134,13 @@ Control RID_COND_ENTRY
Edit ED_VAL1 Edit ED_VAL1
{ {
Pos = MAP_APPFONT( 125, 15 ); Pos = MAP_APPFONT( 125, 15 );
Size = MAP_APPFONT( 170, 12 ); Size = MAP_APPFONT( 160, 12 );
Border = TRUE; Border = TRUE;
}; };
Edit ED_VAL2 Edit ED_VAL2
{ {
Pos = MAP_APPFONT( 215, 15 ); Pos = MAP_APPFONT( 210, 15 );
Size = MAP_APPFONT( 80, 12 ); Size = MAP_APPFONT( 75, 12 );
Border = TRUE; Border = TRUE;
}; };
ListBox LB_STYLE ListBox LB_STYLE
...@@ -156,7 +156,7 @@ Control RID_COND_ENTRY ...@@ -156,7 +156,7 @@ Control RID_COND_ENTRY
}; };
ListBox LB_COLOR_FORMAT ListBox LB_COLOR_FORMAT
{ {
Pos = MAP_APPFONT( 50, 15 ); Pos = MAP_APPFONT( 70, 15 );
Size = MAP_APPFONT( 60, 60); Size = MAP_APPFONT( 60, 60);
Border = TRUE; Border = TRUE;
DropDown = TRUE; DropDown = TRUE;
...@@ -170,7 +170,7 @@ Control RID_COND_ENTRY ...@@ -170,7 +170,7 @@ Control RID_COND_ENTRY
ListBox LB_TYPE_COL_SCALE ListBox LB_TYPE_COL_SCALE
{ {
Pos = MAP_APPFONT( 5, 32 ); Pos = MAP_APPFONT( 5, 32 );
Size = MAP_APPFONT( 50, 60 ); Size = MAP_APPFONT( 60, 60 );
Border = TRUE; Border = TRUE;
DropDown = TRUE; DropDown = TRUE;
StringList [ en-US ] = StringList [ en-US ] =
...@@ -186,7 +186,7 @@ Control RID_COND_ENTRY ...@@ -186,7 +186,7 @@ Control RID_COND_ENTRY
Edit ED_COL_SCALE Edit ED_COL_SCALE
{ {
Pos = MAP_APPFONT( 5, 48 ); Pos = MAP_APPFONT( 5, 48 );
Size = MAP_APPFONT( 50, 12 ); Size = MAP_APPFONT( 60, 12 );
Border = TRUE; Border = TRUE;
}; };
Window WD_PREVIEW Window WD_PREVIEW
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment