Announcement

Collapse
No announcement yet.

Really Cool PBDLL7 Idea!

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

  • Really Cool PBDLL7 Idea!

    Hello,

    I was just thinking (I know, I know, you dont have to say it)
    What if PB extended the DDT to include plain windows, DWT!
    Here is a small example:

    Code:
    DIALOG NEW %NULL, "TestDialog", 1, 1, etc...
    WINDOW NEW %NULL, "TestWindow", 1, 1, etc...
    
    WINDOW SET CURSOR LoadCursor(%NULL, %IDC_ARROW)
    WINDOW SET ICON LoadIcon(%NULL, %IDI_APPLICATION)
    WINDOW SET BACKGROUND GetStockBrush(%GRAY_BRUSH)
    WINDOW SET ICONSM LoadIcon(%NULL, %IDI_APPLICATION)
    
    WINDOW GET SIZE CBHWND to x&, y&
    WINDOW SET SIZE CBHWND 640, 480
    
    CBHINSTANCE
    CBHWND
    
    DIALOG SET TEXT CBHNDL, "NewDialogText"
    WINDOW SET TEXT CBHWND, "NewWindowText"
    I hope I got my point across. I think this would really make
    PBDLL/WIN VERY useable for new/old users because it seems to be
    the natural evolution of DDT(well at least in my eyes). I think
    this would also make code much more readable and thus make it
    easier to debug. This would also mean the end of the dreaded
    WinMain function block, as it could be replaced by a few simple
    lines of code.

    Well, what do all of you say about this one?


    ------------------
    Cheers

    [This message has been edited by mark smit (edited July 05, 2000).]

  • #2
    Yes but at the end it will only get rid (hopefully) of the stupid windowclass declaration.
    This part makes the code allways a bit 'unreadable' (messy).

    The windows message loop/ tab order stuff is the hardest.
    ( i mean for controls in controls etc..)


    ------------------
    [email protected]
    hellobasic

    Comment

    Working...
    X