FLTK logo

Re: [fltk.general] Problem with Fl_Table: Can't get col_width_all to "take"

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Problem with Fl_Table: Can't get col_width_all to "take" Greg Ercolano Dec 19, 2021  
 

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(); ..



--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/640f6c54-7534-f57b-8aee-af049b9113d6%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.