Re: Maximize/Restore window on OS X (aka Zoom)

From: vais <>
Date: Mon, 16 Feb 2009 10:24:49 -0800 (PST)

Thank you, Mitchell, I am aware of that. This is only half the story,
though. What I would like to do is something along these lines:

function toggle_zoom()
  if textadept.original_size then
    textadept.size = textadept.original_size
    textadept.original_size = nil
    textadept.original_size = textadept.size
    textadept.size = {screen.width, screen.height}

It is the "screen.width, screen.height" part that I am not sure how to
get at. Is this information available? Perhaps there is something like
this available in GTK that can be exposed to scripting?


On Feb 16, 12:01 pm, mitchell <> wrote:
> Vais,
> > Is it possible to access screen metrics from Lua? I.e. width and
> > height - this way I could roll my own maximize and restore.
> textadept.size returns a { width, height } table.
Received on Mon 16 Feb 2009 - 13:24:49 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:37:26 EST