Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Howto create control-collection -control? [SOLVED -good example]
Howto create control-collection -control? [SOLVED -good example] [message #1519] |
Tue, 07 March 2006 22:45 |
wilho
Messages: 19 Registered: February 2006
|
Promising Member |
|
|
Hi!
Edit: this was a way too hasty question now slowly becoming tutorial it seems I'm creating simple control by combining splitter, button and user defined control. Couple of these SplitterButtons could create something like there's in outlook's left pane. So here's what I got so far:
class SplitterButton : public ParentCtrl{
Splitter splitter;
Button button;
typedef SplitterButton CLASSNAME;
public:
SplitterButton();
void Vert(Ctrl&);
void Toggle();
void SplitterButton::SetSplitPos(int);
};
SplitterButton::SplitterButton(){
button <<= THISBACK(Toggle);
Add(splitter);
}
void SplitterButton::Vert(Ctrl& ctrl){
splitter.Vert(ctrl, button);
}
void SplitterButton::Toggle(){
splitter.Zoom(splitter.GetZoom() == 1 ? -1 : 1);
//todo:resize code
}
void SplitterButton::SetSplitPos(int newpos){
splitter.SetPos(newpos);
}
Next thing is to create code for the control to resize itself...I suppose that there's no way link controls position into another one, so I have to move other controls out of the way and back by hand?
If you think this is wrong approach or here's something wrong, feel free to open up. I'll be back.
[Updated on: Sun, 09 April 2006 04:08] by Moderator Report message to a moderator
|
|
|
|
|
Howto create control-collection -control? [SOLVED -good example]
By: wilho on Tue, 07 March 2006 22:45
|
|
|
Re: Howto create control-collection -control?
By: mirek on Tue, 07 March 2006 23:32
|
|
|
Re: Howto create control-collection -control?
By: wilho on Sat, 11 March 2006 18:09
|
|
|
Re: Howto create control-collection -control?
By: mirek on Sat, 11 March 2006 18:43
|
|
|
Re: Howto create control-collection -control?
By: wilho on Sat, 11 March 2006 19:33
|
|
|
Re: Howto create control-collection -control?
By: mirek on Sat, 11 March 2006 20:39
|
|
|
Re: Howto create control-collection -control?
By: wilho on Sun, 12 March 2006 11:25
|
|
|
Re: Howto create control-collection -control?
By: mirek on Sun, 12 March 2006 12:47
|
|
|
Re: Howto create control-collection -control?
By: wilho on Mon, 13 March 2006 20:42
|
|
|
Re: Howto create control-collection -control?
By: mirek on Mon, 13 March 2006 22:04
|
|
|
Re: Howto create control-collection -control?
By: fudadmin on Tue, 14 March 2006 18:05
|
|
|
Re: Howto create control-collection -control?
By: wilho on Tue, 14 March 2006 19:23
|
|
|
Re: Howto create control-collection -control? [SOLVED -good example]
By: kbyte on Tue, 07 April 2009 10:53
|
|
|
Re: Howto create control-collection -control? [SOLVED -good example]
By: mrjt on Tue, 07 April 2009 12:10
|
|
|
Re: Howto create control-collection -control? [SOLVED -good example]
By: kbyte on Tue, 07 April 2009 15:29
|
|
|
Re: Howto create control-collection -control? [SOLVED -good example]
By: kbyte on Tue, 07 April 2009 15:36
|
|
|
Re: Howto create control-collection -control? [SOLVED -good example]
By: mrjt on Wed, 08 April 2009 10:52
|
|
|
Re: Howto create control-collection -control? [SOLVED -good example]
By: kbyte on Wed, 08 April 2009 11:46
|
|
|
Re: Howto create control-collection -control? [SOLVED -good example]
By: mrjt on Wed, 08 April 2009 16:05
|
|
|
Re: Howto create control-collection -control? [SOLVED -good example]
By: kbyte on Thu, 09 April 2009 10:26
|
Goto Forum:
Current Time: Sat Apr 27 20:00:42 CEST 2024
Total time taken to generate the page: 0.04318 seconds
|