📄 النص الكامل للصفحة
--- SECTION: للوصول إلى خاصية Text (النص) الخاصة بالتسمية ---
للوصول إلى خاصية Text (النص) الخاصة بالتسمية
< حدد المكون welcome_label (التسمية_الترحيبية) . 1
< اسحب وأفلت اللبنة البرمجية set welcome_label.Text to (ضبط نص التسمية_الترحيبية إلى) . 2
< ضع اللبنة السابقة داخل قسم do (نفّذ) الخاص باللبنة البرمجية when Visit_KSA.click (عند الضغط على زيارة_المملكة العربية السعودية) . 3
--- SECTION: شكل 3.12: الوصول إلى خاصية Text (النص) الخاصة بالتسمية ---
شكل 3.12: الوصول إلى خاصية Text (النص) الخاصة بالتسمية
وزارة التعليم
Ministry of Education
2025 - 1447
128
--- VISUAL CONTEXT ---
**DIAGRAM**: شكل 3.12: الوصول إلى خاصية Text (النص) الخاصة بالتسمية
Description: A screenshot of a block-based programming environment, likely App Inventor. The interface is divided into several panels. The left panel, labeled 'Blocks', contains categories like 'Built-in' (Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures) and 'Screen1' components, including 'Visit_KSA' and 'A welcome_label'. The 'welcome_label' component is highlighted with a circled '1'. Below 'Blocks' is a 'Media' section showing 'KSA_flag.jpg' and 'Upload File'. The central panel, labeled 'Viewer', displays various property blocks for 'welcome_label', such as 'welcome_label BackgroundColor', 'set welcome_label BackgroundColor to', 'welcome_label FontSize', 'welcome_label HTMLContent', 'welcome_label HasMargins', 'set welcome_label HasMargins to', 'welcome_label Height', 'set welcome_label Height to', 'welcome_label HeightPercent', 'set welcome_label HeightPercent to', 'welcome_label Text', 'set welcome_label Text to', 'welcome_label TextColor', and 'set welcome_label TextColor to'. The 'set welcome_label Text to' block is highlighted with a circled '2'. The right panel shows a 'Designer' tab and a programming area. Within this area, a 'when Visit_KSA Click do' block is visible, highlighted with a circled '3'. A dashed arrow originates from the 'set welcome_label Text to' block (2) and points towards the 'do' section of the 'when Visit_KSA Click do' block (3), indicating a drag-and-drop action. On the far right, zoom controls (+, -, circle) and a trash bin icon are present. Partially visible text at the bottom includes 'Privacy Policy and Terms of Use' and 'Output'.
Key Values: Discover_KSA, Screen1+, Add Screen, Remove Screen, Publish to Gallery, Designer, Blocks, Viewer, Built-in, Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures, Screen1, Visit_KSA, A welcome_label, Any component, Rename, Delete, Media, KSA_flag.jpg, Upload File, welcome_label BackgroundColor, set welcome_label BackgroundColor to, welcome_label FontSize, welcome_label HTMLContent, welcome_label HasMargins, set welcome_label HasMargins to, welcome_label Height, set welcome_label Height to, welcome_label HeightPercent, set welcome_label HeightPercent to, welcome_label Text, set welcome_label Text to, welcome_label TextColor, set welcome_label TextColor to, when Visit_KSA Click do, Output, Privacy Policy and Terms of Use
Context: This diagram visually illustrates the step-by-step instructions provided in the text for manipulating the 'Text' property of a 'welcome_label' component in a block-based programming environment. It shows how to locate the component, find the relevant property block, and drag it into an event handler block.
🎴 بطاقات تعليمية للمراجعة
عدد البطاقات: 4 بطاقة لهذه الصفحة
ما هي الخطوات المطلوبة للوصول إلى خاصية Text (النص) الخاصة بالتسمية وتعديلها عند حدث النقر على زر؟
الإجابة: 1. تحديد المكون welcome_label (التسمية_الترحيبية). 2. سحب وإفلات اللبنة البرمجية 'set welcome_label.Text to' (ضبط نص التسمية_الترحيبية إلى). 3. وضع اللبنة السابقة داخل قسم 'do' (نفّذ) الخاص باللبنة البرمجية 'when Visit_KSA.click' (عند الضغط على زيارة_المملكة العربية السعودية).
الشرح: هذه الخطوات تمثل عملية برمجة أساسية في بيئات البرمجة بالكتل حيث يتم ربط تغيير خاصية لعنصر واجهة مستخدم بحدث معين مثل النقر على زر.
تلميح: ركز على التسلسل المنطقي: تحديد المكون أولاً، ثم اختيار اللبنة المناسبة، وأخيراً ربطها بالحدث.
التصنيف: صيغة/خطوات | المستوى: سهل
ما هو الغرض من اللبنة البرمجية 'set welcome_label.Text to'؟
الإجابة: الغرض من هذه اللبنة هو ضبط أو تغيير النص المعروض داخل التسمية (Label) المسماة 'welcome_label'.
الشرح: في البرمجة المرئية، تمثل هذه اللبنة أمراً لتعديل خاصية 'Text' الخاصة بمكون واجهة المستخدم، مما يسمح بتغيير المحتوى النصي المعروض ديناميكياً.
تلميح: فكر في الكلمة الرئيسية 'set' (ضبط) وارتباطها بتعديل خاصية عنصر.
التصنيف: تعريف | المستوى: سهل
ما هو الحدث (Event) الذي يتم استخدامه في هذا المثال لتنفيذ تغيير نص التسمية؟
الإجابة: الحدث المستخدم هو 'when Visit_KSA.click' (عند الضغط على زيارة_المملكة العربية السعودية).
الشرح: الأحداث مثل 'click' (النقر) هي محفزات تشغّل سلسلة من الأوامر (مثل تغيير النص) عند حدوثها من قبل المستخدم.
تلميح: ابحث عن الكلمة التي تبدأ بـ 'when' (عند) في النص.
التصنيف: تعريف | المستوى: سهل
في سياق البرمجة بالكتل، ما هو دور قسم 'do' (نفّذ) داخل لبنة الحدث (Event Block)؟
الإجابة: دور قسم 'do' هو احتواء وتسلسل اللبنات البرمجية (الأوامر) التي يجب تنفيذها عند وقوع الحدث المحدد.
الشرح: يقسم 'do' يمثل جسم الإجراء أو الاستجابة. أي كتلة توضع داخله ستُنفذ تلقائياً عندما ينقر المستخدم على الزر 'Visit_KSA'.
تلميح: فكر في العلاقة بين حدوث شيء ما (الحدث) والاستجابة له (التنفيذ).
التصنيف: مفهوم جوهري | المستوى: متوسط