EFI IFR STRING

From PhoenixWiki

Jump to: navigation, search

Defines the string question.

Prototype

#define EFI_IFR_STRING_OP 0x1C
typedef struct _EFI_IFR_STRING {  
  EFI_IFR_OP_HEADER       Header;
  EFI_IFR_QUESTION_HEADER Question;
  UINT8                   MinSize;
  UINT8                   MaxSize;
  UINT8                   Flags;
} EFI_IFR_STRING;

Members

Member Description
Header The sequence that defines the type of opcode as well as the length of the opcode being defined. Header.OpCode = EFI_IFR_STRING_OP.
Question The standard question header.
MinSize The minimum number of characters that can be accepted for this opcode.
MaxSize The maximum number of characters that can be accepted for this opcode.
Flags Flags which control the string editing behavior.
#define EFI_IFR_STRING_MULTI_LINE 0x01

If EFI_IFR_STRING_MULTI_LINE is set, it is a hint to the Forms Browser that multi-line text can be allowed. If it is clear, then multi-line editing should not be allowed.

Description

This creates a string question. The minimum length is MinSize and the maximum length is MaxSize characters.

An image may be associated with the question using a nested EFI_IFR_IMAGE.

There are two ways to specify defaults for this question: one or more nested EFI_IFR_ONE_OF_OPTION (lowest priority) or nested EFI_IFR_DEFAULT (highest priority).


Copyright (C) 2008 Phoenix Technologies Ltd. All Rights Reserved. Portions (C) 2007-2008 UEFI Forum, Inc. Used with permission.

Personal tools