Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2003.08.07;
Скачать: [xml.tar.bz2];

Вниз

Вопрос по StringGrid (выделение)   Найти похожие ветки 

 
[BAD]Angel   (2003-07-23 18:23) [0]

Доброго времени суток мастера!
Подскажите ПЛЗ, как передвинуть выделение на n-ую строку в StringGride.
Например:
При запуске проги показыватеся StringGrid с записями, мне нужно чтобы выделение стояло не на первой строке, а допустим на второй... Как это сделать?


 
Skier   (2003-07-23 18:25) [1]

F1 + TStringGrid.Row


 
[BAD]Angel   (2003-07-23 18:44) [2]

Очень отсроумно :) Если бы я нашел это в справке, то я бы наверное не задавал вопросов! Как Skier думает?!


 
Skier   (2003-07-23 18:45) [3]

Нет слов...


 
Sandman25   (2003-07-23 18:47) [4]

Skier © (23.07.03 18:45)

Может, он без установленного хелпа программирует? :)


 
Skier   (2003-07-23 18:50) [5]

>Sandman25 © (23.07.03 18:47)
Очень похоже.


 
Sandman25   (2003-07-23 18:52) [6]

Только я думаю, вряд ли ему будут продолжать отвечать, если он так реагировать будет.


 
[BAD]Angel   (2003-07-23 19:15) [7]

Да нет, мужики! Серьездно! Просто добивают такие советы как F1 и так далее... как-будто я действительно не знаю про эту волшебную кнопку! :(

Я понимаю F1 быстрее и проще написать чем полный ответ :( обидно!!!


 
Skier   (2003-07-23 19:17) [8]

см. Skier © (23.07.03 18:45)


 
[BAD]Angel   (2003-07-23 19:32) [9]

TStringGrid.Rows

TStringGrid See also Example
---------------------------------------

Lists the strings and their associated objects for each row.

property Rows[Index: Integer]: TStrings;

Description

Use Rows to access all the strings for a single row, along with their associated objects. The number of strings and associated objects is always equal to the value of the RowCount property, the number of rows in the grid. The Index parameter is the number of the row, where the value of the first row in the grid is zero.

To get all the strings and objects for a column, rather than for a row, use the Cols property.



И что далшье? там ни слова о выделении!


 
Skier   (2003-07-23 19:53) [10]

Да говорят же тебе не TStringGrid.Row s, а TStringGrid.Row !


 
[BAD]Angel   (2003-07-23 19:56) [11]

и где такое искать в справке? :) там только RowS


 
Skier   (2003-07-23 19:58) [12]

Да ну ?!


 
begin...end   (2003-07-23 19:58) [13]

М-да...

Specifies the index of the row that contains the selected cell.

property Row: Longint;

Description

Use Row at runtime to determine the current row in the grid. Setting Row moves focus to the cell in the current column that is in the new row. The first row has an index of 0, the second row an index of 1, and so on.

The selected cell in the grid can be located by reading the Row property and the Col property to obtain the indexes of its row and column. When focus moves to the grid, the selected cell gets input focus.


 
Song   (2003-07-23 20:17) [14]

Bad Angel, you have bad help.


 
[BAD]Angel   (2003-07-23 20:37) [15]

Song - ты скорее всего прав! У меня нету Row в хелпе... Хотите верьте, хотите нет!

Всем спасибо! Не поминайте лихом!


 
Романов Р.В.   (2003-07-23 20:51) [16]

F1 - TCustomGrid.Row


 
app   (2003-07-23 20:54) [17]

Ангельский хелп.


 
Skier   (2003-07-23 20:55) [18]

>[BAD]Angel © (23.07.03 20:37)
Ещё подсказка : при просмотре свойств класса в справке их [свойства] можно сортировать по алфавиту.
Нажми на "Alphabetically" и...о чудо !



Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2003.08.07;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.47 MB
Время: 0.009 c
1-20623
VD602
2003-07-24 22:50
2003.08.07
FileStream.WriteBiffer(SomeString, Length(SomeString));


1-20601
starik30
2003-07-24 13:20
2003.08.07
Создание компонента


3-20397
ruslan_as
2003-07-16 09:31
2003.08.07
Как создать уникальное значение поля в InterBase


1-20542
lipskiy
2003-07-21 23:46
2003.08.07
TImage, TTolbar и 32-битные иконки


1-20583
Aleksandr
2003-07-23 20:16
2003.08.07
Что за глюк с пропаданием Action в PopupMenu?





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский