Announcement

Collapse
No announcement yet.

Dialog Control Messages

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

  • Dialog Control Messages

    I understand from the PB/DLL v6 manual that after creating objects using the CONTROL ADD, these can be changed by send messages using CONTROL SEND.

    1. Can I change the font,colour, etc of labels?
    2. Is there a list of parameters that can be used with the dialog objects?
    3. Do you have an example?

  • #2
    I understand from the PB/DLL v6 manual that after creating objects using the CONTROL ADD, these can be changed by send messages using CONTROL SEND.
    DDT essentially encapsulates the standard Windows controls. As such, you can send most standard control messages and process most notification messages as described in the SDK (the Win32 programmer documentation available via MSDN - http://msdn.microsoft.com ). Most good API reference books, such as Charles Petzold's "Programming Windows" and Rector/Newcomers's "Win32 Programming" describe the techniques of handling controls and messages, and therefore most of this information is applicable to DDT.

    1. Can I change the font,colour, etc of labels?
    Yes, in your dialog's CALLBACK function, intercept %WM_CTLCOLORxxx messages. The SMTP.BAS example shipped PB/DLL demonstrates this process. There is an update of this file available from ftp://ftp.powerbasic.com/pub/pbdll32
    Also, a search of this BBS for "WM_CTLCOLOR" should also provide a host of examples.

    2. Is there a list of parameters that can be used with the dialog objects?
    See my initial reply above.

    3. Do you have an example?[/B]
    See my second reply above.



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

    Comment

    Working...
    X