O4W: How to define Tables, listboxes etc to resize with screen (O4W)
At 01 MAY 2013 10:06:15AM dsigafoos wrote:
I am building a tool which in 1 part has something similar to O4W_SAMPLE, so using that as a guide I would like to know how to make the listboxes and buttons, which are in table cells, expand/resize as the page width changes.
If you play with the O4W_SAMPLE you will see that it comes with data in the 2 boxes. If you only remove the data from the 'receiving box it looks like this:
I believe that you could define the size of a cell of a table to be say 50% so it would always take 50% of the space. So in the case of sample I would want the table to be 100%, Cell 1 & 3 to be 40% each and the button cell to be 20%.
My assumption is that this has to be done with CSS … so does anyone know HOW this would work in CSS and then how you would make the assignment in O4W?
Thanks
Dsig
At 01 MAY 2013 12:21PM bshumsky wrote:
I am building a tool which in 1 part has something similar to O4W_SAMPLE, so using that as a guide I would like to know how to make the listboxes and buttons, which are in table cells, expand/resize as the page width changes.
<snip>
I believe that you could define the size of a cell of a table to be say 50% so it would always take 50% of the space. So in the case of sample I would want the table to be 100%, Cell 1 & 3 to be 40% each and the button cell to be 20%.
My assumption is that this has to be done with CSS … so does anyone know HOW this would work in CSS and then how you would make the assignment in O4W?
Thanks
Dsig
Hi, David. If I understand your question correctly, you should look at the O4WSizeStyle function. You can pass in a width (and/or height, along with other parameters) that can be specified as a percentage - ie, "40%". Then apply this style to the cell, table, etc., as needed.
Hope that helps,
- Bryan Shumsky
At 01 MAY 2013 12:36PM dsigafoos wrote:
Thanks Bryan, I did look at it then scratched my head <G>. I did copy/paste and fix the O4w_Order_Entry routine from the 9.3.1 ref guide. Fixed up the copy/paste enough that i could get it working (copying from pdf always seems to be a challenge <G>) and it appears to do some of the stuff I want. So will start debugging it to see how it does what I need.
Thanks again