containers

Button behind transparent Hbox unclickable

I have a HBox with no background, but with some children. Behind the HBox is a button which need to be clicked. The button is unclickable at the moment because the HBox is on top of it. I need the button to be clickable and still have the HBox on top of it. Is there a way to accomplish this, because I can't seem to find a solution... ...

[PyGTK] How can I show a widget and all its parent containers?

In my program, there is a point where all widgets are hidden. Is there a simple way to show a widget and all of its parent containers? I am not able to use show_all(), because that would show other widgets that I don't want shown. I could go down the containers and show them all, but I would prefer not to if there is a more concise solut...

Container relationships and encapsulation

In my game engine I have a State class that represents the game world at a point in time. This State contains a number of Body objects that define one rigid body each. Each State has a container to keep track of the Body objects it owns, and each Body has a pointer back to its parent State. Outline of State class: class State { private...

C++ STL list vs set

Hi, what of those two is faster for random insertions and deletions? I guess list, having the values as the keys as it is with sets seems to be attractive too though. Is performance similar for iterating over the whole container? Thanks! ...

jquery accordion - link to specific tab

Hi, Im new to jquery and before i embark on a project i would like to know if it is posisble to link to part 2 or 3 of this demo from an external page. http://jquery.bassistance.de/validate/demo/multipart/ or have an anchor on each page any help would be appreciated. Thanks ...

C++: How do I pass a container of derived classes to a function expecting a container of their base classes?

HI! Anyone know how I can make the line "chug(derlist);" in the code below work? #include <iostream> #include <list> using namespace std; class Base { public: virtual void chug() { cout << "Base chug\n"; } }; class Derived : public Base { public: virtual void chug() { cout << "Derived chug\n"; } void foo() { cout << "Der...

Stretch nested div to height of container div when container has height:auto?

I have a container div and two nested divs within. I do not have control over the content of either of these nested divs. What I essentially need is to make the two nested divs always have the same height. I figured this can be achieved by giving the container div height:auto so that it would stretch its own height to the tallest of the...

.NET Running 2 instances of the WebBrowser Control (separate cookie containers)

I'm trying to login to my website with two different accounts (admin/regular user) to test out some permissions masks - in short its a simple admin tool. Is there any way to run 2 instances of the WebBrowser control with separate cookie containers on two separate windows without having to execute your program twice? Edit: I'm using C#. ...

Creating a jQuery Accordion from non standard HTML structure

Hi, We all know that you use this structure to make an accordion <div id="accordion"> <h3><a href="#">First header</a></h3> <div>First content</div> <h3><a href="#">Second header</a></h3> <div>Second content</div> </div> But what if you want to create an accordion, using the code already in place, set by a terrible CM...

Cannot add child components to custom containers in Flex 4

Hi, there, I have a question about custom containers in Flex 4. For example, I extends DividedBox named FrameBox only changed the color of dividers, and I used it normally as the DividedBox. But I cannot add any components into it. In design node I can see these components but cannot see them in Flash Player. It seems the box's z-index i...

What is the relation between ContentPane and JPanel?

I found one example in which buttons are added to panels (instances of JPanel) then panels are added to the the containers (instances generated by getContentPane) and then containers are, by the construction, included into the JFrame (the windows). I tried two things: I got rid of the containers. In more details, I added buttons to a...

SetFocus for a Tabpanel within a tabcontainer

I need to setfocus to a control within a tabpanel of a tabcontainer based on the input validation. The control with the erroneous input needs to be focused and the activetabindex needs to be set for the tabpanel containing the control which genearated the error Is it possible to set activetabindex of the tabcontainer using the control's...

How to build our own java custom layout

Please help me how to creat own custom layout, container, component, layout manager... Example: Containers and Layout Managers Create a window frame. Nest panels within a frame for better layout control. Create and display buttons in a panel. List two component attributes that are controlled by a layout manager. Set the layout manager...

Flex3: How can I make a container resize based on the size of its contents?

FYI, I'm a Flex newbie. I'm trying to create a Flex application that can automatically shrink based on the size of the components that it contains, so that a user can shrink it to a minimal view to see more of the HTML page it's embedded in. I know how to change the size of the whole application using ExternalInterface, but I'm having ...

Scaling Java applications - existing cluster-aware IoC frameworks?

Most people use some kind of an IoC framework - Guice, Spring, you name it. Many of us need to scale their applications too, so they complicate their lifes with Terracotta, Glassfish/JBoss/insertyourfavouritehere clusters. But is it really the way to go? Are you using any of the above? Here's some ideas we currently have implemented in...

Flex: Is there any way to show scroll bars on a Container when children are off the top/left?

If I've got a Container with a child component that is off either the top or the left hand side: Is there any way to get scroll bars to show up? ie, so I can scroll up and get the button back in view, the same way I could if the button was off the bottom right side? Thanks! ...

What would be the safest way to store objects of classes derived from a common interface in a common container?

I'd like to manage a bunch of objects of classes derived from a shared interface class in a common container. To illustrate the problem, let's say I'm building a game which will contain different actors. Let's call the interface IActor and derive Enemy and Civilian from it. Now, the idea is to have my game main loop be able to do thi...

Branchless memory manager?

Anyone thought about how to write a memory manager (in C++) that is completely branch free? I've written a pool, a stack, a queue, and a linked list (allocating from the pool), but I am wondering how plausible it is to write a branch free general memory manager. This is all to help make a really reusable framework for doing solid concur...

C++ polymorphism, function calls

Okay, I'm pretty inexperienced as a programmer, let alone in C++, so bear with me here. What I wanted to do was to have a container class hold a parent class pointer and then use polymorphism to store a child class object. The thing is that I want to call one of the child class's functions through the parent class pointer. Here's a sort ...

reuse div container to load images

Hi All; What I would like to do: use a single container to load images. As it is now: I have eleven (11) containers in HTML mark-up each with its own div. each container holds 4 images (2 images side by side top and bottom) when link in anchor tag is clicked div with images fades in. jQquery accordion is used for navigation typical ex...