Strataframe Listview Questions


Author
Message
Thomas Holste
Thomas Holste
Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)
Group: StrataFrame Users
Posts: 144, Visits: 618
Hi there,

after a while I started working on my new app again and encountered some

problems I can't solve by myself. I started an app which uses the

strataframe listview which really impresses me because of the wonderful

layout/design-options but I got two problems where I  need some help.

At first I'd like to tell you that the listview is populated by adding item with

the listview.items.add-method.

The first problem is, that I can not navigate with the up- and down-keys

through the list. I had a look at your listview-samples, navigating with up-

and down-key doesn't work there too. Am I doing something wrong or do

I have to implement this by myself. If yes, how is this done?

The second problem ist that I haven't figured out yet how to determine

the position within the list which is currently selected. For example say

that the listview has 15 items, how do I determine the selected item?

I checked all properties and their values in the debugger, but haven't

found a way yet.

Thanks a lot for your help and best regards

Thomas
Reply
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Thomas,

A quick look at the StrataListView source code reveals that they added code to handle the Key.Up/Down but the code in the OnKeyUp event is commented out, so either they had an issue with the code or something else.

With this information you can either subclass the StrataListView as I had done and try to implement the OnKeyUp and the ManageKeyStroke() method or just wait for the SF team response.

In case you have not found out yet, StrataListView is in the MicroFour StrataFrame UI Expanded project in the "Controls WinForm" folder.

Here is the commented code:

      /// <summary>
         /// Look for certain key combinations on the up
         /// </summary>
         /// <param name="e"></param>
         protected override void OnKeyUp(KeyEventArgs e)
         {
             base.OnKeyUp(e);
             //-- START HERE AGAIN FOR KEYBOARD IMPLEMENTATION
             ////-- Check for valid key strokes
             //if(e.KeyCode == Keys.Down ||
             //   e.KeyCode == Keys.Up)
             //{
             //    ManageKeystroke(e);
             //}
             //-- Reset the ctrl key
             _IsCtrlDown = false;
         }



Edhy Rijo

Edited 14 Years Ago by 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