1

(18 replies, posted in General)

Hello AD1408, Hello Sparrow

If you mean using only a drag and drop to use an image, sparrow's projetc makes the job.
Or have I misundestood your question ?
JB

2

(7 replies, posted in General)

Hello teco049, Hello sparrow
Try Lazarus.
Ask its user forum, it is very rich
JB

3

(7 replies, posted in General)

Hello teco049

MVD is knows how to create an XML file;

procedure Form1_Button4_OnClick (Sender: string; var Cancel: boolean);
var  Results: TDataSet;
begin
    SQLQuery('SELECT FirstName, LastName FROM person', Results);
    DataSetToXML(Results, 'd:\1.xml');
    Results.Free;
end;

Export via a dialog box :

procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
var Results: TDataSet;
     SaveDialog : TSaveDialog;
begin
     SaveDialog := TSaveDialog.Create(Form1);
     If SaveDialog.Execute then
     Begin
         SQLQuery('SELECT FirstName, LastName FROM person', Results);
         DataSetToXML(Results,(SaveDialog.FileName + '.xml'));
         Results.Free;
     end;
end;

JB

Hello quinnae, Hello Derek (how are you ?)
Hello
MVD is a great tool to create all the applications you want.
If you are starting with this wonder, you can also consult the different projects present in the Database examples tab from the general menu of the MVD site.
You will find most of the questions you will encounter there.
Otherwise, as Derek says, call for help for any problem: we will always come to help you (Derek and Sparrow are very good advice)
Good luck for your future projects
JB

Hello milworm

What is unfortunate (and many regret it) is that MVD is no longer developed, Dmitri, its creator, has moved on to other functions (but still in the field of programming).

There would be so many functions and plug-ins to implement that would make it even more efficient (graphic effects such as searches, a more efficient Treeview, etc.).

But even in its current state (version 6.1) MVD remains a superb tool for developing the most advanced applications.

JB

Hello milworm
Welcome to MVD forum.!
In MVD, effects on labels will be limited and reduced to the bare minimum.
An easy effect to achieve on a label is a kind of animation when you click on it (with a left +1 or 2 or x, you can have the impression that the button is sinking) but you will not go much further.
If you really want to make effects, you can create your label in a drawing program for the color, the font ... and create the same one with different characteristics to give a semblance of animation.
When you program an application, it is better to focus on the quality of the code than on this kind of ... gadgets.
Ask your future users, they will all tell you that they want the program to work perfectly first.
But don't take this as a criticism but you will see that in use, the user does not care that a button explodes in red when he presses it. It will amaze him once, but rarely twice.
JB

7

(3 replies, posted in General)

Hello sparrow, hello Derek

Very interesting project that of a vertical TV, moreover it is easy to improve.(for example to create a documentation, or a collection of snippets (of MVD tips for my part I have already made one with the classic MVD TV) and so on...
It would be interesting to mix with Derek's pagecontrol.
To dig

Have a good day
JB

8

(1 replies, posted in General)

Hi m;alin
For a media player, you coulld load the zip in attachment
JB

9

(8 replies, posted in General)

Hello negadi37

Using a program already made can be a solution
but if you really want to program your own application to manage any inventory, you can take inspiration from the project proposed by Dmitry:
MVD Home Page -> Database application -> Page 2 -> Equipment Inventory Database.
In fact, you will be able to customize your own application as you wish.
Do like this at first.
Otherwise I can to send you my own program, but I will rewrite it because it was written with an old version of MVD (v 2.5) and I will rewrite it with the latest version of MVD with all its new features.
Keep us informed
JB

10

(3 replies, posted in General)

Hello epancard
You won't be able to recreate GooglTranslate in MVD but you can call it from MVD.
you create a link to this address: https://translate.google.com/?hl=fr (here replace fr with the code of your native language) via the instruction (openUrl('.....;')
JB

11

(4 replies, posted in General)

You can study this Sparrow'project to add a picture by drag'Drop
JB

12

(4 replies, posted in General)

Please make a search into MVD Forum and find a Sparrow's project called Treevmus with im.zip.
IIt is very simple and very effective.
I used the Drag'Drop code in another of my projects and it works perfectly
JB

13

(3 replies, posted in Russian)

Hello Vickus, Hello sparrow,

On the form containing the grid from which you want to edit a record by double-clicking, place a button with the action "Show Record", you set Visible to False and this should solve your display problem
JB

14

(4 replies, posted in General)

Hello Mouasomar, Hello Derek, Lejoso

begin
    Form1.tablegrid1.dbpopupmenu.items.find('Show Record').caption := 'Afficher l''enregistrement';
    Form1.tablegrid1.dbpopupmenu.items.find('Copy Cell').caption := 'Copier la cellule';
    Form1.tablegrid1.dbpopupmenu.items.find('Copy Row').caption := 'Copier la ligne';
    Form1.tablegrid1.dbpopupmenu.items.find('Copy All').caption := 'Tout copier';
    Form1.tablegrid1.dbpopupmenu.items.find('Find').caption := 'Rechercher';
end.

You can even integrate this into a procedure that you can use again in any other project.
JB

15

(5 replies, posted in General)

Hello mouasomar
For your first question, MVD allows you to create an empty table
1 - Go to the Database TAbles tab and click New Database. You give it a name
2 - From the window that appears you create the different fields by choosing the type. If you choose a bad type, when running your project an error message will alert you.
On the Internet -> Delphi, find out especially about the differences between Integer, Real, Boolean and Currency
3 - RelationShip allows you to put two or more tables in relation. Interesting in queries.
4 - A Calculated Field is an extremely rich function in MVD. If you have a problem with it, ask Derek, he excels with calculated fields (and also Sparrow).
5 - Above all, do not give the names of your fields reserved words in Pascal. Instead, choose names that identify the function of the field. For names that are too long, reduce them with the _ sign
6 - Give your tables meaningful names that allow them to be easily identified
That should do it
JB

16

(5 replies, posted in Russian)

Hello Newbie

First test with button 1: Edit1. takes the value of the caption of Button1.
Now for your project to interpret which button was pressed to retrieve its value, you will have to go through a Case.
If this can give you a clue
JB

17

(8 replies, posted in General)

Hello Derek
Can this links give you some clues :

https://www.codeproject.com/Questions/1 … -in-delphi
and
https://supportcenter.devexpress.com/ti … rm-sorting

by adapting them to the MVD syntax?
Cordially
JB

Hi
What is a concise method from your point of view ?
JB

Hello Mouasomar, Hi Derek

1 - Add a DBImage (or a TImage) on Form1
2 - Add this code after the GetDetails procedure:

procedure get_details (Sender: TObject; MouseLeft, MouseRight, MouseMiddle: boolean; Shift, Alt, Ctrl: boolean; X, Y: Integer);
begin
......
.......
Form1.DBImage1.Clear;
Form1.DBImage1.LoadFromDatabase('YourTable', 'YourPicture', Form1.GridEmployees.dbItemID);
end;

JB

20

(6 replies, posted in General)

Hello Destiny, Hello Sparrow
Good solution indeed but as you point out, difficult to implement especially since FastReport is a bit heavy when you use it
in other ways than ordinary
JB

21

(11 replies, posted in General)

Hi Sparrow
Thanks for your reply
Actually it was Form1.Treeview1 that I had to update to not frmEmployee.Treeview1.
Unfortunate mistake on my part
Regards
JB

22

(11 replies, posted in General)

Hello AD1048, Hello Sparrow

Is it possible when entering a new employee, after clicking the Save button, to refresh the Treeview of Form1;

I tried:
1 - in Form1.OnShow to add : Form1.TreeView1.dbUpdate;
FrmEmployee.Treeview1 := Form1.Treeview1;
2 - in frmEmployee.OnShow to add frmEmployee.Treeview1.dbUpdate;
3 - in frmEmployee, to add behind the Save.OnAfterClick button this code: FrmEmployee.TreeView1.dbUpdate;
No refresh is done.

The only refresh after entering a new employee is done
when the application is restarted.
Did I miss something?
Thanks in advance
JB

23

(6 replies, posted in General)

Hello Destiny

MVD does not create an interactive PDF. It just converts a file into PDF format.
You will have to go through ADOBE Architect to achieve this (by going through the dollar box).
Or you can use Flipsnack.
JB

24

(9 replies, posted in General)

Hello pozidis, Derek, Sparrow
1 - You install on your machine Excel or Calc of LibreOffice or both.
2 - You place on a form the possibility to choose your spreadsheet
3 - If Excel, you select in Action the Excel option - If Calc, you check in Action the Libre Office option
4 - In Action, the Auto mode lets MVD select the spreadsheet already present on your machine (Excel or Calc) (if this is the case)
5 - If no spreadsheet is present, you are out of the game and MVD will wait for you to resolve your case.
See in PJ how I do it and it works every time
JB

25

(2 replies, posted in General)

Hello StateOne
Normally MVD uses the language defined in Windows, at home MVD is in French.

FastReport is independent of MVD and I did not find in the options the possibility to put the menus according to its native language.
JB