You could make a wrapper OCX or DLL for the functions IsZoomed and IsIconic in User32.dll, and use those in NAV using automation. You'll have to get the handle of the window to check somewhere though, so you might want to add a few other functions to do that ( FindWindow etc. come to mind for that )
You could make a wrapper OCX or DLL for the functions IsZoomed and IsIconic in User32.dll, and use those in NAV using automation. You'll have to get the handle of the window to check somewhere though, so you might want to add a few other functions to do that ( FindWindow etc. come to mind for that )
Minimizable -> No, the user can't minimize the form (_)
Sizeable -> No, the user can't change the size (<->)
MaximizedOnOpen -> YES, the form is maximized when opened
Width -> Your default with
Height -> Your default height
_
Now, if the user press the |_| button on form he could change the maximized mode. But the form has still the width and height.
Minimizable -> No, the user can't minimize the form (_)
Sizeable -> No, the user can't change the size (<->)
MaximizedOnOpen -> YES, the form is maximized when opened
Width -> Your default with
Height -> Your default height
_
Now, if the user press the |_| button on form he could change the maximized mode. But the form has still the width and height.
Comments
For example CurrForm.MAXIMIZEDONOPEN
MAXIMIZEDONOPEN function will not resolve my problem :-k
If you look at the return value of the MAXIMIZEDONOPEN and MINIMIZEDONOPEN.
You can also get the heigth and width using CURRFORM.HEIGTH & CURRFORM.WIDTH
Would these solve the problem?
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
I can't find it in Nav 5.0. ](*,)
Plz help.. [-o<
The problem is that...
I want to open a form that form should be opend in the Maximized form.
And than no one can restore it or minimize it.
What I have done
I. put code in OnInit
CurrForm.WIDTH :=30004;
CurrForm.HEIGHT :=20003;
2. Set the Properties
Maximizable = No
Sizeable = No
These are working well but Restore down function still working.
Plz help.
Minimizable -> No, the user can't minimize the form (_)
Sizeable -> No, the user can't change the size (<->)
MaximizedOnOpen -> YES, the form is maximized when opened
Width -> Your default with
Height -> Your default height
_
Now, if the user press the |_| button on form he could change the maximized mode. But the form has still the width and height.
Regards
Thanks garak.
but My code performs better.
CaptionBar = None
does not prevent to restore down.
Thanks!!
[Still Restore down working when Maximizable = Yes]