1. RE: flattoolbar

Can you provide a little exw that demonstrates more then one 
FlatToolBar? Whenever I tried to do that, the additional ones always end 
up on top of the first, even though the additional Bars had incremented 
CY values.

If I can see how you do it, I will be happy to add that ability.

Judith

Tyler Southwick wrote:
> Two things:\
> 1. Judith's IDE wont let you add more than one flattoolbar to the form, 
> but it is possible to do it.
> 
> 2. Is it possible to change the size of a button on the flattoolbar to 
> be the same type of size used in IE?
> 
> Thanks
> Tyler
> 
> 
>

new topic     » topic index » view message » categorize

2. RE: flattoolbar

Judith wrote:
> Can you provide a little exw that demonstrates more then one 
> FlatToolBar? Whenever I tried to do that, the additional ones always end 
> 
> up on top of the first, even though the additional Bars had incremented 
> CY values.
> 
> If I can see how you do it, I will be happy to add that ability.
> 

Judith:
  X and Y should be the position, CX is the width and 
  CY should be the height of any window or control in windows
  programming. 

Bernie

new topic     » goto parent     » topic index » view message » categorize

3. RE: flattoolbar

I believe that Win32Lib resizes toolbars to be at the top and across the
screen.  The recommended way to use multiple toolbars is to use a Rebar and
put each toolbar on a Rebarband.  I suspect this is really what you want to
do.

Matt Lewis

> -----Original Message-----
> From: Judith [mailto:camping at txcyber.com]

> Can you provide a little exw that demonstrates more then one 
> FlatToolBar? Whenever I tried to do that, the additional ones 
> always end 
> up on top of the first, even though the additional Bars had 
> incremented 
> CY values.
> 
> If I can see how you do it, I will be happy to add that ability.
> 
> Judith
> 
> Tyler Southwick wrote:
> > Two things:\
> > 1. Judith's IDE wont let you add more than one flattoolbar 
> to the form, 
> > but it is possible to do it.
> > 
> > 2. Is it possible to change the size of a button on the 
> flattoolbar to 
> > be the same type of size used in IE?
> > 
> > Thanks
> > Tyler
> > 
> > 
> > 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

4. RE: flattoolbar

Whenever I use more than one toolbar or flattoolbar, I use them with a 
rebar band, and it works fine.

Tyler

new topic     » goto parent     » topic index » view message » categorize

5. RE: flattoolbar

Ah, I can change to allow multiple toolbar/flattoolbar if they are on 
ReBarBand -- I think.

I'm in the midst of redoing the toolbar and flattoolbar routines so I 
will look at multiples on rebarband. I am also looking at the control 
sizes within the toolbar/flattoolbar. I'm trying to make the changes so 
that existing toolbar/flattoolbar controls and controls within them work 
as originally designed so as not to break everyone's code but allow for 
new toolbar and flattoolbar (and their controls) to have different 
sizing and positioning behavior. If I didn't have that neat little 
autopositioning routine, it would not be so problematic smile



Tyler Southwick wrote:
> Whenever I use more than one toolbar or flattoolbar, I use them with a 
> rebar band, and it works fine.
> 
> Tyler
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

6. RE: flattoolbar

Well it seems that you can't have a toolbar down the side of the screen.

constant menuBar = create(FlatToolBar,"",Main,2,60,500,50,0)  <<works

constant menuBar = create(FlatToolBar,"",Main,2,60,50,500,0) << does not
work

is this a bug or the way it's supposed to work.


george

new topic     » goto parent     » topic index » view message » categorize

7. RE: flattoolbar

> -----Original Message-----
> From: gwalters at sc.rr.com [mailto:gwalters at sc.rr.com]

> Well it seems that you can't have a toolbar down the side of 
> the screen.
> 
> constant menuBar = create(FlatToolBar,"",Main,2,60,500,50,0)  <<works
> 
> constant menuBar = create(FlatToolBar,"",Main,2,60,50,500,0) 
> << does not
> work
> 
> is this a bug or the way it's supposed to work.

It's got CCS_TOP set by default:

    classStyle[ FlatToolBar ] = or_all( {   
					CCS_TOP,
					CCS_NORESIZE,
					--CCS_ADJUSTABLE,
					WS_CHILD,
					WS_VISIBLE,
					WS_BORDER,
					WS_TABSTOP,
					--WS_CLIPSIBLINGS,
					TBSTYLE_FLAT,
					TBSTYLE_TOOLTIPS } )

You'll probably need to play with the settings.  Also, ToolBars are often
put into ReBarBands (inside a ReBar), which allow users to move them around.
No one that I'm aware of has written any code to allow docked/undocked
ReBars, though.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu