/[xforms]/xforms/demos/borderwidth.c
ViewVC logotype

Diff of /xforms/demos/borderwidth.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by leeming, Thu Apr 24 09:35:33 2003 UTC revision 1.4 by leeming, Tue Sep 9 00:28:25 2003 UTC
# Line 20  Line 20 
20   */   */
21    
22    
23  /*  /*
24   * demo showing the effect of different border widths   * demo showing the effect of different border widths
25   *   *
26   * This file is part of xforms packge   * This file is part of xforms packge
27   * T.C. Zhao and M. Overmars  (1997)   * T.C. Zhao and M. Overmars  (1997)
# Line 68  void bw_callback(FL_OBJECT *ob, long dat Line 68  void bw_callback(FL_OBJECT *ob, long dat
68     int bw = bws[fl_get_choice(ob)-1];     int bw = bws[fl_get_choice(ob)-1];
69    
70     fl_set_object_bw(fd_bwform->bwgroup, bw);     fl_set_object_bw(fd_bwform->bwgroup, bw);
71     /* since bwgroup includes the backface, it wipes out the done button*/       /* since bwgroup includes the backface, it wipes out the done button*/
72     fl_redraw_object(fd_bwform->done);     fl_redraw_object(fd_bwform->done);
73     fl_redraw_object(fd_bwform->bw_choice);     fl_redraw_object(fd_bwform->bw_choice);
74  }  }
# Line 78  int main(int argc, char *argv[]) Line 78  int main(int argc, char *argv[])
78  {  {
79    
80     /* application default. Can be overriden by the command line options */     /* application default. Can be overriden by the command line options */
81     fl_set_border_width(-2);     fl_set_border_width(-2);
82    
83     fl_initialize(&argc, argv, "FormDemo", 0, 0);     fl_initialize(&argc, argv, "FormDemo", 0, 0);
84     fd_bwform = create_form_bwform();     fd_bwform = create_form_bwform();

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26