Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl: custom ButtonOption inside a cell
Re: GridCtrl: custom ButtonOption inside a cell [message #43277 is a reply to message #43271] Sat, 21 June 2014 22:28 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
Hello, Luigi.

forlano wrote on Sat, 21 June 2014 08:46
It works but I do not see where to use
.SetImage()


The One::Create() method returns reference to created object of specified type. For example, in your case:
void MakeButtonOption(One<Ctrl>& ctrl)
{
	ButtonOption& option = ctrl.Create<ButtonOption>();
	option.SetImage(Null, CtrlImg::check());
	option.WantFocus();
}

I created following example to demonstrate this:
index.php?t=getfile&id=4569&private=0

Toggle source code

[Updated on: Sat, 21 June 2014 22:42]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: GridCtrl: Repaint bug?
Next Topic: [BUG & FIX] in HeaderCtrl::LeftDouble
Goto Forum:
  


Current Time: Mon Aug 25 20:18:34 CEST 2025

Total time taken to generate the page: 0.06186 seconds