Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for TomRandall

Hi All, I'm using a TStringGrid (has to be Delphi 7, and no 3rd party components) I've customised it to allow per-cell colouring/fonts/borders/validation etc, by using a custom onDrawCell method. I really would like to add per-cell tooltips too, but I've been unsuccessful so far. I've modified something I found: …

Member Avatar for BitFarmer
0
617
Member Avatar for TomRandall

Hi all, I don't use Delphi often so this is probably a stupid question again, but why does Delphi (7) re-index arrays when they're passed to a function, as a simplified example... [CODE]program example; {$APPTYPE CONSOLE} uses SysUtils; var numbers: array[1..5] of Integer = (10, 20, 30, 40, 50); procedure …

Member Avatar for FlamingClaw
-1
177
Member Avatar for TomRandall

Hi All, This is probably a stupid question, and I could have easily written a small function that loops over the values and selects the first match... but I'd prefer to use the built in way - if there is one. Is there a built in function to select a …

Member Avatar for TomRandall
0
956
Member Avatar for TomRandall

Hi, Is there an easy way to loop through an array of controls (user specified, not every control on the form) and disable them? At the moment I'm just disable/enabling them one by one e.g. ctrl1.enabled := false; ctrl2.enabled := false; .... ctrl22.enabled := false; etc. Is there a way …

Member Avatar for LizR
0
164
Member Avatar for TomRandall

Hi All, I'm very new to Delphi and I'm stuck with this (hopefully very basic) question. How do you reset a form when it's closed? I have 2 forms, say "form1" and "form2", when you click a button on form1 it opens form2 via form2.ShowModal; on form2 you input data, …

Member Avatar for LizR
0
645
Member Avatar for TomRandall

Hi, I'm using a form with a StringGrid and a few buttons, by default the buttons are disabled and I'm wanting them to enable when certain entries are selected in the StringGrid. I've got the code to enable/disable the buttons depending on what StringGrid row is selected on the "OnSelectCell" …

Member Avatar for LizR
0
130