Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » PopUpTable:does this ctrl exist?
PopUpTable:does this ctrl exist? [message #28403] |
Tue, 31 August 2010 19:06 |
281264
Messages: 270 Registered: June 2010 Location: Spain
|
Experienced Member |
|
|
Hi,
I am interested in knowing whether the ctrl in question does exist. If it does, how does it work (please provide some hints)?
I find very attractive the combination of ArryCtrl + dropdown feature.
Thank you,
Javier
|
|
|
|
|
|
Re: PopUpTable:does this ctrl exist? [message #28453 is a reply to message #28450] |
Thu, 02 September 2010 12:46 |
pepe11
Messages: 16 Registered: June 2006 Location: Slovakia
|
Promising Member |
|
|
281264 wrote on Thu, 02 September 2010 12:28 | All right, but…when I use it (either through the visual editor –user class- or manually) the control does not show the drop-down feature at all. And, IMO, it is in the drop down+arrayctrl feature where the attractiveness of this control resides, is it not?
So, any precise hint?
Thank you,
Javier
|
My use (no visual editor)
.h
FrameRight<Button> buildmethod;
PopUpTable methodlist;
EditString technik;
.cpp
technik.AddFrame(buildmethod);
buildmethod.SetMonoImage(CtrlImg::SmallDown()).NoWantFocus() ;
buildmethod.WhenPush = THISBACK(DropMethodList);
methodlist.Normal();
methodlist.AddColumn();
methodlist.Grid();
methodlist.WhenSelect = THISBACK(SelectMethod);
.....
void DropMethodList(){methodlist.PopUp(&technik);}
void SelectMethod(){if(methodlist.IsCursor()) technik <<= methodlist.Get(1);}
.....
while(sql2.Fetch())
methodlist.Add(sql2[2],Value(Format("%s , %s",sql2[0],sql2[1])));
......
and it's run.
pepe
[Updated on: Thu, 02 September 2010 12:47] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Apr 20 05:01:15 CEST 2024
Total time taken to generate the page: 0.03573 seconds
|