Recent

Author Topic: Change SaveDialog (add controls)  (Read 5569 times)

Yakumo500

  • New Member
  • *
  • Posts: 30
Change SaveDialog (add controls)
« on: November 17, 2010, 11:23:26 am »
Hi,
Is it possible to change the SaveDialog under Windows and Linux like this -> http://www.askdavetaylor.com/0-blog-pics/notepad-save-as-html.png (I mean the extra combobox at the bottom).

I have found the source code for Delphi here -> http://www.michael-puff.de/Programmierung/Delphi/Code-Snippets/OpenDlg.shtml (German) but I'm not sure where I can find all these functions in Lazarus and if these functions exist for Linux.

I need this for a text editor where you can choose between UTF8 and ANSI encoding.

ivan17

  • Full Member
  • ***
  • Posts: 173
Re: Change SaveDialog (add controls)
« Reply #1 on: November 17, 2010, 03:14:14 pm »
Hi,Is it possible to change the SaveDialog under Windows and Linux like this
save dialog is not a lcl form it is provided by system (widgetset, that is). yes it can be modified but there is NO platform-independent way.

you can change everything in a windows-save dialog using native winapi procedures. and you can probably change kde-style save dialog through qt natives. and gnome-style dialog by using gtk2 functions... dissuaded yet?

I need this for a text editor where you can choose between UTF8 and ANSI encoding.
i'd go for two dialogs (one for encoding, one for filename) or two menu items in file menu. not a fancy solution, but simple and fully cross-platform.

Yakumo500

  • New Member
  • *
  • Posts: 30
Re: Change SaveDialog (add controls)
« Reply #2 on: November 17, 2010, 06:32:39 pm »
Well, thanks.
I think I will save in UTF8 as default and add a menu entry under export to save as an ansi file.

 

TinyPortal © 2005-2018