LoU Tweak

By AmpliDude Last update Feb 2, 2012 — Installed 326,788 times.

2 Buttons side by side

in
Subscribe to 2 Buttons side by side 3 posts, 1 voice



signon Scriptwright
Firefox

Hello,

How can i add 2 buttons side by side? Im adding 2 buttons but one at above and other one at below. Forexample; "Copy coord to chat" button, how can add 2nd button to right side of it or left side?

Another question is; is there a way press Enter button after send to chat function?
Forexample; after clicked "Copy coord to chat" need to press enter for send it. Is there a way to send directly when clicked button? Thank you.

Regards,
signon

 
signon Scriptwright
Firefox

Found it. Thanks Firebug and qooxdoo. Now need auto send into chat line =/

2 Buttons side by side:

var buttonLayout = new qx.ui.layout.HBox(4).set( {alignX:"center"} );
this.buttonGroup = new qx.ui.container.Composite( buttonLayout ));

this.app.cityDetailView.actionArea.add(this.buttonGroup);

add your buttons into "buttonGroup"

 
signon Scriptwright
Firefox

Thanks again to Firebug. Here is auto chat send code. Use it after chatLine.setValue("YourValue")

this.chat.sendCurrent();

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel