Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Input_Library v2.00 Component Reference
|
|
[ TDIPropRange::PropHeader ]
[ next: Size ]
[ prev: Min ]
__published:
__property TDIPropHeader* PropHeader = { read=FGetPropHeader, write=FSetPropHeader, default=NULL };
TDIPROPRANGE::PROPHEADER
[ component property ]
- Description
The PropHeader property can be used to link the TDIPropRange to a TDIPropHeader component using the Object Inspector or equivalent runtime code, and is used to access data inside the DIPROPHEADER structure that exists inside a DIPROPRANGE structure in a structure-in-structure relationship.
Normally in DirectX, you must setup the entire DIPROPRANGE structure including it's DIPROPHEADER structure according to specific rules. Upon linking a TDIPropHeader component to a TDIPropRange, much of the work has already been performed, but you still need to setup both the TDIPropHeader::Obj and the TDIPropHeader::How properties.
For Example :-
void __fastcall Form1::Button1Click(TObject* Sender)
{
DIPropHeader1->How = DIPH_DEVICE;
DIPropHeader1->Obj = 0;
DIPropRange1->Min = -1000;
DIPropRange1->Max = 1000;
DIPropRange1->PropHeader = DIPropHeader1;
Dx_InputDevice1->SetProperty( DIPROP_RANGE, DIPropRange1 );
}
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|