|
Post by mackrackit on May 25, 2008 14:45:53 GMT -5
With a DIV to set the background color this snippet hangs at the first "input". With out the DIV it works as expected. The same Div works in other places of the same program. Do I need to split this up in some way? [addColumn] cls ' DIV bground print " " sqliteconnect #dBase,"pott.db" query$ = "select * from Table1" #dBase execute(query$) cnames$ = #dBase columnnames$() print "Current Columns" print cnames$ #dBase disconnect() print " " link #done,"[Cancel]",[admin] print " " input "Enter new column name; ";cn$ input "Add new column (Y/N): ";c$ if upper$(c$)="Y" then action$="alter table Table1 add '"+cn$+"' char(50)" sqliteconnect #dBase,"pott.db" #dBase execute(action$) #dBase disconnect() end if link #done,"[Done]",[admin] #done cssclass("calcButton") 'END DIV wait
|
|
|
Post by Jerry Muelver on May 25, 2008 15:53:46 GMT -5
We'd have to see the CSS for the DIV, David. In the meantime, try replacing the first semicolon in the first INPUT with a colon.
|
|
|
Post by mackrackit on May 25, 2008 20:02:23 GMT -5
I replaced the semicolon and it did not help. That would have been too easy. But I bet it is something silly like that. Here is the CSS CSSID #bground, "{background-color: RGB(60, 60, 60);Height: 1000px;Text-Align: Left;}"
Thank you for your help!
|
|
|
Post by Jerry Muelver on May 25, 2008 20:56:05 GMT -5
Thinking.... (hard work).... An INPUT statement stops the flow, and forces a render. I would put the DIV first, then the CLS, as a first RVA (Random Variable Assignment) experiment. I would also leave HEIGHT out of the CSSID statement, just to check. Then I would try using just BACKGROUND instead of BACKGROUND-COLOR, and would next try setting color with "GRAY" instead of the RGB thing.
|
|
|
Post by mackrackit on May 25, 2008 21:42:16 GMT -5
This is interesting. When I switch the DIV and cls around the program hangs while trying to run this block of code. (The program stops when the link pointing to "[addColumn]" is clicked.) Stripped the CSS down to CSSID #bground, "{background: GRAY}"
Still stuck. Another some what related question. How do I get the whole page to be a color if I do not use a HEIGHT value? Look kind of strange to have a colored bar across the page with data in it and the rest white.
|
|
|
Post by Janet on May 25, 2008 22:05:30 GMT -5
Dave, I've stripped your code down to the barest minimum and I think you just cannot put a link inside a div. Probably Jerry's theory regarding rendering comes in to play. At any rate, setting the background color is pretty easy using HTML.
Cls Html "<body style='background-color: #FFFF00;'>" Print: Print: Print "Way too bright!"
|
|
|
Post by mackrackit on May 25, 2008 22:40:06 GMT -5
I must have some thing wrong with my system. I tried this in a new program. This is the whole code. Cls Html "<body style='background-color: #FFFF00;'>" Print: Print: Print "Way too bright!" Html "</body>"
Also tried without the closing body tag. The screen flashes yellow once and leaves the text without a background color. I am using at the moment XP Professional, Microsoft IE and tried with RB v1.0 Build 2.33h and RB v1.0.1 beta 1 Build 2.35 Did a restart with scan disk too! Sorry to be such a bother.
|
|
|
Post by Janet on May 25, 2008 22:56:39 GMT -5
That's the whole code? No other residue? I'm using XP Home, MSIE7, RB v1.0.1 beta 1 and the color doesn't revert back to white. But, your other DIV's preserved the color, yes? Run your original code, without the input statements in the bground Div. Does the screen ficker or does the gray persist?
|
|
|
Post by mackrackit on May 25, 2008 23:17:12 GMT -5
Yes, that was the whole code to test. Yes, the original DIV will make the screen gray and stay gray. With and with out the inputs.
|
|
|
Post by mackrackit on May 25, 2008 23:37:59 GMT -5
Found the problem with the HTML color. I had the RB IDE set to "SPACE" in the preferences. That setting was over riding the HTML color.
Now it all seems to work.
I can have color and inputs.
Thanks again.
|
|