Form Status

navuser1
Member Posts: 1,334
Hi All,
Is there any Function to know the Status (Restore Mode / Maximize mode ) of a Navision FORM?? :-k
Is there any Function to know the Status (Restore Mode / Maximize mode ) of a Navision FORM?? :-k
Now or Never
0
Comments
-
you can only use the known functions / properties behind "CurrForm."
For example CurrForm.MAXIMIZEDONOPENDo you make it right, it works too!0 -
Hi,
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?0 -
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 )0
-
MBerger wrote: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 )
I can't find it in Nav 5.0. ](*,)
Plz help.. [-o<Now or Never0 -
other question: For what do you need this? Whats the reason?Do you make it right, it works too!0
-
Hi garak
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.Now or Never0 -
sorry you can only use the following properties:
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.
RegardsDo you make it right, it works too!0 -
-
garak wrote:sorry you can only use the following properties:
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.Now or Never0 -
Yes, sorry, just checked my own form. Just set everything to NO (maximized = YES), specify a large width/height and it will work. (NAV 5)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions