Re: [skinlf-dev] Custom buttons in titlebar

"A'fish'ionado" <[email protected]> Sun, 5 Jun 2005 18:27:23 -0700
Newsgroups gmane.comp.java.skinlf.devel
Message-ID <[email protected]>
------=_Part_2796_20097427.1118021243933
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Could we see some screenshots?

William

On 6/4/05, Zsombor <[email protected]> wrote:
>=20
> Hi !
>=20
> I've extended the skinlf with the ability to handle custom buttons in
> the title bar, because i have to put a new 'Dock' button to the window.
> If there is no objections against, I will go ahead and commit my patch.
> After the patch applied the developer can do the following to create a
> custom button:
> 1, put the following to the kde.themerc :
> [Window Button Layout]
> ButtonA=3DDock
> ButtonAEnabled=3Dno
> ButtonAAlign=3D1
> ButtonB=3DDock2
> ButtonBEnabled=3Dyes
> ButtonBAlign=3D0
>=20
> 2, from the code:
> JButton button =3D WindowUtils.getWindowButton(myFrame, "Dock");
> // button is not null, if :
> // 1, the currently used theme defined a "Dock" button
> // 2, the myFrame already visible.
> if (button!=3Dnull) {
> button.addActionListener(...);
> }
>=20
> And that's all.
>=20
> BR
> Zsombor
>=20
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>=20
>

------=_Part_2796_20097427.1118021243933
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Could we see some screenshots?<br>
<br>
William<br><br><div><span class=3D"gmail_quote">On 6/4/05, <b class=3D"gmai=
l_sendername">Zsombor</b> &lt;<a href=3D"mailto:[email protected]=
">[email protected]</a>&gt; wrote:</span><blockquote class=3D"gma=
il_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0=
pt 0pt 0.8ex; padding-left: 1ex;">
Hi !<br><br> I've extended the skinlf with the ability to handle custom but=
tons in<br>the title bar, because i have to put a new 'Dock' button to the =
window.<br>If there is no objections against, I will go ahead and commit my=
 patch.
<br>After the patch applied the developer can do the following to create a<=
br>custom button:<br>1, put the following to the kde.themerc :<br> [Window =
Button Layout]<br> ButtonA=3DDock<br> ButtonAEnabled=3Dno<br> ButtonAAlign=
=3D1
<br> ButtonB=3DDock2<br> ButtonBEnabled=3Dyes<br> ButtonBAlign=3D0<br><br>2=
, from the code:<br> JButton button =3D WindowUtils.getWindowButton(myFrame=
, &quot;Dock&quot;);<br> // button is not null, if :<br> //&nbsp;&nbsp; 1, =
the currently used theme defined a &quot;Dock&quot; button
<br> //&nbsp;&nbsp; 2, the myFrame already visible.<br> if (button!=3Dnull)=
 {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;button.addActionListe=
ner(...);<br> }<br><br>And that's all.<br><br>BR<br> Zsombor<br><br><br>---=
------------------------------------------------------------------
<br>To unsubscribe, e-mail: <a href=3D"mailto:[email protected]=
va.net">[email protected]</a><br>For additional commands,=
 e-mail: <a href=3D"mailto:[email protected]">[email protected]=
v.java.net
</a><br><br></blockquote></div><br>

------=_Part_2796_20097427.1118021243933--