Items has been used in your program.
You have seen this statement:
......
STATUSBAR1-> panels-> items [0] -> text = "See me?"
......
Radiogroup1-> items-> add ("I haven't seen me?");
......
MNEDIT-> Items [0] -> Visible = false; // is angry and not allowed to use
......
The above is a common statement used by Items. The first sentence is used in the status bar. The second sentence is used in the radio box. The third sentence is used in the menu. Today we will come and look at Items. Usage in these three statements.
The status bar is usually used to display some prompt information, generally located at the bottom of the form. Since it is displayed, what is this information coming from? There are three ways to call the editor of the status bar pane: Double-click the status bar, right click to select Panels Editor or click "..." on the right side of the object monitor, see Didn't see it? When you edit, you will find that every line takes a table, if the text content is displayed, the content is displayed in the state, and there is a line number before each line, it starts from 0, right: P
But we sometimes write these prompt information, it should be written like this:
Statusbar1-> panels-> items [1] -> text = "Haha, this will know me";
Why do you write this? First, Statusbar1 is the name of this status bar; Panels is the properties of this status bar. The third type of call editor we just said is not to click "..." on the right of this property, so we should come inside it. Write information; but if you are writing, so many columns, you can't don't have a sign. In fact, it isn't it is it Items [], and we want to write text content, this is not text. This is not a chaotic analysis, you have to remember, want to realize dynamic editing in BCB, you can only do this, because few have a book to explain her source J
The other two statements should be well understood, one is increasing in the radio group box, the third sentence is to set the first child in the MNEDIT menu item to be invisible.
Sometimes you have to pay attention to, we have to mention the contents of a single choice in the radio group, do you write this?
Label1-> CAPTION = Radiogroup1-> items-> strings [radiogroup1-> itemindex];
In fact, this is right, but label1-> caption = radiogroup1-> items [0] -> text is certainly wrong; of course, you want to write Label1-> caption = radioGroup1-> items-> text, this It's right, but it's all the content, this is not what you want :(
Said this, you only have to remember that you can only use items in the radio box, but you can't add parameters, because we haven't seen the line number in the edit box, right J
Can I use text to be visited or dynamically named or dynamically given in the menu? No, when you edit on the menu, you will see the name of the menu is written in the CAPTION property, so we can't do it with text :(
Items is excellent, but it is necessary to use her to come to you, you must be careful, but don't let this little girl deceived J