1 (edited by AD1408 2017-04-21 08:56:07)

Topic: Misc. Questions

1. How can I copy selected cell value to clipboard. Currently right click menu/copy copies to whole row.

https://s1.postimg.org/r6galfxcf/zzzzz_Temp23.png

For instance with right click on cell with a value wwww, I only want to copy cell value   wwww  to the clipboard. Is it possible?


2. On image below, beside clicking on OK button with mouse, how can I also click on Enter key on keyboard, associating button OK click to keyboard?

https://s21.postimg.org/ccvu446sn/zzzzz_Temp24.png


The following cap of MVD script find dialog illustrates better what exactly I'm trying to do. User can click on Find Next button or click on keyboard Enter key when there is something to find typed in:
https://s8.postimg.org/cux9z6ebp/zzzzz_Temp26.png


3. Spin boxes on time component doesn't work for me. What am I missing?
https://s14.postimg.org/enbpi2bm9/zzzzz_Temp25.png

Adam
God... please help me become the person my dog thinks I am.

Re: Misc. Questions

1. You can copy to clipboard text of cell if you hold Ctrl button and click on cell.


2. I think you do something wrong, why you want to do?


3. Please describe in more details, what exactly don't work?

Dmitry.

Re: Misc. Questions

1. Thanks... It would be handy if "ctrl+click" on cell added to tGrid right click menu as "Copy selected cell" in future to MVD.


2. The following cap of MVD script find dialog illustrates better what exactly I'm trying to do. User can click on Find Next button or click on keyboard Enter key when there is something to find typed in:
https://s8.postimg.org/cux9z6ebp/zzzzz_Temp26.png


3. Spin boxes / buttons on time component doesn't work for me. What am I missing?
https://s21.postimg.org/ydbzz5oif/zzzzz_Temp27.png

Adam
God... please help me become the person my dog thinks I am.

Re: Misc. Questions

Adam, for number 2 you can place the following line in the field "Find What" OnKeyDown event:

If Key = 13 then Form1.FindNext_Button.Click;

For number 3 you need to click inside the time field on one of the time elements (hour, minute, or second) then click on the arrows.

Re: Misc. Questions

Thank you very much EHW......


I also wanted to disable find next button (OK button in my case) with the following. Disable part worked but not enable part:

procedure frmEnterPassw_OnShow (Sender: string; Action: string);
begin
  if frmEnterPassw.edPassword.Text = '' then
      begin
      frmEnterPassw.Button1.Enabled := False;
      end else
      begin
      frmEnterPassw.Button1.Enabled := True;
      end;
end;
Adam
God... please help me become the person my dog thinks I am.

Re: Misc. Questions

Place your If statement in the password field (edPassword) OnChange event.

Re: Misc. Questions

Thanks a lot EHW......


Mission accomplished as below:

procedure frmEnterPassw_OnShow (Sender: string; Action: string);
begin
  frmEnterPassw.Button1.Enabled := False;
end;

procedure frmEnterPassw_edPassword_OnChange (Sender: string);
begin
  if frmEnterPassw.edPassword.Text = '' then
      begin
      frmEnterPassw.Button1.Enabled := False;
      end else
      begin
      frmEnterPassw.Button1.Enabled := True;
      end;
end;
Adam
God... please help me become the person my dog thinks I am.

Re: Misc. Questions

3. Spin boxes / buttons on time component doesn't work for me. What am I missing?
https://s21.postimg.org/ydbzz5oif/zzzzz_Temp27.png


First you should select what you want change, hours, minutes or seconds.

Dmitry.