Home » Developing U++ » UppHub » Modified Controls4U demo
Modified Controls4U demo [message #44598] |
Tue, 14 April 2015 16:19 |
|
deep
Messages: 263 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hello,
I required to have different layouts displayed in same right side area based on selection from left panel.
I have attached the files.
Based on selection from ColumnList from left I replace the layout in RightPanel.
I am using switch case to display selected function.
How to create array of the functions so that I can run function in right panel based on selection index. Like I have done it for bottom display. Then no need of switch case.
Warm Regards
Deepak
|
|
|
|
|
Re: Modified Controls4U demo [message #44602 is a reply to message #44598] |
Wed, 15 April 2015 16:03 |
|
deep
Messages: 263 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hello Koldo,
I was not expecting change in demo itself.
I wanted to achieve something like this and I chose your demo for quick check.
Your demo has come out well. ctrl.Hide(), ctrl.Show() is new Discovery for me.
I checked the new demo.
I have small suggestion.
for (int i = 0; i < controls.GetCount(); ++i) {
rect.Add(controls[i]->SizePos());
controls[i]->Hide();
}
void Controls4U_Demo::OnGridSel() {
static int last = 0 ;
int row = grid.GetCursor();
controls[last]->Hide();
controls[row]->Show();
last = row ;
}
Warm Regards
Deepak
[Updated on: Wed, 15 April 2015 16:07] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat Apr 20 05:07:39 CEST 2024
Total time taken to generate the page: 0.02827 seconds
|