For that mater can any controls and windows be added by code ?
Lets say I have 4 buttons as categories and a user wants to add more categories and be able
to add a button/s or something to access those added categories. Is there another way to do this ?
Am I going to have to use a listbox to do this ? I really don’t want to if I don’t have to.
I don’t want the look of a listbox, I want it to look like button selections but a user has a choice to add/delete
as many as needed.
The Users Guide has good info. Read through those sections and come back with your questions and we’ll fill in the gaps. There are also (I believe) some example projects that specifically cover both of them.
Control set: you add one button, with a name and an index of 0
Then you can add a new button by cloning that: dim b as new MYExistingButtonName
You might find its easier to use a listbox, where each row acts like a button. (i.e. you click and something happens)
You can take over the drawing of the cell and make it look more button like by adding a border and shading if you wish
Here is an example of what I am trying to do. These buttons are category buttons and grouped together.
A user can add/delete as many categories as they wish. I not looking for code on how to do this, just
some direction on the best way to do it. In this example when a button has focus it becomes white and
drops to the bottom of the list of buttons as “Software Titles” shows.
Is the category button used to display different content in another pane?
(Not sure why you make it drop to the bottom of the list in this way)
Both buttons and a listbox still work for this method.
The listbox may take the edge if the number of categories can make the list exceed the page size.
The shading above doesn’t look like a normal button anyway, but is easily achieved in the call background paint event of a listbox.
(Just have a small graphic and stretch it to the cell width)
If you do need the chosen item to go to the bottom of the list, then clicking an item will need to:
delete the item.
Add it at the end.
scroll the list to the end if the end is not already visible
invalidate the cells affected
Can anyone help me with this ? I am trying to create a set of buttons from a list box and have the graphics
but can’t seem to get it as the picture above shows. I have the start project here Button Test
I am trying to get the foldericon to show with the bluebuttonicon as the image above shows.
Am I going to have to make the bluebuttonicon and foldericon as one image ?
Ok I made a 32x32 folder image and tried what you said. I have tried this before but it
over writes the blueListboxbutton.png image and shows nothing. The first line shows the rows as the blue button.
That is what I want but with the folder icon also showing.