Search code examples
clinuxmotif

How to hid title bar of Motif Dialog/widget


How to create a dialog without a Title bar. I want to create motif dialog/widget using XtVaCreateMangedWidget and XtVaCreateWidget without a title bar and how to create the same dialog full screen?


Solution

  • I just solved the issue, here is the detail

    m_wgMainFrm = XtVaAppInitialize(&m_pApp, ...
    
    m_wgMainWnd = XtVaCreateManagedWidget("main_window", ...
    
    m_wgDrawingArea = XtVaCreateWidget("Test",...
    
    XtVaSetValues(m_wgMainFrm, XmNmwmDecorations, (MWM_DECOR_BORDER), NULL);
    XtUnmapWidget(m_wgMainFrm);
    XtMapWidget(m_wgMainFrm);