1. IDE PushButton Placement
- Posted by "C. K. Lester" <cklester at yahoo.com> Feb 05, 2003
- 453 views
If I put a button on a Flat Toolbar, it doesn't matter what shape I make it, the running dialog always shows a square button. If this is set-in-concrete behavior, then at least have the IDE show the un-resizeable size of the button. What exactly are ReBars? Are those just moveable button bars? If I put a button on a ReBar, the button expands right to fill up the bar instead of maintaining the shape I set it in the IDE. Is that expected behavior? I put a flat toolbar down, then wondered what would happen if I added a rebar item above it (giving me two button bars). Well, that screwed everything up such that I had to start over... I kept getting the "Msg 197" message, "ToolBar/FTB index not found."
2. Re: IDE PushButton Placement
- Posted by Greg Haberek <g.haberek at comcast.net> Feb 06, 2003
- 423 views
Ok, you need at least 3 things to put a button into a ReBar: 1. ReBar 2. ReBarBand 3. ToolBar or FlatToolBar After that you can drop in a PushButton or whatever, the reason the Button expands in the ReBar is because that is the nature of the beast and it thinks you're going to drop more controls into the button. I believe the reason your button always comes out square is due to Windows and not Win32Lib, but I could be wrong. IMHO ReBars and FlatToolBars need some more improvement before they can be used through Win32Lib and the IDE. Personally, I've been designing my own ToolBar2 control, it's really simple but it gets the job done, and it's alot more flexible. Search for Axiom Editor in the Archive if you want to see it, and if people like it, I may release it as a separate control. (Derek says he's working on custom controls for Win32Lib, so I've been waiting for that to totally perfect any of my custom controls.) HTH ~Greg g.haberek at comcast.net ----- Original Message ----- From: C. K. Lester <cklester at yahoo.com> To: EUforum <EUforum at topica.com> Sent: Wednesday, February 05, 2003 4:48 PM Subject: IDE PushButton Placement If I put a button on a Flat Toolbar, it doesn't matter what shape I make it, the running dialog always shows a square button. If this is set-in-concrete behavior, then at least have the IDE show the un-resizeable size of the button. What exactly are ReBars? Are those just moveable button bars? If I put a button on a ReBar, the button expands right to fill up the bar instead of maintaining the shape I set it in the IDE. Is that expected behavior? I put a flat toolbar down, then wondered what would happen if I added a rebar item above it (giving me two button bars). Well, that screwed everything up such that I had to start over... I kept getting the "Msg 197" message, "ToolBar/FTB index not found." TOPICA - Start your own email discussion group. FREE!
3. Re: IDE PushButton Placement
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 06, 2003
- 416 views
On Wed, 05 Feb 2003 22:12:40 -0500, Greg Haberek <g.haberek at comcast.net> wrote: > > Ok, you need at least 3 things to put a button into a ReBar: > 1. ReBar > 2. ReBarBand > 3. ToolBar or FlatToolBar Agreed. > After that you can drop in a PushButton or whatever, the reason the > Button expands in the ReBar > is because that is the nature of the beast and it thinks you're going to > drop more controls into > the button. I believe the reason your button always comes out square is > due to Windows and not > Win32Lib, but I could be wrong. No, you are right. > IMHO ReBars and FlatToolBars need some more improvement before they can > be used through > Win32Lib and the IDE. Can you let me know about what needs improving? > Personally, I've been designing my own ToolBar2 control, it's really > simple but it gets the job done, and it's alot more flexible. Search for > Axiom Editor in the > Archive if you want to see it, and if people like it, I may release it as > a separate control. > (Derek says he's working on custom controls for Win32Lib, so I've been > waiting for that to > totally perfect any of my custom controls.) Sorry for the delays. -- cheers, Derek Parnell
4. Re: IDE PushButton Placement
- Posted by Greg Haberek <g.haberek at comcast.net> Feb 06, 2003
- 428 views
Well frankly they seem a bit flakey, although this is probably Windows, I tend to have trouble getting everything to work right and get along. I'd prefer if I could use just one xpm for a FlatToolBar, although I never tried specifying the same one three times. And ReBars tend to go where I don't want them. It's probably just my opinion, or the fault of Windows. :) As far as it goes, they WORK, and the work WELL, I just don't like them. But hey, I don't like a lot of Windows 'features'. Just keep up the good work! ~Greg g.haberek at comcast.net ----- Original Message ----- From: Derek Parnell <ddparnell at bigpond.com> To: EUforum <EUforum at topica.com> Sent: Wednesday, February 05, 2003 10:46 PM Subject: Re: IDE PushButton Placement On Wed, 05 Feb 2003 22:12:40 -0500, Greg Haberek <g.haberek at comcast.net> wrote: > > Ok, you need at least 3 things to put a button into a ReBar: > 1. ReBar > 2. ReBarBand > 3. ToolBar or FlatToolBar Agreed. > After that you can drop in a PushButton or whatever, the reason the > Button expands in the ReBar > is because that is the nature of the beast and it thinks you're going to > drop more controls into > the button. I believe the reason your button always comes out square is > due to Windows and not > Win32Lib, but I could be wrong. No, you are right. > IMHO ReBars and FlatToolBars need some more improvement before they can > be used through > Win32Lib and the IDE. Can you let me know about what needs improving? > Personally, I've been designing my own ToolBar2 control, it's really > simple but it gets the job done, and it's alot more flexible. Search for > Axiom Editor in the > Archive if you want to see it, and if people like it, I may release it as > a separate control. > (Derek says he's working on custom controls for Win32Lib, so I've been > waiting for that to > totally perfect any of my custom controls.) Sorry for the delays. -- cheers, Derek Parnell TOPICA - Start your own email discussion group. FREE!
5. Re: IDE PushButton Placement
- Posted by "C. K. Lester" <cklester at yahoo.com> Feb 06, 2003
- 420 views
> >I put a flat toolbar down, then wondered what would happen if I added a > >rebar item above it (giving me two button bars). Well, that screwed > >everything up such that I had to start over... I kept getting the "Msg 197" > >message, "ToolBar/FTB index not found." > > I don't follow what you were trying to do. Could you explain a little more. > I'd like to provide a better message than the one you got. This message > really should not appear since it was in a routine I expected never to > happen. The routine was more or less a dummy test to prevent a crash. I was determining if I could have both a FlatToolbar and ReBar at the top of my window. I put the FlatToolbar in first, then put in the ReBar. It didn't appear to work well... and I don't know if it should be legal or not!
6. Re: IDE PushButton Placement
- Posted by Judith Evans <camping at txcyber.com> Feb 06, 2003
- 415 views
I made some tests outside of IDE and determined that no matter what row you give ReBar in the createEx statement, it gets located at 0,0. However, I was able to create a Flat toolbar (Toolbar also worked) below the Rebar. However, IDE wants to position toolbars at 0,0. I was also able to create a Toolbar at 0,0 and a Flat toolbar below it but not visa-versa. If there are no other bars and the Flat toolbar (or Toolbar) is createEx somewhere besides at 0,0 it gets located there anyway. I'll add to my ToDo list for IDE to react accordingly. A Rebar may contain multiple ReBarBands. One might contain a Flat toolbar and others also Flat toolbar or Toolbar. Or you can mix and match Flat toolbar and Toolbar. This already works in IDE. The situation you attempted definitely needs a different error message. HTH --judith C. K. Lester wrote: I was determining if I could have both a FlatToolbar and ReBar at the top of my window. I put the FlatToolbar in first, then put in the ReBar. It didn't appear to work well... and I don't know if it should be legal or not!