You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lets's make FileDialog more customizible for buttons. I suggest adding to the constructor the label for Cancel button and the ability to change the order of the buttons ([ Cancel ][ Open ] -> [ Open ][ Cancel ] -> [ Open ][ Done ]):
`..., ustring prompt, ustring cancel, bool buttonsReverseOrder,...'
[...]
And the ability to change the order of the buttons ([ Wait no! ][ Lets go! ] -> [ Lets go! ][ Wait no! ])
// does not exist
// fd.Style.ButtonsReverseOrder = true;
I'm a fan of making it more customizable but not via a constructor. Constructors should be parameter-less. @tig
Most of what you describe can be accomplished with the Style class. But there are improvements that could be made. I've put what works at the top of this code sample and what we could enable in the bottom (in comments).
fd.Style.OkButtonText="Lets go!";fd.Style.ModifiedColumnName="Date";fd.Title="Blerg";// does not exist// fd.Style.OkCancelText = "Wait no!";// currently has internal setters (so you cannot do this). Also needs slight adjustment// in order of initialization so user changes would take effect//fd.Style.PathCaption = "Pick a file";//fd.Style.SearchCaption = "Find yer stuff";
FileDialog with custom title, ok message and table column name
The text was updated successfully, but these errors were encountered:
tznind
changed the title
> Lets's make FileDialog more customizible for buttons. I suggest adding to the constructor the label for Cancel button and the ability to change the order of the buttons ([ Cancel ][ Open ] -> [ Open ][ Cancel ] -> [ Open ][ Done ]):
Make FileDialog (v2) more customizible for buttons
Sep 15, 2023
@Likarion please can you confirm that the linked PR #2863 exposes all the settings you are wanting.
Also it is worth noting that the Path and Search strings are setup for localization (default values are in strings.resx) so those can also be changed there if it is a language thing (i.e. by creating a localized language resx file).
@Likarion
Most of what you describe can be accomplished with the Style class. But there are improvements that could be made. I've put what works at the top of this code sample and what we could enable in the bottom (in comments).
FileDialog with custom title, ok message and table column name
Originally posted by @tznind in #2259 (comment)
The text was updated successfully, but these errors were encountered: