Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit d2a9c57

Browse files
Merge pull request #1628 from livecode/bugfix-19838
[Bug 19838] Add 'select' steps to the tutorials
2 parents eecf5ac + 061cb5d commit d2a9c57

4 files changed

Lines changed: 144 additions & 3 deletions

File tree

Toolset/palettes/tutorial/courses/First Run/tutorials/BMI Calculator/lessons/App Lesson.txt

Lines changed: 105 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,15 @@ action
154154
highlight tool "Create com.livecode.widget.headerBar"
155155
capture the next new widget of stack "Mainstack" as "Header"
156156
wait until there is a widget "Header"
157+
go to step "Select Header 1"
158+
end step
159+
160+
step "Select Header 1"
161+
Select the header bar widget by clicking on it.
162+
163+
The selection handles will show around the widget.
164+
action
165+
wait until widget "Header" is selected
157166
go to step "Set Header Rect"
158167
end step
159168

@@ -237,6 +246,15 @@ action
237246
highlight tool "Create com.livecode.widget.navbar"
238247
capture the next new widget of stack "Mainstack" as "Footer"
239248
wait until there is a widget "Footer"
249+
go to step "Select Footer 1"
250+
end step
251+
252+
step "Select Footer 1"
253+
Select the navigation bar widget by clicking on it.
254+
255+
The selection handles will show around the widget.
256+
action
257+
wait until widget "Footer" is selected
240258
go to step "Set Footer Rect"
241259
end step
242260

@@ -298,6 +316,15 @@ action
298316
highlight tool "Create Round Rect Graphic"
299317
capture the next new graphic of stack "Mainstack" as "Entry Background"
300318
wait until there is a graphic "Entry Background"
319+
go to step "Select Entry Background 1"
320+
end step
321+
322+
step "Select Entry Background 1"
323+
Select the graphic by clicking on it.
324+
325+
The selection handles will show around the graphic.
326+
action
327+
wait until graphic "Entry Background" is selected
301328
go to step "Set Entry Background Rect"
302329
end step
303330

@@ -351,6 +378,13 @@ action
351378
highlight tool "Create Label Field"
352379
capture the next new field of stack "Mainstack" as "Height Label"
353380
wait until there is a field "Height Label"
381+
go to step "Select Height Label 1"
382+
end step
383+
384+
step "Select Height Label 1"
385+
Select the field by clicking on it.
386+
action
387+
wait until field "Height Label" is selected
354388
go to step "Set Height Label Rect"
355389
end step
356390

@@ -386,6 +420,13 @@ action
386420
highlight tool "Create Label Field"
387421
capture the next new field of stack "Mainstack" as "Weight Label"
388422
wait until there is a field "Weight Label"
423+
go to step "Select Weight Label 1"
424+
end step
425+
426+
step "Select Weight Label 1"
427+
Select the field by clicking on it.
428+
action
429+
wait until field "Weight Label" is selected
389430
go to step "Set Weight Label Rect"
390431
end step
391432

@@ -421,6 +462,13 @@ action
421462
highlight tool "Create Field"
422463
capture the next new field of stack "Mainstack" as "Height Field"
423464
wait until there is a field "Height Field"
465+
go to step "Select Height Field 1"
466+
end step
467+
468+
step "Select Height Field 1"
469+
Select the field by clicking on it.
470+
action
471+
wait until field "Height Field" is selected
424472
go to step "Set Height Field Rect"
425473
end step
426474

@@ -469,6 +517,13 @@ action
469517
highlight tool "Create Field"
470518
capture the next new field of stack "Mainstack" as "Weight Field"
471519
wait until there is a field "Weight Field"
520+
go to step "Select Weight Field 1"
521+
end step
522+
523+
step "Select Weight Field 1"
524+
Select the field by clicking on it.
525+
action
526+
wait until field "Weight Field" is selected
472527
go to step "Set Weight Field Rect"
473528
end step
474529

@@ -499,12 +554,19 @@ action
499554
end step
500555

501556
step "Create Calculate Graphic"
502-
Drag a rounded rectangle graphic from the tools palette onto your
557+
Drag a rounded rectangle graphic from the tools palette onto your
503558
stack.
504559
action
505560
highlight tool "Create Round Rect Graphic"
506561
capture the next new graphic of stack "Mainstack" as "Calculate Background"
507562
wait until there is a graphic "Calculate Background"
563+
go to step "Select Calculate Graphic 1"
564+
end step
565+
566+
step "Select Calculate Graphic 1"
567+
Select the graphic by clicking on it.
568+
action
569+
wait until graphic "Calculate Background" is selected
508570
go to step "Set Calculate Graphic Rect"
509571
end step
510572

@@ -539,6 +601,13 @@ action
539601
highlight tool "Create Button"
540602
capture the next new button of stack "Mainstack" as "Calculate"
541603
wait until there is a button "Calculate"
604+
go to step "Select Calculate Button 1"
605+
end step
606+
607+
step "Select Calculate Button 1"
608+
Select the button by clicking on it.
609+
action
610+
wait until button "Calculate" is selected
542611
go to step "Set Calculate Button Rect"
543612
end step
544613

@@ -591,6 +660,13 @@ action
591660
highlight tool "Create Round Rect Graphic"
592661
capture the next new graphic of stack "Mainstack" as "Results Background"
593662
wait until there is a graphic "Results Background"
663+
go to step "Select Results Background 1"
664+
end step
665+
666+
step "Select Results Background 1"
667+
Select the graphic by clicking on it.
668+
action
669+
wait until graphic "Results Background" is selected
594670
go to step "Set Results Background Rect"
595671
end step
596672

@@ -642,6 +718,13 @@ action
642718
highlight tool "Create Label Field"
643719
capture the next new field of stack "Mainstack" as "Results Label"
644720
wait until there is a field "Results Label"
721+
go to step "Select Results Label 1"
722+
end step
723+
724+
step "Select Results Label 1"
725+
Select the field by clicking on it.
726+
action
727+
wait until field "Results Label" is selected
645728
go to step "Set Results Label Rect"
646729
end step
647730

@@ -693,6 +776,13 @@ action
693776
highlight tool "Create Label Field"
694777
capture the next new field of stack "Mainstack" as "Results"
695778
wait until there is a field "Results"
779+
go to step "Select Results Field 1"
780+
end step
781+
782+
step "Select Results Field 1"
783+
Select the field by clicking on it.
784+
action
785+
wait until field "Results" is selected
696786
go to step "Set Results Rect"
697787
end step
698788

@@ -745,6 +835,13 @@ action
745835
highlight menu item "Duplicate Objects" of menu "Edit"
746836
capture the next new field of stack "Mainstack" as "Advice"
747837
wait until there is a field "Advice"
838+
go to step "Select Advice Field 1"
839+
end step
840+
841+
step "Select Advice Field 1"
842+
Select the field.
843+
action
844+
wait until field "Advice" is selected
748845
go to step "Set Advice Rect"
749846
end step
750847

@@ -1971,6 +2068,13 @@ action
19712068
highlight tool "Create com.livecode.widget.browser"
19722069
capture the next new widget of stack "Mainstack" as "Browser"
19732070
wait until there is a widget "Browser"
2071+
go to step "Select Browser 1"
2072+
end step
2073+
2074+
step "Select Browser 1"
2075+
Select the browser widget.
2076+
action
2077+
wait until widget "Browser" is selected
19742078
go to step "Set Browser Rect"
19752079
end step
19762080

Toolset/palettes/tutorial/courses/First Run/tutorials/Hello World/lessons/App Lesson.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ action
9595
highlight tool "Create Button"
9696
capture the next new button of stack "Mainstack" as "hello"
9797
wait until there is a button "hello"
98+
go to step "Select Button 1"
99+
end step
100+
101+
step "Select Button 1"
102+
Select the button by clicking on it.
103+
104+
The selection handles should show around the button.
105+
action
106+
wait until button "hello" is selected
98107
go to step "Set Button Location"
99108
end step
100109

Toolset/palettes/tutorial/courses/First Run/tutorials/To Do List/lessons/App Lesson.txt

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,15 @@ action
144144
highlight tool "Create com.livecode.widget.svgpath"
145145
capture the next new widget of stack "Mainstack" as "add"
146146
wait until there is a widget "add"
147+
go to step "Select SVG Icon 1"
148+
end step
149+
150+
step "Select SVG Icon 1"
151+
Select the SVG Icon by clicking on it.
152+
153+
The selection handles will show around the icon.
154+
action
155+
wait until widget "add" is selected
147156
go to step "Set Add Location"
148157
end step
149158

@@ -168,11 +177,11 @@ action
168177
end step
169178

170179
step "Set add name"
171-
Set the name property of the SVG Icon to "Add" and press Enter.
172-
173180
The 'Name' property is used when we refer to an object in the code. We want to
174181
use short, unique, descriptive names to make it easier when we start writing
175182
code.
183+
184+
Set the name property of the SVG Icon to "Add" and press Enter.
176185
action
177186
highlight property "name" of section "Basic"
178187
wait until the name of widget "add" is "Add"
@@ -202,6 +211,15 @@ action
202211
highlight tool "Create list field"
203212
capture the next new field of stack "Mainstack" as "TaskList"
204213
wait until there is a field "TaskList"
214+
go to step "Select Field 1"
215+
end step
216+
217+
step "Select Field 1"
218+
Select the field by clicking on it.
219+
220+
The selection handles will show around the field.
221+
action
222+
wait until field "TaskList" is selected
205223
go to step "Set task list Location"
206224
end step
207225

@@ -400,6 +418,15 @@ action
400418
highlight tool "Create com.livecode.widget.svgpath"
401419
capture the next new widget of stack "Mainstack" as "delete"
402420
wait until there is a widget "delete"
421+
go to step "Select SVG Icon 2"
422+
end step
423+
424+
step "Select SVG Icon 2"
425+
Select the icon by clicking on it.
426+
427+
The selection handles will show around the icon.
428+
action
429+
wait until widget "delete" is selected
403430
go to step "Set Delete Location"
404431
end step
405432

notes/bugfix-19838.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Add explicit 'select object' steps to the Interactive Tutorials to ensure the correct object is always selected.

0 commit comments

Comments
 (0)