Posts: 413
Joined: Jul 2008
Reputation:
25
scarfa
Skilled Skinner
Posts: 413
Container.Viewmode returns a string label. I would like to request one that returns the id of the view as a numeric label.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
How are you planning on using the result?
Posts: 413
Joined: Jul 2008
Reputation:
25
scarfa
Skilled Skinner
Posts: 413
I'am trying to detect what the current view mode is inside a dialog which has the focus. Control.IsVisible doesn't work, there are other ways to achieve this but it's not so pretty. The simplest solution is to know what the id is and do a string compare
Posts: 413
Joined: Jul 2008
Reputation:
25
scarfa
Skilled Skinner
Posts: 413
2009-11-15, 04:48
(This post was last modified: 2009-11-15, 04:51 by scarfa.)
Yep, but some of my views have the same name depending on the container content. Also when using another language string compare doesn't work. Using id's, each view would be unique.