Panels

Written by kishore

At the moment in my program I have a menu bar and a variety of toolbars which all work perfectly fine. The program already has one panel which holds all the toolbars in but I now need to include another panel. This new panel will hold components in it and the background colour will be white.

However I just can’t seem to find a way to make this new panel work with the program. The panel will either completely hide the toolbar panel and the window will be all white (except for the menu) or the new panel won’t show at all and only the toolbar panel will be visible. I have managed to get the panel showing by using width and height however I need the panel to stretch across the whole window.

Basically I need to find a way to make the new panel start underneath the previous panel and stretch the entire window. Any help would be much appreciated and I am willing to post code if you need it

Go to Source

Feb
28

to Process or not to Process?

Written by kishore

Well, we all know the differences between processes and threads. Process has a little more of overhead than a thread, and threads have a common address space(well except for their stack), while processes have different address space.
but when I build an application why should it create different processes? why not having one process for each application and a lot of threads associated with it.
can you guru give me a real world example when it is appropriate to use more than one process in my application(whatever it would be..).
If threads have a little overhead over my app, it looks like I would prefer it over creating a lot of processes.
Thanks :D .

Go to Source

Feb
28