</Button>
<Panel id="IDC_PANEL_COLORPICKER" parent="IDL_MEMO_TEXT_EDITOR">
<property backgroundColor="#FFFFFF" backgroundColorOpacity="100" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
- <layout bottomRelation="IDL_MEMO_TEXT_EDITOR" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="600.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="None" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="509.0"/>
+ <layout bottomRelation="None" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="600.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="509.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="500.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1299.0" x="29.0" y="69.0"/>
</Panel>
<ColorPicker id="IDC_COLORPICKER" parent="IDC_PANEL_COLORPICKER">
, __pHeader(null)
, __pFooter(null)
, __pUpdateDetails(null)
+, __isEditMode(false)
{
}
String* pComment = static_cast<String*>(pArgs->GetAt(0));
if(pComment != null)
{
+ __isEditMode = true;
__pComment->SetText(pComment->GetPointer());
__pHeader->SetTitleText(L"Edit Comment"); //TODO: Resource string
if(pComment->IsEmpty() == true || pComment->GetLength() >= 100)
{
__pHeader->SetTitleText(GetResourceString(L"IDS_MEMO_BODY_ADD_COMMENT"));
__pFooter->SetItemEnabled(0, false);
+ __isEditMode = false;
}
__pFooter->Draw();
}
{
__pFooter->SetItemEnabled(0, true);
}
- else if(__pComment->GetTextLength() == 0)
+ else if(__pComment->GetTextLength() == 0 && __isEditMode == true)
+ {
+ __pFooter->SetItemEnabled(0, true);
+ }
+ else
{
__pFooter->SetItemEnabled(0, false);
}