Forum Post
Index > Lgi > adding toolbar?

Author/Date adding toolbar?
20/09/2003 4:52pm
Just adding a toolbar like this and it won't work:

_toolbar = NEW(GToolBar());

Can somebody explain the whole layout system to me?
20/09/2003 7:42pm
There is no image list assigned to the toolbar. The icons for the buttons are stored on disk as a graphic file, with each icon next to each other across the image.

Then LgiLoadImageList will load the graphic and return an image list.

Then pass that image list to the toolbar with GToolbar::SetImageList and things should start working.

I've edited the toolbar code so that even without an imagelist something appears on screen. Instead of icons you get red 'x's in the buttons telling you there is something missing. But that'll be in the next release.