StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      


««12

Is there any way to change the selected row...Expand / Collapse
Author
Message
Posted 09/08/2008 9:41:05 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:49:34 AM
Posts: 478, Visits: 1,969
Could you add a context menu to the grid?  I have done this with the DevExpress XtraGrid...works quite well.

Bill

Post #19163
Posted 09/08/2008 10:05:58 AM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 4:05:52 PM
Posts: 760, Visits: 3,282
Marcia G Akins (09/05/2008)
And after your last reply, I looked at the ListView in Strataframe.

I suggested you to look at the StrataFlix sample application which uses the new enhanced list.

It also had no RightCLick event that I could hook in to.

A single event, the MouseClick event is used to handle all this in .NET controls like this:

Private Sub lstServiceCalls_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles lstServiceCalls.MouseClick

     If e.Button = Windows.Forms.MouseButtons.Right Then

          '-- do your stuff here.    

     End If

End Sub

And if all you want is to show a shortcut menu (ContextMenuStrip in .NET) all you need to do is add a SF ThemedContextMenuStrip to your form, add all the items you want then add that menu to the form's property ContextMenuStrip and you are done, not need to manage it via the right click like in VFP. 

BTW, StrataFlix Main Form also have a sample of a ThemedContextMenuStrip.

 
Post #19164
« Prev Topic | Next Topic »

««12

Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:29pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.062. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.