201

(10 replies, posted in General)

Thank you very much Dmitry...........


Truly appreciated..........


I put your example script between last

begin
Form1.Image1.PasteBitmapFromClipboard;
end.

obviously I'm implementing incorrectly as it didn't work.

When using custom forms for treeview top and child records, I like to hide Treeview right click pop-up menu.
Followings didn't work:

form1.TreeView1.dbpopupmenu.items[0].visible := false;
...........


form1.TreeView1.dbPopupMenu.Items.Find('Add child record').visible := false;
form1.TreeView1.dbPopupMenu.Items.Find('Add top record').visible := false;
form1.TreeView1.dbPopupMenu.Items.Find('Edit record').visible := false;
form1.TreeView1.dbPopupMenu.Items.Find('Delete record').visible := false;

any help please...

203

(10 replies, posted in General)

Hi Dmitry,


Came so far to v6... I still love MVD... Please keep up the GOOD WORK.
Isn't it time to add a PASTE button to image component?
I hope you can add this feature very soon as I need it with my current project.


Alternatively, is there a script to add the paste feature to image component that I can use now?

204

(6 replies, posted in General)

Hi Dmitry,


Thank you very much...........
Truly appreciated........

205

(6 replies, posted in General)

DriveSoft wrote:

Why you use additional field "childName"?
Just use the same field "Name" for child records.


I was trying to separate top and child records so that I could add a child record using custom form with buttons without a success. I still don't know how to do it?

206

(6 replies, posted in General)

Hi Dmitry,


Great stuff....
Thank you very much....


Only missing part is replacing system tree child record form seems to be missing.
Tried to explain further with attached image

207

(6 replies, posted in General)

1. I like to access treeview right click menu functions such as add /edit via buttons and custom forms.


2. I like to click on top or child record to select a tap page.


However, I cannot... any help please?



Sample project attached.

208

(2 replies, posted in General)

Hi EHW,


It worked fine.
Thank you very much...............

209

(2 replies, posted in General)

Hi All...


Trying to prevent adding new record without selecting a treeview node. Could somebody correct the following script please?


procedure Form1_btnMainTaskADD_OnClick (Sender: string; var Cancel: boolean);
begin
If (Form1.TreeView4.RowCount > - 1) and (Form1.TreeView4.SelectedRow = False) then
   Begin
   MessageBox('Please select a Tree Node first.','Error',MB_OK+MB_ICONERROR);
   Cancel := True;
   Exit;
   End;
end;

210

(2 replies, posted in General)

Hi Derek,

Great stuff as usual..........
Thank you very much.........

211

(2 replies, posted in General)

How can I insert
1. Current date
2. Current time
3. Current date and time

with button click event at cursor point in
a. Memo component
b. RTF component
?

212

(8 replies, posted in General)

Hi Guys,


Using Derek's solution with slight changes. Usually, that's what I use (workaround) when I want buttons with images (icon)


1. Changed bevel type to have different pressed effect by using 2 panels top each other
2. Added mouse over color to button when mouse moves over to the button label. It can be applied to whole panel (button) instead of just label.

213

(8 replies, posted in General)

k245 wrote:

You can pin the window of any application inside the MVD application. See an example for a calculator. It can also be used for the browser.

procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
var
    h: integer;
    Max: integer;
begin
      // run calculator
      OpenFile('calc.exe');

      // finding window's calculator
      h := 0;
      Max := 20;
      while (h = 0) and (Max > 0) do
      begin
          h := FindWindow('', 'Calculator'); // find window using caption
          Dec(Max);
          Sleep(50);
      end;

      // move the calculator to the Form1
      if h <> 0 then
      begin
          SetWindowPos( h, 0, 10, 10, 0, 0, SWP_NOSIZE); // set position x=10, y=10
          SetParent( FindWindow('', 'Calculator'), Form1.Handle);
      end;
end;

P.S. It's not work on Win10


http://myvisualdatabase.com/forum/viewtopic.php?id=2957



Thanks a lot guys...
I couldn't use the above script to pin a browser on to a form1 or panel1
I'd prefer pin to panel


Here is a sample project for a kind soul to make it work

214

(8 replies, posted in General)

Is it possible to run default web browser on a MVD form?


Not looking for embedding a web browser; just want to run already installed web browser such as firefox, google chrome, opera etc., on MVD form.

215

(2 replies, posted in General)

Hi Derek,
As always perfect solution.
Thank you very much........
Truly appreciated............

216

(2 replies, posted in General)

I have a tree and table grid for displaying running balance.


What I like to do and couldn't is that each tree items (nods) has their own running balance to display on one table grid.


For instance:
If I select the Main01 node on treeview, table grid should display only Main01  running balance with its transactions;
If I select the Child01 node on treeview, table grid should display only Child01 running balance with its transactions and so on.


Please see the attached sample project, which displays same running balance.

217

(2 replies, posted in General)

Thank you very much Dmitry..............
Truly appreciated ...........................

218

(2 replies, posted in General)

Is it possible to change RTF Component default font from arial to another font such as Segoe UI?

219

(3 replies, posted in General)

Hi EHW,


Thank you very much.....
Truly appreciated............

220

(3 replies, posted in General)

frmNotes.edRR.value := ('1 : '(frmNotes.edPipsGained.value)/(frmNotes.edStop.Value));

The above seems to be not correct.
Trying to calc. and display risk:reward as:

1 : 4.6
or
1 : 5
or
1 : 6.45
and so on

221

(15 replies, posted in General)

Hi Dmitry,


I have one issue that I cannot solve.
In your example " TreeView change position.zip " treview right click pop-up menu for adding top, child etc item takes us to frmOrg where there is hidden record count field. However, at my end same pop-up menu takes me some default window containing 1 field "Enter value". Without record count field on frmOrg, moving nodes doesn't work.
I'm using MVD 5.6.


Edit:
Sorry Dmitry, It seems that I missed to associate the form via treview form property

222

(15 replies, posted in General)

Great stuff Dmitry..................
Thank you very much......................
Truly appreciated..................................

223

(15 replies, posted in General)

Hi Dmitry,


For the time being, could you post a sample project that demonstrates moving treeview component nodes up-down with button click event please. At least same level nodes move.

224

(6 replies, posted in General)

Hi Dmitry,

Now it works.
Thank you very much.....
Truly appreciated...........

225

(6 replies, posted in General)

DriveSoft wrote:

Please attach your project.


Here it's: