Problem with ThemedLinkMenu items Save/Undo in StrataFlix


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
No, not that we have released Wink
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Trent,

Thanks a lot, I tested the changes and it is working fine now.

Is there something else new, in the StrataFlix sample?

Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
It ended up being an easy fix.  The bottom line is that the events fire differently when maximized.  Ironically, the OnActivated fires before the OnLoad if the form is maximized.  Thus the problem.  Move the OnLoad logic to the OnActivate and it will resolve the error.  I have updated the StrataFlix sample and you can get the fixed version in the My Account area of the website.
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Edhy Rijo (08/04/2008)
Unfortunately, my form's design are intended to be used Maximized and will not allow the end user to either minimized it or restore its regular size, that is why I found this little problem.

At any rate, there is no rush since I am still working on the design phase on this project and I have many other things to work out so I can wait for any work around this issue.

Hi Trent,

Sorry to bring this one up again, but I will start working on this project soon and would like to know if the problem with the Maximized window state can be resolved, if not I would have to change my form's design, but I do really want to use them as maximized.

Edhy Rijo

Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Trent L. Taylor (08/04/2008)
I will let you know once I have a chance to look at this.

Hi Trent,

No mean to rush you, but I am at a point where a fix for this would be very helpful Smile.  I have designed all my main forms and I am getting to the point that not having this working for Maximized form is holding me back a bit while testing other functionality and entering test data.

So please when you have a chance this week see if you can help me out with this.

Thank!

Edhy Rijo

Keith Gordijn
Keith Gordijn
StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)
Group: Forum Members
Posts: 35, Visits: 2.6K
Thanks Dustin,



My MDI environment is modeled of StrataFlix so using the LaunchDialog and HandleFormClosed works for me. Smile



Cheers, Keith
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
I actually just answered a similar question, so I'll just pastethat replyhere BigGrin



The universal way to handle this in an MDI environment is to iterate through the MdiChildren collection to build your list of open windows. Once you have your list it is simply a matter of adding items to a themed link menu, toolstrip, or whatever other control you decide to use to track the open windows.



'-- Cycle through all of the forms

For Each frm As Form In _MDIClient.MdiChildren

'-- Build a menu, etc.

Next





For this approach, however, you are going to have to do some additional coding to account for whenever a form is opened or closed. However you are adding forms or whenever a form is closed you will need to call a public function that recreates this list.



In the StratFlix sample all of this is already plumbed for you. Whenever a form is opened it calls the LaunchDialog method of the FlixMain form. Whenever it is closed that close is handled by the HandleFormClosed function also on the FlixMain form. As such, if your MDI environment is set up just like StrataFlix, then you can use the LaunchDialog and HandleFormClosed methods to add and remove items form your open windows list, without ever needing to bother with the MdiChildren collection.



I don't have a code sample to do the whole thing at the moment, but that should give you a point in the right direction.



Hope it helps Smile
Keith Gordijn
Keith Gordijn
StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)
Group: Forum Members
Posts: 35, Visits: 2.6K
Hi Edhy & Trent,



I am looking at doing the same thing as you have Edhy, creating the Menu and Action items as in the StrataFlix example. Actually I am using StrataFlix as a best practice example for using StrataFrame and creating projects and am slowly climbing my way up the rather large learning curve of C#, .NET and StrataFrame.



My question is for after the maximize issue is sorted as I too am looking at using my forms maximized. When you maximize a form within a parent form you get a "toolstrip" that contains an icon the minimize, maximize buttons etc. Using the StrataFlix example, modified to be able to maximize forms, there is no menustrip to contain these so when you maximize a form this strip is placed at the top of the form and pushes everything else down, catching to the eye but unfortunately in an unsightly way. I would like to present a taskbar like strip, either at the top or bottom of the main form that contains a tab or button for each open form so the user can easily select a form. This is a variation on Edhy's creating a panel in the sidebar to list open forms. So, at last to the question, can this be done using a menustrip or toolstrip or statusstrip and if so which would be the best way to go? Any ideas/pointers on where I can start are most welcome.



Cheers,

Keith Gordijn
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Thanks for your comments, Edhy.  I am glad that it has helped!  I will let you know once I have a chance to look at this.
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
HI Trent,

Thanks for checking on this so quick.

Unfortunately, my form's design are intended to be used Maximized and will not allow the end user to either minimized it or restore its regular size, that is why I found this little problem.

At any rate, there is no rush since I am still working on the design phase on this project and I have many other things to work out so I can wait for any work around this issue.

P.S.

I have to say this, the StrataFlix sample is pretty cool, and without it, I would never guess to program in VS the way it is done in this sample.  I have been able to rework my 3 SF projects to properly organize them and I am very happy with the outcome, and being new to .NET & SF, now many things make more sense.  Thanks Smile

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search