Questions tagged [children]

Children is the set of all nodes within a hierarchical data structure which have a node above them.

1638 questions
7
votes
4 answers

Killing child and its children when child was created using open

Here's my code, with error handling and other stuff removed for clarity: sub launch_and_monitor { my ($script, $timeout) = @_; sub REAPER { while ((my $child = waitpid(-1, &WNOHANG)) > 0) {} $SIG{CHLD} = \&REAPER; } …
richard
  • 75
  • 1
  • 5
7
votes
1 answer

Caching child files in knitr

I have a problem with child files in knitr. The caching works fine, but the dependencies do not work. My sandbox example looks like that: \documentclass{article} \begin{document} <>= opts_chunk$set(cache=TRUE,…
panuffel
  • 624
  • 1
  • 8
  • 15
7
votes
5 answers

How to get all children (visible and invisible) from a ListView?

My problem is similar to ListView getChildAt returning null for visible children, but despite searching I cannot find a solution. I have a ListView with a Scroll. The ListView has 10 items, 7 of which are visible and 3 are hidden by scroll. I also…
Vig
  • 73
  • 1
  • 1
  • 4
6
votes
1 answer

Layout puzzle development in Android

I am a newbie in Android. I want to develop an application where I can change the screens based on button selected. Application might endup with 20+ screens with buttons or entry form. From 1 screen I got to change the screen to some other screen.…
Tvd
  • 4,463
  • 18
  • 79
  • 125
6
votes
2 answers

jquery - find element that only has text and not any other html tag

I need to check with jquery that a anchor element only has text in it and not any other tag (img, b) or any thing else. TV Should be found, but : or: TV or any other HTML tag,…
Ovi
  • 2,459
  • 9
  • 50
  • 72
6
votes
2 answers

IE9 NOT getting 'children' of XML node

I have the following XML sitting in a var called RoomPriceInfo in javascript:
nexar
  • 11,126
  • 3
  • 29
  • 32
6
votes
1 answer

How to access props.children with testing-library/no-node-access

I have successfully installed eslint-plugin-testing-library and used overrides so it only warns me on code in test files. However, it complains Avoid direct Node access. Prefer using the methods from Testing Library. for the following code…
Matt
  • 4,261
  • 4
  • 39
  • 60
6
votes
1 answer
6
votes
3 answers

querySelectorAll root elements without using :scope

Let's assume we have this HTML structure:

Just a paragraph, and…

h2odev
  • 634
  • 9
  • 21
6
votes
1 answer

React pass props down to all descendant Components

The use case is I would like to "effortlessly" pass down a certain prop values to all descendant components. Not sure if this is even possible in React. So instead of doing this: class Parent extends Component { constructor() { …
slim1801
  • 531
  • 3
  • 8
  • 19
6
votes
5 answers

Close current UserControl

I have a Window1.xaml main Window; and after some event, I display a UserControl EditFile.xaml. The code behind is: public static int whichSelected = -1; private void button1_Click(object sender, RoutedEventArgs e) { …
BlueMan
  • 687
  • 2
  • 10
  • 23
6
votes
1 answer

Enough to call Children.Clear on a WPF canvas to get rid of old controls before adding new ones?

I am experimenting with WPF and re-implementing my old maze screensaver. My code basically adds a bunch of images to the canvas, building up a grid, 64x64 pixel images side by side, to cover the entire canvas. Then I "animate" movement in the maze,…
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
6
votes
7 answers

jQuery figuring out if parent has lost 'focus'

I'm stuck on figuring out the logic to make a drop down menu keyboard accessible. The HTML is structured as such (extra class names used for clarity):
6
votes
5 answers

Order of QObject children (strategy question)

For one of my projects I have a tree of QObject derived objects, which utilize QObject's parent/child functionality to build the tree. This is very useful, since I make use of signals and slots, use Qt's guarded pointers and expect parent objects to…
BastiBen
  • 19,679
  • 11
  • 56
  • 86