Forum: Pascal and Delphi Oct 5th, 2009 |
| Replies: 3 Views: 1,204 OldRow, OldCol : integer; // defined in TForm private
var
P : TPoint;
gc: TGridCoord;
begin
gc := TStringGrid(Sender).MouseCoord(x, y) ;
P.X := X;
P.Y := Y;
if (gc.x <> OldCol)... |
Forum: Pascal and Delphi Jan 27th, 2009 |
| Replies: 5 Views: 1,542 Thank you Jonase. The CSV file approach, which is nicely supported by TStrngList, is one way. I was unable to discover how to use the Delphi components TExcelApplicatioin, TExcelWorkBook, etc.
... |
Forum: Pascal and Delphi Jan 24th, 2009 |
| Replies: 5 Views: 1,542 I'd like to read/write xls files in Delphi. I think there's a way to do this using ADO. Can anyone provide an example or head me in the right direction. Thanks. |
Forum: HTML and CSS Dec 26th, 2008 |
| Replies: 6 Views: 910 I'm not sure how that would be done with CSS.
My goal was to preLoad the images so they would be ready for a quick image swap on a mouse roll-over. Perhaps this is an old-fashioned concept that is... |
Forum: HTML and CSS Dec 26th, 2008 |
| Replies: 6 Views: 910 A template is a web page that has editable and non-editable regions. The template isn't actually posted on the web, but it is used to create other pages.
Typically, many pages in a web site will... |
Forum: HTML and CSS Dec 23rd, 2008 |
| Replies: 6 Views: 910 Thanks.
I've been preloading images in the onload opton of the body tag.
How can I use a template - for the basic structure of the web page -and also have the ability to preloadimages? |
Forum: HTML and CSS Dec 22nd, 2008 |
| Replies: 6 Views: 910 Is it posible to have the body tag in an editable region of a template. I want to PreLoad images on some of the pages and not others.
I've tried
<body
<!-- TemplateBeginEditable... |
Forum: Pascal and Delphi Jul 14th, 2008 |
| Replies: 1 Views: 864 I have two RadioGroups on my form, each with just two RadioButtons. When I click a button in one group, it turns off the "on" button in the other group. What could be causing this? I'm using D2007... |
Forum: Pascal and Delphi Jun 25th, 2008 |
| Replies: 3 Views: 2,195 I'm using D2007 and trying to add a new, blank record to my Access database with code. The DB has a 'day' field and a 'event' field. All works fine when a record exists for the given day. I need to... |
Forum: Pascal and Delphi Feb 11th, 2008 |
| Replies: 4 Views: 2,012 As the card is dragged from the gray side to the green "table" the background will change. Depending on where the card is, some of the time 1 or 2 corners will have a green background and 3 or 2 will... |
Forum: Pascal and Delphi Jan 21st, 2008 |
| Replies: 4 Views: 2,012 I've created a playing card descendent of TCustomControl and I want it to have rounded corners. The card is displayed in a Paint procedure where I determine the bitmap and then use a Canvas.Draw(0,... |
Forum: Pascal and Delphi Jan 17th, 2008 |
| Replies: 2 Views: 1,944 I too was surprised at how well my kludgy approach seemed to work. Thanks for pointing out efg's tech note.
Since "white" has 255 in all RGB bits I don't have to test for something higher than... |
Forum: Pascal and Delphi Jan 16th, 2008 |
| Replies: 2 Views: 1,944 I store in an image in a RES file. Because it is so large, I first convert it from a BMP to a JPG. Then I load the JPG from the RES file, convert it to a BMP, and can now manipulate the image on a... |
Forum: Pascal and Delphi Dec 29th, 2007 |
| Replies: 1 Views: 1,561 This seems to work fine
var Rect: TRect;
begin
SetRect(Rect, -1, -1, -1, -1);
MyGrid.Selection := TGridRect(Rect); |
Forum: Pascal and Delphi Dec 27th, 2007 |
| Replies: 1 Views: 1,561 The upper-left corner cell of a stringgrid has a blue background - I believe because it is selected. I don't want any cells "selected". The solutions to this problem that I've seen have the user... |
Forum: Pascal and Delphi Nov 29th, 2007 |
| Replies: 1 Views: 597 I'm having no problem adding components to to the Palette in Delphi 2007. Generally I do this by adding units to a .dproj and then installing the .dproj. I've tried to delete a unit - and that... |
Forum: Pascal and Delphi Nov 29th, 2007 |
| Replies: 2 Views: 1,191 Thanks a lot - that was just what I was lookinig for. |
Forum: Pascal and Delphi Nov 29th, 2007 |
| Replies: 2 Views: 1,191 I'm having trouble creating a RES file (for a visual component). This was easy under XP as I had the file extension for all .rc files set up to run RC.EXE. I am now using Vista and can't find the... |
Forum: HTML and CSS Nov 15th, 2007 |
| Replies: 2 Views: 669 No, the CSS doesn't use the word larger anywhere. All my font sizes are in terms of :large, x-small, small, etc.
I've finally given up on the template - never having solved the problem. Three... |
Forum: HTML and CSS Nov 13th, 2007 |
| Replies: 2 Views: 669 I'm in the process of converting many sections of my web to templates (for use with Contribute) so I can get away from all of that mundane editing. Each page has a header, navbar, and body, with only... |