Все вопросы: [visibility]

89 вопросов

77
голосов
12ответов
77660 просмотров

Determine if UIView is visible to the user?

is it possible to determine whether my UIView is visible to the user or not? My View is added as subview several times into a Tab Bar Controller. Each instance of this view has a NSTimer that updates the view. However I don't want to update a view which is not visible to the user. Is this pos...

64
голосов
4ответов
47505 просмотров

In WPF, how can I determine whether a control is visible to the user?

I'm displaying a very big tree with a lot of items in it. Each of these items shows information to the user through its associated UserControl control, and this information has to be updated every 250 milliseconds, which can be a very expensive task since I'm also using reflection to access to so...

3
голосов
1ответов
810 просмотров

How can I make a component disappear in the form designer?

I'm creating a custom control that contains other controls, including two scroll bars, one horizontal, one vertical. There's a property to set one or both scroll bars invisible, which works fine at runtime, but at design-time it doesn't disappear from the form designer when I set the property. ...

6
голосов
3ответов
11013 просмотров

Fading Element on Scroll

I'm curious how I can create a DIV (or anything really) that I can fade (or change opacity of) when a user scrolls down the page. This DIV would sit at the top of the page, but only be clearly visible when at the very top of the page. Additionally, it would be ideal if I I could have this elemen...

0
голосов
2ответов
84 просмотров

Constrain the consumption of a web service to certain apps

Is there a way I can configure my asp.net web service to work with only some applications? In other words, I am saying "only these applications have access to this web service and can therefore use it. Others can't". When other applications tries to discover the service, it shouldn't even show u...

0
голосов
1ответов
524 просмотров

Is there a way to detect whether Flash is above the browser fold?

I'm looking for a way to determine if a Flash movie is visible within the browser viewport. Unfortunately there's a big caveat here: it must be done without JavaScript. Is there a native method, in Flash or Flex, that can detect when the movie becomes visible? I was thinking that the only way to ...

0
голосов
3ответов
3887 просмотров

How do I change the visibility of a hyperlink when the mouse moves over it?

How can I make a link visible only when one hovers over the link?

0
голосов
2ответов
3939 просмотров

Call Javascript function when a div turns from visibility : hidden

I want to call a javascript function when a div is turned from "visibilty : hidden" to "visibility : none;" Also note that I don't have control over the script which turns this style property of the div. I just want to hook into this. Any possibilities? Or like onFocus() etc? UPDATE : I do not ...

21
голосов
4ответов
23094 просмотров

Disable or grey out a node in the TreeNode Editor

How do I disable a specific node so the user can not select it. Hiding it for the user is also valid. I tried the Visible property but that hides the entire tree (all nodes). I only want a few of the nodes disabled/hidden. C# using Visual Studio 2005 TreeNode Editor.

0
голосов
2ответов
1946 просмотров

WPF Visibility based upon global variable value

I have a boolean global variable that is set true if an administrator is logged in and wants to amend the content of the lists and comboboxes. As a result, a button is displayed beside each combo to display a dialog box when clicked. If I was not coding for WPF, I would probably include some sor...

0
голосов
1ответов
553 просмотров

WPF Collapsed Grid not Styling

So, I have a grid inside a listbox. The purpose is that when the listboxitem is selected, I want the grid to show, having the selected item expand to show more detail information. I set up a style trigger for this and it works great, except for one thing: the labels and textblocks styles are un...

1
голосов
1ответов
2058 просмотров

Binding visibility to control in different class with WPF

In my main window xaml I have two user controls and two RadioButtons. I want the RadioButtons to control the Visibility of the user controls. xaml excerpt: <WpfApp2:ViewTree/> <WpfApp2:ViewTab/> <RadioButton x:Name="radioButton_Tree" GroupName="View" ...

16
голосов
5ответов
31184 просмотров

C#/WPF: Make a GridViewColumn Visible=false?

Does anyone know if there is an option to hide a GridViewColumn somehow like this: <ListView.View> <GridView> <GridViewColumn Header="Test" IsVisible="{Binding Path=ColumnIsVisible}" /> </GridView> <ListView.View> Thanks a lot! Edit: For clarity ...

3
голосов
1ответов
1618 просмотров

Are Expression Blend design-time specific visuals possible?

I'm trying to design some UserControl classes in Blend 3. I want parts of them to be "collapsed" when created at runtime, but I want to be able to edit their component parts without fiddling with code every time I want to build. It works with sample datasources, as the following example illustra...

1
голосов
2ответов
295 просмотров

What online tool could be use to keep gantt charts or similar for all team members?

We want to keep an online gantt chart for all developers, so we can view task load.

1
голосов
5ответов
10856 просмотров

To collapse div and p by CSS

How can you collapse div and p -elements if they are empty by CSS such that the tags are not shown for the user in the source code? These elements are in my source code although they are empty. This causes bugs with the rest of the site. I run this unsuccessfully div.unsuccessful, div.unsucces...

0
голосов
4ответов
1697 просмотров

jQuery div visibility toggle not working

I have several divs for displaying demo boxes of graphics, and code boxes for displaying sample code for using the graphics. What I want to do is make the code boxes invisible until you click on the demo box - which should make the code box slide into view. (See here to see how it looks) This sh...

0
голосов
2ответов
138 просмотров

Encapsulating and inheriting methods

I'm wondering if it's possible to encapsulate the methods of a class, but then expose them within a consuming class. For example (JFTR, I know this code is wrong) class Consumer{ public function __construct($obj){ $this->obj = $obj; } public function d...

3
голосов
3ответов
538 просмотров

PHP Scope and Class Instance Interaction

It seems as though different instances of a class can know about each others' private member variables. I have provided some code that attempts to showcase my issue, and I will try to explain it. We have a class with a private member variable, $hidden. modifyPrivateMember sets the value of $hid...

7
голосов
1ответов
13705 просмотров

Show/hide QDockWidget?

I have a dock widget, now I want to add a "Window" menu to show/hide the widget. Easy enough to do with showPropWinAct = new QAction(tr("&Properties"), this); showPropWinAct->setStatusTip(tr("Show properties window")); showPropWinAct->setCheckable(true); connect(showPropWinAct, SIGNAL(...

8
голосов
1ответов
39299 просмотров

jQuery: Make a Button Visible When a TextBox Has Contents

Given: I have a textbox and a hidden button. Wanted: When the textbox is neither null nor empty, show the button. When the textbox is null or empty, hide the button. Question: How should I do this? Should I use jQuery and bind to the textbox's keyup event?

1
голосов
3ответов
2119 просмотров

Setters/Getters, Visibility [ OOP ] in PHP

I'm in the process of reformatting my class ( seen below ) - I think I made the mistake of setting everything with the same visibility in my class, whereas properties should really be private and getters/setters should be public in most cases. To grab a property I just do $path->propertyname ...

5
голосов
1ответов
1480 просмотров

X11: waiting until a window is visible?

I'm running X across a slow network connection. How can I tell when a window has become visible? I need to wait so that I can perform another operation on the visible window. xterm -T foo & # how to flush the display, or wait until the window is visible? # polling the visibility would be a...

51
голосов
7ответов
54390 просмотров

How to make a real private instance variable?

I want to make an instance variable that can't be accessed from outside. Is something like that possible in objective-c? I remember Apple has private variables and stuff like that, but if people know about them, they can use them. Apple calls that "private API", but obviously others can access th...

12
голосов
3ответов
4151 просмотров

How can I hide a Paragraph in a FlowDocument?

Is there any way to use databinding to show or hide a Paragraph within a FlowDocument? (I want to use MVVM, but with a FlowDocument as my view.) Paragraph doesn't have a Visibility property. I'm not sure what else to look for.

2
голосов
2ответов
218 просмотров

best way to give editors ability to assign background images in drupal 6

I've got a design in drupal that calls for a different background image on different pages. I'd like to make it easy for the site editors to assign the image. My first thought was adding a cck field to the Page type where they could assign the image. That will work nicely for node pages, but won'...

8
голосов
5ответов
5759 просмотров

How can I toggle the main menu visibility using the Alt key in WPF?

I'd like the main menu in my WPF app to behave like the main menu in IE8: it's not visible when the app starts pressing and releasing Alt makes it visible pressing and releasing Alt again makes it invisible again repeat until bored How can I do this? Does it have to be code? Added in respo...

1
голосов
3ответов
1286 просмотров

PHP print_r and static member

I've got an instance of a DB object that's passed to a Session object, because the Session object has several methods that make use of DB object to execute SQL statements I had plan to store this DB object in Session object property. Through testing I found that print_r exposed the DB object sto...

4
голосов
2ответов
7141 просмотров

Customizing Datapoints in silverlight charts

I am working on a silverlight application that pulls in objects from a web service and dynamically populates a chart (lineseries) based on object attributes. The problem is that I have too many datapoints (dots) on the lineseries and I was wondering if there is a way to remove them. I used Sette...

71
голосов
5ответов
27461 просмотров

Why does jQuery show/hide use display:none instead of visibility:hidden?

display:none means that the element isn't rendered as part of the DOM, so it's not loaded until the display property changes to something else. visibility:hidden loads the element, but does not show it. Why does jQuery use display:none for its show/hide functions instead of switching between ...