Recent

Author Topic: tselectdirectory dialog bizzare behaviour  (Read 945 times)

Graham Saint

  • New Member
  • *
  • Posts: 14
tselectdirectory dialog bizzare behaviour
« on: January 19, 2023, 07:14:01 am »
I am running Lazarus 2.2.4 on Windows 10 64 bit. I've created a form with a select directory dialog. The only property I've set is the initial directory (C:\). Running the program under the IDE with standard options results in a form popping up with nothing in it. There are no buttons for select or cancel and the form can't be closed. The only option is to terminate the program from inside the ide.
If I chose the option "Run without debugger" or run the compiled application directly the dialog works as expected except that the initial directory is appended to the directory selected. eg if you select "C:\sqlite" the directory select operation returns "C:\sqllite.C:\"
Looking at previous posts it seems others have experienced various weirdness with this dialog but I thought these had all been fixed.   
Is there a way around these issues or is this just something to be lived with?
Graham

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: tselectdirectory dialog bizzare behaviour
« Reply #1 on: January 19, 2023, 09:23:09 am »
Lazarus 2.2.4 (rev lazarus_2_2_4) FPC 3.2.2 x86_64-win64-win32/win64

Tested on Windows 10, no problems here.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: tselectdirectory dialog bizzare behaviour
« Reply #2 on: January 19, 2023, 09:30:41 am »
ps: on first start, when "Execute" the dialog, it needs a time that the dialog builds up, just be a little patient.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

Graham Saint

  • New Member
  • *
  • Posts: 14
Re: tselectdirectory dialog bizzare behaviour
« Reply #3 on: January 21, 2023, 10:04:39 am »
Hi KodeZwerg,
My Lazarus matches yours exactly. Just tried it again, waited a bit, still same result. Attached is screen shot of when I invoke the Tselectdirectory dialog under the IDE with the debugger enabled

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: tselectdirectory dialog bizzare behaviour
« Reply #4 on: January 21, 2023, 10:56:04 am »
Here I get also the white screen but it build up slowly until all is like it should be.
I do not exact know what's the problem, I am sorry!
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

wp

  • Hero Member
  • *****
  • Posts: 13401
Re: tselectdirectory dialog bizzare behaviour
« Reply #5 on: January 21, 2023, 10:57:54 am »
Switch to the FPDebugger, it does not have these issues that are typical of gdb.

 

TinyPortal © 2005-2018