[Jprogramming] RE: How to remove the Minimize, Maximize and Close button on the J session?

Sherlock, Ric R.G.Sherlock at massey.ac.nz
Wed Mar 12 11:01:09 HKT 2008


---Alex Rufon wrote:
> So what do I have to change to make the form not show the minimize,
> maximize, restore and the close button on the caption?

The "nomax", "nomin", & "nosize" styles seem to be the right way to go, but while they seem to work ok for me in Jwdw sessions, I didn't have such a good experience with Jwdp.

J601 & J602 Jwdw
nomin and nomax seem to work fine. Used together the buttons are not displayed. Used singly, both are displayed but the specified one is disabled.

J602 Jwdp
nomin and nomax don't seem to do anything.
If I use nosize in Jwdp on Vista then the maximize button is displayed but disabled. Minimize still works.

J602 Jwdp on Ubuntu Linux
Similar to Jwdp on Windows except that nosize causes the maximize button to not be displayed not just disabled.


DICE=: 0 : 0
pc dice nomin nomax nosize;
menupop "File";
menu new "&New" "" "" "";
menu open "&Open" "" "" "";
menusep;
menu exit "&Exit" "" "" "";
menupopz;
xywh 136 8 44 12;cc ok button;cn "OK";
xywh 136 23 44 12;cc cancel button;cn "Cancel";
pas 6 6;pcenter;
rem form end;
)

dice_run=: 3 : 0
wd DICE
NB. initialize form here
wd 'pshow;'
)

dice_close=: 3 : 0
wd'pclose'
)

dice_cancel_button=: 3 : 0
dice_close''
)


More information about the Programming mailing list