📄 النص الكامل للصفحة
إضافة زر إلى الشاشة Adding a Button to the Screen
ستنشئ الآن زرًا يسمى Visit KSA (زيارة المملكة العربية السعودية)، وعند الضغط على هذا الزر سيفتح التطبيق شاشة جديدة ويعرض الوجهات التي يمكن زيارتها في المملكة العربية السعودية.
--- SECTION: لإضافة المكون Button (زر): ---
لإضافة المكون Button (زر):
اسحب المكون Button (زر) وأفلته من لوحة User Interface (واجهة المستخدم) إلى الشاشة. 1
اضغط على Rename (إعادة تسمية). 2
اكتب Visit_KSA (زيارة المملكة العربية السعودية)، 3 ثم اضغط على OK (موافق). 4
مرر الشريط الجانبي لأسفل في قسم Proprties (الخصائص)، ثم اضغط على Text (النص) واكتب Visit Saudi Arabia (زيارة المملكة العربية السعودية). 5
سيتغير الاسم في قسم Components (المكونات) وفي صفحة Blocks (اللبنات البرمجية).
شكل 3.6: إضافة المكون Button (زر).
وزارة التعليم
Ministry of Education
121
2025 - 1447
--- VISUAL CONTEXT ---
**DIAGRAM**: MIT App Inventor Interface - Adding and Renaming a Button
Description: A multi-step diagram illustrating how to add and rename a button in the MIT App Inventor environment. It shows the 'Palette' on the left with 'User Interface' category expanded and 'Button' highlighted. The 'Viewer' (phone screen) is in the center, initially showing 'Text for Button'. A 'Rename Component' dialog box appears, with 'New name' field showing 'Visit_KSA'. Numbered annotations (1-4) guide the user through dragging the button, clicking rename, typing the new name, and confirming.
Key Values: Palette: User Interface, Button, Viewer: Screen, Text for Button, Rename Component dialog: New name (Visit_KSA), OK, Cancel, Annotation 1: Drag Button from User Interface to Screen, Annotation 2: Click Rename, Annotation 3: Type Visit_KSA in New name field, Annotation 4: Click OK
Context: Illustrates the initial steps of adding and configuring a UI element (button) in a mobile application development platform.
**DIAGRAM**: MIT App Inventor Interface - Button Properties and Display
Description: A diagram showing the MIT App Inventor screen with the newly added and renamed button 'Visit Saudi Arabia'. The 'Properties' panel on the right is displayed, listing various properties such as BackgroundColor, Enabled, FontBold, FontItalic, FontSize, FontTypeface, Height, Width, Image, Shape, ShowFeedback, Text, TextAlignment, and TextColor. Annotation 5 points to the 'Text' property field, which shows 'Visit Saudi Arabia'. A dashed line connects the button on the screen to its 'Text' property in the panel, and a callout box explains that the name will change on the screen.
Key Values: Screen: Visit Saudi Arabia button, Properties panel: BackgroundColor, Enabled, FontBold, FontItalic, FontSize, FontTypeface, Height, Width, Image, Shape, ShowFeedback, Text (Visit Saudi Arabia), TextAlignment, TextColor, Annotation 5: Points to the Text property field, Callout box: سيتغير الاسم في الشاشة (The name will change on the screen)
Context: Demonstrates how to modify the visible text of a button using the Properties panel after it has been added and renamed, and how this change is reflected on the application screen.
🎴 بطاقات تعليمية للمراجعة
عدد البطاقات: 4 بطاقة لهذه الصفحة
ما هي الخطوات الأساسية لإضافة زر (Button) إلى الشاشة في MIT App Inventor؟
الإجابة: 1. اسحب المكون Button من لوحة User Interface وأفلته إلى الشاشة. 2. اضغط على Rename. 3. اكتب اسم المكون (مثل Visit_KSA). 4. اضغط على OK. 5. في قسم Properties، اضغط على Text واكتب النص الذي سيظهر على الزر (مثل Visit Saudi Arabia).
الشرح: هذه الخطوات توضح التسلسل المنطقي لإضافة وتكوين عنصر واجهة مستخدم أساسي (زر) في بيئة تطوير التطبيقات.
تلميح: تذكر أن العملية تبدأ من لوحة المكونات وتنتهي بتعديل الخصائص.
التصنيف: صيغة/خطوات | المستوى: سهل
ما الفرق بين اسم المكون (Component Name) والنص المعروض على الزر (Text) في MIT App Inventor؟
الإجابة: اسم المكون (مثل Visit_KSA) هو معرف داخلي يستخدم في اللبنات البرمجية (Blocks) للإشارة إلى الزر. أما النص المعروض (مثل Visit Saudi Arabia) فهو النص الذي يراه المستخدم على واجهة التطبيق.
الشرح: هذا التمييز مهم لفهم بنية MIT App Inventor، حيث يكون للمكون اسم برمجي وخصائص عرض منفصلة.
تلميح: فكر في من يرى كل منهما: المبرمج أم المستخدم النهائي؟
التصنيف: فرق بين مفهومين | المستوى: متوسط
ما هو الغرض من خاصية Text الخاصة بمكون الزر (Button) في MIT App Inventor؟
الإجابة: الغرض من خاصية Text هو تحديد النص الذي سيظهر للمستخدم على واجهة الزر في التطبيق النهائي.
الشرح: تعد خاصية Text من الخصائص الأساسية لأي عنصر واجهة مستخدم يحتوي على نص، وهي مسؤولة عن العرض المرئي.
تلميح: تذكر أن هذه الخاصية تتعلق بما يراه المستخدم وليس بالمبرمج.
التصنيف: مفهوم جوهري | المستوى: سهل
ما الذي يحدث عند إعادة تسمية مكون (Rename) في MIT App Inventor؟
الإجابة: عند إعادة تسمية المكون، يتغير اسمه في قسم Components (المكونات) وفي صفحة Blocks (اللبنات البرمجية)، مما يسهل التعرف عليه وإدارته برمجياً.
الشرح: إعادة التسمية هي ممارسة برمجية جيدة لتنظيم المشروع وجعل الكود أكثر قابلية للقراءة.
تلميح: فكر في أين يستخدم هذا الاسم داخل بيئة التطوير.
التصنيف: مفهوم جوهري | المستوى: سهل