826

(3 replies, posted in General)

Hello

From Panel Structure (above Object Inspector), select tab Controls
Inside, select the form you want modify Tabsheet
Click on item Tabsheet (Tabsheet1, tabsheet2 ...)
When clicked, the Object Object shows catacteristics of the Tabsheet
You have only to modify item Caption to enter whatever you want

Is it OK for You ?

Cordialy

JB

827

(7 replies, posted in Script)

Hello Mathmatou

En Delphi l'analyse séquentielle IF ... THEN convient bien lorsqu'il y a trois ou quatre analyses à faire.
L'instruction CASE ...OF convient mieux  lorsqu'il y a de nombreuses alternatives.

Cordialement

JB


In Delphi the sequential analysis IF... THEN suits well when there is two or three analysis to be made.
The instruction CASE... OF suits better when there is numerous alternatives.

Cordially

JB

828

(7 replies, posted in Script)

Re salut Mathmatou

Ton code est parfait, ça roule au poil
Je l'ai même réduit en utilisant la conditon CASE ... OF
Mais l'utilisation de la case à cocher me trottine dans la tête

Merci encore !


Hello Mathmatou
Your code is OK, it works fine
I've even reduced it by using condition CASE ... OF
But the use of the checkbox scampers me in the head

Thanks again

JB

829

(7 replies, posted in Script)

Bonjour Mathmatou

Bien deviné !

Je suis bien français, qui plus est breton 100% pur chouchen !

Effectivement j'ai fait ce même programme avec des comboboxes au lieu des checkboxes et là
ça marche parfaitement.

Cette fois ci j'ai voulu tester le fonctionnement plus complexes des checkboxes.
Autrefois j'avais réalisé ce même programme en Delphi 7, au poil !
Mais depuis que je suis passé sous Windows 8, ce bon vieux Delphi 7 ne fonctionne plus.
Mais MVD est un super outils pour monter des applications bien chiadées.
J'adore ce programme

Merci encore de ton aide

JB

830

(7 replies, posted in Script)

Hello

I was testing one thing
display a picture when clicking on a checkbox

The scenario :
A base with many persons
An item indicates if a person is smoker or no smoker.

If checkbox Smoker is checked  ( Yes) -> a pipe is displayed (this is s smoker
If checkbox Nosmoker is checked (N) -> a symbo No Smoke is displayed.

Problem : when we choose one person among others, displaying of the picture is very random.
All is done by scripts.

Have you an idea about anomaly ?

Thanks

JB

831

(0 replies, posted in Script)

Hello

This afternoon, as the weather was very bad, i've tried something from MVD.

I guess it's possible to read a video selected from a combobox
Well, i've made this zip

I've created a StringList which goes to the folder listing on video
All is OK. My combobox displays the video contained in this folder
But when I click the button 'Read'. The video don't appear on screen.

On the place, the button opens the folder with the video.
Please, what is my mistake

Thanks for all

JB

832

(4 replies, posted in Reports)

Thanks Dmitry

Sent to DriveSoft
Thanks again for your essential help

JB

833

(4 replies, posted in Reports)

Hello Dmitry

Thanks for your fast answer
I look at your link. It works fine.
Very interesting
As in the example, I've declared this new field in my main base (photo_file).
But when I use it in my application, i got a message "so such column photo_file in Grille.TableGrid1".
Strange I don't use it in form used to save new record.
By the way, the report doesn't display any picture

I didn't know we could use calculated field for other thing than calculating.
Amazing in spite of  its name.

Thanks

JB

834

(4 replies, posted in Reports)

Hello

I use FastReport embedded with MVD to create a report (for selected item).
The layout works fine.
Problem stands in displaying pictures.
My application stores pictures in a folder apart  in the directory of the application.
In FR, to display them, I use a Picture Object, I fill items : Datafield, Dataset and FileLink (in wich I give folder (ie. \piafs)).
In PictureObject, i drag-&-drop field Image in this container.

No image is displayed (I receive either no error message).
I guess if picture were embedded in the base (sql.db), all would work OK, but I want keep a folder apart to relieve the base
I've searched in FastReport documentation, I'v asked many questions on Internet specialized forums, no accute answer.

I have tested all possible, but in vain.

Did you ever met this situation ? If Yes, how you resolved it.

Thanks for your answers

JB

835

(1 replies, posted in Script)

Hello Dimitri

An idea passing through my mind

With MVD, it is possible to see a video embedded in a form called Video with a combobox.
When I clik on one item from the CB, a video is opened besides the CB and without opening apart VLC or MediaPlayer
All on the same form

See example what I would like

Thanks

YY

836

(24 replies, posted in General)

Hello The Engineer

Well I'm waiting for DriveSoft's response about your traduction
To know if I go on with mine or if yours is OK for him
I go ahead with an operating mode about creating application with MDB

YY

837

(24 replies, posted in General)

Mr D

Hello

I'm translating help file in english languague
The work is nearly achieved (about 2 or 3 days)
And I send it to Drivesoft.

I prepare also an operating mode based on Phonebook project (with screenshots).
(how to create table, make relationships, create interface (simple), enter datas, make searches ... and so on)
For those who find 'official' help too 'technical'.
Again, once achived, I send it to Drivesoft.

Bye
YY

838

(2 replies, posted in General)

Hello Dimitri

In my books database, a field on a form called Affichage shows title of the book.
In the grid listing all tiltles, when I double-click on a title (or when I press Edit button for the same result)
on  form Affichage showing all items about this book, the title is highlighted in its textbox.

To avoid thi highlight, I've coded this instruction in OnAfterClick of Edit Button :

    Affichage.Edit2.SelLength := 0;   or
   Affichage.Edit2.ClearSelection;

In tw cases, I get error message : 'Undeclared Identifier : ClearSelection or SelLength.
But most funny, the job is realized : no higlighted title.

That's don't really worry me but is there an explication about this matter ?

Thanks for your answer

YY

839

(5 replies, posted in General)

Hello Slim

Another solution :

Place a Static Label and addd a script as :

procedure MyForm_OnShow (Sender: string; Action: string);
begin
   MyForm.Label1.Caption := 'Book Prize'#13'Comments'#13'Notes';
end;

But as wrote DriveSoft, property Wrap is shorter.

YY

840

(5 replies, posted in General)

Hello Slim

You can use Memo component

YY

841

(1 replies, posted in Script)

Hello Dimitri

To bounce on a question composed yesterday about adding a new entry, it's possible to uncheck option 'Enable Auto Execution of The query" by script ?.
Is it a script which allows or not this option with a dialog box, ie "Do you want another entry - (Yes/No) ?

If Yes, the form is showed again when the previous entry has been saved
If No, the form is closed and the grid appears again with all entries

I don't know if I'm clear

Thanks

Yann Yvinec

PS : for new ideas to MVB : to add ActiveX to use SWF.

842

(187 replies, posted in General)

Hello Drivesoft

About new ideas for MVD :

- A Treeview
- A StringGrid
- A StatusBar and A ProgressBar
- About Grid :
    . Center automaticaly title of columns (via Object Inspecteur : T/F)
    . Adjust automatically columns to content.
- Possibility to hear sound by hiding the reader (VLC, MediaPlayer and others).


For RODI and CAYLEA1 about navigation (F/P/N/L), I've seen that Drivesoft made a script about it. But I can't retrieve it from forum.
The princip was something like Form1.GridEmployees.SelectedRow := Form1.GridEmployees.SelectedRow +1 (Next) or
Form1.GridEmployees.SelectedRow := Form1.GridEmployees.SelectedRow -1 (Previous);

Yann Yvinec

843

(1 replies, posted in General)

Hello Dimitri

How execute a search from Combobox. ?
When I use it, no match occured.
If I use a TextBox, all is OK.
Where stands the problem ?

Thanks for your help

Yann Yvinec

844

(1 replies, posted in General)

Hello Dimitri

In my application, I realize two kinds of searches :

- From a text box : all is OK. It works well.

- From CheckBox : I get all occurences of the search. The only problem stands when I want show selected record from the grid.
If I double-click,, no result.
If I click on button which has to show the record : no result.

Whet's the reason ? Is it because I looking for résults from a checkbox (boolean) ?

I guess I should make a OnCellClick Action but what's the script behing ?

Thank for you help

Yann YVINEC

845

(12 replies, posted in General)

Dimitri

Thanks for your reply
I know now the job of Graphics.dll and I keep it

About Component Save Image In Database (I used it frequently to store and load pictures), where are stored those imcgaes ?
Are they embedded in MyAppli.db ?
Are they stored apart ?

Thanks

Yann Yvinec

846

(12 replies, posted in General)

Hello Dimitri

A question about pictures in a DB

If I store pictures in a folder outside my application (i.e. application stands in E: and folder pictures in C:\pictures, then can I delete Graphics.dll from my application ?
What is job of this file ?

I see that in your exemple Save From Database where I can load a picture outside application and that Graphics.dll is not present.
It seemsOK but I would like to have any confirmation.

Thanks

Yann Yvinec

847

(12 replies, posted in General)

Hello

In the same vein, for french users, I've translated help manual for My Visual Database.
See DriveSoft to get it

If any mistake, thanks to mail me, I'll fix as soon as

Yann Yvinec

848

(2 replies, posted in General)

Hello Ailinux

It works fine for me

With Objet Inspector : Height = 50

or with a script

procedure Form1_OnShow (Sender: string; Action: string);
begin
  Form1.Edit1.Height := 50;
end;

I'm using MVDB 1.47

Jean B.

849

(1 replies, posted in Script)

Hello Dimitri

1 have 2 questions about MVDB

1) In my application about books,  I've set up a grid search in order to know all books written by a certain author (see my picture)
In this case, what will be the script to show all details of my selection (number 6 in the grid). I use a form called Affichage to enter
all informations about a book of this author when I first enter those items and to show them when I use Edit button.
This script will probably act after a OnCellClick or a OnCellDoubleClick.

2) About pictures : Are we obliged to embed them in Graphic.dll ? Should it be possible otherwise to give a full path (ie C:\birds\pictures\...).
This not to have a growing and growing Graphics.dll and make easy transfert of applications.
I think it will be necessary to stop the native script behind Save button and set up a new one behind OnClick event of Save Button.

What's your advices about this last point ?

Thansk and BEst regards

John B.

.

850

(10 replies, posted in Script)

Hello Dimitri

It works well with your script

But, how should be this script if I want to let users choose their own folder to realise this backup
I mean by way of function OpenDialog that could be created  on runing
with  TOpenDialog.Create(self); ?

Is it possible ?

Thanks for your answer

Jean B.