Modal dialog example



Can somebody point me to an example in gtk+1.2 or Gtk-- that demonstrates a blocking modal panel?

E.g.,

void
mainWindow::handleCallback()
{
	GetSomethingPanel dialog = new GetSomethingPanel();

	// Blocks until the user presses a button to trigger
	// panel closing

	dialog.runAsModal();

	string result = dialog.getUserResponse();

	// Do something with result
	...
}

Everything I see is akin to setting up slots to pass data from one object to another on callback. Much like global variables...

--
____               .:.                 ____
Bryan W. Headley - bwheadley earthlink net




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]