What's new

Quick question about tables and size

jesusginard

Active Member
Hi there,

I have a table with 128 steps, I want it to be 117x117 px but the width doesn't go under 178px. Is that normal?

I've seen that if I reduce the number of steps, then I can reduce the width.

Thanks.
 
For reference, this is the code that I have:

Code:
on init
    set_ui_height_px(350)
    declare $count := 0
    declare ui_table %table[128](2,1,1)
    move_control_px(%table,47,153)
    set_control_par(get_ui_id(%table),$CONTROL_PAR_WIDTH,117)
    set_control_par(get_ui_id(%table),$CONTROL_PAR_HEIGHT,117)
end on
 
Depends on how many columns the table has, you cannot go below certain width. That is the limitation of ui_table element.

My suggestion would be either using less steps (worse) or make more room for the table in the GUI (better). Minimum width you should use with size 128 table to make all columns equal size and nicely visible is 262 px.
 
Top Bottom