-
Hello - I am using V 1.16 and running into the following issue. It is probably something i am doing wrong, so i pieced together some code from the larger project so that it can be run. If you run the code below, and press the "Show Detail" button, it will bring up a modal At any rate, the biggest issue is that i cannot click on the I think it must be something i am doing either in ordering the controls into the
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
This is still stumping me. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
Ok after a lot of digging I have found a solution for your problem. private new void SetupView()
{
InitializeComponent();
// Initialize any list controls.
InitializeLists();
// Load controls with current data only.
LoadView();
// Set our main view to the view area of the parent view.
base.DetailView = vwLogin;
// Setup common view parts.
base.SetupView();
+ fraURIList.FocusFirst();
+ // Optional - this restores the original form open focus view. You will need to make this field protected or create a method on base that does this line
+ base.txtItemName.FocusFirst();
} |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! I would love to understand why this line of code was necessary, if you have time to explain it. |
Beta Was this translation helpful? Give feedback.
-
I was checking what was going on with this problem and discovered two bugs. One in the Also if you notice the border is not being properly drawn in the upper right corner. I couldn't figure out why this is happening, but it can be resolved by calling Application.Refresh before view.Show(). private void HandleDetailButtonClick ()
{
CustomDetailView view = new CustomDetailView ();
// Show the view modal.
view.Modal = true;
// Ensures the border is refreshed before show
Application.Refresh ();
view.Show ();
} I also suggest that you use computed layout to position views instead of using absolute values. I know you used the wonderful TGD tool to create this project but it also provides the possibility to use Pos/Dim values for positioning and sizing. Enjoy it . |
Beta Was this translation helpful? Give feedback.
-
After all, this bug also exists with the WindowsTerminal_a0P3KR6Fn8.mp4 |
Beta Was this translation helpful? Give feedback.
-
Thank you both for all the investigation on this. I figured setting the source must be the reason the combo box is getting focus, i got around that with a method in my base The Thanks again! |
Beta Was this translation helpful? Give feedback.
Ok after a lot of digging I have found a solution for your problem.
Mouse clicking into FrameView working c…