In the Learning Process
BlitzPlus Forums/BlitzPlus Programming/In the Learning Process
| ||
Well, I'm learning how to make programs so I bet i'm gonna ask really stupid questions since i never programmed games/program before. So here goes one of my stupid question: CreateListBox( x,y,width,height,group ) I checked for "groups" but I really don't get what im suppose to put in there. Can Anyone Help with this Note: I'll post other stupid questions in this topic so I don't flood the forums of stupid question ;) (so check the topic XD ) |
| ||
No stupid questions! [Group] specifies what "Group" gadget the Listbox belongs to. Group gadgets includes Windows, Panels, and Tabbers. The group specified then becomes the listbox's parent gadget. For example: WndMain = CreateWindow("Blitz Window", 0, 0, 300, 300) LstMain = CreateListBox(100, 100, 50, 50, WndMain) This will create a window called WndMain at 0, 0 on the desktop, and a listbox called LstMain inside the window at 100, 100 (WndMain-relative coordinates). Hope this helps. Bring on the questions! |
| ||
man I feel stupid thats so abvious! thanks! What if I wana add a Words(option) in a CreateComboBox? and what about textboxs? TextArea( 0,0,100,75,window ) doesnt work found out the text box ,Command Ref. is really helpful |
| ||
What if I wana add a Words(option) in a CreateComboBox? Use AddGadgetItem, like this: AddGadgetItem(combo, "Hello") TextArea( 0,0,100,75,window ) doesnt work Well, the command is CreateTextArea, not TextArea. Also, "window" has to be assigned to a valid window handle (returned from CreateWindow). |