WPForms

  • I am looking at the trial version of this software. It would be great to be able to create a data-entry form that looks just like the paper form. I noticed that the edit style of an object can be dropdown or dropdown list. Does this mean I can have a combobox available for the user to choose data from? If so, how would I implement this?
    Thanks!

    • Offizieller Beitrag

    WPForm supports edit fields which can have an optional dropdown, spin or 'elipisis' button.

    This feature is controlled by the property InplaceEditorMask and InplaceEditorParams.

    To create an editable field simply first create the text line, then select it and in some sort of ButtonClick event you can set the parameters:

    Code
    procedure TForm1.ApplyEditStylesClick(Sender: TObject);
    begin
      if FD.SelectedObject is TWPFGGraphicText then
      begin
        if EditStyle.ItemIndex >= 0 then
          TWPFGGraphicText(FD.SelectedObject).ExEditStyle := TWPExEditStyle(EditStyle.ItemIndex);
        TWPFGGraphicText(FD.SelectedObject).InplaceEditorMask := EditMask.Text;
        TWPFGGraphicText(FD.SelectedObject).InplaceEditorParams := EditParam.Text;
      end;
    end;

    EditStyle is a combobox with this items:
    wpfsStandard
    wpfsQuestionMark
    wpfshUpDown
    wpfshEllipsis
    wpfshDropdown
    wpfshDropdownList
    wpfshPlusMinus
    wpfshCalculator
    wpfshCalendar

    EditMask can be !90/90/00;1;_ - it is optional

    EditParam controls the available options for a drop down, for example:
    1~10;1
    1~100;5 EURO
    a,b,c,d,e,f,g,h,i
    "1,00","2,00","3,55"

    I hope this helps, Julian