線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1846
推到 Plurk!
推到 Facebook!

StringGrid顯示移動問題

 
7-11
一般會員


發表:53
回覆:33
積分:16
註冊:2005-12-05

發送簡訊給我
#1 引用回覆 回覆 發表時間:2007-01-02 10:55:46 IP:220.142.xxx.xxx 訂閱
請問可不可以限制StringGrid的游標只在Col 1裡面移動? 也就是說 Col1,Row1   Col1, Row2  Col1,Row3...是OK的
但Col2,Row1就不行
Coffee
版主


發表:31
回覆:878
積分:561
註冊:2006-11-15

發送簡訊給我
#2 引用回覆 回覆 發表時間:2007-01-02 14:39:52 IP:220.130.xxx.xxx 訂閱
Changes the current cell to a specified cell.

procedure FocusCell(ACol, ARow: Longint; MoveAnchor: Boolean);

Description

TCustomGrid calls FocusCell internally to change the currently selected cell. FocusCell changes the current cell and updates the selection appropriately.

ACol is the column of the cell to select.

ARow is the row of the cell to select.

MoveAnchor determines how the selection changes. If the grid does not allow multiple cells to be selected (Options does not include goRangeSelect), MoveAnchor is ignored and the specified cell becomes the selected cell. If the grid allows multiple cells to be selected, MoveAnchor determines whether the new cell becomes the starting cell (anchor) of a new selection, or whether the current selection is updated to range from the current anchor to the specified cell.
------
不論是否我發的文,在能力範圍皆很樂意為大家回答問題。
為了補我的能力不足之處,以及讓答案可以被重複的使用,希望大家能儘量以公開的方式問問題。
在引述到我的文時自然會儘量替各位想辦法,謝謝大家!
系統時間:2024-05-13 9:29:36
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!