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!
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

Postby fridolph » Wed Oct 08, 2014 10:57 am

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: 11529
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Widget Session ID Video Tutorial

Postby doublemax » Wed Oct 08, 2014 12:41 pm

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

Postby fridolph » Mon Oct 20, 2014 8:56 am

What I mean is window id. I'm sorry. I was bit puzzle then.

User avatar
doublemax
Moderator
Moderator
Posts: 11529
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Widget Session ID Video Tutorial

Postby doublemax » Mon Oct 20, 2014 2:22 pm

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

Postby fridolph » Mon Nov 10, 2014 8:44 am

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


Return to “Open Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest