Unable Parentcontrol

Alkro
Member Posts: 115
Hi!
I have many labels and must be superimpose all of them, but i need disable the ParentControl property because i wanna see a distinct label depends the user...
How can i do it?
Regards.
I have many labels and must be superimpose all of them, but i need disable the ParentControl property because i wanna see a distinct label depends the user...
How can i do it?
Regards.
0
Answers
-
Click on the label, click on the property menu button. Find Property ParentControl, and blank it out. This will break the link.0
-
arrrrgrrrrggggggg!!!
Sorry. All are FRAMES and in the frames there are many labels.
I want make VISIBLE one FRAME with its labels... All FRAMES must be superimposed.
Thanks!
EDIT: If a try to delete this property, an error message appear tell me that i can't delete this property, i have to DRAG the control to other place.
I need the frames one on top the other...0 -
Click on Each Frame. click on property, Find Property Name.
Give each Frame a name. Now from code you can make the frame visible or not.0 -
Btw. Once you've given them name.
In code hit F5 and find CurrForm->Controls->Name for each Frame. Then Click on the Right Arrow and select VISIBLE and click OK.0 -
This is the problem...
Frame1 and Frame2
User1 must see Frame1
User2 must see Frame2
Frame2 is superimpose in Frame1
In Code (Is not exactly), i put
if User1 then
Frame1.VISIBLE = TRUE
If User 2 then
Frame2.VISIBLE = TRUE
When user1 open the form, can see frame1 correctly
When user2 open the form, fail and can't see anything
Because parent control is linked to the other frame, and can't delete this property, tell me that i have to drag the frame.0 -
if User1 then begin Frame1.VISIBLE = TRUE; Frame2.VISIBLE = false; end else begin Frame1.VISIBLE = false; Frame2.VISIBLE = TRUE; end;
0 -
Not work
User2 can't see anything...
User1 OK0 -
Check Fram2 and see if it parent control is undefined. If it's not then when you moved the frame into the same area navision made Frame1 parent of Frame2.
To fix this move the Frame2 out of the area and see that property turns back to undefined. Then resize it back to the same area. DO not drag and rop, because its parent property will reset. The other option is to change XPos an YPos manually.
Once you've put them in the same location, and both have undefined parents, the code will work.0 -
Thanks
Another solution:
Two diferents Forms with many labels, and put two Subform object in principal Form.
Regards.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