Author Topic: Getfiled dialog box problem  (Read 1382 times)

0 Members and 1 Guest are viewing this topic.

CatDance

  • Newt
  • Posts: 57
Getfiled dialog box problem
« on: September 13, 2021, 02:12:03 AM »
when dialog box is called using below ...

Code - Auto/Visual Lisp: [Select]
  1. (setq pGDF (getfiled "Select a TRS file to Load A Saved Game" n/Path "txt" 8))
  2.  
  3.  

(1)  How to make it stay focus in the folder (of filenames) and NOT at the key-in of filename.
Becos when I click a file (other than the 1st filename) it always display the 1st filename at the key-in filename box.
A must-read book: Amazing story how Bill + Paul started Microsoft and history of computer revolution.
https://www.amazon.com/Hard-Drive-Making-Microsoft-Empire/dp/0887306292

Brief history of Microsoft
https://www.youtube.com/watch?v=BLaMbaVT22E

tombu

  • Bull Frog
  • Posts: 288
  • ByLayer=>Not0
Re: Getfiled dialog box problem
« Reply #1 on: September 13, 2021, 10:06:13 AM »
Why is it displaying "lsp" files when "txt" was specified as the extension?
Tom Beauford P.S.M.
Leon County FL Public Works - Windows 7 64 bit AutoCAD Civil 3D

Crank

  • Water Moccasin
  • Posts: 1503
Re: Getfiled dialog box problem
« Reply #2 on: September 13, 2021, 01:20:18 PM »
This is a bug that exists since Windows7. You can use DosLib in stead:
Code: [Select]
(dos_getfiled "Select a TRS file to Load A Saved Game" n/Path "Saved game files (*.txt)|*.txt")or:
Code: [Select]
(dos_getfilenav "Select a TRS file to Load A Saved Game" n/Path "txt" 8)
Vault Professional 2023     +     AEC Collection

CatDance

  • Newt
  • Posts: 57
Re: Getfiled dialog box problem
« Reply #3 on: September 13, 2021, 03:48:11 PM »
Why is it displaying "lsp" files when "txt" was specified as the extension?

just an example to show where the focus area
A must-read book: Amazing story how Bill + Paul started Microsoft and history of computer revolution.
https://www.amazon.com/Hard-Drive-Making-Microsoft-Empire/dp/0887306292

Brief history of Microsoft
https://www.youtube.com/watch?v=BLaMbaVT22E

CatDance

  • Newt
  • Posts: 57
Re: Getfiled dialog box problem
« Reply #4 on: September 13, 2021, 03:51:13 PM »
This is a bug that exists since Windows7. You can use DosLib in stead:
Code: [Select]
(dos_getfiled "Select a TRS file to Load A Saved Game" n/Path "Saved game files (*.txt)|*.txt")or:
Code: [Select]
(dos_getfilenav "Select a TRS file to Load A Saved Game" n/Path "txt" 8)

I try to write a dialog box for the getfiled.
I have not written a line of lisp for about 7 years. Now my head is almost empty (forgotten most of it). Have a difficult time writing dialog box now.
A must-read book: Amazing story how Bill + Paul started Microsoft and history of computer revolution.
https://www.amazon.com/Hard-Drive-Making-Microsoft-Empire/dp/0887306292

Brief history of Microsoft
https://www.youtube.com/watch?v=BLaMbaVT22E