Full Version: Toolbar with large Icons

From: Jaeger (JAEGER0) [#1]
 5 Feb 13:54
To: ALL

I was working with the TBtest example.
I want to use large Icons in the toolbar, so I used the command
bSt = XCreateToolbar(XW_FRAME, xTb, IDR_TOOLBAR1, TBSTYLE_TOOLTIPS .OR. WS_BORDER, 32,32, 32, 32)
the parameter iXButton,iYbutton does not affect.

what is the problem ?

Further I observed, that I get a black line upon, and below the toolbar, if I resize the frame-window. This are regions which are not redrawn.
I overcome this problem, by repositioning the toolbar, with

iSt = SetWindowPos(xTb%hWnd, HWND_TOP, 0, -1, tW +1, tH, SWP_SHOWWINDOW)

XToolbarSetPos, did not solve the problem

Reply


From: geezer (MG) [#2]
 6 Feb 21:27
To: Jaeger (JAEGER0) [#1] 7 Feb 10:35

I've never tried large icons in a toolbar. Did you get them to display OK?

Re-sizing a window with a toolbar is tricky because the toolbar and view area (and status bar if used) all compete in the client area. If you want, I can send you a sample project that uses XToolbarSetPos

Reply


From: Jaeger (JAEGER0) [#3]
 7 Feb 10:39
To: geezer (MG) [#2] 7 Feb 19:01

It would be nice, if you could send me an example.
I was able to resize the toolbar. But the problem is to resize the buttons. When I used 32x32 bitmaps for the buttons. The buttons are overdrawn.

Reply


Reply to All

Back to thread list | Login

© 2010 Project BeehiveForum