OpenFileRequester

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

OpenFileRequester

Post by IdeasVacuum »

PB 4.51 x86 WinXP32 Sp3

If the OpenFileRequester is the only Form in your app, it defaults to the top-left of the screen. I would like it to default to center screen, or optionally be able to input x/y location values.

Code: Select all

                               sPattern.s = "Text Files (*.TXT *.txt)|*.TXT;*.txt"
                            sDefaultDir.s = "C:\"
                       iPatternPosition.i = 0
                                   sMsg.s = "Browse to file to be processed"
                      sImportFolderPath.s = OpenFileRequester(sMsg, sDefaultDir, sPattern, iPatternPosition)

End
IdeasVacuum
If it sounds simple, you have not grasped the complexity.