![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
TKOLToolBar: проблема с кнопками [Delphi, Windows]
Гость © (2005-02-27 22:44:00)Если создать кнопку в TKOLToolBar, она создаётся слева. Как поменять её позицию? Конкретно: нужно чтобы справа была.
thaddy (2005-03-01 20:07:00) [1]Would be nice to include as new feature Tcontrol.TbMoveBtn(base,new:integer);
?
ECM (2005-03-01 12:53:00) [2]>Как поменять её позицию?
const
TB_MOVEBUTTON = WM_USER+82;
...
ToolBar1.Perform(TB_MOVEBUTTON,0,1);
Меняет местами первую(0) и вторую(1) кнопки в ToolBar1.
MSDN:
TB_MOVEBUTTON Message
Moves a button from one index to another.
Syntax
To send this message, call the SendMessage function as follows.
lResult = SendMessage( // returns LRESULT in lResult (HWND) hWndControl, // handle to destination control (UINT) TB_MOVEBUTTON, // message ID (WPARAM) wParam, // = (WPARAM) (UINT) uOldPos; (LPARAM) lParam // = (LPARAM) (UINT) uNewPos; );
Parameters
uOldPos
Zero-based index of the button to be moved.
uNewPos
Zero-based index where the button will be moved.
Return Value
Returns nonzero if successful, or zero otherwise.
ECM (2005-03-01 12:43:00) [3]Приведи код, которым создается кнопка...
Гость (2005-03-01 09:11:00) [4]Неужели никто незнает? :(