tgbf 发表于 2016-1-2 08:13:01

NSWindowButton--访问标准标题栏按钮

  



  有两种方法:
  1. 比较简单,打开窗体的属性,选择Window-》Controls,去掉对应的钩,就可以了。
  
  2. 代码实现。




MemberDescription


NSWindowCloseButton


  The close button.
  Available in Mac OS X v10.2 and later.




NSWindowMiniaturizeButton


  The miniaturize button.
  Available in Mac OS X v10.2 and later.




NSWindowZoomButton


  The zoom button.
  Available in Mac OS X v10.2 and later.




NSWindowToolbarButton


  The toolbar button.
  Available in Mac OS X v10.2 and later.




NSWindowDocumentIconButton


  The document icon button.
  Available in Mac OS X v10.2 and later.




  显示 / 隐藏代码:
  [ setHidden:YES];
  [ setHidden:YES];
  
  
  
  
页: [1]
查看完整版本: NSWindowButton--访问标准标题栏按钮