1
00:00:01,620 --> 00:00:05,610
OK, in this video, I want to look at using frames with our menus, so.

2
00:00:06,800 --> 00:00:10,850
I have created a new file called Menu Frames, it's the same as the old file, I just got rid of the

3
00:00:10,850 --> 00:00:14,280
buttons and I commented out our frame stuff.

4
00:00:14,300 --> 00:00:16,370
I also rename the frame to File Frame.

5
00:00:16,390 --> 00:00:17,570
We'll see why in just a second.

6
00:00:17,600 --> 00:00:23,570
So now if we save this and just run it real quick again, I recall I renamed it menu frames.

7
00:00:23,570 --> 00:00:24,980
Just sort of keep these separate.

8
00:00:25,250 --> 00:00:26,510
We just have these things.

9
00:00:26,510 --> 00:00:28,250
We've got a couple of dropdown things.

10
00:00:28,640 --> 00:00:30,500
And if we click this, nothing happens.

11
00:00:30,500 --> 00:00:32,240
If we click it, it ends.

12
00:00:32,420 --> 00:00:36,170
So, OK, let's now kind of integrate frames in with those menus.

13
00:00:36,500 --> 00:00:44,930
So I'm going to uncommented out our frame and if we let's just change this label.

14
00:00:45,200 --> 00:00:46,960
So where did it go from.

15
00:00:46,970 --> 00:00:50,290
Hello, world to file frame.

16
00:00:50,540 --> 00:00:52,440
Just keep track of this.

17
00:00:52,440 --> 00:00:55,330
So let's save this and run it real quick just to see what we got.

18
00:00:55,340 --> 00:00:55,670
Oh.

19
00:00:57,380 --> 00:01:05,790
My frame is not defined, so our label, we put it in my frame, I renamed this to file frame.

20
00:01:06,330 --> 00:01:07,950
OK, that should work.

21
00:01:08,100 --> 00:01:09,680
Now, let's try this.

22
00:01:11,980 --> 00:01:17,140
OK, so we just have this weird little blue frame inside, it says file frame, no big deal.

23
00:01:17,140 --> 00:01:18,440
So that's where we're starting now.

24
00:01:18,460 --> 00:01:20,120
It's clear the screen, OK?

25
00:01:20,920 --> 00:01:23,380
So now come up to our file menu.

26
00:01:23,500 --> 00:01:29,160
And when you click the file menu, we get this dropdown and we have a new button and an exit button.

27
00:01:29,350 --> 00:01:33,400
And when we were on the net, when we click the new, it just runs our fake command, which doesn't

28
00:01:33,400 --> 00:01:33,940
do anything.

29
00:01:33,970 --> 00:01:38,680
So instead of a fake command, let's call the new command.

30
00:01:39,160 --> 00:01:43,750
So then up here, let's just define new.

31
00:01:45,520 --> 00:01:48,590
And then we want to do something, what do we want to do?

32
00:01:48,610 --> 00:01:52,360
Well, let's show let's show this file frame.

33
00:01:52,640 --> 00:01:57,340
So let's just grab all of this and I'm going to comment this out here so it won't run.

34
00:01:57,340 --> 00:02:03,220
But now we can run this up here if we save this Emek here and run our program.

35
00:02:04,410 --> 00:02:10,230
Nothing shows up because we're not getting anything out yet, if we come up here and click this new

36
00:02:10,230 --> 00:02:11,920
boom that opens.

37
00:02:11,970 --> 00:02:12,760
Very cool.

38
00:02:13,620 --> 00:02:15,430
Well, now what happens if we do something else?

39
00:02:15,450 --> 00:02:16,080
Well, nothing yet.

40
00:02:16,090 --> 00:02:21,750
So let's create this to where it does something else so we can do that many different ways.

41
00:02:22,330 --> 00:02:29,280
For instance, we could come down here and let's call this our file menu frame.

42
00:02:29,790 --> 00:02:31,620
I'm just going to copy all of this.

43
00:02:33,120 --> 00:02:36,420
And below it, we can call what's the other one called edit.

44
00:02:36,630 --> 00:02:41,370
So let's call this one the edit menu frame instead calling this file frame.

45
00:02:41,370 --> 00:02:43,110
Let's call this edit frame.

46
00:02:44,010 --> 00:02:49,080
And here the label will be edit frame, label, edit frame, label.

47
00:02:49,080 --> 00:02:51,750
We want this to appear in our edit frame.

48
00:02:52,820 --> 00:03:00,050
And it's the same file frame, let's say edit frame, and then we can come up here to our edit menu

49
00:03:00,050 --> 00:03:05,310
and instead of writing fake command for cut, let's run the cut command.

50
00:03:06,140 --> 00:03:08,300
So here we need to define a cut.

51
00:03:11,350 --> 00:03:16,480
And let's just copy this whole thing, and we want this to be edited frame.

52
00:03:18,530 --> 00:03:23,240
Or we might know we might have called it cut frame instead of down here, instead of it saying edit

53
00:03:23,240 --> 00:03:24,800
frame, let's call this cut frame.

54
00:03:25,930 --> 00:03:26,200
Right.

55
00:03:26,500 --> 00:03:32,770
All right, so save this and let's run this guy and see if we mess this up or not, it's entirely possible.

56
00:03:33,520 --> 00:03:35,320
OK, so final cut, boom.

57
00:03:35,320 --> 00:03:38,080
We get the cut frame and we come back here and click continue.

58
00:03:38,240 --> 00:03:39,620
Oh, nothing happens.

59
00:03:39,970 --> 00:03:40,990
What's going on here?

60
00:03:41,590 --> 00:03:46,230
Well, this one's on top already, so we need to sort of hide it first.

61
00:03:47,050 --> 00:03:47,390
So.

62
00:03:47,620 --> 00:03:48,600
So how do we fix that?

63
00:03:48,610 --> 00:03:50,230
I think we'll look at that in the next video.
