sdomi / DrawButton

This function draws an empty BButton into a view. This is useful when you want to create a BPictureButton that looks BeOS-like.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DrawButton

This is a demo program that showcases a function for drawing an empty BButton into a view. This might be useful when want to create a BPictureButton that shall look BeOS-like.

void DrawButton(BView *view, BRect frame = BRect(0,0,0,0), bool pressed = false)

Demo in action

The Button is drawn into view. If given, it uses the dimensions of frame, otherwise it uses view's dimensions. pressed describes the look: normal button or pressed button.s

This source code is Public Domain.

Author: Werner Freytag (freytag at gmx dot de)

About

This function draws an empty BButton into a view. This is useful when you want to create a BPictureButton that looks BeOS-like.


Languages

Language:Makefile 57.2%Language:C++ 41.4%Language:C 1.4%