Re: problem with the size of submit button
Re: problem with the size of submit button
- Subject: Re: problem with the size of submit button
- From: Art Isbell <email@hidden>
- Date: Fri, 22 Aug 2003 12:53:11 -1000
On Friday, August 22, 2003, at 03:20 AM, tan teck keong wrote:
i have a problem with the size of the button, i can't resize it. i had
try to insert a html font tag in between the element to enlarge the
button, but it still not working. how do i do it?
I have increased the width of a submit button by prepending and
appending space characters around the title. I tried prepending and
appending a newline character to increase the button's height, but this
failed.
However, you might get what you want if you "build" a button using a
WOGenericContainer:
<WEBOBJECT NAME=Button><FONT SIZE=7><BR>BIG
BUTTON<BR></FONT></WEBOBJECT>
Button: WOGenericContainer {
type = "SUBMIT";
elementName = "BUTTON";
invokeAction = actionMethod;
}
Because this button's title is outside the element's tag unlike the
usual submit button, you can adjust this button's height by adjusting
the title's font size, by making the title more than one line, etc.
Curiously, on Safari, this BUTTON element doesn't have an Aqua look.
It is rendered as a rectangular gray area with a 3D border that changes
when clicked to emulate the pressing of a button.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.