ToolBar position in a form

Source code related resources

Moderator: Rathinagiri

User avatar
mol
Posts: 3726
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

ToolBar position in a form

Post 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?
User avatar
serge_girard
Posts: 3170
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: ToolBar position in a form

Post by serge_girard »

Marek,

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

Serge
There's nothing you can do that can't be done...
User avatar
mol
Posts: 3726
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: ToolBar position in a form

Post by mol »

Is the only way building own toolbar? Strange..
User avatar
gfilatov
Posts: 1076
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: ToolBar position in a form

Post 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 5225 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 5225 times
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
serge_girard
Posts: 3170
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: ToolBar position in a form

Post by serge_girard »

Great Grigory !
There's nothing you can do that can't be done...
User avatar
mol
Posts: 3726
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: ToolBar position in a form

Post by mol »

It's useful, but I thought about placing ordinary toolbar at the of the form
EduardoLuis
Posts: 683
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: ToolBar position in a form

Post 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
User avatar
mol
Posts: 3726
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: ToolBar position in a form

Post 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.
User avatar
gfilatov
Posts: 1076
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: ToolBar position in a form

Post 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 5048 times
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
Post Reply