Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

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:

img132.imageshack.us_img132_592_o4wsample1.jpg

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

Revelation Software, Inc.


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

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/030646bd23ede0c0cb47621f3.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1