Ok I have a composite view that uses the flow layout. In this view I
have 2 push buttons. I have a horizontal gap of 10 and and alignment of #right. My first button remains on the screen but the second button is clipped and halfway hidden. Instead of ------------------------- +--------+ +--------+ ! 1 ! ! 2 ! +--------+ +--------+ ------------------------- I get ------------------------- +--------+ +---- ! 1 ! ! +--------+ +---- ------------------------- Using Win2k. What I want is an easy way to stack a row of buttons with right alignment. Attached is the .vu file. begin 666 rightSample.vu M(5-40B`P($X(#``*````4U1"5FEE=U!R;WAY`````$X"#0`!````4U1"0VQA M<W-0<F]X>0`````V``8`4W1R:6YG!P```$1O;'!H:6Z2````"0```%-H96QL M5FEE=R8`!0!!<G)A>1L``````````````,(````"`````0">`0$``@!@```` M````````````````!P(````````````````````````&!PP`0F]R9&5R3&%Y M;W5T``````$````!`````````````````````````%H`````````>@`````` M``"@````D@````T```!#;VYT86EN97)6:65WP@````\`````````8````,(` M```"````-@`,`$QA<F=E26YT96=E<@0```````!$`0`"`!`!```````````` M```````'``````````````````````````8#"@!&;&]W3&%Y;W5T`````,D` M```!````#@$.`%-40E-Y;6)O;%!R;WAY`````)(````%````<FEG:'0.`AH` M4U1"261E;G1I='E$:6-T:6]N87)Y4')O>'D`````>@````````"@````D@`` M`!(```!)9&5N=&ET>41I8W1I;VYA<GG"```````````````&`0\`365S<V%G M95-E<75E;F-E``````X"$@!35$)#;VQL96-T:6]N4')O>'D`````>@`````` M``"@````D@```!$```!/<F1E<F5D0V]L;&5C=&EO;L(````!````!@,+`$UE M<W-A9V5396YD`````*H!````````D@```!````!C<F5A=&5!=#IE>'1E;G0Z MP@````(````&`@4`4&]I;G0``````0````$```#B`@```````(T$``"%`0`` M$`$```8!#P!724Y$3U=03$%#14U%3E0`````-@`)`$)Y=&5!<G)A>2P````L M``````````$```#_____________________``````````!&`@``P@```$H" M````````8`(``,(````"````6@````````!Z`````````*````"2````"@`` M`%!U<VA"=71T;V["````$0`````````0`0``P@````(```!B`0``!``````@ M`40!````<`,```````````````````<````````````````````````````` M`&(!```$````;K+A=T8$$@`"````0V]M;6%N9$1E<V-R:7!T:6]N`````*H! M````````D@````,```!Y97.2````!````"9997,!```````````````!```` M(@(```````!*`@```````&`"``#"`````P```)("````````L`(``,(````" M````X@(```````#E`@```0```.("````````U0```$L```!P`P``D@(````` M``"J`0```````)(````*````:7-%;F%B;&5D.L(````!````(````'`#``"2 M`@```````*H!````````D@````4```!T97AT.L(````!````D@````0````F M665S<`,``!(#````````,@,``"P````L``````````$```#_____________ M________<@$```````#<`0``)0```$H"````````8`(``!`"``#B`@`````` M`/$```#Q`````````!,```!:`````````(`#``#"````$0`````````0`0`` MP@````(```!B`0``!``````@`40!````<`4```````````````````<````` M`````````````````````````&(!```$````;K+A=^(#````````J@$````` M``"2`````@```&YOD@````,````F3F\!```````````````!````(@(````` M``!*`@```````&`"``#"`````P```)("````````L`(``,(````"````X@(` M``````"!!````0```.("````````U0```$L```!P!0``D@(```````"P!``` MP@````$````@````<`4``)("````````\`0``,(````!````D@````,````F M3F]P!0``$@,````````R`P``+````"P``````````0```/______________ M______]``@```````*H"```E````2@(```````!@`@``$`(``&`%```````` M$P```&`%````````$P```-H!````````\`$``!`"```````````````````` M``````````$``````````````````````````0``````````````(@(````` M``!*`@```````&`"``#"`````@```)("````````L`(``,(````"````X@(` M```````+````"P```.("````````G00``,<!``!@````D@(```````"J`0`` M`````)(````(````;65N=4)A<CK"`````0````````!@````$@,````````R M`P``+````"P``````````````/____________________\%````!0```%," J``#H````2@(```````!@`@``P@````$````0`0``8`4````````5```` ` end |
Jerome,
> Ok I have a composite view that uses the flow layout. In this view I > have 2 push buttons. I have a horizontal gap of 10 and and alignment of > #right. My first button remains on the screen but the second button is > clipped and halfway hidden. It looks like the FlowLayout doesn't take into account the horizontalGap setting when calculating it's left offset, using the centre alignment is not quite correct either. > Using Win2k. What I want is an easy way to stack a row of buttons with > right alignment. Attached is the .vu file. I know it's a little more work but I usually use a FramingLayout for things like that. You can position one button absolutely (the top right one from your description) and then position all the others with reference to that. You might also be able to use a GridLayout by dropping another container onto your existing one, right aligning it and giving it a Grid layout manager. Setting the rows and columns aspect for this should allow you to create a column, or columns, of buttons. If you really do want a FlowLayout though, so the number of buttons on each row changes as the containing view is resized, then you'll probably have to wait for a fix to FlowLayout. You might <untested musing alert> be able to create a subview containing a button enclosed in it's own container with appropriate whitespace. Adding these to a FlowLayout, with a horizontalGap of 0, might get the effect you want? Ian |
In article <9gfbil$93dtv$[hidden email]>,
"Ian Bartholomew" <[hidden email]> wrote: > I know it's a little more work but I usually use a FramingLayout for things > like that. You can position one button absolutely (the top right one from > your description) and then position all the others with reference to that. That's what I'm using right now but it seemed like using Flow would be easier. So I should report this as a bug? |
Jerome,
> That's what I'm using right now but it seemed like using Flow would be > easier. It depends a lot on what you want to do but you are probably right about FlowLayout being easier. A temporary fix that seems to work is to modify FlowLayout>>startOffsetFor:in: and add the following line immediately after the existing line that sets the lineWidth lineWidth := lineWidth + (anOrderedCollection size - 1 * hgap). This just moves the left hand edge a bit further across, allowing for the extra hgaps. NB. It's not a proper fix but it might be enough to get you going with FlowLayout. > So I should report this as a bug? Hopefully Andy or Blair will read this thread <FX> Waves hand and call "coooeeee" </FX> so you probably already have !! Ian |
In reply to this post by Ian Bartholomew-4
Ian,
> I know it's a little more work but I usually use a FramingLayout for things > like that. You can position one button absolutely (the top right one from > your description) and then position all the others with reference to that. Have you looked at the Wizardry package in my 4.01 goodies? It tries to take some of the tedium out of setting framing constraints (see the loose methods), and has a few helpful (to me anyway) view resources; comments for improvements are most welecome. Have a good one, Bill -- Wilhelm K. Schwab, Ph.D. [hidden email] |
In reply to this post by Ian Bartholomew-4
"Ian Bartholomew" <[hidden email]> wrote in message
news:9gfo2j$oq5$[hidden email]... > Jerome, > ... > > So I should report this as a bug? > > Hopefully Andy or Blair will read this thread <FX> Waves hand and call > "coooeeee" </FX> so you probably already have !! > Recorded as defect 270. Thanks to you both. Regards Blair |
Free forum by Nabble | Edit this page |