#include "bcpixmap.h"
#include "bcresources.h"
#include "bcsignals.h"
-#include "colors.h"
+#include "bccolors.h"
#include "fonts.h"
#include "keys.h"
#include "language.h"
void BC_Button::enable()
{
enabled = 1;
+ status = BUTTON_UP;
draw_face();
}
void BC_Button::disable()
{
enabled = 0;
+ status = BUTTON_UP;
draw_face();
}
int BC_Button::repeat_event(int64_t duration)
{
- if( status == BUTTON_UPHI && !tooltip_done &&
- tooltip_text && tooltip_text[0] != 0 &&
+ if( status == BUTTON_UPHI && tooltip_text && tooltip_text[0] != 0 &&
duration == top_level->get_resources()->tooltip_delay )
{
show_tooltip();
- tooltip_done = 1;
return 1;
}
return 0;
{
if(is_event_win() && enabled)
{
- tooltip_done = 0;
- if(top_level->button_down)
- {
+ if(top_level->button_down) {
status = BUTTON_DOWNHI;
}
else