Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2005, 03:32 PM
StuL StuL is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 StuL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 4 sec
Reputation Power: 0
Clicking fixed rows (string grid)

Hi guys

I'm very new to Delphi (only been using since October at college) and I've come to a problem that neither Google nor my teacher have been able to produce an answer.

I have a string grid which displays the attendance for the employees at a branch with 1 fixed column (employee names) and 1 fixed row (dates 1-31). What I want to happen is when I click on one of the dates in the fixed row to display another form that I have with the attendance so it can be editted.

The problem I have encountered is that none of the events I have used so far have picked up when I click on the fixed row. Obviously I could change the fixed row to a normal row but that would spoil the look.

Any suggestions would be very much appreciated.

Thank you for your time

Reply With Quote
  #2  
Old February 10th, 2005, 02:54 AM
SilverDB's Avatar
SilverDB SilverDB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Romania
Posts: 173 SilverDB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 45 m 53 sec
Reputation Power: 9
Send a message via Yahoo to SilverDB
Why don't you use double click event on the "non-fixed" row(s) ?

Reply With Quote
  #3  
Old February 10th, 2005, 11:56 PM
tinyabs tinyabs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 93 tinyabs User rank is Private First Class (20 - 50 Reputation Level)tinyabs User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 13 h 24 m 34 sec
Reputation Power: 9
Take a look at OnMouseDown event and MouseToCell method.

Reply With Quote
  #4  
Old February 15th, 2005, 11:29 AM
StuL StuL is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 StuL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 4 sec
Reputation Power: 0
Thanks for the replies guys

Sorry it's taken me so long to get back to you, been a very busy few days.

I've finally given up on the idea of fixed rows if I need to be able to click on them. However, my form doesn't look right without them. I was wondering there was a way in which only one row can be coloured (a column would be nice as well although I'm sure it would be reasonably easy to adapt any code that was put forth).

Thank you for your time and I hope I can solve this problem a little easier.

Reply With Quote
  #5  
Old August 16th, 2012, 11:45 PM
TheSeaMonkey TheSeaMonkey is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 1 TheSeaMonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 52 sec
Reputation Power: 0
In Delphi XE there is an "On Fixed Cell Click" event but the catch is that you need to enable the grid option "goFixedRowClick" or "goFixedColClick" for it to fire.

This event, once working, is a bit nicer than using MouseDown as it will give you the row and col without needing to use the MouseToCell method.

Sorry to drag up a thread from 2005 but as it was the first link for a google search on "delphi stringgrid click fixed cell" and it may save the next person some time.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Clicking fixed rows (string grid)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap