I have a object in delphi that looks like:
object DXDraw: TDXDraw
Left = 0
Top = 0
Width = 640
Height = 360
AutoInitialize = True
AutoSize = False
Display.BitCount = 16
Display.FixedBitCount = True
Display.FixedRatio = True
Display.FixedSize = False
Options = [doFullScreen, doAllowReboot, doWaitVBlank, doHardware,
doRetainedMode, doDrawPrimitive, doSelectDriver, doTexture,
doRGB, doMono]
SurfaceHeight = 360
OnInitialize = DXDrawInitialize
TabOrder = 1
Visible = False
OnClick = LbBackScreenClick
OnDblClick = DXDrawDblClick
OnDragDrop = FormDragDrop
OnDragOver = FormDragOver
OnKeyPress = EdFocusKeyPress
OnMouseDown = LbBackScreenMouseDown
OnMouseMove = LbBackScreenMouseMove
OnMouseUp = LbBackScreenMouseUp
end
I am trying to figure out how this would look like in ASM. In particular the Options. I found the enum table for it, but it just seems to be read over. I am interested in removing the doFullScreen flag.
There is no assembler code associated with .dfm form files. The properties in the .dfm file will be turned into a binary .dfm resource and then linked to the executable. At runtime the form persistence code loads the resource and processes its contents dynamically using RTTI.
Use a resource editor to see more. The form resources will appear under RCData | TMyForm for a form class named
TMyForm. You can then extract the resource from the executable and save it to disk. Use theconvertutility supplied with Delphi to convert it to text, passing-tto do that. Then edit the text .dfm. Then convert it back to binary using the-boption to convert. Then update the executable and you are done.And @Remy points out a much simpler solution. Use a resource editor that supports Delphi .dfm files, for example XN Resource Editor. That wraps up and shields you from all the details above.