Results 1 to 5 of 5
  1. #1
    commerce is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Sep 2018
    Posts
    2

    Post menu contextuel sur form access

    Bonjour à tous



    je suis débutant en accès j'ai une question à vous poser et je souhaite que vous allez m'aider sur ce sujet svp
    ma question c'est que j'ai une image sur un formulaire, j'aimerais créer un menu Contextuel d'ou je clique Quand la touche Avec de la droite souris CE s dernier d'affiche AFIN l' image this with Ouvrir Programmeme que je te et choisisse Qui sera bien sur listeuse sur menu CE

    Ouvrir ------ Avec programme et qu'associé choisi comme photoshop, peinture bruche etc.

    svp aidez moi

    merci d avance : o
    Attached Files Attached Files

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    English version of post #1 via Google translate:

    Hello everyone

    I am a beginner in access I have a question to ask you and I wish you will help me on this subject please
    my question is that i have an image on a form, i would like to create a Contextual menu from where i click when the key with the right mouse this last poster to the image this with open program that I choose you Who will be on listeuse on menu CE

    Open ------ With program and associate chosen as photoshop, painting bruche etc.

    please help me

    thank you in advance
    Last edited by orange; 09-17-2018 at 06:18 AM. Reason: readability

  3. #3
    commerce is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Sep 2018
    Posts
    2

    menu ouvrir avec sur access

    Bonjour à tous

    je suis débutant en accès j'ai une question à vous poser et je souhaite que vous allez m'aider sur ce sujet svp
    ma question c'est que j'ai une image sur un formulaire, j'aimerais créer un menu Contextuel d'ou je clique Quand la touche Avec de la droite souris CE s dernier d'affiche AFIN l' image this with Ouvrir Programmeme que je te et choisisse Qui sera bien sur listeuse sur menu CE

    Ouvrir ------ Avec programme et qu'associé choisi comme photoshop, peinture bruche etc.

    svp aidez moi

    merci d avance

  4. #4
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    Je pense que l'objectif est d'ouvrir un programme associé au type d'image (extension de fichier) en choisissant dans un menu contextuel qui s'ouvre par un clic droit de la souris. Le menu devrait contenir une liste de programmes liés aux images.
    Cependant, cette partie n'a pas de sens pour moi:
    cette dernière affiche à l'image ceci avec programme ouvert que je vous choisis Qui sera sur la listeuse au menu CE


    I think the goal is to open a program associated with the image type (file extension) by choosing from a context menu that is opened with a mouse right-click. The menu should contain a list of image related programs.
    However, this part does not make sense to me:
    this last poster to the image this with open program that I choose you Who will be on listeuse on menu CE

    Nous devrions probablement attendre des éclaircissements.
    We should probably wait for clarification.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    Going to give up on waiting for OP to come back. Will paste from a notepad that I've had open on my desktop for a few days, rather than save as a file:

    You would need to translate this code into the required language.
    NOTE: "Name of correct function here" would be the name of the function that must run for the item chosen from the menu. It must be a Public function; it cannot be a sub. Also, selecting the wrong choice from the menu for any particular file may cause program errors and/or messages. CreateMenu function only needs to be run once. Then in design view, select the image control on the form. From the "Other" tab of the property sheet, click the drop-down for the property "Shorcut Menu Bar" and choose ImageShortcutMenu (assuming you did not change the Name: property in the code below).

    Vous devrez traduire ce code dans la langue requise.
    REMARQUE: "Nom de la fonction correcte ici" serait le nom de la fonction qui doit être exécutée pour l'élément choisi dans le menu. Ce doit être une fonction publique; ce ne peut pas être un sous. De même, sélectionner le mauvais choix dans le menu pour un fichier particulier peut provoquer des erreurs de programme et / ou des messages. La fonction CreateMenu doit uniquement être exécutée une fois. Ensuite, en mode création, sélectionnez le contrôle d'image sur le formulaire. Dans l'onglet "Autre" de la feuille de propriétés, cliquez sur la liste déroulante de la propriété "Barre de menus Shorcut" et choisissez ImageShortcutMenu (en supposant que vous n'avez pas modifié la propriété Nom: dans le code ci-dessous)
    Code:
    Public Sub CreateMenu()
    Dim cmbCtl As CommandBarControl
    
    On Error Resume Next
    CommandBars("ImageShortcutMenu").Delete
    On Error GoTo 0
    On Error GoTo Err_Procedure
    
    With CommandBars.Add(Name:="ImageShortcutMenu", Position:=msoBarPopup)
    
    Set cmbCtl = .Controls.Add(Type:=msoControlButton)
       cmbCtl.Caption = "Open with Photoshop"
       cmbCtl.OnAction = "Name of correct function Here"
       
    Set cmbCtl = .Controls.Add(Type:=msoControlButton)
       cmbCtl.Caption = "Open with Paintbrush"
       cmbCtl.OnAction = "Name of correct function here"
       
    Set cmbCtl = .Controls.Add(Type:=msoControlButton)
       cmbCtl.Caption = "Open with MS Photo"
       cmbCtl.OnAction = "Name of correct function here"
       
    End With
    
    Exit_Procedure:
    Set cmbCtl = Nothing
    
     Exit Sub
    
    Err_Procedure:
     MsgBox Err.Description, vbExclamation, "Error in CreateMenu()"
       Resume Exit_Procedure
    End Sub
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Adding a Menu in Access 2007
    By jmccon in forum Access
    Replies: 6
    Last Post: 10-09-2015, 09:08 AM
  2. Replies: 1
    Last Post: 11-25-2014, 01:42 PM
  3. Replies: 0
    Last Post: 09-25-2012, 09:16 AM
  4. File system menu for access
    By bob500000 in forum Access
    Replies: 13
    Last Post: 12-02-2011, 01:16 PM
  5. Access Menu
    By Azeez_Andaman in forum Forms
    Replies: 2
    Last Post: 11-27-2011, 07:44 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums