|
Post by ekvirtanen on Jan 10, 2008 13:43:36 GMT -5
Can i somehow change what reads in a box which is created by INPUT command? "Accept" to something else.
|
|
|
Post by carlgundel on Jan 10, 2008 14:58:42 GMT -5
Can i somehow change what reads in a box which is created by INPUT command? "Accept" to something else. Hmm. Well that would require an additional command I think unless you wanted to change (or extend) the syntax of INPUT. I'll make that a feature request then. -Carl
|
|
|
Post by mikeukmid on Jan 10, 2008 15:57:46 GMT -5
As a workaround you can style the button with cssclass and make the text color the same as the background color to hide the text, then have an external label.
cssclass "input.submit", "{background-color:lightblue;color:lightblue; }"
How many browsers that works on I don't know.
Mike
|
|
|
Post by carlgundel on Jan 10, 2008 16:54:56 GMT -5
As a workaround you can style the button with cssclass and make the text color the same as the background color to hide the text, then have an external label. cssclass "input.submit", "{background-color:lightblue;color:lightblue; }" How many browsers that works on I don't know. Thanks Mike. I wonder if there's a way to substitute an image for the button using CSS. -Carl
|
|
|
Post by mikeukmid on Jan 10, 2008 17:29:21 GMT -5
You can certainly put an image on the button (which could contain the desired text) and use padding-left to move the unwanted text off the button. Will add something like that to the wiki tomorrow. I think you can replace the button with a text-only link or an image but with CSS doubtful.
Mike.
|
|
|
Post by ekvirtanen on Jan 10, 2008 22:55:21 GMT -5
Hi folks and thanks for the replies.
What i wish is that i could change the "Accept" from the program code. Or, load .css from certain location to be used with the code. This way, same .css would be for all the users, no matter where is runs the code. By using HTML instead of INPUT it should work.
|
|
|
Post by mikeukmid on Jan 11, 2008 6:02:44 GMT -5
I have put up a demo on the wiki to put an image on the input button as a way replacing the standard text. runbasic.wikispaces.com/Input+control+StyleDoes an external style sheet not work? I have not tried it yet. HTML Input does work, but defeats the object of using native objects. By that method I'm sure you know you can assign a class and change the text. I guess Carl will introduce '#handle CSSCLASS() - Set the CSS class tag' for radiobuttons, checkboxes, input objects in later releases of RB. Mike.
|
|
|
Post by ekvirtanen on Jan 11, 2008 6:53:29 GMT -5
Hey, thanks mike.
I will study your tutorial with time...when i got bit more time. But thanks for quick help here.
|
|