~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to packages/extra/forms/demo/secretinput.pp

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
program secretinput;
2
 
{ Demo showing secret input fields }
3
 
 
4
 
uses xforms,strings;
5
 
 
6
 
var form : PFL_FORM;
7
 
   but, password1, password2, info, ret : PFL_OBJECT;
8
 
   str : string;
9
 
 
10
 
begin
11
 
 
12
 
  fl_initialize(@argc, argv, 'FormDemo', nil, 0);
13
 
 
14
 
  form := fl_bgn_form( FL_FLAT_BOX,400,300);
15
 
    password1 := fl_add_input(FL_SECRET_INPUT,140,40,160,40,'Password 1:');
16
 
    password2 := fl_add_input(FL_SECRET_INPUT,140,100,160,40,'Password 2:');
17
 
    info := fl_add_box(FL_SHADOW_BOX,20,160,360,40,'');
18
 
    but := fl_add_button( FL_NORMAL_BUTTON,280,240,100,40,'Quit');
19
 
  fl_end_form;
20
 
 
21
 
  fl_show_form(form, FL_PLACE_MOUSE,FL_NOBORDER,nil);
22
 
  repeat
23
 
    ret := fl_do_forms;
24
 
    str:='Password 1 is: '+strpas(fl_get_input(password1));
25
 
    str:=str+' , Password 2 is: '+strpas(fl_get_input(password2))+#0;
26
 
    fl_set_object_label(info,@str[1]);
27
 
  until (ret = but);
28
 
  fl_hide_form(form);
29
 
end.
30
 
{
31
 
  $Log: secretinput.pp,v $
32
 
  Revision 1.3  2003/10/27 15:48:13  peter
33
 
    * renamed forms unit to xforms to prevent conflict with Forms
34
 
      from the LCL
35
 
 
36
 
  Revision 1.2  2002/09/07 15:42:57  peter
37
 
    * old logs removed and tabs fixed
38
 
 
39
 
  Revision 1.1  2002/01/29 17:55:02  peter
40
 
    * splitted to base and extra
41
 
 
42
 
}