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...
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...
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?
...
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...
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?
...
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...
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 :(.
...
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...
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 ...
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...
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 ...
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"...
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...
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...
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...
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...
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...
If I set a StackPanel or what ever bound area I have as 'Collapsed', does the data load?
Will it trigger its Loaded event?
...
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?
...
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?
...