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?
My Visual Database → General → 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?
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.
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.
.
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:
It works very well.
Thanks, Sparrow.
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
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
Oups ! j'ai oublié le splash :
JB
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.
Jean, Destiny
Super !
Привіт, Sparrow.
Дякую.
Оскільки я також фотографую птахів, я проілюстрував цей додаток власними фотографіями. MVD – справді чудовий інструмент для такого роду проектів!
(Дякую, пане Google!)
JB
Pour vous mettre en appétit
"La terre a de la musique pour ceux qui écoutent."
William Shakespeare
Hello Destiny, Hello Sparrow
Tu as oublié le beurre salé !!!!
You forgot the salted butter !!!!
JB
Non pas du tout, j'attend que des personnes viennent a la maison pour boire le cidre ..... et des tartines de beurre salées.
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.
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
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".
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.
Here is the example
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? )))))
It works great, thank you sparrow.
------------
Our birds have a Breton accent
My Visual Database → General → Selected Combo
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi