📄 النص الكامل للصفحة
وزارة التعليم
Ministry of Education
2025 - 1447
156
--- VISUAL CONTEXT ---
**FIGURE**: MIT App Inventor Blocks Editor - Event Handlers
Description: A screenshot of the MIT App Inventor Blocks editor. The top bar shows the 'MIT APP INVENTOR' logo and menu items: 'Projects', 'Connect', 'Build', 'Settings', 'Help'. Below, the app name 'Visit_SA_App' is displayed with screen management options: 'Screen1', 'Add Screen', 'Remove Screen', 'Publish to Gallery'. The left panel, titled 'Blocks', lists 'Built-in' categories: 'Control', 'Logic', 'Math', 'Text', 'Lists', 'Dictionaries', 'Colors', 'Variables', 'Procedures'. The right panel, titled 'Viewer', displays four event handler blocks for a component named 'discover_button_en': 'when discover_button_en .Click do', 'when discover_button_en .GotFocus do', 'when discover_button_en .LongClick do', and 'when discover_button_en .LostFocus do'. A blue circle with the number '1' points to the '.Click' event block.
Key Values: MIT APP INVENTOR, Projects, Connect, Build, Settings, Help, Visit_SA_App, Screen1, Add Screen, Remove Screen, Publish to Gallery, Blocks, Viewer, Built-in, Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures, when discover_button_en .Click do, when discover_button_en .GotFocus do, when discover_button_en .LongClick do, when discover_button_en .LostFocus do, 1
Context: This figure demonstrates the user interface of MIT App Inventor's Blocks editor, specifically showcasing various event handler blocks available for a button component, illustrating how different user interactions can trigger specific actions.
**FIGURE**: Detail of 'discover_button_en .Click' Event Block
Description: A magnified view of the 'when discover_button_en .Click do' block, which is an event handler for a button click. This block is highlighted by a dashed arrow originating from the main App Inventor screenshot, indicating its significance or a point of focus.
Key Values: when discover_button_en .Click do
Context: This detail emphasizes the primary event block used to initiate actions when a user clicks the 'discover_button_en'.
**FIGURE**: MIT App Inventor Blocks Editor - Screen Navigation
Description: A second screenshot of the MIT App Inventor Blocks editor. The top bar includes the 'MIT APP INVENTOR' logo and menu items: 'Projects', 'Connect', 'Build', 'Settings', 'Help', 'My Projects', 'View Trash', 'Guide', 'Report an Issue'. The app name 'Visit_SA_App' is shown with screen management options: 'Screen1', 'Add Screen', 'Remove Screen', 'Publish to Gallery'. The left panel, titled 'Blocks', lists 'Built-in' categories and 'Screen1' components: 'VerticalArrangement1', 'discover_button_en', 'discover_button_ar', 'Any component'. The right panel, titled 'Viewer', displays several control and screen navigation blocks: 'then', 'else', 'do', 'result', 'evaluate but ignore result', 'open another screen screenName Cities', 'open another screen with start value screenName Cities startValue', and 'get start value'. A blue circle with the number '2' points to the 'get start value' block.
Key Values: MIT APP INVENTOR, Projects, Connect, Build, Settings, Help, My Projects, View Trash, Guide, Report an Issue, Visit_SA_App, Screen1, Add Screen, Remove Screen, Publish to Gallery, Blocks, Viewer, Built-in, Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures, VerticalArrangement1, discover_button_en, discover_button_ar, Any component, then, else, do, result, evaluate but ignore result, open another screen screenName Cities, open another screen with start value screenName Cities startValue, get start value, 2
Context: This figure illustrates blocks related to conditional logic and, more importantly, how to navigate between different screens in an App Inventor application, including passing data ('start value') to the new screen. It also shows specific component blocks for 'Screen1'.
**FIGURE**: Detail of 'Open Another Screen with Start Value' Block
Description: A magnified view of the 'when discover_button_en .Click do open another screen with start value screenName Cities startValue' block. This block is highlighted by a dashed arrow from the main App Inventor screenshot, demonstrating the complete action of opening a new screen named 'Cities' and passing a 'startValue' when the 'discover_button_en' is clicked.
Key Values: when discover_button_en .Click do open another screen with start value screenName Cities startValue
Context: This detail provides a clear view of the block combination used to implement screen navigation with data transfer, triggered by a button click event.
🎴 بطاقات تعليمية للمراجعة
عدد البطاقات: 6 بطاقة لهذه الصفحة
ما هو الحدث (Event) في سياق برمجة تطبيقات MIT App Inventor؟
الإجابة: حدث هو فعل يقوم به المستخدم (مثل النقر أو الضغط المطول) على أحد مكونات التطبيق (مثل زر) مما يؤدي إلى تنفيذ مجموعة من الكتل البرمجية المرتبطة به.
الشرح: يظهر الشكل عدة كتل تبدأ بـ 'when...do'، وهي نمط قياسي لمعالجة الأحداث حيث 'when' تحدد الحدث و'do' تحدد الإجراء.
تلميح: ركز على التفاعل بين المستخدم وعناصر واجهة التطبيق.
التصنيف: تعريف | المستوى: متوسط
اذكر ثلاثة أنواع مختلفة من الأحداث (Events) يمكن ربطها بزر في MIT App Inventor كما هو موضح.
الإجابة: 1. النقر (Click). 2. الضغط المطول (LongClick). 3. الحصول على التركيز (GotFocus). 4. فقدان التركيز (LostFocus).
الشرح: يظهر الشكل بوضوح أربعة معالجات أحداث مختلفة لنفس المكون (الزر)، مما يدل على تنوع التفاعلات التي يمكن للبرنامج الاستجابة لها.
تلميح: انظر إلى أسماء الكتل الأربعة التي تبدأ بـ 'when discover_button_en'.
التصنيف: مفهوم جوهري | المستوى: سهل
ما هي الكتلة البرمجية المستخدمة في MIT App Inventor للانتقال من شاشة إلى أخرى مع إرسال بيانات؟
الإجابة: كتلة 'open another screen with start value' حيث يتم تحديد اسم الشاشة الهدف (screenName) والقيمة المراد إرسالها (startValue).
الشرح: تسمح هذه الكتلة ببناء تطبيقات متعددة الشاشات مع إمكانية تبادل البيانات بينها، وهو مفهوم أساسي في هندسة واجهات المستخدم.
تلميح: ابحث عن كتلة تحتوي على كلمتي 'screen' و 'value'.
التصنيف: صيغة/خطوات | المستوى: متوسط
ما الفرق بين كتلة 'open another screen' وكتلة 'open another screen with start value' في MIT App Inventor؟
الإجابة: كتلة 'open another screen' تقوم فقط بفتح شاشة جديدة، بينما كتلة 'open another screen with start value' تفتح شاشة جديدة وترسل إليها قيمة ابتدائية (بيانات) يمكن للشاشة الجديدة قراءتها واستخدامها.
الشرح: يعد إرسال البيانات بين الشاشات ميزة متقدمة تسمح بإنشاء تطبيقات ديناميكية حيث تعتمد محتويات الشاشة الجديدة على إجراءات المستخدم في الشاشة السابقة.
تلميح: قارن بين أسماء الكتلتين. إحداهما تحتوي على شرط إضافي.
التصنيف: فرق بين مفهومين | المستوى: صعب
كيف يمكن لكتلة 'get start value' أن تكون مفيدة في التطبيق؟
الإجابة: تُستخدم كتلة 'get start value' في الشاشة المستقبلة لاسترداد البيانات (القيمة الابتدائية) التي أُرسلت إليها من الشاشة السابقة باستخدام كتلة 'open another screen with start value'، مما يتيح تخصيص محتوى الشاشة بناءً على تلك البيانات.
الشرح: هذا يوضح النصف الثاني من عملية تبادل البيانات بين الشاشات: الإرسال ثم الاستقبال والاستخدام.
تلميح: فكر في تدفق البيانات من شاشة إلى أخرى. ما الذي تحتاجه الشاشة الجديدة لتعمل بالبيانات المرسلة؟
التصنيف: تفكير ناقد | المستوى: صعب
ما هي الفئات (Categories) الأساسية للكتل البرمجية المدمجة (Built-in) في محرر كتل MIT App Inventor؟
الإجابة: تشمل الفئات: التحكم (Control)، المنطق (Logic)، الرياضيات (Math)، النص (Text)، القوائم (Lists)، القواميس (Dictionaries)، الألوان (Colors)، المتغيرات (Variables)، والإجراءات (Procedures).
الشرح: تنظيم الكتل في فئات يسهل على المبرمج العثور على الوظيفة المناسبة ويتبع التصنيف المنطقي لمفاهيم البرمجة.
تلميح: انظر إلى القائمة الموجودة في اللوحة اليسرى والمُعنونة بـ 'Blocks'.
التصنيف: ملخص | المستوى: متوسط