Documentation and resizable window

Richard Gaskin ambassador at fourthworld.com
Sat Jun 18 14:08:38 EDT 2005


Éric Miclo wrote:
 >>> I did some working on an app that is used on PC and Mac and on  Mac
 >>> liveResizing as well as metal properties were set to true.
 >>> The documentation says that those properties have no effect under
 >>> Windows. It's false.
 >>> When those properties are set to true you can't anymore resize  the
 >>> stacks under Windows but it is working well under MacOS X.
 >>> So you've to test the platform before setting these properties.
 >>> I consider that the documentation is not enough precise or that  the
 >>> write once run everywhere is not so true.
 >>>
 >>
 >> Have you considered the possibility that the documentation is
 >> correct and what you're seeing merely a bug?
 >>
 >> See:
 >> <http://support.runrev.com/bugdatabase/show_bug.cgi?id=2585>
 >
 > Yes, but I first wanted to know if it was not a normal bahavior for
 > windows on PC.
 > I'll vote for that bug.

That'll help, and in the meantime the workaround is simple enough:

on preOpenStack
    if the platform is "MacOS" then
       set the liverresizing of this stack to true
    else
      set the liveresizing of this stack to false
      set the decorations of this stack to default
    end if
end preOpenStack


--
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com


More information about the use-livecode mailing list