visibility

Method accessing protected property of another object of the same class

Should an object's method be able to access a protected property of another object of the same class? I'm coding in PHP, and I just discovered that an object's protected property is allowed to be accessed by a method of the same class even if not of the same object. In the example, at first, you'll get "3" in the output - as function r...

MFC visibile function

Hi guys, I have an assignment using MFC which is a completely foreign language to me. I have to be able to upload Image1, and Image2 into 2 picture controls. And using a slider: when it is on the far left, you see Image1 in a third picture control, when it is on the far right you see Image2. Anywhere in between you should see a transitio...

how to dynamicaly call a method while repecting privacy

Using dynamic method calls (#send or #method) the methods visibility is ignored. is there a simple way to dynamically call a method that will fail calling a private method? ...

How to check absolute control visibility and how to be notified for changes of absolute visibility

I have several controls inside my form and I perform several changes (Text, Font, BackColor etc.) on these controls. My changes are necessary only if the controls are visible. So, I want to stop performing my changes on controls that are not visible. I want to keep changing my controls when they become visible again. I can use Control.V...

Drupal CCK field not visible to anonymous users

I added a field to a nodetype using CCK, but when I try to view the node as an anonymous user the field is not visible. I can see it when I am logged in with my admin account. What could be the problem? ...

Controls' visibility property, modified by JavaScript, is ignored after postback

My javascript code modifies some properties, visibility included. After postback, some properties stuck, others are "forgotten". Here I try to change the Text property of a textbox and the visibility property of a label to 'hidden'. After postback, the text is preserved, but the label is shown. I would very much like to keep the label hi...

Is there a way to declare a method "friendly" in Java?

Hi, I know that attributes can be set public, friendly or private to specify its visibility. Is there a way I can declare a friendly method? I want it to be accessible only from objects of classes of the same package. Thanks you, a beginner here :(. ...

Why is this explicit scope resolution necessary?

Setup: class A { public: void a() {} }; class B { public: void b() {} }; class C: public A, public B { public: void c() {} }; What (I thought) I should be able to do: C* foo = new C(); foo->b(); And I get the following linker error from GCC: `... undefined reference to 'C::b(void)'` If I use explicit scope re...

Java: Subpackage visiblity?

I have two packages in my project: odp.proj and odp.proj.test. There are certain methods that I want to be visible only to the classes in these two packages. How can I do this? EDIT: If there is no concept of a subpackage in Java, is there any way around this? I have certain methods that I want to be available only to testers and other ...

Telerik Radgrid row visibility inserting unwanted blank row placeholders

Good morning, I am using the radgrid control and attempting to change the visibility of certain rows within the grid. When I set the VisualElement.Visibility = ElementVisibility.Hidden property the row disappears from the grid but there is still a blank row placeholder left in its place. Is there a way to collapse the remaining rows tha...

ASP.NET control with visible=false cannot be used in javascript?

I have an ASP.NET text control "FromDate" whose visible property is set to false, but I wanted a client side javascript to be able to toggle the visibility property using CSS properties element1.style.display = "none"; // hides the element element1.style.display = ""; // shows the element but when I attempt to get the textbox, I get ...

Hiding links based on db entry

I have some links on a page such as: < a id="Digg" runat="server">< img alt="Digg" id="imgDigg" runat="server" src="~/resources/images/icons/social/digg_32.png" border="0" />< /a> I have a database table that can "turn" them on or off, in my code behind I have the following: string[] SocialMedia = new string[] { "Twitter", "Facebook"...

WPF Stop Storyboard on Visibility Changed

Hello, I have a UserControl with a story board and I want to stop the animation when the control's Visibility changes. I created a Trigger to pause the animation and start it depending on the state, but I keep getting an ArgumentException. Here is the XAML: <UserControl.Triggers> <EventTrigger RoutedEvent="FrameworkElement.Loaded...

How can I determine programmatically whether the Windows taskbar is hidden or not?

I need to know whether the Windows taskbar is hidden or not. I believe there is no .NET method to do this, and also I have come across a lot of "how to hide and show the taskbar" samples, but I haven't seen anything based on what I am looking for. I am not familiar with the Windows API, so I find it hard to understand traditional Windows...

WPF listbox datatrigger hide selected

I have a listbox which has a datatemplate. Within the template I've got a trigger to hide a lsitboxitem if it's IsDeleted property is set to true. <DataTrigger Binding="{Binding Path=IsDeleted}" Value="True"> <Setter Property="Visibility" Value="Collapsed" /> </DataTrigger> This work OK but the problem I have is that the listbox its...

WPF Bind to DependencyProperty of another Object?

Hi All, I am working on a WPF application similar to visio. I would like to be able to logically group some of the items in my diagram, each of which is a UIElement, and control certain behaviors (i.e. visibility) at the group level. My first attempt at this was to create a control, called a Group, which had width & height = 0. I w...

CSS Style Visibility not behaving as expected

I have a html page with a basic tab control. I use javascript to show and hide tabs and tab content divs. My problem is that if I change the visibility of an element inside one of the tab content divs to 'hidden', then back to 'visible', the element seems to forget or lose its parent div container and remains visible, regardless of its o...

Does Visibility = IsCollapsed skip the data-binding part?

If I set a StackPanel or what ever bound area I have as 'Collapsed', does the data load? Will it trigger its Loaded event? ...

How can I controle the visibility level of a div and make it see through?

Can I control the visibility of some div in my website and make to become see-through using CSS only? In flash it's done through controlling what is called Alfa so I'm wondering if such a thing exist in CSS! Edition 001 Can I control the opacity of the div's background only? So the text in the div wouldn't be effected? ...

Set visibility of the group of controls in silverlight.

I have 2 logical groups of controls (textboxes,buttons, etc), and I'd like to have an opportunity to change their visibility: for example when the program loads the first group is visible, and after clicking on some button it becomes collapsed and the other group becomes visible. What's the best way to implement this kind of behavior? ...