As you can probably tell by my threads, I'm working my way one by one through the controls, trying to pull out what I can from Help, looking at the samples, experimenting on my own, and drawing from forum folks. I've been putting the results at my site, in the PowerBASIC tutorials section while it's fresh in my mind.
I'm looking at toolbar code tonight.
This code doesn't create separators as Help says it will. Does anyone know why?
Here's what I get:

The separators are in the wrong place and are buttons, not empty pixels.
I can use Add Button with &tbstyle_sep and get somewhat better results, but %tbstyle isn't documented in Help. It (and others that are not listed in Help) are listed in *.inc but with minimal comments.
I also expected to see a way to select text and/or image display, but didn't see any such style. What I did find out was that if text = "" for all toolbar buttons, the toolbar itself thins down. But if any one button is "", all text on the toolbar is empty. But I didn't see how to thin the toolbar if no images are selected (imagelist index = 0 is what I tried).
All of this was in just minutes of starting on the code. I suspect there are most questions right around the corner - some pretty basic stuff.
If anyone has a more complex example to look through, I'm all eyes.
I can tell that writing a tutorial on toolbars will involve plenty of legwork to get the whole pictures. That seems to happen a lot with PB topics.
I'm looking at toolbar code tonight.
This code doesn't create separators as Help says it will. Does anyone know why?
Code:
#Compile Exe #Dim All Function PBMain() Dim hDlg As Dword Dialog New Pixels, 0, "Test",,, 300,150, %ws_overlappedwindow , To hDlg Control Add Toolbar, hdlg, 500,"", 0,0,0,0, %ws_ex_staticedge Toolbar Add Button hdlg, 500, 0, 1, %tbstyle_button,"X" Toolbar Add Separator hdlg, 500, 100 Toolbar Add Button hdlg, 500, 0, 2, %tbstyle_button,"Y" Toolbar Add Separator hdlg, 500, 100 Toolbar Add Button hdlg, 500, 0, 3, %tbstyle_button,"Z" Dialog Show Modal hdlg End Function

The separators are in the wrong place and are buttons, not empty pixels.
I can use Add Button with &tbstyle_sep and get somewhat better results, but %tbstyle isn't documented in Help. It (and others that are not listed in Help) are listed in *.inc but with minimal comments.
I also expected to see a way to select text and/or image display, but didn't see any such style. What I did find out was that if text = "" for all toolbar buttons, the toolbar itself thins down. But if any one button is "", all text on the toolbar is empty. But I didn't see how to thin the toolbar if no images are selected (imagelist index = 0 is what I tried).
All of this was in just minutes of starting on the code. I suspect there are most questions right around the corner - some pretty basic stuff.
If anyone has a more complex example to look through, I'm all eyes.
I can tell that writing a tutorial on toolbars will involve plenty of legwork to get the whole pictures. That seems to happen a lot with PB topics.
Comment