

As a first example, let\textquotesingle{}s just display a calendar in our window, explaining all steps required to do so.

First you should declare objects we intend to use\+: 
\begin{DoxyCodeInclude}
   Evas\_Object *win, *cal;

\end{DoxyCodeInclude}


Then a window is created, a title is set and its set to be autodeleted. More details can be found on windows examples\+: 
\begin{DoxyCodeInclude}

   win = elm_win_util_standard_add(\textcolor{stringliteral}{"calendar"}, \textcolor{stringliteral}{"Calendar Creation Example"});
   elm_win_autodel_set(win, EINA\_TRUE);

\end{DoxyCodeInclude}


Next a simple background is placed on our windows. More details on \hyperlink{bg_01_example_page}{elm\+\_\+bg -\/ Plain color background.} \+: 
\begin{DoxyCodeInclude}

\end{DoxyCodeInclude}


Now, the exciting part, let\textquotesingle{}s add the calendar with \hyperlink{group__Calendar_gae893c6a3465db10d322ff937be4b0854}{elm\+\_\+calendar\+\_\+add()}, passing our window object as parent. 
\begin{DoxyCodeInclude}

\end{DoxyCodeInclude}


To conclude our example, we should show the window and run elm mainloop\+: 
\begin{DoxyCodeInclude}

\end{DoxyCodeInclude}


Our example will look like this\+:

 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{screenshots/calendar_example_01}}
\end{DoxyImageNoCaption}


See the full source code \hyperlink{calendar_example_01_8c-example}{calendar\+\_\+example\+\_\+01.\+c} here. 