From 7a36ff135fe23bce1f7c81a5865ff65e60070611 Mon Sep 17 00:00:00 2001 From: Edouard Dupin Date: Fri, 23 Dec 2011 18:01:02 +0100 Subject: [PATCH] End of the first dev of the Entry --- jni/Main.cpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/jni/Main.cpp b/jni/Main.cpp index 2a9c385..10aaac4 100644 --- a/jni/Main.cpp +++ b/jni/Main.cpp @@ -57,13 +57,10 @@ class Plop :public ewol::Windows mySizerVert->SubWidgetAdd(myButton); ewol::Entry * myEntry = new ewol::Entry("basic Text"); - myEntry->SetExpendY(true); - myEntry->SetFillY(true); - myEntry->SetExpendX(true); - myEntry->SetFillX(true); + myEntry->SetWidth(120); mySizerVert->SubWidgetAdd(myEntry); - ewol::Label * myLabel = new ewol::Label("Mon Mabel"); + ewol::Label * myLabel = new ewol::Label("Mon label"); myLabel->SetExpendY(true); myLabel->SetFillY(true); mySizerVert->SubWidgetAdd(myLabel); @@ -71,6 +68,15 @@ class Plop :public ewol::Windows mySizerVert = new ewol::SizerVert(); mySizer->SubWidgetAdd(mySizerVert); + myEntry = new ewol::Entry("Mega super plop"); + //myEntry->SetExpendY(true); + //myEntry->SetFillY(true); + //myEntry->SetExpendX(true); + myEntry->SetFillX(true); + myEntry->SetWidth(120); + mySizerVert->SubWidgetAdd(myEntry); + + myButton = new ewol::Button("BT 3"); myButton->SetExpendX(true); //myButton->SetExpendY(true); @@ -87,9 +93,6 @@ class Plop :public ewol::Windows myCheckBox = new ewol::CheckBox("Exemple 3 et יא$"); mySizerVert->SubWidgetAdd(myCheckBox); - myTest = new ewol::Test(); - myTest->SetExpendY(true); - mySizerVert->SubWidgetAdd(myTest); myButton = new ewol::Button("4 4 BT"); myButton->SetFillX(true); myButton->SetFillY(true);