DELPHI xe5-8 pop-up list box for selection

Source: Internet
Author: User

Click the chapter Exercise: var tmplm:tlistboxitem;begin  DM. Fdqtmp. Sql. Clear;  Dm. Fdqtmp. Sql. Add (' Select Gsesson from tsquestions where GLESSON=:GGL Group by Gsesson ');  Dm. Fdqtmp. Params.parambyname (' Ggl '). Value:=qlesson;  Dm. Fdqtmp. Open;  Dm. Fdqtmp. First;  ListBoxSesson.Items.Clear;  Listboxsesson.beginupdate;  While not DM. Fdqtmp. Eof do   begin     Tmplm:=tlistboxitem.create (nil);     TMPLM. ITEMDATA.TEXT:=DM. Fdqtmp. Fieldbyname (' Gsesson '). asstring;     TMPLM. Itemdata.bitmap:=imageyuan.bitmap;     TMPLM. Parent:=listboxsesson;     Dm. Fdqtmp. Next;   End;   Listboxsesson.endupdate;   Popsesson. Placementtarget:=imagetop;   Popsesson. Placement:=tplacement.plbottomcenter;   Popsesson. Isopen:=true;

  

Procedure Tfmode.listboxsessonchange (sender:tobject); Begin  //Select Chapter    qsesson:=listboxsesson.items[ Listboxsesson.itemindex];    Popsesson. Isopen:=false;    If Length (Qsesson) <>0 then     begin       Application.createform (Tfansone, fansone);       {$IFDEF Android}        Fansone.show;      {$ENDIF}       {$IFDEF IOS}        ShowMessage (' Start with ' +qsesson+ ' Chapter ');        Fansone.show;      {$ENDIF}      {$IFDEF MSWindows}        Fansone.showmodal;       {$ENDIF}     End;end;

  

DELPHI xe5-8 pop-up list box for selection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.