Page 1 of 2

ToolBar position in a form

Posted: Wed Mar 06, 2024 9:58 am
by mol
I can't find if it's a way to position toolbar anywhere I want on the form.
Do anybody have an idea how to move it?

Re: ToolBar position in a form

Posted: Thu Mar 07, 2024 7:08 am
by serge_girard
Marek,

I don't think it is possible. Anyway I never found it!

Serge

Re: ToolBar position in a form

Posted: Thu Mar 07, 2024 7:58 am
by mol
Is the only way building own toolbar? Strange..

Re: ToolBar position in a form

Posted: Thu Mar 07, 2024 10:37 am
by gfilatov
mol wrote: Thu Mar 07, 2024 7:58 am Is the only way building own toolbar? Strange..
Hi Marek,
toolbar.png
toolbar.png (2.45 KiB) Viewed 6166 times
If you are talking about floating toolbar, this feature is available in MiniGUI Ex build.

The source code to define the above toolbar is below.

Code: Select all

...
      DEFINE WINDOW Form_Fl ;
         AT 0,0 ;
         WIDTH 200 HEIGHT 80 ;
         TITLE 'ToolBar Float Small Buttons';
         PALETTE ;
         ON SIZE flResizeTb();
         ON INIT AdjustFloatToolbar( GetFormHandle('Form_1'), GetFormHandle('Form_fl'), GetControlHandle ('ToolBar_i' , 'Form_fl' ) )

         DEFINE TOOLBAREX ToolBar_i BUTTONSIZE 16,16 IMAGELIST IDB_STD_SMALL_COLOR  CAPTION 'Small Buttons from DLL' FLAT

            BUTTON Button_1 ;
               PICTUREINDEX STD_FILENEW ;
               TOOLTIP 'New file';
               ACTION MsgInfo('Click! ')

            BUTTON Button_2 ;
               PICTUREINDEX STD_FILEOPEN ;
               TOOLTIP 'File open';
               ACTION MsgInfo('Click! ')

            BUTTON Button_3 ;
               PICTUREINDEX STD_FILESAVE ;
               TOOLTIP 'Save file';
               ACTION MsgInfo('Click! ');

            BUTTON Button_4 ;
               PICTUREINDEX STD_PRINTPRE ;
               TOOLTIP 'Print Preview';
               ACTION MsgInfo('Click! ')

            BUTTON Button_5 ;
               PICTUREINDEX STD_PRINT ;
               TOOLTIP 'Print ';
               ACTION MsgInfo('Click! ');

            BUTTON Button_6 ;
               PICTUREINDEX STD_PROPERTIES ;
               TOOLTIP 'Properties';
               ACTION MsgInfo('Click! ')

            BUTTON Button_7 ;
               PICTUREINDEX STD_REPLACE ;
               TOOLTIP 'Replace';
               ACTION MsgInfo('Click! ');

            BUTTON Button_8 ;
               PICTUREINDEX STD_FIND ;
               TOOLTIP 'Find';
               ACTION MsgInfo('Click! ');

            BUTTON Button_9 ;
               PICTUREINDEX STD_CUT ;
               TOOLTIP 'Cut';
               ACTION MsgInfo('Click! ');

            BUTTON Button_10 ;
               PICTUREINDEX STD_DELETE ;
               TOOLTIP 'Delete';
               ACTION MsgInfo('Click! ');

            BUTTON Button_11 ;
               PICTUREINDEX STD_PASTE ;
               TOOLTIP 'Paste';
               ACTION MsgInfo('Click! ');

            BUTTON Button_12 ;
               PICTUREINDEX STD_UNDO ;
               TOOLTIP 'Undo';
               ACTION MsgInfo('Click! ');

            BUTTON Button_13 ;
               PICTUREINDEX STD_REDOW ;
               TOOLTIP 'Redo';
               ACTION MsgInfo('Click! ');

            BUTTON Button_14 ;
               PICTUREINDEX STD_HELP ;
               TOOLTIP 'Help';
               ACTION MsgInfo('Click! ');


         END TOOLBAR

      END WINDOW

   CENTER WINDOW Form_Fl

   ACTIVATE WINDOW Form_Fl
You can see possible processing of this toolbar in the following picture:
image.png
image.png (13.87 KiB) Viewed 6166 times

Re: ToolBar position in a form

Posted: Fri Mar 08, 2024 7:15 am
by serge_girard
Great Grigory !

Re: ToolBar position in a form

Posted: Fri Mar 08, 2024 6:48 pm
by mol
It's useful, but I thought about placing ordinary toolbar at the of the form

Re: ToolBar position in a form

Posted: Sat Mar 09, 2024 1:22 pm
by EduardoLuis
Hi Mol:

The best place to put a Toolbar is at the top of the form.-
As it is a container, you can define many toolbars in diferent modal windows, so as it is, its absolutly versatile.-
I remember that somebody long time ago, put the toolbar at the bottom of the form, but its not usefull.-
As lots of app manages toolbar at the top, end users are familiarized looking options at the op of form.-
Just an opinion.-
With regards. Eduardo

Re: ToolBar position in a form

Posted: Sat Mar 09, 2024 3:32 pm
by mol
I agree that the best place of toolbar is at the top. But, my form has two functions: one to add cheque and second - list of clients with texboxes of its properties and possibilities to edit and add new one.
It's my client request.

Re: ToolBar position in a form

Posted: Sat Mar 09, 2024 4:17 pm
by gfilatov
mol wrote: Sat Mar 09, 2024 3:32 pm I agree that the best place of toolbar is at the top. But, my form has two functions: one to add cheque and second - list of clients with texboxes of its properties and possibilities to edit and add new one.
It's my client request.
Hi Marek,

How about using a vertical toolbar as shown in the image below :?:
capture.png
capture.png (8.91 KiB) Viewed 5989 times

Re: ToolBar position in a form

Posted: Mon Mar 11, 2024 10:58 am
by mol
Looks really good!