Unit 'intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

ModifyProp

Modify the current parameters of a proportional gadget.

Declaration

Source position: intuition.pas line 4126

procedure ModifyProp(

  gadget: pGadget;

  window: pWindow;

  requester: pRequester;

  flags: LongWord;

  horizPot: LongWord;

  vertPot: LongWord;

  horizBody: LongWord;

  vertBody: LongWord

);

Arguments

gadget

  

A pointer to a proportional gadget

window

  

A pointer to the window containing the gadget or the window containing the requester containing the gadget.

requester

  

A pointer to a requester (may be nil if this isn't a requester gadget)

flags

  

Value to be stored in the Flags field of the TPropInfo

horizPot

  

Value to be stored in the HorizPot field of the TPropInfo

vertPot

  

Value to be stored in the VertPot field of the TPropInfo

horizBody

  

Value to be stored in the HorizBody field of the TPropInfo

vertBody

  

Value to be stored in the VertBody field of the TPropInfo

Description

Modifies the parameters of the specified proportional gadget. The gadget's internal state is then recalculated and the imagery is redisplayed in the window or requester that contains the gadget.

The requester variable can point to a requester structure. If the gadget has the GTYP_REQGADGET flag set, the gadget is in a requester and the window pointer must point to the window of the requester. If this is not the gadget of a requester, the requester argument may be nil.

Note: this function causes all gadgets from the proportional gadget to the end of the gadget list to be refreshed, for reasons of compatibility. For more refined display updating, use NewModifyProp().

ModifyProp() refreshing consists of redrawing gadgets completely. NewModifyProp() has changed this behavior.

See also

NewModifyProp

  

ModifyProp(), but with selective refresh.


Documentation generated on: 2021-07-30