c - Remove close button from BulletinBoard widget in Motif -


is possible remove close button bulletinboard widget in motif? or, alternatively, attach callback function it? know can toplevel widget can't seem bulletinboard.

for toplevel shell can attach callback function close button:

xmaddwmprotocolcallback(toplevel, xminternatom(display,"wm_delete_window",true),         (xtcallbackproc)buttoncb, (xtpointer)data); 

or can remove entirely this:

xtvasetvalues(toplevel, xmnmwmfunctions, mwm_func_all | mwm_func_close, null); 

but neither of these work bulletinboard widget. latter has no effect. former gives error, "warning: widget must vendorshell."

i found way already. instead of using xtvasetvalues, found can use xtsetarg(mybb, ...) @ time bb widget created. in other words,

n=0; xtsetarg(args[n], xmnheight, 300); n++; xtsetarg(args[n], xmnwidth,  300); n++; // ...etc... xtsetarg(args[n], xmnmwmfunctions, mwm_func_all|mwm_func_close); n++;  // <--- answer mybb = xmcreatebulletinboarddialog(parent, "mybb", args, n); 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -