Ecere SDK/eC Forums https://ecere.org/community/ Print view |
|
Code snippets 1: ListBox https://ecere.org/community/viewtopic.php?f=30&t=157 |
Page 1 of 1 |
Author: | samsam598 [ Mon Aug 22, 2011 3:51 am ] |
Post subject: | Code snippets 1: ListBox |
Code: Select all
|
Author: | liqi98136 [ Wed Aug 24, 2011 7:43 am ] |
Post subject: | Re: Code snippets 1: ListBox |
顶一个,加油. |
Author: | D.Bane [ Thu Sep 08, 2011 1:28 am ] |
Post subject: | Re: Code snippets 1: ListBox |
Hi Sam. Hope you do not mind me saying this but you will have less to write in your code... Code: Select all
Best Regards, oh, and thank you for the questions on forum, you saved me some trouble D.Bane. |
Author: | samsam598 [ Thu Sep 08, 2011 4:28 am ] |
Post subject: | Re: Code snippets 1: ListBox |
Hi D.Bane, Thank you!Yes,just noticed that Code: Select all
Also noted that in many cases the this can be omitted.I used it just to fire the code auto-completion Appreciate your help and you are always welcome. Regards, Sam |
Author: | jerome [ Thu Sep 08, 2011 8:31 am ] |
Post subject: | Re: Code snippets 1: ListBox |
Thanks Sam and D.Bane for the samples =) D.Bane is right the 'listBox' parameter is passed in for convenience, and you can use it instead of 'listBox1' or 'this.listBox1' but the main reason for it is so that you can use the same method for multiple controls, e.g. Code: Select all
Then you know which list box sent the notification But it's fine as well to use 'listBox1' (which translates to this.listBox1) if you want to be explicit. Sam, you can bring up the auto-complete with Ctrl-Space, which lists all identifiers available in the current context, and if you have started typing anything it will auto-complete it. Ctrl-Shift-Space is to bring up the instantiation members and function parameters. The auto-complete is a bit buggy right now, it will be part of the focus of 0.44 pre-release 2 to fix most of the bugs. Our milestones ahead: https://launchpad.net/ecere/+milestones |
Author: | linghutf [ Thu Sep 22, 2011 9:08 pm ] |
Post subject: | Re: Code snippets 1: ListBox |
控件库里没有?基本控件应该学学Qt,都做出来。 |
All times are UTC-05:00 | Page 1 of 1 |
Powered by phpBB® Forum Software © phpBB Limited |