help with List box
-
Hi all, I need some help figuring out what to use for my app. I need to have a list of items displayed in a dialog window. I am stuck here because I am not sure I am doing the right thing. The list of item has to be displayed one after another, but one particular type of item has to be in columns. Lets say i want to list sporting equipment and only display the quantity and price for baseball equpi. So an example would be:
` Quantity Price ($) Total Price **Baseball hat 4 $25 $100 Baseball ball 11 $5 $55** Basketball shoes $100 Basketball shorts $35 Basketball $40 Soccer ball $30 **Baseball bat 2 $65 $130**`
Right now I am using a listbox because i don't think a list control will let me span across columns. Can this be done? Is there a way to format the string I add in the list box (using addstring()) to consistantly be in column alignment? THANKS for the help everyone Jimmy Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
-
Hi all, I need some help figuring out what to use for my app. I need to have a list of items displayed in a dialog window. I am stuck here because I am not sure I am doing the right thing. The list of item has to be displayed one after another, but one particular type of item has to be in columns. Lets say i want to list sporting equipment and only display the quantity and price for baseball equpi. So an example would be:
` Quantity Price ($) Total Price **Baseball hat 4 $25 $100 Baseball ball 11 $5 $55** Basketball shoes $100 Basketball shorts $35 Basketball $40 Soccer ball $30 **Baseball bat 2 $65 $130**`
Right now I am using a listbox because i don't think a list control will let me span across columns. Can this be done? Is there a way to format the string I add in the list box (using addstring()) to consistantly be in column alignment? THANKS for the help everyone Jimmy Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
Use a list control, with a report style. Give it four columns: Item, Quantity, Price, and Total Price. Empty columns are certainly permissible.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
Use a list control, with a report style. Give it four columns: Item, Quantity, Price, and Total Price. Empty columns are certainly permissible.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
Hi, I wanted to clarify what i needed. I want to be able to add the other types of equpiment as the way i entered in the example as well as write a sentence that will go across the columns. I want to be able to write a description or a cause for the purchases that are made that are not baseball related. So in other words, I want to put to be able to put the paragraph above under the basketball equpiment purchases and before having the last baseball item in the list in the columns again. Can this be done? I couldn't figure this out, so i went with the listbox. This is making it hard to get the baseball equpiment to be lined up though. Any help would be appreciated. Jimmy Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
-
Hi, I wanted to clarify what i needed. I want to be able to add the other types of equpiment as the way i entered in the example as well as write a sentence that will go across the columns. I want to be able to write a description or a cause for the purchases that are made that are not baseball related. So in other words, I want to put to be able to put the paragraph above under the basketball equpiment purchases and before having the last baseball item in the list in the columns again. Can this be done? I couldn't figure this out, so i went with the listbox. This is making it hard to get the baseball equpiment to be lined up though. Any help would be appreciated. Jimmy Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
Sounds like you either need to employ a grid control, or use the LBS_USETABSTOPS style with your listbox.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
Sounds like you either need to employ a grid control, or use the LBS_USETABSTOPS style with your listbox.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
Can a list control insert across columns? Something along the line of merging cells in MS excel? Jimmy Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
Not that I'm aware of, but, I've never tried.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
Not that I'm aware of, but, I've never tried.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
Hi, would you be offended if i asked this to other members of the forum? (post a new message about this?) thanks again for your help Jimmy Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
Why would I be offended? It's not my forum.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?