Label
Lab 1: Hello World - Basic Label
1. ภาพรวมของ Lab (Why? What? How?)
Why?: วัตถุประสงค์การเรียนรู้
What?: เราจะเรียนรู้อะไร?
ฟังก์ชัน
หน้าที่
How: นำไปใช้อย่างไร?

2. หลักการทำงาน
2.1 โครงสร้าง Label Widget

2.2 Flowchart การสร้าง Label

3. โค้ดตัวอย่าง
3.1 โค้ดอ้างอิง: part1_ex1_hello_world()
part1_ex1_hello_world()ขั้นตอน
โค้ด
อธิบาย
4. ฟังก์ชันสำคัญ (API Reference)
4.1 Label Creation & Text
ฟังก์ชัน
พารามิเตอร์
คำอธิบาย
4.2 Style: Text Color & Font
ฟังก์ชัน
พารามิเตอร์
คำอธิบาย
4.3 Style: Background
ฟังก์ชัน
พารามิเตอร์
คำอธิบาย
4.4 Color Functions
ฟังก์ชัน
พารามิเตอร์
คำอธิบาย
5. องค์ความรู้และเทคนิค
5.1 Vertical Stacking Pattern (ใช้ใน part1_ex1)
5.2 การจัดการข้อความหลายบรรทัด
5.3 ข้อควรระวังเรื่อง Long Text
5.4 Format Specifiers สำหรับ Embedded
6. แบบฝึกหัด
Exercise 1: Device Info Display
Exercise 2: Scrolling Marquee Label
Last updated
Was this helpful?