|
Post by carlgundel on Mar 11, 2008 10:18:20 GMT -5
Now with the SETID() method you can set the size of textbox and other controls. Here is an example:
cssid #initial, "{ width: 30px }" textbox #1, "first" textbox #2, "initial" textbox #3, "last" #2 setid("initial") -Carl
|
|
|
Post by StefanPendl on Mar 11, 2008 18:51:22 GMT -5
I like the use of window percentage ;D cssid #first, "{ width: 20% }" cssid #initial, "{ width: 50% }" cssid #last, "{ width: 80% }" textbox #1, "first" print textbox #2, "initial" print textbox #3, "last" #1 setid("first") #2 setid("initial") #3 setid("last")
|
|
|
Post by Janet on Mar 14, 2008 7:33:21 GMT -5
Mike has added content to the Run BASIC WikiSpaces site giving examples of styling Textareas and Textboxes and Checkboxes and Radiobuttons. This is a huge improvement over the earlier attempts that would allow only one change, and that change included the RB IDE. This is a great feature. Thanks for adding this, Carl. And thanks, Mike, for showing us how easy it is to incorporate cssid into our RB programs. Beta testers should really check out Mike's examples if you haven't already.
|
|
|
Post by votan on Jul 11, 2008 5:29:49 GMT -5
why use such an arkward way for textboxes, when texareas already work the simple way. Textboxes should be adjustable the same easy way.... at least my guess... Unfortunatily I already started a new thread on this before I saw this one here. But maybe doing it the simple way would still be interesting?? Take a look here runbasic.proboards82.com/index.cgi?board=general&action=display&thread=655
|
|
|
Post by mikeukmid on Jul 11, 2008 5:45:07 GMT -5
If I may chip in here, I think I agree with Votan to some degree on this point. Carl indicated in the early days of RB that users would be able to create interactive web pages without any knowledge of HTML/CSS, by utilising RB's BASIC commands. For that reason it would be good to be able to specify size of any RB defined object when the object is defined, just like in LibertyBASIC. I also like the added ability to style the objects with CSS for users with some html/css knowledge so setid() method is still a welcome addition.
Mike.
|
|
|
Post by Psycho on Jul 11, 2008 17:36:22 GMT -5
It would be nice to handle textboxes this way. If a size wasn't specified, it could default to the current size that they are today. While I've enjoyed learning some html and CSS, and it certainly seems to have its place for a more visual appealing program, sometimes simplicity rules.
John 'Psycho' Siejkowski
|
|
|
Post by votan on Jul 12, 2008 4:51:00 GMT -5
I actually think that using css for setting the textbox parameters is really a step into the wrong direction! Mayby I should recall the main principles of RB!? (taken from the RB homepage) And it is really sort of "arcane" to use css for something I can even do in plain html without any css. So please reconcider doing it this way:
TEXTBOX #blah, "your text",x,y,z Where x is the displayed length, y is the max input length, and z defines if the field is useraccessible. as mentioned above, these are standart html functions. Anyway, it would be great if we can use css to override these settings at anytime for design purposes. But that is what CSS should generally be for.... just for the design.. not for basic functions. And RB could even use standart values, in case a user does not set all parameters like TEXTBOX #blah, "your text",,,0 So in this case the user only defined that the textbox is NOT user-accessible. Standart value would be 1. The empty parameters would get filled with standart values. So the system would also accept TEXTBOX #blah, "your text" And would treat it like it does right now.
And if you modify RB to do it this way, what btw would be more than cool, don't forget to add the "user accessibility" flag to the textarea, too.
|
|
|
Post by kokenge on Jul 12, 2008 9:00:13 GMT -5
As long as we are discussing user interface, would be nice to have a button feature that works like the link. This would give you a default button. To get a button now you need to set up a css for a link.
Have a great day.. Dan
|
|
|
Post by carlgundel on Jul 12, 2008 9:12:12 GMT -5
As long as we are discussing user interface, would be nice to have a button feature that works like the link. This would give you a default button. To get a button now you need to set up a css for a link. Have a great day.. Dan That's also already in the beta. -Carl
|
|
|
Post by votan on Jul 12, 2008 19:14:31 GMT -5
Taken from the 1.01 Beta2 release notes: Thanx, that's great and definitely done right!! Would be cool if the other parameters (max input length and static/not static) would be implemented, too....
|
|