Page MenuHome

Better button labels for limited and unsupported GPU warning
Closed, ResolvedPublic

Description

After D5955: GPU: Platform Support Level we can still make an improvement to this dialog, changing:

HelpOk

To:

Find Latest DriversContinue Anyway

This requires creating a custom dialog on Windows.

Event Timeline

Brecht Van Lommel (brecht) lowered the priority of this task from Needs Triage by Developer to Normal.Fri, Oct 4, 3:54 PM
Brecht Van Lommel (brecht) created this task.

This is actually less complicated than you may think, in vista (our current low bar) we got a new dialog API for simple things like this.

	int nButtonPressed = 0;
	TASKDIALOGCONFIG config = { 0 };
	const TASKDIALOG_BUTTON buttons[] = {
		{ IDOK, L"Find Latest Drivers"},
		{ IDCONTINUE, L"Continue Anyway"}
	};

	config.cbSize = sizeof(config);
	config.hInstance = 0;
	config.dwCommonButtons = 0;
	config.pszMainIcon = TD_WARNING_ICON;
	config.pszWindowTitle = L"Blender";
	config.pszMainInstruction = L"Popup Tile";
	config.pszContent = L"yadayadaya drivers yadayadaya ";
	config.pButtons = buttons;
	config.cButtons = ARRAYSIZE(buttons);

	TaskDialogIndirect(&config, &nButtonPressed, NULL, NULL);
	switch (nButtonPressed)
	{
	case IDOK:
		break;
	case IDCONTINUE:
		break;
	default:
		break; // should never happen
	}

gets you

cc: @Jeroen Bakker (jbakker)