 |
 | hi,very nice codeangel | 19:35 13 Sep '07 |
|
 |
thank you,
for us provide this nice toolbar class.
df
|
|
|
|
 |
 | UPDATE_COMMAND_UI problem in a Single Document application Bumbala | 5:29 13 Nov '06 |
|
 |
I am developing a single document application (already has a CFrameWnd). I am trying to use the CToolbarDialog class in one of the dialogs and UPDATE_COMMAND_UI does not work in this case. Any ideas? Thanks.
|
|
|
|
 |
 | True Colour Toolbars - How To: Dangta | 16:30 18 Sep '06 |
|
 |
Hey guys, thanks to this excellent class i can now have toolbars in my dialogs, i've searched around on how to make true colour toolbars, and i found an article at code guru: http://www.codeguru.com/cpp/controls/imagelist/openfaq/article.php/c9045/
I've sucessfully implemented that into this class and it works fantastic, if you want true colour toolbars with this go use that! It's as simple as replacing CToolBar with CTCToolBar and then creating and importing your new toolbar bitmaps for disabled, normal and hover. After adding the bitmaps just add an include to "Resource.h" and then in CSmartToolBar::Initialize add a call to LoadTCToolBar after LoadToolBar and there you go.
|
|
|
|
 |
 | Works Great! ajselvig | 7:41 8 Feb '06 |
|
 |
I don't know why Microsoft didn't put this functionality into the regular CDialog class, but this is exactly what I was looking for and works great. Thanks.
Andy Selvig Systems/Aerodynamics Engineer Goodrich Sensor Systems
-- modified at 12:41 Wednesday 8th February, 2006
|
|
|
|
 |
 | Nice work, but how to disable the docking function taxtdod | 19:56 4 Oct '05 |
|
 |
I only want it to stay on the top...
|
|
|
|
 |
|
 |
That seems quite straightforward. I think you must be able to do this yourself. Give it another try. If you still have questions, post them.
greets.
|
|
|
|
 |
 | Double Click on Toolbar Morteza Ghasemi | 4:40 29 Jun '05 |
|
 |
When i Double Click on Toolbar it's Hide. Why? and how can i repair it?
|
|
|
|
 |
|
 |
The toolbar reacts to LBUTTONDOWN and LBUTTONUP messages. On LBUTTONDOWN the floating toolbar is hidden and a rectangle is display (this is for moving the toolbar). On LBUTTONUP the toolbar is displayed in the new position. On double click the following messages are created: WM_LBUTTONDOWN, M_LBUTTONUP, WM_LBUTTONDBLCLK, WM_LBUTTONUP. So, at this moment, it is quite impossible to remove the double click behaviour. If you find a way, please let me know so I could make the required modifications
----------------------------------------- Lucian - Florentin Barbulescu Software Developer C.S. A.E.I.C. S.A.
"Trust is a weakness" - Uplink Hacker Elite
|
|
|
|
 |
|
 |
I guess that the toolbar normally acts in the following case. At first, attached toolbar moves other place and then attaches On top, or On bottom ... After that, when Double click the toolbar, toolbar isn't hidden. I guess initial setting values are different. I wish this is gonna help you find a way. Good Luck~~
-- modified at 2:22 Wednesday 5th October, 2005
|
|
|
|
 |
 | nice article, 1 more question :) mynh79 | 4:12 16 Aug '04 |
|
 |
Can I use this class for a toolbar that has more than one "row", like emoticon bar in Yahoo Messenger ? Thankx in advance
|
|
|
|
 |
 | Fail to ??? KW-Rix | 22:43 10 Aug '04 |
|
 |
Hello, It's me again . When I was trying to call another Dialog window , It failed !! Please kindly tell me how to fix this problem ?? Thanks !!

KW-Rix
|
|
|
|
 |
|
 |
The situation is I was bound a MENU on the Dialog, And from which call another dialog.
KW-Rix
|
|
|
|
 |
|
 |
I've created a dialog dinamicaly, but I didn't had any problem. Can you tell me exactly wich was the error (if you can also post some code it will help me figure out how to fix the problem)
----------------------------------------- Lucian - Florentin Barbulescu Software Developer Xtreme Software www.xts.ro
"Trust is a weakness" - Uplink Hacker Elite
|
|
|
|
 |
 | Great ,But Questions ?? KW-Rix | 23:34 9 Aug '04 |
|
 |
First, I'd like to say that your work is so great, thank you. but when I set bottom text on the toolbar class, It seems doesn't work !! As below : ************************************************************* CString xbtn_Str; xbtn_Str.LoadString(IDS_STRBTN0); m_pToolbar->SetButtonText(0, xbtn_Str); ************************************************************* And then I tried to do this : m_pToolbar->SetSizes(CSize(50,50),CSize(32,32)); At result I just saw a little head of the bottom text on it. Again I tried to set the toolbar class like this : m_pToolbar->SetHeight(50); Still can not see the bottom text. Can you tell me how to fix this problem , thank you !! ^_^
KW-Rix
|
|
|
|
 |
|
 |
add the button text in CSmartToolbar::Initialise function after LoadToolBar(uTemplateID);
For example:
void CSmartToolbar::Initialize(CWnd* pParent, UINT uTemplateID) { DWORD style = WS_CHILD|WS_VISIBLE|CBRS_FLYBY|CBRS_GRIPPER|CBRS_SIZE_DYNAMIC|CBRS_TOOLTIPS;
if(m_bState & TS_FIXED) style|=(m_bState&TS_FIXED); else style|= TS_TOP; CreateEx(pParent,TBSTYLE_FLAT,style);
LoadToolBar(uTemplateID);
CString xbtn_Str; xbtn_Str.LoadString(IDS_STRBTN0); SetButtonText(0, xbtn_Str);
CRect rctButton; GetItemRect(0,&rctButton); SetSizes(CSize(rctButton.Width(),rctButton.Height()),CSize(16,15));
}
----------------------------------------- Lucian - Florentin Barbulescu Software Developer Xtreme Software www.xts.ro
"Trust is a weakness" - Uplink Hacker Elite
|
|
|
|
 |
|
 |
I'm Done !! Thank You Very Much !! ^_^
KW-Rix
|
|
|
|
 |
 | How I Add more than 1 toolbar cungdaus | 22:23 16 Jun '04 |
|
 |
Because Toolbar is loaded into construction Dialog, so I do know, How I can Load more than one Toolbar answer me as soon as possiple thanks very much.
|
|
|
|
 |
|
 |
As the class is written at this moment, you can not. I don't think that I will add support for this in the future, but you are free to modify the code to fitt your requirements.
----------------------------------------- Lucian - Florentin Barbulescu Software Developer Xtreme Software www.xts.ro
"Trust is a weakness" - Uplink Hacker Elite
|
|
|
|
 |
 | Another way... Anna-Jayne Metcalfe | 0:48 13 Apr '04 |
|
 |
Another way to do this is to create a frame window as a child of the dialog. That then gives you access to all of the docking and command routing capabilities of CFrameWnd.
That's how this page[^] was implemented, for example.
Both approaches are equally valid of course...which is more appropriate depends on the requirements of the UI.
Anna 
Homepage | Tears and Laughter
"Be yourself - not what others think you should be" - Marcia Graesch
"Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work.
Trouble with resource IDs? Try the Resource ID Organiser Visual C++ Add-In
|
|
|
|
 |
 | Oh, and UPDATE_COMMAND_UI =[ Abin ]= | 0:30 9 Apr '04 |
|
 |
How to make the toolbar response to UPDATE_COMMAND_UI event? Thanks.
|
|
|
|
 |
|
 |
Well, version 1.0.1 doesn't support this. I've added support to UPDATE_UI in version 1.0.2
----------------------------------------- Lucian - Florentin Barbulescu Software Developer Xtreme Software www.xts.ro
"Trust is a weakness" - Uplink Hacker Elite
|
|
|
|
 |
|
 |
Excellent! Thanks a lot, you've got my 5.
|
|
|
|
 |
 | VC6 Compatibility =[ Abin ]= | 16:28 8 Apr '04 |
|
 |
The code cannot be compiled in VC6 simply because there is no such member function called SetPoint in class CPoint(VC6), really easy to fix, of course. 
|
|
|
|
 |
|
 |
Fixed in version 1.0.2
----------------------------------------- Lucian - Florentin Barbulescu Software Developer Xtreme Software www.xts.ro
"Trust is a weakness" - Uplink Hacker Elite
|
|
|
|
 |
 | Something is wrong ... ReorX | 22:49 7 Apr '04 |
|
 |
... if the toolbar is attached to the right or the left: you can't drag it anymore from there with the handle. Only way to retrieve it is by double-clicking and dragging it afterwards somewhere else. Probably easy to fix.
The Saviour of the World is a Penguin and Linus Torvalds is his Prophet.
|
|
|
|
 |