|
The new Silverlight 3 beta includes the ability to run Out-of-Browser applications. The demos so far show this only inside a special frame. Does anyone know how I can run Siverlight 3 controls inside a (WPF) application?
Started by Peter on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
HTH
You can host a browser control ....
It seems that SLOOB apps run inside a host process (C:\Program Files.
This is a supported scenario; a recent MSDN article stated into a single process .
And navigate to the Silverlight app inside it.
|
|
In my code I need to do certain fixes only when it is run inside a JUnit test. How can I find out if code is running inside a JUnit test or not? Is there something like JUnit.isRunning() == true ?
Answer Snippets (Read the full thread at stackoverflow):
Why do you only need to change it inside the test?
If you're doing things differently because you're.
|
|
How I can find out the position (row and column index) of controls inside TGridPanel? I'd like to use common OnClick event for number of buttons and need to know the X,Y position of the button.
I'm using Delphi 2007.
Started by Harriv on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can use Sender cast as a tButton and then ask it for its top and left for example:
Procedure TForm1.OnClick(Sender:tObject); var X,Y : Integer; begin if Sender is TButton then begin X := TButton(Sender).Top; Y := TButton(Sender).Left; // do something... .
|
Ask your Facebook Friends
|
Hi All,
Let's say I'm a js script living inside a html page. I need to know if I am inside a specific IFrame.
Something like
if (top.location.href === 'http://specificurl/') ...
However I need this working from any domain.
I have also tried adding a value...
Started by gatapia on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I simply....
Fortunately my client script (living in frame) gets loaded dynamically by one of my scripts .
If you do have control, check out the easyXDM framework or google for "cross domain out how I can do it in MY scenario.
AND the main page).
|
|
When I run it in the terminal (bash)
echo -e ."\c"
prints out . and suppresses the newline.
When I run the following script (all the code)
echo -e ."\c" echo -e ."\c"
it prints out .. and suppresses the newlines.
when I run it inside a script with the...
Started by Mechko on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Change your script shebang to #!/bin/bash instead of #!/bin/sh and see if it works .
Or just changes the shebang to use bash.
You need to give the absolute path to echo if your shebang line is invoking sh .
|
|
Usually I do all what I can inside a class, in every method ( try and catch ). Am I doing it wrong? Recently I heard better way is handle error in program body...
What is good habit?
Started by Master of Disaster on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Catching runtime exceptions such as null pointers, arithmethic errors, array index out.
Classes.
|
|
I'm looking for an algorithm to "invert" (reverse? turn inside-out?) a DAG:
A* # I can't ascii-art the arrows, so just / \ # pretend the slashes are all pointing B C # "down" (south-east or south-west) / / \ # e.g. G E D # A -> (B -> G, C -> ...
Started by bendin on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Just do a depth-first search marking where you have already been, and ... .
Depth-first search might be able to generate what you're after: Note your path through the tree and each time you traverse add the reverse to the resulting DAG (leaves are roots) .
|
|
I'm binding an array of items to a data grid using ItemRenderer . I use the data variable to control the bindable data. I also have someComponentVariable that need be inserted into every row but its declared at the component scope, so the data grid doesn...
Started by Eran Betzalel on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
And this is done purposely because itemRendrers change dynamically, they are not bound for data forever, when you scroll, the items... .
Each itemRenderer in data grid can only access the item for which the renderer was created .
No you can not use it at all.
|
|
Hi,
I'm writing some code that looks like this:
while(true) { switch(msg->state) { case MSGTYPE: // ... break; // ... more stuff ... case DONE: break; // **HERE, I want to break out of the loop itself** } }
Is there any direct way to do that?
I know...
Started by jrharshath on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
There's no C++ construct for breaking out of....
Then break out'): as already suggested you could use a goto, or throw an exception inside the switch.
But I would prefer to set a flag that stops the loop .
Could potentially use goto.
|
|
Is it possible to use values that are obtained within a loop/function out side the loop/function where it is used or called?
below is my function
function off($limit) { $string=file_get_contents("feed.xml"); $xml=simplexml_load_string($string); foreach...
Started by LiveEn on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
But you can return having HTML inside your function, which....
Have to do <?php echo $var1 ?>
You need to return the value out of the function:
function foo, you cannot do looping without PHP, so your HTML has to be inside a loop.
|