FLTK logo

[fltk.general] Fl_Hold_Browser

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 ]

Fl_Hold_Browser "holm.h... Sep 10, 2020  
 

Hello,
I have the following code :
      { Fl_Hold_Browser* o = new Fl_Hold_Browser(xs+200, ys, 200, 300);
        for (i=0;i<100;i++){
          char s[256];
          sprintf(s, "number %d\n", i);
          o->add(s);
        }
        o->end();
      }
The scrollbar will however only scroll the 73 first items.
If I loop to 1000 (instead of 100) the I can scroll the 734 first items.

The code work fine in a small example code, but not in my application.

Do any have a tip of what may cause this / how to fix ?

Best regards
Håvard

--
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/c7a99669-9b6b-4a7e-9e69-6c5ad82d2a27n%40googlegroups.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'.