Hello Kavian,
Thank you for your answer, it's good for the parentheses. For the command, I found only this which does not exactly answer what I want to do.
Fabrice


\defineenumeration
  [ex]
  [text={Exercice},
   headcommand=\EXFRAME,
   titleleft=,
   titleright=,
   title=yes,
   width=fit,
   numberconversionset=ACCONVERSION,
   alternative=top,
   number=yes]

2017-01-29 12:02 GMT+01:00 Otared Kavian <otared@gmail.com>:
Hi Fabrice,

To suppress the parentheses in the title, you can use the keys titleleft and titleright as in the following:

\defineenumeration
  [ex]
  [text=Exercice,
   title=yes,
   titleleft=,
   titleright=,
   width=fit,
   numberconversionset=ACCONVERSION,
   alternative=top,
   number=yes]

In order to put the word « Exercice » in the frame you should define a special command, for instance \MyTextCommand and the say text = \MyTextCommand

Best regrads: OK

On 29 Jan 2017, at 09:07, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:

Hello,
I would like a title without the parentheses and the text "Exercice" in the frame with the number.
Thank you.
Fabrice

\defineframed
  [EXFRAME]
  [frame=off,
   offset=0pt,
   location=low,
   width=\struttotal,
   background=color,
   backgroundcolor=darkred,
   foregroundcolor=white,
   forgroundstyle=bold]

\defineprocessor[ACPROCESSOR][command=\EXFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]

\defineenumeration
  [ex]
  [text=Exercice,
   title=yes,
   width=fit,
   numberconversionset=ACCONVERSION,
   alternative=top,
   number=yes]

\starttext

\startex{Pour tous les candidats \hfill 5 points}
  \input ward
\stopex

\stoptext


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________