Topic: DBImage

Hello Dmitry

In my application about birds, a grid lists all birds present in the base.
When I select a bird name in a cell of column Name and If I press F3, I call a form which displays the image of this bird (named Form_Oiseau).
I hide this form by a OnMouseLeave event.
All works fine.
My question :
As role of Form_Oiseau is only to show a picture without the user can modify this image, is it possible to desactivate (or hide) the three buttons
(Open, Save, Delete) which, in this case, are "useless"  ?

Last question :

With DBImage component, what's the difference between properties Type : StoreFile and LinkFile.
I guess what it is, but I would like a confirmation from you because in the help about this componen (script or component)t, this property is absent.

Thanks for your answer.



YY

Post's attachments

Attachment icon example.jpg 23.86 kb, 314 downloads since 2015-01-11 

Re: DBImage

You can hide these buttons:

Form1.DBImage1.dbShowButtons := False;



StoreFile - save files directly into the database
not recommended to save files directly into the database, as this leads to slow down.


LinkFile - refer to the file or refer to the folder.
The file is stored in any folder. The database stores only the file path to the file.


When you use property LinkFile, also you can use property CopyTo:
CopyTo property allows you to specify where you want to automatically copy the file path relative to the location of the database file.
http://myvisualdatabase.com/help_en/com … opyto.html

Dmitry.

Re: DBImage

Thanks Dmitry
All is clear for me

YY

Re: DBImage

Dmitry

A last reflexion about my last mail

What will be the good syntax for LinkToFile and for CopyToFile ?

I guess put this syntax behind a AfterClick Event for Save Button

We could place this perfect syntax for thoses two cases in help : http://myvisualdatabase.com/help_en/com … opyto.html
Don't you ?

Thanks again

YY

Re: DBImage

Sorry Dmitry, It's me again

When I use Form_Oiseau_Grille.DBImage1.dbShowButtons := False;

whether it is placed in Form_Oiseau OnShow event or between last Begin ... End of Script file

I get an error message : "Undeclared Identifier : dbShowButtons"

Any variable or parameter missing from me ?

I'm using MVD 1.48 beta

Thanks again

YY

Re: DBImage

yann.yvinec wrote:

Dmitry

A last reflexion about my last mail
What will be the good syntax for LinkToFile and for CopyToFile ?
I guess put this syntax behind a AfterClick Event for Save Button
We could place this perfect syntax for thoses two cases in help : http://myvisualdatabase.com/help_en/com … opyto.html
Don't you ?

What exactly do you need to do?
You only need to specify the folder in the property CopyTo, no more action is required.



When I use Form_Oiseau_Grille.DBImage1.dbShowButtons := False;
whether it is placed in Form_Oiseau OnShow event or between last Begin ... End of Script file
I get an error message : "Undeclared Identifier : dbShowButtons"
Any variable or parameter missing from me ?
I'm using MVD 1.48 beta

Strangely, it should work.
Can you send me your project to support@drive-software.com
with exe project file.


Thanks.

Dmitry.