Subscribe to [FP-0] Discotinued        RSS Feed
-----

Menu Building Pt. 5 Bread Building

Icon Leave Comment
"Best thing since sliced bread"
Its funny how such a simple cutting of bread created the best thing ever. Eh, I am but a child (17) and I cannot argue about that statement for I am a sandwich fanatic. (We exist and we come in peace)

How can one not have a sandwich without Bread?
Trick question, you can't. Sandwiches are 50% Bread give or take a few percent and having the same contents on different bread greatly changes the taste of the sandwich. Amazing!!!
!!!
On to business

We need to create a field where the user can choose their bread type and if they want it toasted or not.

Lets start by making a Combobox for the user to select their bread. Why Combobox? You could do the same as how you chose your contents for the sandwich, but it will look kind of messy. And choosing bread is different from choosing contents. This sandwich app is for user convenience, not ours. We have to go through hell to make users happy.

Combobox
name: ComboBread
Size: 121, 23


Contents vary but I chose these bread types

Rye
White
Cinnamon Raisin
Pretzel
Cheese Bread
Sour Dough
Bagel
Cornbread
French
Cuban
Panini
Italian

Ok so what we are going to do is ut this in a GroupBox. Why? 2 things
1) User will look at Groupboxes and if they see the heading Bread, they will know thats the section where they manage thier bread. You could use Labels but look at #2
2) Fits the style. Everything is catagorized and organized. So the user knows that there are 5 sections to work with to make a sandwich.

Groupbox
Name: GroupBread
Font: Century Schoolbook, 8.25
ForeColor: Yellow
Text: Bread

Now OUTSIDE the Groupbox we are going to add 2 buttons

These two are going to allow user to Toast or Not Toast their bread

Button
Name: BtnToast, BtnDoNotToast
BackColor: MediumBlue
Font: Microsoft Sans Serif, 8.25
ForeColor: SkyBlue
Text: "Toast", "Do Not Toast"

Set BtnDoNotToast visible false
Set BtnToast Enabled False


Put the Buttons right on top of each other so it looks like there is only 1. Place both of them next to the Bread Groupbox.

Now lets make another Groupbox.

Groupbox
Name: GroupToasted
Font: Microsoft Sans Serif, 8.25
ForeColor: SkyBlue
Size: 69, 88
Text: "Toasted"
Visible: False

This Groupbox will contain RadioButtons which will serve as the choices to have their bread toasted.

RadioButton
Name: RadioLight, RadioMedium, RadioDark, RadioNone
Font: Microsoft Sans Serif, 8.25
ForeColor: SkyBlue
Text: "Light", "Medium", "Dark", "None"

Set RadioNone visible false

Now run it and make sure that everything works and next I will show you how to add meaning to these mere 0s and 1s

0 Comments On This Entry

 

Trackbacks for this entry [ Trackback URL ]

There are no Trackbacks for this entry

January 2022

S M T W T F S
      1
2345678
9101112131415
161718192021 22
23242526272829
3031     

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    7 user(s) viewing

    7 Guests
    0 member(s)
    0 anonymous member(s)