Problem with Fl_Table: Can't get col_width_all to "take"

12 views
Skip to first unread message

david allen

unread,
Dec 19, 2021, 4:27:17 PM12/19/21
to fltk.general
col_width_all seems to have no effect. I use fltk 1.4.0 and linux mint Debian addition.
tac-help.cxx

Greg Ercolano

unread,
Dec 19, 2021, 8:39:45 PM12/19/21
to fltkg...@googlegroups.com

On 12/19/21 1:27 PM, david allen wrote:

col_width_all seems to have no effect. I use fltk 1.4.0 and linux mint Debian addition.

    You have to call that after you set your cols() value, so move your col_width_all() call
    into your SetSize() function, below where you set rows() and cols(), so it knows the number
    of columns to apply the new value to.


  void SetSize(int newrows, int newcols) {
    clear();            // clear any previous widgets, if any
    rows(newrows);
    cols(newcols);
    col_width_all(150); // move it here

    begin(); ..



david allen

unread,
Dec 19, 2021, 9:16:12 PM12/19/21
to fltk.general
Thanks!
Reply all
Reply to author
Forward
0 new messages