[Gambas-user] ButtonFrame anyone?

Bruce Steers bsteers4 at gmail.com
Mon Mar 15 15:34:48 CET 2021


If anyone has use for an enhanced Frame container that has a menu button
(if you want) there is one here...
https://gitlab.com/bsteers4/buttonframe

Any suggestions/comments welcome
Maybe ButtonFrame is misnamed and should be MenuFrame?

Wishing well
BruceS

Form the README...
ButtonFrame.class A Gambas Frame.class with a menu button

A Frame.class with a menu icon in the top right corner.\

   -

   Assign a Menu as you would a normal Popup menu\
   -

   Set the menu icon image using MenuIcon property.
   -

   Access ButtonFrame.LastFrame on menu click so one menu can be used on
   multiple frames.
   -

   Use Text or RichText for Title (setting RichText will override Text
   property)
   -

   Increase button size by increasing TextFont (Frame title text) size.
   -

   Button can be excluded from TabFocus
   -

   Set Buttonframe.Foreground to change title color.
   -

   Simply copy the ButtonFrame.class file to your project .src directory
   and compile.
   -

   After compiling ButtonFrame will be in the designer Container section.
   -

   Info/help is added to the source so it shows in the help section/wiki

Credits.\

   - Benoit Minisini: Author of Gambas the the original Frame.class
   - Bruce Steers: menu button additional code plus some other enhancements.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210315/12dd79fa/attachment-0001.htm>


More information about the User mailing list