Announcement

Collapse
No announcement yet.

Show a file's attribute dialog

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

  • Michael Mattias
    replied
    You get two of your five points back the easy way (no second thread of execution required) by changing ONE WORD in your code

    AS IT IS
    Code:
                    shInfo.hWnd = CBHNDL
    ELIMINATING "WHITE SQUARE SYNDROME"
    Code:
                    shInfo.hWnd = GetDesktopWindow()
    That works for the properties, but not for the SHELL



    MCM
    Last edited by Michael Mattias; 23 Sep 2009, 06:28 PM.

    Leave a comment:


  • Michael Mattias
    replied
    That's a nice demo Edwin.

    I added 'file properties dialog' as a tag, since you didn't include the word "properties" in the subject.

    And only because you are an experienced programmer who should know better, I have to give you minus-five points for running the shelled program in the same thread of execution as the GUI, resulting in a "white square" when you drag the windows around.

    You could fix that by simply adding a comment that "executing shell should be run in a separate thread of execution. Exercise left to user "

    MCM

    Leave a comment:


  • Edwin Knoppert
    replied
    Is this ok?

    http://www.powerbasic.com/support/pb...921#post323921

    Had to dive into the DDT syntax again..

    Leave a comment:


  • Edwin Knoppert
    replied



    I'll do.. and even better.. soon

    Leave a comment:


  • Michael Mattias
    replied
    Edwin, I was sure you were going to post that codeguru function converted to PB in the Source code forum with nice searchable title and some useful tags.

    Ok, you're a busy guy, so tell you what, here's half the job for you ...a 'WinMain' for the demo...

    Code:
    FUNCTION PbMain() AS LONG
    
      MyFile = "C:\My Documents\jan_schedule.txt"    <<<< replace with your file here!
      CALL    DisplayFileProperties (MyFile) 
    
    END FUNCTION
    MCM

    Leave a comment:


  • Edwin Knoppert
    replied
    This is now being used here (with exe):

    http://www.hellobasic.com/cgi-bin/fo...num=1253559055

    Leave a comment:


  • Edwin Knoppert
    replied
    Thanks

    Leave a comment:


  • Michael Mattias
    replied
    http://www.codeguru.com/vb/controls/...icle.php/c3019

    (Google: "File properties dialog")

    MCM

    Leave a comment:


  • Edwin Knoppert
    started a topic Show a file's attribute dialog

    Show a file's attribute dialog

    Afaik this was possible.
    I would like to show the same dialog as when you do via Windows Explorer fileproperties.

    ?
Working...
X