[MSEide-MSEgui-talk] Some change in mseconst.pas...

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[MSEide-MSEgui-talk] Some change in mseconst.pas...

fredvs
Hello Martin.

May I propose to  change some values in mseconst.pas ?

If yes, here what I use:

en_modalresulttext: defaultmodalresulttextty = (...
'Y&es all' (vs All), ...)

en_modalresulttextnoshortcut: defaultmodalresulttextty =
'Yes all' (vs All), ...)

Included  mseconst.pas modified.

mseconsts.gz
<http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/mseconsts.gz>  

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Some change in mseconst.pas...

mse
Administrator
On Monday 15 January 2018 17:52:57 fredvs wrote:

> Hello Martin.
>
> May I propose to  change some values in mseconst.pas ?
>
> If yes, here what I use:
>
> en_modalresulttext: defaultmodalresulttextty = (...
> 'Y&es all' (vs All), ...)
>
> en_modalresulttextnoshortcut: defaultmodalresulttextty =
> 'Yes all' (vs All), ...)
>
> Included  mseconst.pas modified.
>
> mseconsts.gz
> <http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/mseconsts.gz>
>
git master d3190f73d348d5656e557260480b4d990c7292cb has mr_yesall.

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Some change in mseconst.pas...

fredvs
Hello Martin.

In the close confirmation dialog of MSEide, the Button "All" is still there
(in place of "Yes all").

See picture:
<http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/yes_all.png>

;-(

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Some change in mseconst.pas...

mse
Administrator
On Monday 22 January 2018 15:14:12 fredvs wrote:
> Hello Martin.
>
> In the close confirmation dialog of MSEide, the Button "All" is still there
> (in place of "Yes all").
>
> See picture:
> <http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/yes_all.png>
>
You can change it by using mr_yesall instead of mr_all.

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Some change in mseconst.pas...

fredvs
> You can change it by using mr_yesall instead of mr_all.

Ha ok, so, in msewidgets.pas --->

function confirmsavechangedfile(const filename: filenamety;
         out modalresult: modalresultty; multiple: boolean = false):
boolean;
begin
 with stockobjects do begin
  if multiple then begin
   modalresult:= showmessage(captions[sc_file]+' '+filename+' '+
                  captions[sc_is_modified_save],captions[sc_confirmation],
                   [mr_yes,mr_yesall,mr_no,mr_noall,mr_cancel],mr_yes);
  end
  else begin
   modalresult:= showmessage(captions[sc_file]+' '+filename+' '+
                  captions[sc_is_modified_save],captions[sc_confirmation],
                   [mr_yes,mr_no,mr_cancel],mr_yes);
  end;
 end;
{
 if multiple then begin
  modalresult:= showmessage('File '+filename+' is modified.
Save?','Confirmation',
                  [mr_yes,mr_yesall,mr_no,mr_noall,mr_cancel],mr_yes);
 end
 else begin
  modalresult:= showmessage('File '+filename+' is modified.
Save?','Confirmation',
                  [mr_yes,mr_no,mr_cancel],mr_yes);
 end;
}
 if modalresult = mr_windowclosed then begin
  modalresult:= mr_cancel;
 end;
 result:= modalresult in [mr_yes,mr_yesall];
end;

...

Included updated msewidgets.pas.
msewidgets.gz
<http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/msewidgets.gz>  

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
mse
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Some change in mseconst.pas...

mse
Administrator


On 01/22/2018 10:39 PM, fredvs wrote:
>> You can change it by using mr_yesall instead of mr_all.
>
> Ha ok, so, in msewidgets.pas --->
>
> function confirmsavechangedfile(const filename: filenamety;
>          out modalresult: modalresultty; multiple: boolean = false):
> boolean;

Please make your own function variant, I like the 'all' button more than
the 'yes all' button.

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Reply | Threaded
Open this post in threaded view
|

Re: [MSEide-MSEgui-talk] Some change in mseconst.pas...

fredvs
> Please make your own function variant.

OK, done. ;-)

> I like the 'all' button more than the 'yes all' button.

Ha, if it is something about love, there is no cure. ;-)

The question of the dialog box is:

"File /mydirectory/mymodifiedfile.pas is modified. Save?"

Thanks Martin and yes_all for love.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk