Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Forms 6i - Window sizes

Posted on 2001-06-05
Medium Priority
Last Modified: 2007-12-19
I'm creating an application in Forms 6i.

I wanted to keep the windows maximized and to disable restore...basically the user must see only maximized windows and NOT be able to restore the window to the original size.

I can maximize the window in the WHEN-NEW-FORM-INSTANCE trigger but I can't seem to able to disable the Restore Window button.

Any ideas?

Thanks a ton.

-- Asim
Question by:asim_shankar
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 6158617
You do this with setting appropriate properties of the window: Maximize allowed, Resize allowed, Minimize allowed, Move allowed. If you set Maximize allowed to No (which is valid only when Resize allowed set to No),  end users won't be able to resize the window by using the zooming capabilities of the runtime window manager. Restore option in this case is disabled. And you can set the orginal size of the window in the Property Palette as well.

Author Comment

ID: 6159851
If I set maximize allowed to NO and then use the WHEN-NEW-FORM-INSTANCE trigger to maximize the window...the restore option doesn't get disabled.

I want the window to be maximized and to stay that way...thus disallow the user to restore the maximized window.

Accepted Solution

AllaI earned 40 total points
ID: 6160050
Set the desired size of the window in the Property Palette, not at the runtime in WHEN_NEW_FORM_INSTANCE trigger? Right, Resize Allowed property prevents end users from resizing the window, but it does not prevent you from resizing the window programmatically with RESIZE_WINDOW or SET_WINDOW_PROPERTY.  So when you resize the window programmatically in the trigger, the new size doesn't considered as "original" and end users can restore the window  to the original size. (And this original window can't be resized by users).

Author Comment

ID: 6160180
But that means I have to set the size of the window in the property sheet. That doesn't mean it's maximized only a fixed size.

Can't I force it to be maximized??

Expert Comment

ID: 6857690

Question(s) below appears to have been abandoned. Your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.

For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process.

Please click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.

To view your open questions, please click the following link(s) and keep them all current with updates.

To view your locked questions, please click the following link(s) and evaluate the proposed answer.

------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.  Also, if you are interested in the cleanup effort, please click this link
Thank you everyone.
Moderator @ Experts Exchange

P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question