Announcement

Collapse
No announcement yet.

DDT: lParam in WM_INITDIALOG not supported.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jcfuller
    replied
    Originally posted by E B Knoppert:
    Maybe you can give me a scanned DDT + DLB file?

    I don't understand? What is a DLB file?

    James


    ------------------

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Maybe you can give me a scanned DDT + DLB file?


    ------------------

    Leave a comment:


  • jcfuller
    replied
    Originally posted by E B Knoppert:
    There both good ideas.

    JC, did you had any luck with the 2.5 spread yet?

    Yes but only with SDK not DDT.

    James


    ------------------

    Leave a comment:


  • Lance Edmonds
    replied
    I have already submitted request(s) for DIALOG POST and CONTROL POST... Thanks anyway!

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Guest's Avatar
    Guest replied
    There both good ideas.
    I prefer the lParam on WM_CREATE or WM_INITDIALOG.

    The PROP comes close, calling the procedure also.
    Stil additional code required.

    Semen, your sollution might become really handy, i use DDT a lot for modal boxes, execution of things 'from' the dialog codeproc i allways solved by using postmessage, now i have a 'sendmessage'. (Or i make use of a thread)

    JC, did you had any luck with the 2.5 spread yet?

    Thanks,



    ------------------

    Leave a comment:


  • Semen Matusovski
    replied
    Edwin --
    What about Patrice Terrier's idea of direct call callback function ?
    For DDT it looks so:
    Code:
      #Dim All
      #Compile Exe
      #Register None
      #Include "WIN32API.INC"
     
      CallBack Function DlgCallBack
         Select Case CbMsg
            Case %WM_USER + 1: SetWindowText CbHndl, Str$(CbWparam) + Str$(CbLparam)
         End Select
      End Function
     
      Function PbMain
        Dim hDlg As Long
        Dialog New 0, "DDTExample",,, 120, 30, %WS_CAPTION Or %WS_SYSMENU To hDlg
        CallWindowProc CodePtr(DlgCallBack), hDlg, %WM_USER + 1, 25, 50
        Dialog Show Modal hDlg Call DlgCallBack
    End Function
    ------------------

    Leave a comment:


  • jcfuller
    replied
    EB,
    How about Get/SetProp ??

    James


    ------------------

    Leave a comment:


  • Guest's Avatar
    Guest started a topic DDT: lParam in WM_INITDIALOG not supported.

    DDT: lParam in WM_INITDIALOG not supported.

    I really needed this feature, it seems DDT doesn't use the dwInitParam (DialogBoxParam)
    Now i'm messing with postmessage and custom messagenr.
    I want a pointer to a structure somewhere else.

    Is their a way to do this with DDT in a more direct way?

    BTW, For the next release it should be handy to implement CONTROL POST. (< CONTROL SEND)

    Thanks,
Working...
X