adime_d_double_calc_edit_proc man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

adime_d_double_calc_edit_proc(Adime API Refereadime_d_double_calc_edit_proc(3)

NAME
       adime_d_double_calc_edit_proc

SYNOPSIS
       #include <adime.h>

       int adime_d_double_calc_edit_proc(int msg, DIALOG *d, int c);

DESCRIPTION
       Gui  proc  for  an  edit	 box accepting a mathematical expression whose
       result is a floating point number. The result is	 calculated  and  dis‐
       played  on  a separate gui object as the user types. The edit box has a
       3d-ish look.

       The dp2 field points to a `struct ADIME_EDIT_NUMBER *´ which holds some
       information about the behavior of the edit box:

	  typedef struct ADIME_EDIT_NUMBER
	  {
	     int is_signed;	     /* Set for integer formats if it is signed. */
	     int is_float;	     /* Set if we only have float, not double. */
	     double min_val, max_val;/* Range for numbers. */
	     DIALOG *result_object;  /* DIALOG object to display result in. */
	  } ADIME_EDIT_NUMBER;

       The  `result_object´  will be used to display the result of the expres‐
       sion.  There is an `adime_d_calc_edit_result_proc´ object type which is
       designed	 to  be	 used  as `result_object´, but you may of course write
       your own object to take care of this. Whenever  the  user  changes  the
       text  in	 the `adime_d_double_calc_edit_proc´, the result is printed to
       the `dp´ field of `result_object´; hence you must have set the dp field
       of  `result_object´  to	a  text buffer with enough space (256 bytes is
       safe). The `result_object´ will then be sent a `MSG_DRAW´ message  with
       the  `c´ parameter set to 2 if there is an error in the expression or 1
       if it is ok.

SEE ALSO
       adime_d_calc_edit_result_proc(3), adime_d_int_calc_edit_proc(3)

Adime				 version 2.2.1adime_d_double_calc_edit_proc(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net