Widget Session ID Video Tutorial

This forum is reserved for everything you want to talk about. It could be about programming, opinions, open source programs, development in general, or just cool stuff to share!
Post Reply
fridolph
In need of some credit
In need of some credit
Posts: 3
Joined: Wed Oct 08, 2014 10:35 am
Contact:

Widget Session ID Video Tutorial

Post 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?
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Widget Session ID Video Tutorial

Post by doublemax »

Could you explain what you're referring to? I can't remember any place where wxWidgets uses session ids.
Use the source, Luke!
fridolph
In need of some credit
In need of some credit
Posts: 3
Joined: Wed Oct 08, 2014 10:35 am
Contact:

Re: Widget Session ID Video Tutorial

Post by fridolph »

What I mean is window id. I'm sorry. I was bit puzzle then.
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Widget Session ID Video Tutorial

Post 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.
Use the source, Luke!
fridolph
In need of some credit
In need of some credit
Posts: 3
Joined: Wed Oct 08, 2014 10:35 am
Contact:

Re: Widget Session ID Video Tutorial

Post by fridolph »

I'll try to study "minimal" to understand it well. Thank you!
Post Reply