📄 النص الكامل للصفحة
--- SECTION: تعديل خاصية Text (النص) الخاصة بالتسمية ---
تعديل خاصية Text (النص) الخاصة بالتسمية
حدد مجموعة Text (النص).
حدد اللبنة البرمجية empty string (سلسلة نصية فارغة).
ضع اللبنة البرمجية empty string (سلسلة نصية فارغة) في اللبنة البرمجية set Text to (ضبط النص إلى).
اكتب Welcome to Saudi Arabia (مرحباً بكم في المملكة العربية السعودية) في لبنة empty string (سلسلة نصية فارغة).
شكل 3.13: تعديل خاصية Text (النص) الخاصة بالتسمية
وزارة التعليم
129
Ministry of Education
2025 - 1447
--- VISUAL CONTEXT ---
**DIAGRAM**: MIT App Inventor Blocks Editor: Modifying Text Property
Description: A multi-part diagram illustrating the steps to modify the Text property of a label in MIT App Inventor. The top part shows the Blocks editor interface with various panels. The left panel (1) highlights the 'Text' block category. The middle panel displays available text blocks. The right panel (3) shows the initial state of the workspace with 'when Visit_KSA .Click' and 'do set welcome_label .Text to' blocks, with an empty string block connected. A dashed arrow points from this empty string block to a lower, zoomed-in section (4) showing the modified block. In the modified block, the empty string is replaced with a text block containing 'Welcome to Saudi Arabia'.
Data: The diagram visually guides the user through selecting the 'Text' block group, identifying the 'empty string' block, placing it into the 'set Text to' block, and finally typing 'Welcome to Saudi Arabia' into the string block. The numbers 1, 2, 3, 4 correspond to the steps described in the text instructions.
Key Values: MIT APP INVENTOR, Projects, Connect, Build, Settings, Help, My Projects, View Trash, Guide, Report an issue, English, qkhaled.bl@gmail.com, Designer, Blocks, Visit_SA_App, Blocks, Built-in, Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures, Screen1, Visit_KSA, welcome_label, Any component, join, length, is empty, compare texts, trim, upcase, starts at text, when Visit_KSA .Click, do set welcome_label .Text to, Welcome to Saudi Arabia
Context: This diagram visually complements the step-by-step instructions for programming a UI element in MIT App Inventor, specifically demonstrating how to change the text displayed on a label component when a button is clicked.
🎴 بطاقات تعليمية للمراجعة
عدد البطاقات: 4 بطاقة لهذه الصفحة
ما هي الخطوات المطلوبة لتعديل خاصية Text (النص) للتسمية في MIT App Inventor؟
الإجابة: 1. تحديد مجموعة Text (النص). 2. تحديد اللبنة البرمجية empty string (سلسلة نصية فارغة). 3. وضع اللبنة البرمجية empty string في اللبنة البرمجية set Text to (ضبط النص إلى). 4. كتابة النص المطلوب (مثل: Welcome to Saudi Arabia) في لبنة empty string.
الشرح: هذه الخطوات تمثل عملية برمجية متسلسلة لتغيير النص المعروض على عنصر واجهة المستخدم (التسمية) عند حدوث حدث معين (مثل النقر على زر).
تلميح: ركز على التسلسل المنطقي للخطوات الأربع المذكورة في النص، بدءاً من تحديد المجموعة وانتهاءً بكتابة النص.
التصنيف: صيغة/خطوات | المستوى: متوسط
ما هي وظيفة اللبنة البرمجية 'empty string' (سلسلة نصية فارغة) في MIT App Inventor؟
الإجابة: هي لبنة برمجية تمثل قيمة نصية فارغة في البداية، ويتم استخدامها كحاوية أو مكان مخصص لكتابة النص الذي نريد تعيينه لعنصر واجهة المستخدم (مثل التسمية).
الشرح: تُستخدم 'empty string' كقيمة أولية أو حاوية فارغة يتم ملؤها بالنص المطلوب، مما يسمح بتغيير النص المعروض ديناميكياً.
تلميح: فكر في الغرض من وجود كتلة نصية قابلة للتعديل قبل أن تحتوي على أي محتوى.
التصنيف: تعريف | المستوى: سهل
ما هي وظيفة اللبنة البرمجية 'set Text to' (ضبط النص إلى) في MIT App Inventor؟
الإجابة: هي لبنة برمجية تستخدم لتعيين أو تغيير النص المعروض على أحد مكونات واجهة المستخدم (مثل التسمية Label) إلى قيمة نصية محددة.
الشرح: تُستخدم هذه اللبنة ضمن أحداث (مثل النقر على زر) لتغيير محتوى العناصر النصية في التطبيق بشكل تفاعلي.
تلميح: تذكر أن اسم اللبنة يشير إلى فعل (ضبط/تعيين) يتم تنفيذه على خاصية (النص) لمكون ما.
التصنيف: تعريف | المستوى: سهل
في سياق البرمجة باستخدام MIT App Inventor، ما هو التسلسل الصحيح لكتابة التعليمات البرمجية لتغيير نص التسمية عند النقر على زر؟
الإجابة: يبدأ التسلسل بكتابة حدث النقر على الزر (مثل: when Visit_KSA .Click)، ثم استخدام لبنة 'do' متبوعة بلبنة 'set welcome_label .Text to'، وأخيراً توصيل لبنة 'empty string' التي تحتوي على النص الجديد (مثل: Welcome to Saudi Arabia).
الشرح: يمثل هذا التسلسل النموذج الأساسي للبرمجة التفاعلية في بيئات التطوير المرئية، حيث يؤدي حدث المستخدم إلى تنفيذ إجراء يغير حالة عنصر في الواجهة.
تلميح: فكر في هيكل البرمجة القائم على الأحداث: حدث (Event) → إجراء (Action) → قيمة (Value).
التصنيف: مفهوم جوهري | المستوى: صعب