Recent

Author Topic: [SOLVED] SelectDirectoryDialog change dialog style  (Read 6594 times)

BenJones

  • Full Member
  • ***
  • Posts: 121
[SOLVED] SelectDirectoryDialog change dialog style
« on: October 03, 2011, 07:39:16 pm »
Hi I have two buttons and a SelectDirectoryDialog1, I set in the options for SelectDirectoryDialog1 ofOldStyleDialog to true
I have this for my first button that it shows the dialog without the create folder button.

Code: [Select]
  if SelectDirectoryDialog1.Execute then
  begin
    txtSource.Text := IncludeTrailingBackslash(SelectDirectoryDialog1.FileName);
  end; 


My question is how can I in my second button to show the dialog with the create folder button, I know you must have to do something with the dialog options in the code but I have no idea can someone show me an example thanks.
« Last Edit: October 05, 2011, 11:32:26 pm by BenJones »
When Your Dreams Come True.

BenJones

  • Full Member
  • ***
  • Posts: 121
Re: SelectDirectoryDialog change dialog style
« Reply #1 on: October 05, 2011, 11:31:30 pm »
Ok found out the problum I needed to set the dialog options.

Code: [Select]
 
 //Adds the create folder button to the dialog
  SelectDirectoryDialog1.Options := [ofCreatePrompt];


When Your Dreams Come True.

 

TinyPortal © 2005-2018