Slider ticks

27 visualizações
Pular para a primeira mensagem não lida

Mo_Al_

não lida,
28 de set. de 2022, 03:41:3828/09/2022
para fltk.coredev
Hello

This came up in a discussion elsewhere recently, but fltk 2.0 used to support ticks for sliders. Would it be useful to port this functionality to FLTK 1.4 as well?

Albrecht Schlosser

não lida,
28 de set. de 2022, 04:11:5328/09/2022
para fltkc...@googlegroups.com
On 9/28/22 09:41 Mo_Al_ wrote:
> ... fltk 2.0 used to support ticks for sliders. Would it be useful to
> port this functionality to FLTK 1.4 as well?

Can you please elaborate what "ticks for sliders" means exactly, i.e.
describe the desired behavior? API, callback functionality, etc..


Mo_Al_

não lida,
28 de set. de 2022, 04:53:4028/09/2022
para fltk.coredev
It's a visual representation of the steps of the slider. Similar to what can be seen here:

Ticks can be placed in different positions:

enum  
{
  LINEARTICK_ABOVETICK_LEFTTICK_BELOW,
  TICK_RIGHTTICK_BOTHLOG
}
These could be passed type(), but in FLTK 1.4 uses different types, so maybe these could be passed into a tick_type() function.
It should have no bearing on callback functionality.

Gonzalo Garramuño

não lida,
1 de out. de 2022, 23:18:4001/10/2022
para fltkc...@googlegroups.com



These could be passed type(), but in FLTK 1.4 uses different types, so maybe these could be passed into a tick_type() function.
It should have no bearing on callback functionality.
On Wednesday, September 28, 2022 at 11:11:53 AM UTC+3 Albrecht Schlosser wrote:
On 9/28/22 09:41 Mo_Al_ wrote:
> ... fltk 2.0 used to support ticks for sliders. Would it be useful to
> port this functionality to FLTK 1.4 as well?

I ported the functionality for mrViewer.  Find attached the mrvSlider class.

-- 
Gonzalo Garramuño
ggar...@gmail.com
mrvSlider.zip

Mo_Al_

não lida,
2 de out. de 2022, 11:32:5302/10/2022
para fltk.coredev
Thank you Gonzalo
Responder a todos
Responder ao autor
Encaminhar
0 nova mensagem