Re: XForms: valslider unexpected 2nd bar

T.C. Zhao (tc_zhao@yahoo.com)
Mon, 14 Sep 1998 20:36:37 -0700 (PDT)

# To subscribers of the xforms list from "T.C. Zhao" <tc_zhao@yahoo.com> :

Thanks for the message. Yes, it's a genuine bug, and has never
been reported before. It'll get fixed.

---Lothar Esser <esser@chop.swmed.edu> wrote:
>
>
> Dear Colleagues,
>
> I might have missed it, so if I report an already known bug I
> apologize. I noticed a glitch in valsliders when the bounds are
> different from 0 and 1 and you set the slider_value to 0.5.
Initially, the
> valslider shows the correct value and the bar is in the correct
place but
> if you move the mouse over the slider a second bar right in the
middle
> appears. Look at the example in the attachment.
> (v0.88 IRIX 5.3, 6.2, Dec Alpha OSF1 V4.0 and Linux i386)
>
> Lothar Esser
>
> ------------------------------------------------------------------
> Dr. Lothar Esser
> Howard Hughes Medical Institute
> 5323 Harry Hines Blvd.
> Dallas Texas 75235-9050
> E-mail : esser@chop.swmed.edu
> ------------------------------------------------------------------
> >
> #include "forms.h"
> #include <stdlib.h>
> /*
> * cc bar.c -o bar -lforms -lX11 -lm
> */
> FL_FORM *Bar;
> FL_OBJECT *Slide_bar;
>
> void Slide_bar_cb(FL_OBJECT *ob, long data);
> void create_form_bar(void);
> void create_the_forms(void);
>
> void create_form_bar(void) {
> FL_OBJECT *obj;
>
> if (Bar) return;
>
> Bar = fl_bgn_form(FL_NO_BOX,340,100);
> obj = fl_add_box(FL_UP_BOX,0,0,340,100,"");
> Slide_bar = obj =
fl_add_valslider(FL_HOR_BROWSER_SLIDER,60,30,230,30,"slide bar");
> fl_set_object_lsize(obj,FL_DEFAULT_SIZE);
> fl_set_object_lalign(obj,FL_ALIGN_TOP);
> fl_set_object_callback(obj,Slide_bar_cb,1);
> fl_end_form();
> }
>
> void create_the_forms(void){
> create_form_bar();
> }
>
> void Slide_bar_cb(FL_OBJECT *ob, long data){
> }
>
> int main(int argc, char *argv[]){
>
> fl_initialize(&argc, argv, 0, 0, 0);
> create_the_forms();
>
> fl_set_slider_bounds(Slide_bar, 0.0, 2.0);
>
> /* Set the value to anything other than 0.5 and it works ok. */
> fl_set_slider_value (Slide_bar, 0.50);
>
> /* show the first form */
> fl_show_form(Bar,FL_PLACE_CENTER,FL_FULLBORDER,"bar");
> fl_do_forms();
> return 0;
> }
>

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at /cgi-bin/exit-to?http://mail.yahoo.com

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/