ATTN Derek: ReBar issues
- Posted by Greg Haberek <ghaberek at gmail.com> Nov 09, 2004
- 459 views
Derek, I hate to draw you away from the contest (although with all the submissions, maybe you need it), but I'm having an issue with ReBars. I can create a ReBar and plenty of ReBarBands no problem. But when I add a control to a ReBarBand, it likes to fill the while ReBarBand. And when I try to put multiple controls in a ReBarBand, the last one fills the ReBarBand, and any caption I may have set for the control is set as the caption of the ReBarBand. This is very troubling, as I *know* this worked several versions ago, and I liked using ReBarBands. Now that I have a reason to use them, I can't! Help! Here's a demo of my problem:
include Win32Lib.ew constant Main = create( Window, "Test", 0, Default, Default, 640, 480, 0 ), bar = create( ReBar, "", Main, 0, 0, 0, 34, 0 ), band1 = create( ReBarBand, "band1", bar, 0, 0, 0, 0, 0 ), btn1 = create( PushButton, "btn1", bar, 0, 0, 30, 30, 0 ), btn2 = create( PushButton, "btn2", bar, 0, 0, 30, 30, 0 ) addToBand( btn1, band1 ) addToBand( btn2, band1 ) WinMain( Main, Normal )