` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: ABC - How do you know Header is pressed?
2007-10-23 -- John Christ
 
> Is there a real simple way to know if the header is being pressed in a > ListBox. (Not a Browse). > > I want to trap it and resort the listbox. > > Right now, I have a bunch of code looking at MOUSEX and MOUSEY and > checking the ListControl's width, height and XPOS ... and now I'm > wondering if I made it too complicated. Alert MouseLeft. In the AlertKey embed: CASE KEYCODE() OF MouseLeft IF ?List1{PROPLIST:MouseDownRow} = 0 ! Header SelectedColumn# = ?List1{PROPLIST:MouseDownField} ! Do what you gotta do here Shankar notes: And, don't forget the ListZones. CASE EVENT() OF EVENT:AlertKey IF KEYCODE() = MouseLeft2 AND ?QueryResult{PROPLIST:MouseDownZone} = LISTZONE:Header AND SELF.Request <> ViewRecord Col# = ?QueryResult{PROPLIST:MouseDownField}


Today is November 23, 2024, 3:27 am
This article has been viewed 35257 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: