Results 1 to 6 of 6

Thread: SetDialogBoxMode and TForm

  1. #1

    SetDialogBoxMode and TForm

    the SetDialogBoxMode-command allows GDI-forms in fullscreen-mode. For example changing the D3DApp-Unit to

    function CD3DApplication.UserSelectNewDevice: HRESULT;
    var
    settingsDialog: CD3DSettingsDialog;
    begin
    if not m_bWindowed then
    begin
    m_pd3dDevice.SetDialogBoxMode(True)
    ..........


    works pretty well.

    Question: I would like to use VCL-Forms instead of resources, because it's much more comfortable to create them with the IDE. A simple MyForm.Showmodal is obviously not sufficient...
    Any ideas how to call the form?

    Carsten

  2. #2

    Re: SetDialogBoxMode and TForm

    Quote Originally Posted by Carsten
    the SetDialogBoxMode-command allows GDI-forms in fullscreen-mode. For example changing the D3DApp-Unit to

    function CD3DApplication.UserSelectNewDevice: HRESULT;
    var
    settingsDialog: CD3DSettingsDialog;
    begin
    if not m_bWindowed then
    begin
    m_pd3dDevice.SetDialogBoxMode(True)
    ..........


    works pretty well.

    Question: I would like to use VCL-Forms instead of resources, because it's much more comfortable to create them with the IDE. A simple MyForm.Showmodal is obviously not sufficient...
    Any ideas how to call the form?

    Carsten
    Not sure, this is exactly what I want to do as well! I posted a similar thread, and the sample reply to my thread works ok for a simple dialog, but I want to show a TForm.
    http://www.c5software.co.uk (site is being developed at the moment)

  3. #3

    SetDialogBoxMode and TForm

    I think, one of Clootie's DX8 DDraw-samples works with a TForm, but I have not checked it in detail yet.

    Carsten

  4. #4

    SetDialogBoxMode and TForm

    You need to do different things using different DirectX interfaces / Direct3D versions.
    There are only 10 types of people in this world; those who understand binary and those who don't.

  5. #5

    SetDialogBoxMode and TForm

    By request of forum users:
    Sample showing how to use VCL dialogs in Direct3D9 fullscreen mode available at mine site:
    http://clootie.narod.ru
    There are only 10 types of people in this world; those who understand binary and those who don't.

  6. #6

    SetDialogBoxMode and TForm

    For example changing the D3DApp-Unit to works pretty well.
    This is not guarantied to work, cos you should validate some rules: only 32bit or 16bit display modes are supported, back buffer must be lockable.
    There are only 10 types of people in this world; those who understand binary and those who don't.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •