I have not worked with toolbars before, but it looks like you may need to set the separator's width, or add another separator after your second button and set its width. I know other rapid development tools require those spacers (Java, Qt).
Best regards,
Rick C. Hodgin
>I have created a toolbar for my application and have kept command buttons on it.
>When I execute my program I get the position of my toolbar as shown in picture No. 1.
>
>However I need to have position of my toolbar as shown in picture No-2. I did it by dragging the tool bar over my menu. One could see a small Blue Line on the top of Command Button in picture-1. I want to avoid this and keep it like as shown in picture-2..
>
>Is it possible through my program only that from the initial only I get position of my toolbar as shown in picture-2. I tried to change DOCKposition=0, DOCKposition=-1, but it didn’t worked.
>
>Here is my code
>
>
>PUBLIC tbrDesktop
>tbrDesktop = CREATEOBJ('mytoolbar')
>tbrDesktop.SHOW
>
>DEFINE CLASS myToolBar AS Toolbar
>ADD OBJECT btnTrial AS CommandButton
>ADD OBJECT sep1 AS Separator
>ADD OBJECT btnExcel AS CommandButton
>
>btnTrial.HEIGHT =32
>btnTrial.WIDTH = 32
>btnTrial.Picture='E:\Sanchar Reporter\20-06-13\Data\Graphics\A4 Size Trial.bmp.'
>btnTrial.Caption = ''
>
>
>btnExcel.HEIGHT =32
>btnExcel.WIDTH = 32
>btnExcel.Picture='E:\Sanchar Reporter\20-06-13\Data\Graphics\Frx2Any_Excel.bmp.'
>btnExcel.Caption = ''
>
>
>LEFT = 1
>TOP = -20
>WIDTH = 125
>DOCKposition=0
>
>Caption=' '
>Controlbox=.F.
>dockable=.F.
>
>
>PROCEDURE btnTrial.CLICK
>DO FORM trialperiodselection.scx
>ENDPROC
>
>PROCEDURE btnExcel.CLICK
>DO FORM trialperiodselection.scx
>ENDPROC
>
>ENDDEFINE
>
>
>
>Attached Picture1 and 2 are attached
>
>Any Idea ?
>
>
>