/[xforms]/xforms/lib/fd/cmdbr.c
ViewVC logotype

Diff of /xforms/lib/fd/cmdbr.c

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

revision 1.2 by leeming, Thu Apr 24 09:35:35 2003 UTC revision 1.3 by leeming, Tue Sep 9 00:28:25 2003 UTC
# Line 1  Line 1 
 /*  
  *  
  *  This file is part of the XForms library package.  
  *  
  * XForms is free software; you can redistribute it and/or modify it  
  * under the terms of the GNU Lesser General Public License as  
  * published by the Free Software Foundation; either version 2.1, or  
  * (at your option) any later version.  
  *  
  * XForms is distributed in the hope that it will be useful, but  
  * WITHOUT ANY WARRANTY; without even the implied warranty of  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  
  * Lesser General Public License for more details.  
  *  
  * You should have received a copy of the GNU Lesser General Public  
  * License along with XForms; see the file COPYING.  If not, write to  
  * the Free Software Foundation, 59 Temple Place - Suite 330, Boston,  
  * MA 02111-1307, USA.  
  *  
  */  
   
   
 /* Form definition file generated with fdesign. */  
   
1  #include "include/forms.h"  #include "include/forms.h"
2  #include <stdlib.h>  #include <stdlib.h>
3  #include "cmdbr.h"  #include "cmdbr.h"
   
4  FD_cmd *create_form_cmd(void)  FD_cmd *create_form_cmd(void)
5  {  {
6    FL_OBJECT *obj;    FL_OBJECT *obj;
7    FD_cmd *fdui = (FD_cmd *) fl_calloc(1, sizeof(*fdui));    FD_cmd *fdui = (FD_cmd *) fl_calloc(1, sizeof(*fdui));
   
8    fdui->cmd = fl_bgn_form(FL_NO_BOX, 430, 190);    fdui->cmd = fl_bgn_form(FL_NO_BOX, 430, 190);
9    fdui->backface = obj = fl_add_box(FL_UP_BOX,0,0,430,190,"");    fdui->backface = obj = fl_add_box(FL_UP_BOX,0,0,430,190,"");
10    obj = fl_add_frame(FL_ENGRAVED_FRAME,10,152,410,31,"");    obj = fl_add_frame(FL_ENGRAVED_FRAME,10,152,410,31,"");
# Line 44  FD_cmd *create_form_cmd(void) Line 18  FD_cmd *create_form_cmd(void)
18      fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);      fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
19      fl_set_object_callback(obj,fl_cmdbr_clear_cb,0);      fl_set_object_callback(obj,fl_cmdbr_clear_cb,0);
20    fl_end_form();    fl_end_form();
   
21    fdui->cmd->fdui = fdui;    fdui->cmd->fdui = fdui;
   
22    return fdui;    return fdui;
23  }  }
 /*---------------------------------------*/  
   

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

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