Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.10.23;
Скачать: CL | DM;

Вниз

TKOLToolBar: проблема с кнопками   Найти похожие ветки 

 
Гость   (2005-02-27 22:44) [0]

Если создать кнопку в TKOLToolBar, она создаётся слева. Как поменять её позицию? Конкретно: нужно чтобы справа была.


 
Гость   (2005-03-01 09:11) [1]

Неужели никто незнает? :(


 
ECM ©   (2005-03-01 12:43) [2]

Приведи код, которым создается кнопка...


 
ECM ©   (2005-03-01 12:53) [3]

>Как поменять её позицию?

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.


 
thaddy   (2005-03-01 20:07) [4]

Would be nice to include as new feature Tcontrol.TbMoveBtn(base,new:integer);
?



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

Текущий архив: 2005.10.23;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.041 c
1-1128334839
Shlomo
2005-10-03 14:20
2005.10.23
Rave Reports: Region Component – его рамки?


4-1124416633
Kripton
2005-08-19 05:57
2005.10.23
Прозрачность в TglListBox (class(TCustomListBox))


14-1128432314
Weiss
2005-10-04 17:25
2005.10.23
Связь с интернетом


14-1127989736
Pazitron_Brain
2005-09-29 14:28
2005.10.23
Свидание программистов.


2-1127329127
redlord
2005-09-21 22:58
2005.10.23
ERROR : небыл произведен вызов COINITIALIZE