;

PDA

Click to See Complete Forum and Search --> : KPushButton with round edges


torfnase
09-17-2008, 07:17 AM
Hello alltogether,

I created a button with as with the line:
CreateKPushButton("button1",1,0);

Is it possible to influence the edges of the button ?

I would like to make the top edges round and would like to leave the bottom edges as they are...
In addition I would like to change the font-size and face of the lable auf the button...
I tried (for font-size):

var textformat = new TextFormat();
textformat.size = 14;
button1.setLabel("Step 1",textformat);

but it doesn't work :-(

Is that possilble with AS ?

kind regards....

torfnase :-)

w.brants
09-17-2008, 11:21 AM
I would like to make the top edges round and would like to leave the bottom edges as they are...
That's not possible using this component.

In addition I would like to change the font-size and face
button1.setStyleProperty ("textFont", "_typewriter");
button1.setStyleProperty ("textSize", 14);
button1.setLabel("Label 1");

torfnase
09-17-2008, 12:28 PM
thank you very much...
I will test this soon... :-)