Author | Topic: Xbptolbar question | |
---|---|---|
Carlos A Beling | Xbptolbar question on Sun, 05 Jul 2020 11:50:53 -0300 Hi good week end. Please, how can I centralize the XbpToolBar buttons in the :drawingArea? Fraternally Beling | |
Andreas Gehrs-Pahl | Re: Xbptolbar question on Sun, 05 Jul 2020 15:10:42 -0400 Carlos, >Please, how can I centralize the XbpToolBar buttons in the :drawingArea? XbpToolBarButton() objects can only be added to XbpToolBar() objects, not to XbpWindow():DrawingArea objects. The individual XbpToolBarButton() objects are managed by the XbpToolBar() object, which is simply a wrapper for the ActiveX Toolbar class defined in the MS Windows Common Controls (Version 6) in MSComCtl.ocx and which has no options or feature to manually size or position individual buttons. You can only define the (default) size (height and width) of (all) buttons. If you need a different behavior, you need to create your own ToolBar class, and some corresponding ToolBarButtons. Also, there might be some 3rd-party add-on products that have such ToolBars and the corresponding ToolBarButtons already implemented. Hope that helps, Andreas Andreas Gehrs-Pahl Absolute Software, LLC phone: (989) 723-9927 email: Andreas@AbsoluteSoftwareLLC.com web: http://www.AbsoluteSoftwareLLC.com [L]: https://www.LinkedIn.com/in/AndreasGehrsPahl [F]: https://www.FaceBook.com/AbsoluteSoftwareLLC | |
Carlos A Beling | Re: Xbptolbar question on Wed, 08 Jul 2020 11:01:47 -0300 Hello Andreas. Many thanks again. As in this moment I need very little option for the toolbar I think that is best to follow uour advice for creating a simple toolbar . Fraternally Beling On 05/07/2020 16:10, Andreas Gehrs-Pahl wrote: > Carlos, > >> Please, how can I centralize the XbpToolBar buttons in the :drawingArea? > > XbpToolBarButton() objects can only be added to XbpToolBar() objects, not to > XbpWindow():DrawingArea objects. > > The individual XbpToolBarButton() objects are managed by the XbpToolBar() > object, which is simply a wrapper for the ActiveX Toolbar class defined in > the MS Windows Common Controls (Version 6) in MSComCtl.ocx and which has no > options or feature to manually size or position individual buttons. You can > only define the (default) size (height and width) of (all) buttons. > > If you need a different behavior, you need to create your own ToolBar class, > and some corresponding ToolBarButtons. > > Also, there might be some 3rd-party add-on products that have such ToolBars > and the corresponding ToolBarButtons already implemented. > > Hope that helps, > > Andreas > |