Topic: Selected Combo

Hello, when I click on a Combo the title does not remain selected in the box, how can I make my selection remain displayed in the Combobox?

Post's attachments

Attachment icon Ecran.jpg 38.46 kb, 123 downloads since 2025-06-16 

Destiny

Re: Selected Combo

Hi Destiny


If possible, describe your problem in more detail or add an example.
It is not clear what procedures and events you use to display the ComboBox value in Edit and what is happening in your code.

3 (edited by Destiny 2025-06-16 11:17:03)

Re: Selected Combo

When I click on a name in the Combobox to display the data, I would like this name to remain displayed in the Combobox because for the moment it is not displayed on the screen.

Post's attachments

Attachment icon Les oiseaux.zip 341.62 kb, 214 downloads since 2025-06-16 

Destiny

Re: Selected Combo

.

Post's attachments

Attachment icon Capture.jpg 47.71 kb, 155 downloads since 2025-06-16 

Destiny

5 (edited by sparrow 2025-06-16 12:10:12)

Re: Selected Combo

When you select a value in the ComboBox, you run the "Show Record" action using Button5.
When you perform this action, the combobox is cleared.
You can do the following:

Post's attachments

Attachment icon Les oiseaux m.zip 296.14 kb, 244 downloads since 2025-06-16 

6 (edited by Destiny 2025-06-16 13:23:09)

Re: Selected Combo

It works very well.
Thanks, Sparrow.

Post's attachments

Attachment icon smiley-content.png 62.02 kb, 108 downloads since 2025-06-16 

Destiny

Re: Selected Combo

Eh ! Demat Crozon
Le premier programme que j'ai réalisé avec MVD (en le réactualisant avec les nouveautés
des versions successives du programme) est précisément la gestion des oiseaux de France et d'Europe
(j'ai la passion ornitho).
Il y a descriptifs, cartes, chants, vidéos...) Il intérèsse plusieurs clubs orntiho par chez moi.
Tu trouveras en PJ un shot d'une page et le splash d'accueil
Bon courage !
JB

Post's attachments

Attachment icon Oiseaux_TV.zip 312 kb, 226 downloads since 2025-06-16 

Re: Selected Combo

Eh ! Demat Crozon
Le premier programme que j'ai réalisé avec MVD (en le réactualisant avec les nouveautés
des versions successives du programme) est précisément la gestion des oiseaux de France et d'Europe
(j'ai la passion ornitho).
Il y a descriptifs, cartes, chants, vidéos...) Il intérèsse plusieurs clubs orntiho par chez moi.
Tu trouveras en PJ un shot d'une page et le splash d'accueil
Bon courage !
JB

Re: Selected Combo

Oups ! j'ai oublié le splash :
JB

Post's attachments

Attachment icon Splash.zip 125.44 kb, 236 downloads since 2025-06-16 

Re: Selected Combo

Je te remercie.
Ici en Bretagne les oiseaux sont tellement beaux qu'on passerais des journées entière a les regarder et les prendre en photos.

Destiny

Re: Selected Combo

Jean, Destiny


Super !

Re: Selected Combo

Привіт, Sparrow.
Дякую.
Оскільки я також фотографую птахів, я проілюстрував цей додаток власними фотографіями. MVD – справді чудовий інструмент для такого роду проектів!
(Дякую, пане Google!)
JB

Re: Selected Combo

Pour vous mettre en appétit

Post's attachments

Attachment icon FB_IMG_1749144872762.jpg 69.41 kb, 165 downloads since 2025-06-16 

Destiny

Re: Selected Combo

"La terre a de la musique pour ceux qui écoutent."
William Shakespeare

Re: Selected Combo

Hello Destiny, Hello Sparrow

Tu as oublié le beurre salé !!!!

You forgot the salted butter !!!!

JB

Re: Selected Combo

Non pas du tout, j'attend que des personnes viennent a la maison pour boire le cidre ..... et des tartines de beurre salées.

Destiny

17 (edited by Destiny 2025-06-18 05:52:58)

Re: Selected Combo

Screenshot of the bird program with information sheets and songs.
---
On MediaPlayer I can't open the folder directly on "Chants", I have to look for the folder in the file explorer, it's a shame.

Post's attachments

Attachment icon Chants d'oiseaux.jpg 90.45 kb, 151 downloads since 2025-06-18 

Destiny

Re: Selected Combo

Demat Crozon
I also made an application under MVD (2015) to listen to birdsong by clicking on the image of the said bird.

procedure Affichage_Image5_OnClick (Sender: string);      //Bouton Lecture du Player
var  s: string;
begin
     s := SQLExecute('SELECT chant_filename from oiseaux WHERE id=' + IntToStr(Affichage.Grille.dbItemID) );
     s := ExtractFileDir(Application.ExeName) + s;
     if FileExists(s) then MediaPlayer.PlayFile(s);
end;

See attachment
JB

Post's attachments

Attachment icon chant.jpg 189.4 kb, 155 downloads since 2025-06-18 

19 (edited by Destiny 2025-06-18 07:22:43)

Re: Selected Combo

In my program MediaPlayer works fine and I hear the sounds but it does not go to the folder I want, it always goes to the "Documents" folder when I click "Open File".
-----
Dans mon prog MediaPlayer fonctionne bien et j'entends les sons mais il ne va pas dans le dossier que je veux, il va toujours dans le dossier "Documents" lorsque je clique sur "Ouvrir le fichier".

Destiny

20 (edited by sparrow 2025-06-18 08:02:11)

Re: Selected Combo

Hi Destiny, Jean

Can you provide more details (path and folder name) and an example program?
If nothing fundamental has changed in the program, I will take the previous example.
But copy the full path and name of the folder you are trying to open.

21 (edited by Destiny 2025-06-18 08:24:01)

Re: Selected Combo

Here is the example

Post's attachments

Attachment icon Les oiseaux.zip 1.27 mb, 199 downloads since 2025-06-18 

Destiny

Re: Selected Combo

procedure Oiseaux_bOpenFile_OnClick (Sender: TObject; var Cancel: boolean);
var  OpenDialog: TOpenDialog;
begin
    OpenDialog := TOpenDialog.Create(Oiseaux);
    openDialog.Filter := 'MP3|*.mp3|All files (*.*)';
    openDialog.FilterIndex := 1;
    OpenDialog.InitialDir := ExtractFilePath(Application.ExeName)+'Chants\';
    if OpenDialog.Execute then WMP.URL:= OpenDialog.FileName;
    OpenDialog.Free;
end;

I know that in every country animals speak their own language (when their sounds are reproduced by people).
Cats meow differently, dogs bark differently, etc. And how do your sparrows chirp when their sounds are reproduced by people? )))))

23 (edited by Destiny 2025-06-18 09:25:30)

Re: Selected Combo

It works great, thank you sparrow.
------------

Our birds have a Breton accent

Destiny