张洋 преди 4 години
родител
ревизия
caf6900ccb

BIN
bin/Win32/Debug/zhipuzi_pos_windows/skin/icon_add.png


+ 6 - 1
bin/Win32/Debug/zhipuzi_pos_windows/skin/shangpin_page.xml

@@ -28,7 +28,12 @@
 
 				</HorizontalLayout>
 				
-				<Button name="shangpin_page_add_type_btn" width="120" height="42" text="新建分类" textcolor="#FF3CB371" normalimage="" hotimage="" pushedimage="" bordersize="1" bordercolor="#FF3CB371" />
+				<HorizontalLayout name="shangpin_page_add_type_layout" width="122" height="44" bordersize="1" bordercolor="#FF3CB371">
+					<Button name="shangpin_page_add_type_btn" width="120" height="42" padding="1,1,1,1" normalimage="" hotimage="" pushedimage=""  />
+					<Control bkimage="icon_add.png" width="14" height="14" float="true" pos="20,14,34,28" mouse="false"></Control>
+					<Label text="新建分类" textcolor="#FF3CB371" float="true" pos="40,7,120,35" mouse="false"></Label>
+				</HorizontalLayout>
+				
 				
 				<TileLayout name="shangpin_foodlist" padding="0,0,0,0" inset="15,15,15,15" childpadding="1" itemsize="170,260" vscrollbar="true" hscrollbar="false">
 				

+ 1 - 1
zhipuzi_pos_windows/page/CShangpinPageUI.cpp

@@ -129,7 +129,7 @@ void CShangpinPageUI::UpdateFoodtypePos()
 		num++;
 	}
 
-	CButtonUI* pNewType = static_cast<CButtonUI*>(this->FindSubControl(_T("shangpin_page_add_type_btn")));
+	CHorizontalLayoutUI* pNewType = static_cast<CHorizontalLayoutUI*>(this->FindSubControl(_T("shangpin_page_add_type_layout")));
 
 	int curRow = num / nMeihangNum + 1;
 	int curCol = num % nMeihangNum + 1;