study the source code of artDialog