visibility

popup trigger not working as expected

I have two controls in a grid, an Ellipse and a Popup. The idea is that both of the controls are only displayed if the IsDirty property in a view model is true; if so, the Ellipse is green if the same view model IsValid and red if not, while the Popup displays messages if the user has the mouse over the popup. The content and bindings f...

Process started,no errors,activity not visible on Android >1.6

I have developed an App that launches and works fine on Android 1.5 and 1.6. When I try and use it on version higher then that the app's activity starts, progress dialogs popup and I can see my AsyncTask executing and the info being returned via Logcat. No errors or exceptions are shown. But the Activity never displays. All I see is t...

How to hide Web Reference from another project

I have two Visual Studio 2008 projects which are in the same solution. How can I add a Web Reference to project A so that project B doesn't see it? Project A needs web reference to WebService1 Project B shouldn't be able to see A.WebService1.* but needs reference to project A I don't want to manually modify the generated classes for ...

visiblity problems with namespaces

Hi. I have two source files, one named main.cpp (where the namespace M is defined) and the file engines.h (where serveral names are defined). main.cpp includes engines.h. engines.h need to use the stuff inside M, and M needs to use the stuff inside engines.h. I get an error doing using namespace M; in engines.h. ...

warning: std::binary_function<int, int, bool>::binary_function()has different visibility (default) in static library "*.a"

I define a std::map in static library .a like this ////////////////////////////////////// #import <map> class CCImage; class ImageArray{ std::map<int,CCImage*> mapCCImages; private: int imagesLength; public: ImageArray(); ~ImageArray(); int getImageLen(); bool addCCImage(int key,CCImage * texture,bool replace = true); CCImage *g...

How do typeclasses and modules interact?

Hi, In order to grasp better typeclasses (starting pretty much form scratch) I had a go at modelling 2-D shapes with area calculations, like this: module TwoDShapes where class TwoDShape s where area :: s -> Float data Circle = Circle Float deriving Show aCircle radius | radius < 0 = error "circle radius must be non-negative" ...

Jquery check whether element is hidden (continuously)

Hello, How to check whether a element is made to hide at once. i.e how to notify the visibility of an element. In my case, the element is made to hide by slideUp function. At once i should be notified about the visibility of the that element. I got the idea of using bind() method. But it does not have a onHide like event. So how to ge...

How can I limit feature visibility in SharePoint 2010?

I have a SharePoint 2010 (farm) solution that contains exactly feature: The feature is site-scoped. The feature's visibility is set to "true". The assembly deployment target is set to "Web Application". The feature contains one webpart. After adding this solution to the solution store I can deploy the solution to a specific web applicat...

Doxygen and Visiblity Keywords in PHP

I am finding that in PHP if I do this: class Foo{ /** * Does something cool * @return * Always returns 1 */ public function bar() { return 1; } } doxygen will not document the member function 'bar' If I take out the 'public' keyword, it does. Is there some setting that controls this? I've l...

Accessing protected member of template parameter

I have a template class for which I need to access a protected member function of the template parameter, like this: class Foo { protected: void foo() {} }; template<typename T> class Bar { public: static void bar(T& self){self.foo();} }; ... Foo f; Bar<Foo>::bar(f); My problem is getting access to the protected method. I tri...

WPF - Do not show Context menu when ListView is empty

I have a ContextMenu bind to ListView, but I don't want to be the menu shown when the ListView is empty. I tried direct binding to element, tried binding using FindAncestor, but none of these works and the menu is always shown when I click right mouse button in the ListView. What would be the correct binding? <Grid> <ListView x:Name="lo...

Declaring protected variables in methods

I've had a good look round and can't seem to find an answer to this problem. Basically I'm using the _call method to dynmically generate get and set methods, however when declaring a variable PHP's default is public. Is there anyway to declare a variable from within a class as protected? function __call($method, $arguments) { $pref...

How to change visibility of layout programaticly

There is the way to change visibility of View, but how can I change programaticly visibility of layout defined in XML? How to get layout object? <LinearLayout android:id="@+id/contacts_type" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:visibility="go...

WPF TabControl - visibility-based enabling of display-calculations

Suppose I have a tab-based interface like Internet Explorer. In each tabpage cpu-intensive stuff can happen (f.e. displaying a waveform and calculating and displaying a realtime FFT) that is only relevant as realtime statistic - so only when it's actuallty visible to the user. What's the best way to approach this ? ...

Visibility of object constants

I found out that object constants in PHP always have public visibility so it is not possible to set them to protected or private like this: <?php class MyClass { protected const constant = "this won't work"; } ?> What's the explanation for this? I can't think of a good reason to force constants to be public. ...

Eclipse doesn't add files to workspace when they are added through windows explorer

Hi everyone, I have recently added the reCaptcha library for CodeIgniter (by copying files from the extracted zip into the application folder). Although the files exist in windows explorer and in the open file dialogue in eclipse, they are not added to the eclipse project view; although the project view's root directory is the applicat...

ViewStub vs. View.GONE

As far as I undestand, neither a ViewStub nor a View that's GONE participate in the measure and layout passes (or rendering anyway). Is there a difference in rendering performance? What's the best practice about when to use which? ...

DetailsView is not visible when there is no data in DataSource.

Hi guys. What to do to show DetailsView even when there is no data in underlying datasource? The problem is that when DetailsView is not visible, the command buttons are also not visible. So I can not insert a new record to a database. I would like to have always visible DetailsView with its DefaultMode set to ReadOnly. If it is not p...

CSS: Button Visibility Problem

Hello all; I am working on a project with a video player. I want to add play/pause and skip buttons together but one of the buttons is always invisible, however working. The codes I am using: in .css file: .buttons { position:absolute; top: 326px; left:150px; } .buttons DIV { width: 26px; height: 20px; cursor: pointer; } .buttons .pa...

Android. GLSurfaceView doesn't become invisible

I have an activity with GLSurfaseView as content. I must do that view invisible on Back button pressed. I hold onKey method and, how it seems to me, make all as need. Code is here: public boolean onKey(View v, int keyCode, KeyEvent event) { return super.onKeyDown(keyCode, event); } @Override public boolean onKeyDown(int...