You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Greg Brannon <gr...@gmail.com> on 2012/09/22 18:18:49 UTC
Help with setting Window/Frame styles
Am I setting the Frame's resizable style correctly with any of the 3 attempts
in the following code? I suspect not, as I'm not even seeing a change in the
handles as described in the original report for PIVOT-826.
public class View extends Frame implements Bindable
{
@Override
public void initialize( Map<String, Object> namespace, URL location,
Resources resources )
{
// change the title of the frame (works fine).
setTitle( "My Frame Title" );
// an attempt to set the container to a fixed size, but not working
getStyles().put( "resizable", false );
} // end method initialize()
// . . . the rest of the file
} // end class View
I tried to the same thing with the main Frame defined by the bxmlSerializer,
but the results were the same - I still have a resizable interface.
I also tried setting resizable in the bxml file:
<view:View
styles = "{padding: {top: 0, left: 4, bottom: 4, right: 4},
showWindowControls: false, resizable: false}"
I don't think setting showWindowControls had any effect either, so I must be
doing something wrong.
As always, thanks for your help and patience.
Greg Brannon
Hughesville, MD
(443) 684-2064
Re: Help with setting Window/Frame styles
Posted by Greg Brannon <gr...@gmail.com>.
Never mind. I tried the same in one of the tutorial examples, and setting the
resizable style works as it should. I'm doing something wrong on my own, but
I'll figure it out.
Greg Brannon
Hughesville, MD
(443) 684-2064
On Saturday, September 22, 2012 12:18:49 PM you wrote:
> Am I setting the Frame's resizable style correctly with any of the 3
> attempts in the following code? I suspect not, as I'm not even seeing a
> change in the handles as described in the original report for PIVOT-826.
>
> public class View extends Frame implements Bindable
> {
> @Override
> public void initialize( Map<String, Object> namespace, URL location,
> Resources resources )
> {
> // change the title of the frame (works fine).
> setTitle( "My Frame Title" );
>
> // an attempt to set the container to a fixed size, but not working
> getStyles().put( "resizable", false );
>
> } // end method initialize()
>
> // . . . the rest of the file
>
> } // end class View
>
> I tried to the same thing with the main Frame defined by the bxmlSerializer,
> but the results were the same - I still have a resizable interface.
>
> I also tried setting resizable in the bxml file:
>
> <view:View
> styles = "{padding: {top: 0, left: 4, bottom: 4, right: 4},
> showWindowControls: false, resizable: false}"
>
> I don't think setting showWindowControls had any effect either, so I must be
> doing something wrong.
>
> As always, thanks for your help and patience.
>
> Greg Brannon
> Hughesville, MD
> (443) 684-2064