Using 2 subforms Horizontally

sunnyk
Member Posts: 280
Hi,
I have created a form in which is based on Item table. For this i have used a card form to give Filters Like Gen Prod. posting Group etc. Down below I used a tabular form to list all the filtered Items. Below this tabular form i have to use two subforms which are based on Bin content table and a customized manufacturer table. the link is Item no in both the cases. I have tried all the possible hit and trial for Horglue and verGlue and other properties but their appearance is not very good. sometime one form got over another etc...
Is there any way to use 2 subforms and show them in an elegant way to the main form.
I have created a form in which is based on Item table. For this i have used a card form to give Filters Like Gen Prod. posting Group etc. Down below I used a tabular form to list all the filtered Items. Below this tabular form i have to use two subforms which are based on Bin content table and a customized manufacturer table. the link is Item no in both the cases. I have tried all the possible hit and trial for Horglue and verGlue and other properties but their appearance is not very good. sometime one form got over another etc...
Is there any way to use 2 subforms and show them in an elegant way to the main form.
0
Comments
-
Can you make a screenshot of what you have? I have some difficulties to understand what you have done.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Probably your initial design:
-------------------------------- | | | Item | | | ------------------------------- | | | | Sub1 | Sub2 | --------------------------------
More elegant design-------------------------------- | | | Item | | | -------------------------------- | Sub1 | -------------------------------- | Sub2 | -------------------------------- OR -------------------------------- | | | | Item | Sub1 | | | | -------------------------------- | Sub2 | | | --------------------------------
Damn this wysiwyg editor is not valid for code!0 -
Hi, I think Sog's second suggestion (the stacked one) will work best. We have a form like that. I checked the properties on our sub forms and both have the default HorzGlue and VertGlue settings. When the form is max size, it works nice. If you shrink the form, part of the subform becomes hidden. If you have buttons at the bottom, make sure they are each set to Right and Bottom for the glue settings. Give that a shot and good luck!0
-
Sog wrote:Probably your initial design:
-------------------------------- | | | Item | | | ------------------------------- | | | | Sub1 | Sub2 | --------------------------------
I have used this layout before, but it requires that one of the sub forms (preferably the left) is fixed width (glue left) and the other is floating (glue horiz both). I have also done it with buttons that allow you to make the fixed sub form wider. The list box needs to be glued top and the two subforms glued vertical both.David Singleton0 -
There is always the possibility to activate the Timer on the main form and check if the form size has changed from the last time the Timer Trigger fired. If it has changed it is possible to change the size and position of the subforms to divide the available space between the two.
For example I use the following code for two subforms side by side.
IF CurrForm.WIDTH <> MasterWidth THEN BEGIN
MasterWidth := CurrForm.WIDTH;
CurrForm.AccFrame.WIDTH := ROUND((SubformRatio * MasterWidth / 100) - 550,1);
CurrForm.BankFrame.WIDTH := ROUND(((100 - SubformRatio) * MasterWidth / 100) - 550,1);
CurrForm.BankFrame.XPOS := 110 + ROUND((SubformRatio * MasterWidth / 100),1);
END;________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0
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