Skip to Main Content
  • Questions
  • How to manage disable/enable Maximize/Resize in oracle forms?

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Md. Badrul.

Asked: July 05, 2018 - 10:19 am UTC

Last updated: July 09, 2018 - 4:40 am UTC

Version: 10g

Viewed 1000+ times

You Asked

i need to manage disable/enable Maximize,Resize button by programming in oracle mdi parent forms in 10g. Please give me solution of this problems.

and Connor said...

I don't think we expose that for modification.

Some things you could try:

1) Create a when-window-resized trigger which will capture an attempt to modify the size, and then issue:

Set_Window_Property(FORMS_MDI_WINDOW, WINDOW_STATE, MAXIMIZE)
Set_Window_Property(FORMS_MDI_WINDOW, WINDOW_SIZE, x,y)

or similar.

2) Write your own bean to customize the webform at the java level

http://forms.pjc.bean.over-blog.com/

I havent used Forms for over a decade, so I'm not sure if these will help.

Also, try the Forms forum for other input.

https://community.oracle.com/community/development_tools/forms

Others welcome to add their input

Rating

  (3 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Actually i need to disable/enable maximize or resize on MDI Parent form

Md. Badrul Alam, July 06, 2018 - 6:09 pm UTC

Thanks for your answer.

When i used your code then, this trigger execute when i resize child window. But i need to manage parent window.
Ex: https://www.youtube.com/watch?v=LNDzg-lyOt0&feature=youtu.be
Connor McDonald
July 07, 2018 - 6:53 am UTC

I think the trigger will fire when you resize *any* window (assuming the trigger is at form level).

You would then set the forms_mdi_window size to be the "fixed" size that you want.

I think that is the closest you can get to 'disabling' modifications to it.

I want to fixed mdi window size

Md. Badrul Alam, July 07, 2018 - 7:15 am UTC

Dear Connor McDonald,
Yes, i want to fixed mdi window size for all window.

when i use
set_window_property(forms_mdi_window,size,fixed); this then show me error. Please see this picture.
http://prntscr.com/k3kvap

Mainly need like that:
http://prntscr.com/k3kvv8

hopefully you will give me this solutions.

Thanks for your nice cooperation.

Best regards,
------
Badrul Alam
Connor McDonald
July 09, 2018 - 4:40 am UTC

My point is - I'm not sure we have a direct command to do that (for the MDI window).

So my suggestion was a workaround - ie, capture attempts to resize it, and then set it back to the size you want

its ok

Md. Badrul Alam, July 09, 2018 - 11:04 am UTC

thanks for your nice cooperation.

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library