Ejemplo n.º 1
0
void MCScrollbar::Redraw(bool dirty)
{
	flags |= F_SAVE_ATTS;

	if (!opened || !dirty)
		return;

	compute_barsize();
	// MW-2011-08-18: [[ Layers ]] Invalidate the whole object.
	redrawall();
}
Ejemplo n.º 2
0
void MCScrollbar::open()
{
	MCControl::open();

	// MW-2011-02-03: [[ Bug 7861 ]] Should make working with large Mac progress bars better.
	if (opened == 1 && !getflag(F_SB_STYLE))
	{
		uint2 oldwidth = MAC_SB_WIDTH;
		uint2 newwidth = DEFAULT_SB_WIDTH;
		if (IsMacLFAM())
		{
			oldwidth = DEFAULT_SB_WIDTH;
			newwidth = MAC_SB_WIDTH;
		}
		borderwidth = DEFAULT_BORDER;
		if (rect.height == oldwidth)
			rect.height = newwidth;
		if (rect.width == oldwidth)
			rect.width = newwidth;
	}

	compute_barsize();
}