visibility

C++ -fvisibility=hidden -fvisibility-inlines-hidden

I have a question about the C++ visibility attribute. I have read http://gcc.gnu.org/wiki/Visibility and yet I dont quite understand how it works. I want use the visibility to be hidden on some of my shared libraries I have. I believe this means that the symbols are hidden ? How are you meant to link the shared library then ? Is there ...

Why isn't the MouseEnter event firing?

I asked the following a while ago, but only got back to the problem today. Further investigation has revealed that the problem is that the mouse enter event for the button isn't always firing. Most of the time it does, but either initially or after the button has been hidden (or collapses) the event doesn't fire. If I change to another c...

jquery only toggle one element without having to use ids

i have multiple divs with the same class on my page. I want to be able to toggle them individually. Using this script: $(document).ready(function() { $('.file').hide(); $('a.toggle').click(function() { $('.file').slideToggle(1000); $(this).text($(this).text() == 'show' ? 'hide' : 'show'); return false; }); ...

Hide column in telerik Grid but need to get it

let's say i have an order and order details. the view will contains the order fields, and a Telerik Grid for the details i always maintain a reference of the Order in the session. Session["Order"] = order; and when the user add an order detail to the grid, I'm saving it in the Order reference. public ActionResult Grid_AddDetail(Ord...

Having trouble binding the Visibility of a ContentPresenter in WPF

I have the following XAML: <UserControl.Resources> <DataTemplate x:Key="ExpanderTemplate"> <Grid> <Rectangle Stroke="Black" StrokeThickness="1" Width="10" Height="10" Fill="White" /> <Rectangle Stroke="Black" StrokeThickness="1" Width="6" Height="1" Fill="Black" /> <Rectangle Stroke="Black" StrokeThickness="...

What's the best way to check if the view is visible on the window?

What's the best way to check if the view is visible on the window? I have a CustomView which is part of my SDK and anybody can add CustomView to their layouts. My CustomView is taking some actions when it is visible to the user periodically. So if view becomes invisible to the user then it needs to stop the timer and when it becomes vi...

how to make function local to main only

File1.c #include<stdio.h> #include"File2.c" void test(void) { sum(1,2); } int main(void) { int sum(int a,int b); test(); sum(10,20); return 0; } File2.c int sum(int x,int y) { printf("\nThe Sum is %d",x+y); } Now as far as my understanding goes test() calling sum() should give a compile-time error since I ...

Silverlight 4: how to switch control visibility

I am using MVVM in my Silverlight app. When control visibility is need to be managed by data, I am connecting its 'Visibility' property to object's corresponding property: XAML: <TextBlock Text="Price" Visibility="{Binding PriceVisibility, Mode=OneWay}"/> <TextBox Text="{Binding TicketPrice, Mode=TwoWay}" Visibility="{Binding PriceVisi...

View visibility is not changing

I have a Shell holding 2 Views. They both use the same viewmodel, in fact the shell uses the same viewmodel as well. I have 2 buttons in the shell that are supposed to change the visibility of the the 2 views. It appears that even though the command is firing, that the value is being changed and that i have onpropertychanged configured c...

jQuery visibility option on IE

I have problem with this JS code. When I started to test it, it is working properly with FF and Chrome but not with IE8. I guess, something is wrong with IE visiblity property or the mouseover events. I tried everything but I am so deep in here I can't see the whole picture. How can I make it run properly also in IE. Hate IE :)) $(doc...

Strange behavior when overriding private methods

Consider the following piece of code: class foo { private function m() { echo 'foo->m() '; } public function call() { $this->m(); } } class bar extends foo { private function m() { echo 'bar->m() '; } public function callbar() { $this->m(); } } $bar = new bar; $bar->call...

Set Default Visible Div in Dropdown Menu

Hello. I found a useful script that makes divs visible and hidden using a dropdown menu. The only problem is that all the divs are initially hidden, and I'd like the first one to be visible by default. Here's the script: <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title>Unt...

Illegal Forward reference, Object visibility Issues will compiling.

Thanks for taking the time to read. =) The problem I am having is mainly Object visibility. I'm creating objects and attempting to create references to them before they have been initialized or have any data in them. You can get an idea what I'm trying to do here with the code provided. Certain Squares can see other square ect. Now my ...

Why is the Visible property not correctly updated in a UserControl?

Sometimes my UserControl's Visible property does not get updated correctly. It happens at my app's boot time, in OnFontChanged, fired from inside InitializeComponent, probably because some other stuff has not been set up yet. I just can't find out what. vScrollBar is a UserControl and is inside another UserControl. Apparently, this on...

Do I need to define an enum as 'public' in its own file so it can be recognized outside its own package?

I have two packages - x and y. x contains the Student class and the Grade enum. y contains the Klass class. Why is the type Student.Grade.C not recognized in the Klass class in package y? Do I need to define it in its own file and make it public? package x; enum Grade { A, B, C, D, F, INCOMPLETE }; public class Student { // blah,...

Need debugging hints: Visibility change on Postback works on one page but not another

I have a webform containing a user control. On that user control is a set of radio buttons. When the radio button is changed, a panel and a text box is shown or hidden depending on which radio button was selected. I can give you an example that works correctly: testcontrol.aspx: <asp:RadioButtonList ID="ChoicesRadioButtonList" AutoPos...

How to Set the Visibility of an Item in a TileList to False

Hi, I've got a tileList in a Flex 3 website. I want to programmtically turn off the visibility of a tile. So for example: <mx:ArrayCollection id="myAC"> <mx:Array> <mx:Button id="first" label="1" /> <mx:Button label="2" /> <mx:Button label="3" /> <mx:Button label="4" /> </mx:Array> </mx:ArrayCollection> <mx:Til...

css/javascript visibility visable/hidden is very slow on Blackberry

document.getElementById("spinner2").style.visibility="visible" Visibility visable/hidden is very slow on Blackberry (OS4.6). screen seems to be redrawing which makes it unusable in Ajax application. The goal is to put visible feeback to user while ajax request completes. Anyone suggest alternative? ...

controls visibility in C#

Hi all, How to make a control visibilty to true or false. currently i am setting a panel control visibility like this in code behind. i am comparing the values of Username and UserId. If both the values are same..i am setting panel visibility to false if (UserName == UserID)) { pnl_li...

I cannot change control's visibility on C# code

I want to change controls visibility on c#, but nothing happens. The controls are in an AspxPopupControl and 3 of them are hidden in design time, 1 of them is visible. I use this code to visible them if (paramType == "Grup") { gv_Answers.Visible = false; trlGroup.Visible = true; ...