Forum > LCL

Change SaveDialog (add controls)

(1/1)

Yakumo500:
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:

--- Quote from: Yakumo500 on November 17, 2010, 11:23:26 am ---Hi,Is it possible to change the SaveDialog under Windows and Linux like this

--- End quote ---
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?


--- Quote from: Yakumo500 on November 17, 2010, 11:23:26 am ---I need this for a text editor where you can choose between UTF8 and ANSI encoding.

--- End quote ---
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:
Well, thanks.
I think I will save in UTF8 as default and add a menu entry under export to save as an ansi file.

Navigation

[0] Message Index

Go to full version