سؤال بخصوص لغة ++C

الاسئلة


واكون شكرتلكم ....


This question involves two components, TShape (which we refer to as “shapes”) and TComboBoxt (which we refer to as “combo boxes”).



a.Open a new application and save the project. Drop an Image component onto the form (Images to be found under the Additional tab on the Component Palette). Double click on the image zone and choose one of the images saved on your computer then load it to the Image component. Use the Object Inspector, the Help system and experiment as necessary, to discover the information required to answer the following questions about images:


i. By default, the image dropped onto the form is positioned at the top left corner of the image component. In the Object Inspector, which property would you change, and to what value, so as to position the image at the center of the frame?

ii. What do you understand by the “AutoSize” property and what do the the values “true” or “false” mean?

iii. Explain briefly what you understand by the property “Stretch” ? What changes can be made if you set its value to true?

iv. Which event(s) of an image do occur when the user clicks the mouse button while on the image?

As an intermediate step to your final program, you might like to write a program at this stage, with the following specification. Drop three images onto the form. Now drop three buttons onto the form and give them the captions “SeeImage1”, “SeeImage2” and “SeeImage3”. Write code so that when any of the buttons is clicked the corresponding image appears and the two other images disappear.

All that remains is to replace the three buttons by a combo box. You may wish to open a new application to continue your experimentation.




b.Drop a TComboBox component onto the form. By default its Style property should be set to csDropDown and you are not asked to explore any other styles.


i. Explain briefly what you understand by Items property of a combo box. How do you envisage using the Items property of the combo box in the wanted program?

ii. Combo boxes have a property ItemIndex which does not appear in the Object Inspector. What do you understand by this property?

iii. An event occurs whenever a new selection is made from the combo box. Which event is it?



c.Write the program, which has the following specification.From a combo box, you should be able to choose from three images and whichever selection is made the corresponding image alone should appear, also, you need to add an option to show all images



For part (c) you should submit to your tutor a listing of the form’s code file together with the executable version of your final program and the project files.




اتمنى اني ما ثقلت عليكم
 
أنا باللغة الانجليزية سيء شوي ـ ممكن تترجميه ـ وإن شاء الله بأساعدك ...
 
a. Open a new application and save the project. Drop an Image component onto the form (Images to be found under the Additional tab on the Component Palette). Double click on the image zone and choose one of the images saved on your computer then load it to the Image component. Use the Object Inspector, the Help system and experiment as necessary, to discover the information required to answer the following questions about images:

أول جزء من السؤال a بيقول فيه: إفتح ابليكيشن جديد وحفظ البروجكت، ونزل صورة في الفورم، والصور موجودين فوق بال additional tab على الـ Component palette ، دوبل كليك على منطقة الصورة واختار صورة من عندك من ملفاتك بكومبيوترك، وحملها لمنطقة الصورة (عنصر الصورة يعني) ، استعمل الأوبجكت انسبكتور والمساعدة بالبرنامج وخبرتك اذا عندك خبرة، لاستكشاف المعلومات المطلوبة لتجاوب على الأسألة التالية عن الصور:​


i. By default, the image dropped onto the form is positioned at the top left corner of the image component. In the Object Inspector, which property would you change, and to what value, so as to position the image at the center of the frame?

افتراضيا الصورة عندما تضعها بالفورم تكون بموقع فوق على اليسار بالزاوية.
أي من الخصائص ممكن تستعملها لتغير موقع الصورة، وما هي القيم بحيث تكون الصورة بمنتصف الإطار.


ii. What do you understand by the “AutoSize” property and what do the values “true” or “false” mean?


ماذا تفهم من خاصية : AutoSize وماذا تعني القيم true و false


iii. Explain briefly what you understand by the property “Stretch” ? What changes can be made if you set its value to true?

ماذا تفهم من خاصية stretch اشرح مفهومك، وما هي التغيرات التي تحصل عندما تكون قيمة الخاصية true.


iv. Which event(s) of an image do occur when the user clicks the mouse button while on the image?


ما هو الحدث الذي يحصل للصورة عندما يضغط المستخدم بالماوس بينما هو على الصورة.
يعني أي event بيتغعل لما تضغط على الصورة بالماوس
smileQDgy8HLLN.www.arabsbook.com.gif




b. Drop a TComboBox component onto the form. By default its Style property should be set to csDropDown and you are not asked to explore any other styles.

أنزل على الفورم عنصر وهو TcomboBox، القيمة الافتراضية للخاصية style التابعة للكومبوبوس هي csDropDown.

i. Explain briefly what you understand by Itemsproperty of a combo box. How do you envisage using the Items property of the combo box in the wanted program?

.اشرح بشكل مختصر ماذا تفهم من الخاصية Items التابعة للكومبو بوكس، وكيف تفسر كيفية استخدامها بالبرنامج المطلوب
ii. Combo boxes have a property ItemIndexwhich does not appear in the Object Inspector. What do you understand by this property?

.الكومبو بوكسس عندهم خاصية اسمها ItemIndex واللي ما بتظهر بالأوبجكت انسبكتر، ماذا تفهم من هذا الخاصية.
* الأوبكت انسبكتر، هو القاسمة الموجودة على اليسار بالبرنامج والتي تحتوي على معظم الخصائص والإيفنتس.

iii. An event occurs whenever a new selection is made from the combo box. Which event is it?.

حدث event بيصير عندما تختار اختيار جديد من الكومبو بوكس او لائحة الكوبو بوكس، ما هو هذا الحدث.​
 
عودة
أعلى