Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting Shortcut Menu into Grid Cell
Message
 
To
18/07/2001 10:22:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00531450
Message ID:
00532118
Views:
14
>...
>>
>>I don't know why you really adding the grid in code and not at design time. I never had to do this. May be you could just create it at design time, place the code in the column textbox and make the grid invisible until you need it.
>
>Hi Nick :)
>One exception maybe. I generally end up with special grid needs (actually designing a class to make it easily configurable at the moment) where you can't control all (or let's say much more complex) from a central place. I have my column class, controls classes, header classes then waiting to be part of a grid. In that case I prefer to custom build the grid (honestly even I change default controls if I did it manually using my custom builder).
>Also at run time grid changes skin and underlying data. With container I can control the mouse operations yes but keyboard ? If I was missing the obvious all this time long I'd be happy.
>Cetin

Hi Cetin,

I realize that assembling the grid on-the-fly may take place in a number of complicated cases (may be that my customers are just not sophisticated enough? :) And partially that fact pushed me into direction of creating the controls which add the desired functionality without touching the "host" control.

Of course, it is more difficult to provide the same functionality for keyboard operations. The reason my Grid Highlighter requires one line of code in the Grid.AfterRowColChange is just that - to react to keyboard navigation in the grid.
The way I see it, most requirements for the grid enhancements are connected with mouse functions (right-click menus, double-clicking on cells or headers, drag and drop). And that's because the Windows environment is clearly mouse-oriented. What is the keyboard equivalent of the double-click on a column header to sort it? Can you really work with the web site in a browser with the keyboard? And the desktop apps are trying to look more and more like web pages.

The complicated grid may be the only way to satisfy the customer requirements, but in some cases may be also the sign that the interface approach needs to be reconsidered.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform