Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl cell consisting of edit and helper button  
	
		
		
			| Re: ArrayCtrl cell consisting of edit and helper button [message #2621 is a reply to message #2620] | 
			Wed, 19 April 2006 07:53    | 
		 
		
			
				
				
				  | 
					
						  
						fudadmin
						 Messages: 1321 Registered: November 2005  Location: Kaunas, Lithuania
						
					 | 
					Ultimate Contributor Administrator  | 
					 | 
		 
		 
	 | 
 
	
		ok, you can try this and tell if it's what you expected. 
#include <CtrlLib/CtrlLib.h>
class Ctrl2 : public ParentCtrl {
	EditField edit;
	Button button;
public:
	typedef Ctrl2 CLASSNAME;
	Ctrl2();
	~Ctrl2() {;}
};
Ctrl2::Ctrl2()
{
	edit.SetRect(0,0,50,15); //one problem are sizes >15...
	button.SetRect(55,0,85,15);
	button.SetLabel("Help!!!");
	Add(edit);
	Add(button);
}
void Extra2(One<Ctrl>& ctrl)
{
		ctrl.Create<Ctrl2>();
}
GUI_APP_MAIN
{
	TopWindow w;
	ArrayCtrl arr;
	
	arr.AddColumn("col1",2);
	arr.AddColumn("col2",5).Ctrls(Extra2);
	arr.SetLineCy(20);
		
	arr.Add("aaa");
	arr.Add("bbb");
	
	arr.SizePos();
	w.Add(arr);
	
	w.Run();
}
 
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
	
	  | 
	 | 
	
		ArrayCtrl cell consisting of edit and helper button
		
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		By:  fudadmin on Wed, 19 April 2006 06:56  
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		By:  fudadmin on Wed, 19 April 2006 07:38  
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		By:  fudadmin on Wed, 19 April 2006 07:53  
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		By:  mirek on Wed, 19 April 2006 14:31  
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		By:  forlano on Sat, 06 May 2006 01:31  
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		By:  forlano on Sat, 06 May 2006 02:13  
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		By:  forlano on Sat, 06 May 2006 10:38  
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		By:  forlano on Sat, 06 May 2006 10:44  
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		By:  mirek on Sun, 07 May 2006 19:50  
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		By:  fudadmin on Wed, 19 April 2006 18:19  
	 | 
 
	  | 
	 | 
	
		Re: ArrayCtrl cell consisting of edit and helper button
		By:  mirek on Wed, 19 April 2006 18:35  
	 | 
  
Goto Forum:
 
 Current Time: Tue Nov 04 17:13:25 CET 2025 
 Total time taken to generate the page: 0.06187 seconds 
 |