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

Вниз

Label, Editbox and Mnemonic   Найти похожие ветки 

 
Jon ©   (2009-07-23 20:02) [0]

There is a label and an editbox.

How do I add a mnemonic to the label?
Label.Caption := "&Test";
This does not produce an underlined T.

How do I link the label mnemonic to activate the exitbox?


 
Демьян   (2009-07-26 13:55) [1]

I can see, this work in design time but doesn"t work in runtime. I already ran into it, seems it work really for menus, buttons, checkboxes:

function SupportMnemonics: PControl;
   {* This method provides supporting mnemonic keys in menus, buttons, checkboxes, toolbar buttons. }


 
Jon ©   (2009-07-27 14:25) [2]

Thanks. I do use SupportMnemonics but I cannot get it to work as needed with the label/editbox. What would be good is a component like the VCL"s TLabeledEdit. Has anyone been able to create such a component?


 
Демьян   (2009-07-27 19:42) [3]

Sorry, I dont have enought experience/time for it, but I would happy if someone write something like this ))


 
Jon ©   (2009-07-31 23:30) [4]

OK - I shall continue testing to try to create a component.
But why using Label.Caption := "&Test" does not produce an underlined T - is it possible?


 
Jon ©   (2009-08-02 03:17) [5]

I found that I can create underlined letters by changing the label style:

Label := NewLabel(Applet,"&Test");
Label.Style := Label.Style and not SS_NOPREFIX;

Now I just need it to accept the mnemonic ie ALT+Letter...


 
Демьян   (2009-08-02 11:50) [6]

Wow! as it turned out, it"s quite simply! :) We can hardly wait for new component!



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

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

Наверх





Память: 0.45 MB
Время: 0.001 c
15-1373878979
Drachen
2013-07-15 13:02
2014.01.05
Какую файловую систему использовать для медиахранилища ?


15-1374195522
Чайник1
2013-07-19 04:58
2014.01.05
Как у файла экселя поменять поле "автор"?


2-1363268014
accessviolation
2013-03-14 17:33
2014.01.05
сравнение чисел


15-1367331353
robt2
2013-04-30 18:15
2014.01.05
почтовые клиенты


2-1362916640
Павел Калугин
2013-03-10 15:57
2014.01.05
Куда DecimalSeparator в XE3 запихали?





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