Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 29 JAN 2012 05:33:55PM B J Ray wrote:

We currently use fairly long-winded code to centre a Menu/Dialog Box of any size on screens of any shape.

Based on a call in the CREATE event of the window:

ScreenSize = Get_Property("SYSTEM", "SIZE") ; * 1024 768 1024 712

DialogSize = Get_Property(@window, "SIZE") ; * eg Library_Menu

ParentSize = Get_Property(Parent, "SIZE") ; * eg Main menu

 ........ calculate postion based on size of screen/desktop and menu to be displayed

old = Set_Property(MenuId, "SIZE", NewSize) ; * position Menu on Desktop

It works but the menu is displayed in one location then jumps to the centre of the screen.

We notice that the RevTech logo goes straight to the centre of the screen.

Not a big deal, but would like to know if it is possible to have the menus display immediately in the centre of the screen


At 29 JAN 2012 06:43PM Andrew McAuley wrote:

Uncheck the visible property in the designer.

The Sprezzatura Group

The Sprezzatura Blog

World leaders in all things RevSoft

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/324fa9600004359f874dd7c00.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1