Print Page | Close Window

EditorService

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=531
Printed Date: 11-Jun-2026 at 7:46am


Topic: EditorService
Posted By: orcities
Subject: EditorService
Date Posted: 31-Oct-2007 at 11:31am
I have successful. Implemented an editor pop-up. I have 2 questions.
 
1. How do you use/submit to/hide the message box panel at the bottom?
2. Is there a way to manipulate the size of the pop-up.?



Replies:
Posted By: Linguinut
Date Posted: 28-Nov-2007 at 5:58pm
Coming up on a month old on this question...wow!  Have you been able to resolve it on your own?  If so, feel free to share your discoveries.  It may come in handy when I do a search a year from now for the same thing.
 
<grin>Bill</grin>


Posted By: orcities
Date Posted: 29-Nov-2007 at 8:47am
Nope, I have stopped working on it that portion for now. I have been putting off the GUI tweaks. As soon as I get the rest of the functionality done I will come back to the GUI stuff.
 
Hope I have some help by then.
 
hint..hint... Bill


Posted By: Bill Jensen
Date Posted: 29-Nov-2007 at 5:38pm
Sorry, very busy lately.  I'll get to this as soon as I can.
 
Bill J.


Posted By: Bill Jensen
Date Posted: 26-Dec-2007 at 3:54pm
1. How do you use/submit to/hide the message box panel at the bottom?
 
The bottom panel (of either an Editor or Page view) is occupied by a VerifierResultsTextAlertsView that displays DevForce verification alerts from the current entity.
 
The EntityEditorController or SummaryDetailPageController creates a new VerifierResultsListener to capture verifier events from the current entity of the main binding source and fire the VerifierResultsChanged event.
 
The presenter of the VerifierResultsTextAlertsView subscribes to the VerifierResultsChanged event and displays the text.  It also fires the SetEditorAlertsVisibility event that is fielded by the PageViewPresenter to hide the panel if no alerts are present.
 
2. Is there a way to manipulate the size of the pop-up.?
 
Override InitializeSmartPartInfo() in the EntityEditorController and set Height and Width.
 
Bill J.


Posted By: orcities
Date Posted: 29-Jan-2008 at 9:01am
Bill,
 
When I try to override the size at any time in the EditorController (EditForm.Width=xx) I get the following error:
The given key was not present in the dictionary.
 
If I remove the override the problem goes away. So either I am doing something wrong or it just doesn't work.


Posted By: orcities
Date Posted: 29-Jan-2008 at 9:12am
Further look shows that EditorForm is not valid anywhere in the XXEntityController.
How do I get it?


Posted By: Bill Jensen
Date Posted: 12-Feb-2008 at 2:27pm

Don't try to modify the size of the form directly--the editor form hasn't been created yet.

In your editor controller (that inherits from EntityEditorController), override InitializeSmartPartInfo():
 
1.  Call the base method to create the SmartPartInfo.
 
2.  Get the SmartPartInfo:

PageSmartPartInfo info = MainView.SmartPartInfo;

3.  Set the width and height:

info.Width = www;
info.Height = hhh;



Print Page | Close Window