FLTK logo

Re: [fltk.general] Get current value from Fl_Value_Slider

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: Get current value from Fl_Value_Slider imm Oct 16, 2020  
 
On Fri, 16 Oct 2020 at 17:39, Dave Branson wrote:
>
> I am new to the use of FLTK, and am having a problem with my initial test use of the Value Slider widget.  I am attempting to use this slider to extract values for a controls project, but cannot seem to grab the current value as the slider is exercised.  A sample of my test code is below.  Any advise would be welcomed.


Umm... Where to start...

I think your best bet might be to look in the test folder, in
particular at the valuators demo, and see how that does this - in
essence, any GUI will typically be event driven, so you cannot just
read it in main().

In fltk, the event handling is done via callbacks (though other
toolkits may take different approaches, this method is fairly common)
so you will need to create callbacks for the events that come from
your widgets.

As I say, the test and example folders in the fltk checkout show some
basics, and it worth having a look at Greg's examples too:
http://seriss.com/people/erco/fltk/

Beyond that, there are some tutorial videos around the web you can
refer too also.

-- 
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/CAGFM6dbHKQfuxbKvrrqskGQCwV%3DckyWmSScVjqjfuuia9bg2Eg%40mail.gmail.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'.