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

Вниз

Бешеный курсор   Найти похожие ветки 

 
newhite ©   (2005-12-18 18:22) [0]

Как сделать чтобы по нажатию Tab"а курсор скакал из поля в поле в том порядке, в котором нужно мне, а не в котором ему захочется?


 
Джо ©   (2005-12-18 18:25) [1]

Установить TabOrder у этих "полей" в нужном тебе порядке.


 
newhite ©   (2005-12-18 18:39) [2]

А можно поподробней?


 
YurikGL ©   (2005-12-18 18:42) [3]


> newhite ©   (18.12.05 18:39) [2]

У визуальных компонентов есть свойство TabOrder которое характеризует последовательность движения курсора по этим компонентам.

Delphi syntax:

type TTabOrder = -1..32767;
property TabOrder: TTabOrder;

Description

TabOrder is the order in which child windows are visited when the user presses the Tab key. The control with the TabOrder value of 0 is the control that has the focus when the form first appears.

Initially, the tab order is always the order in which the controls were added to the form. The first control added to the form has a TabOrder value of 0, the second is 1, the third is 2, and so on. Change this by changing the TabOrder property.

Each control has a unique tab-order value within its parent. If you change the TabOrder property value of one control to be the same as the value of a second control, the TabOrder value for all the other controls changes. For example, suppose a control is sixth in the tab order. If you change the control"s TabOrder property value to 3 (making the control fourth in the tab order), the control that was originally fourth in the tab order now becomes fifth, and the control that was fifth becomes sixth.

Assigning TabOrder a value greater than the number of controls contained in the parent control moves the control to the end of the tab order. The control does not take on the assigned value of TabOrder, but instead is given the number that assures the control is the last in the tab order.

Note: TabOrder is meaningful only if the TabStop property is true and if the control has a parent. (The TabOrder property of a form is not used unless the form is the child of another form.) A control with a TabOrder of -1 has no parent, and therefore cannot be reached by pressing the Tab key. To remove a parented control from the Tab order, set its TabStop property to false.


 
mfender ©   (2005-12-18 18:44) [4]

TabOrder - это поле такое у визуальных компонентов. Если создаёшь их на лету, то присваивать соответственно TControl.TabOrder := <Integer начиная с 0>, а если ставишь в форму в процессе разработки, то можно их выставлять сразу, щелкнув по любому из них правой кнопкой и выбрав в контекстном меню пункт TabOrder


 
newhite ©   (2005-12-18 19:30) [5]

Спасибо! Все работает!



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

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

Наверх




Память: 0.45 MB
Время: 0.009 c
9-1122891585
Dr.Nemo
2005-08-01 14:19
2006.01.08
Реализация на стороне игры


1-1133883289
VID
2005-12-06 18:34
2006.01.08
Item.Caption отображает только 260 символов !


14-1134461801
Kutuzov47
2005-12-13 11:16
2006.01.08
Структурирование


1-1133930103
Frozzen
2005-12-07 07:35
2006.01.08
Подскажите как программоно устанавливать шрифт в винду?


8-1122757793
ASDQWE
2005-07-31 01:09
2006.01.08
Есть ли в delphi 7 что-то типа sound,delay,nosound как turbo pasc





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский