FLTK logo

Re: [fltk.general] Getting text into the top-left "cell" in Fl_Table_Row

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: Getting text into the top-left "cell" in Fl_Table_Row Greg Ercolano Nov 30, 2020  
 
On 2020-11-30 14:44, 'Philip Rose' via fltk.general wrote:

In the shown example, it’s the place to the left of where it says “Date� and above the place where it has “2925�. I would like to write into there.

    Oh, that little area is neither cell nor header.. that's a perfect use for CONTEXT_ENDPAGE.
    Here's how to write to that area, shown by drawing an "X":


      case CONTEXT_ENDPAGE: {                   // after page headers/cells are drawn..
        // Draw black 'x' in the dead area
        int X1=x(), Y1=y(), X2=x()+row_header_width(), Y2=y()+col_header_height();
        fl_color(FL_BLACK);
        fl_line(X1,Y1,X2,Y2);
        fl_line(X1,Y2,X2,Y1);
        return;
      }



    Modified version of table-simple.cxx attached here with that added.

--
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/b000c683-d02f-fa7e-df15-5cd9aeeb5f4b%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'.