开发者

Is there a property to make an Appcelerator desktop application window fixed size?

开发者 https://www.devze.com 2023-02-05 11:10 出处:网络
I can\'t find a property in the API documentation that would make an Appcelerator desktop applications window a fixed size. In other words, I don\'t want the user to be able to resize the window.

I can't find a property in the API documentation that would make an Appcelerator desktop applications window a fixed size. In other words, I don't want the user to be able to resize the window.

Anyone know if such a propert开发者_运维问答y does exist?


in the example on this page they just set in the window create params "resizable: false".

these look to be the best options for what you want to do.

maximizable: true||false
minimizable: true||false
  closeable: true||false
  resizable: true||false
 fullscreen: true||false

below is a call that uses every option

Titanium.UI.createWindow({
  id: "propertyWindow",
  url: "app://second_page.html",
  title: "My New Window",
  contents: "<html>foo!</html>"
  baseURL: "app://page_url"
  x: 300,
  y: 400,
  width: 500,
  minWidth: 500,
  maxWidth: 500,
  height: 500,
  minHeight: 500,
  maxHeight: 500,
  maximizable: true,
  minimizable: true,
  closeable: true,
  resizable: true,
  fullscreen: false,
  maximized: false,
  minimized: false,
  usingChrome: true,
  topMost: false,
  visible: true,
  transparentBackground: false,
  transparency: false
});
0

精彩评论

暂无评论...
验证码 换一张
取 消