Page 1 of 1
Widget Session ID Video Tutorial
Posted: Wed Oct 08, 2014 10:57 am
by fridolph
I want to learn about widget session id. I'm still puzzled when reading that in manual. Maybe I can understand better when I see it through video tutorial.
Do you have video tutorial about it?
Re: Widget Session ID Video Tutorial
Posted: Wed Oct 08, 2014 12:41 pm
by doublemax
Could you explain what you're referring to? I can't remember any place where wxWidgets uses session ids.
Re: Widget Session ID Video Tutorial
Posted: Mon Oct 20, 2014 8:56 am
by fridolph
What I mean is window id. I'm sorry. I was bit puzzle then.
Re: Widget Session ID Video Tutorial
Posted: Mon Oct 20, 2014 2:22 pm
by doublemax
A window id is just a unique integer that identifies a window. In some cases, e.g. for a wxFrame you usually don't need it, so you just pass wxID_ANY when you create it.
For other controls, e.g. wxButton or menu entries you need it to know which button or menu entry the user has selected, so you can perform the correct action in your program.
If you study the "minimal" sample that comes with wxWidgets, you'll see that there are only two unique IDs used, "Minimal_Quit" and "Minimal_About". If you do a text search for these IDs in the source file, you should be able to understand their purpose.
Re: Widget Session ID Video Tutorial
Posted: Mon Nov 10, 2014 8:44 am
by fridolph
I'll try to study "minimal" to understand it well. Thank you!