StrataFrame Forum

UI design: BrowseDialog and StandardForm

http://forum.strataframe.net/Topic25263.aspx

By Alex Bibiano González - 11/24/2009

Hi all, I’m totally newbie to Strataframe framework and want migrate from Powerbuilder a little desktop application I wrote in the past.



I already tested Strataframe the last year and begun a project with it, but the project cancelled. Now I’m starting again a new project and I hope that finally I can complete this one with .NET technology and Strataframe framework.



I know from my experience with Powerbuilder, that using a good framework can make me more productive and the created application will have a more functionalities than an application programmed without a framework, therefore I have decided to use Strataframe, but something I have learner in the past, is that it’s better to align your application with the framework if possible in order to use all the RAD possibilities.



I have looked at the StrataFlix sample application and found it very useful but I have some UI design questions.



I have seen that the normal approach for a maintenance form is using a StandardForm that invokes a BrowserDialog to search the item to edit.



Is it possible to have first the BrowserDialog, and then the StandarForm?



For example, when the user clicks the Customer’s menu, a BrowserDialog is displayed (in a Panel, not in a response Window). After selecting a customer in the BrowserDialog I want to open the StandartForm with the selected customer to edit it.



Excuse me for this large introduction,



Alex B.
By Greg McGuffey - 11/24/2009

I'm not quite sure what you mean by "in a Panel, not in a response Window", but it is possible (and pretty easy) to have the BrowseDialog open when the form opens. I.e., when opening the maintenance form, you'd have it open the browse dialog, then when the BrowseDialog is closed, show the form with the selected data. There is at least one post about this here on the forum. I'm having some computer issues at the moment so I can't look up my code that uses this technique, but if this doesn't get you started, I see if I can help out some more.
By Alex Bibiano González - 11/24/2009

What I mean with "Panel" is to open the Browser not in a Windows. I have a main Form and a Panel control where want to put the browserdialog.
By Greg McGuffey - 11/24/2009

So, the BrowserDialog would be embedded within a panel, on another form (the main form)?



I've not heard of that being done, but it might be possible. Forms derive from Control and thus they can be added to other controls. You'd have to do it via code though and you'd have to figure out how to handle the translations, etc. Without doing a significant amount of research, I'm not sure if there is anything that would prevent this from happening. I'd look into how the browse dialog initially loads itself and how it returns results, what happens during form load and when it closes. Throw together a test app and play with it. As you try things out, you can post questions/issues. The quickest will be to include the sample app with those questions. Sounds like a fun experiment! Good luck! Wow