visible

how to print hidden and visible content on a panel when scroll using vb.net

痞子三分冷 提交于 2019-12-01 13:44:16
问题 please i have a scrollable panel of which some of the content are hidden and other are visible on the form, my worry is how to print all the content on the panel including the hidden ones. How possible could i be help Private Sub PrintDocument1_PrintPage(sender As Object, e As Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Panel1.AutoSize = True Dim b As New Bitmap(Panel1.DisplayRectangle.Width, Panel1.DisplayRectangle.Height) Panel1.DrawToBitmap(b, Panel1.ClientRectangle) e

Excel VBA loop through visible filtered rows

浪尽此生 提交于 2019-12-01 10:48:55
I have a excel table with a autofilter. In the filtered table i only have few rows filtered. My objective is icterate all visible rows to colect data to copy to anothe sheet. I want a way to collect a variable with the the fisrt visible row number. my draft code is: Dim cnp As String Dim nome As String Dim filter_rng As Range Dim rw As Range Dim last_row As Long 'last visible data row Dim dest_row As Long 'row to paste the colected data Set filter_rng = Range("A5:Y" & last_row).Rows.SpecialCells(xlCellTypeVisible) 'collect data For Each rw In filter_rng.SpecialCells(xlCellTypeVisible)

Android Home Screen like effect flickering problem when set child.setvisibility(View.Visible)

六眼飞鱼酱① 提交于 2019-12-01 10:11:24
问题 I have made a sample application to flip through different layouts in a viewflipper. XML is basically (pseudo-code) <ViewFlipper> <LinearLayout><TextView text:"this is the first page" /></LinearLayout> <LinearLayout><TextView text:"this is the second page" /></LinearLayout> <LinearLayout><TextView text:"this is the third page" /></LinearLayout> </ViewFlipper> And in Java code, public boolean onTouchEvent(MotionEvent event) case MotionEvent.ACTION_DOWN { oldTouchValue = event.getX() } case

How do I make a button invisible just after click?

狂风中的少年 提交于 2019-12-01 08:11:18
问题 I would like to know how to make a button visible but when clicked I want it to be invisible so it won't be shown at all. 回答1: button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Button button = (Button) v; button.setVisibility(View.INVISIBLE); } }); This makes it go invisible but still take up space in the layout, switching the last row for: button.setVisibility(View.GONE); would make it "fold" and it will not only be invisible but won't take up space in

Excel VBA loop through visible filtered rows

无人久伴 提交于 2019-12-01 07:34:29
问题 I have a excel table with a autofilter. In the filtered table i only have few rows filtered. My objective is icterate all visible rows to colect data to copy to anothe sheet. I want a way to collect a variable with the the fisrt visible row number. my draft code is: Dim cnp As String Dim nome As String Dim filter_rng As Range Dim rw As Range Dim last_row As Long 'last visible data row Dim dest_row As Long 'row to paste the colected data Set filter_rng = Range("A5:Y" & last_row).Rows

How can I tell if a Delphi control is currently visible?

谁都会走 提交于 2019-11-30 07:08:53
I need a way to for a custom control (descended from TCustomControl) to tell if it is currently visible. I'm not talking about the .Visible property; I mean whether or not it's actually being displayed on-screen at the moment. Does anyone know how to do this? A few years back I had the same kind of problem for a Form: I was looking for a way to determine if a Form is actually visible (even only partially) to the user. In particular when it was supposed to be visible and Showing was True but the window was actually entirely behind another one. Here's the code, it could be adapted for a

How to use protractor to check if an element is visible?

夙愿已清 提交于 2019-11-30 06:13:16
问题 I'm trying to test if an element is visible using protractor. Here's what the element looks like: <i class="icon-spinner icon-spin ng-hide" ng-show="saving"></i> When in the chrome console, I can use this jQuery selector to test if the element is visible: $('[ng-show=saving].icon-spin') [ <i class=​"icon-spinner icon-spin ng-hide" ng-show=​"saving">​</i>​ ] > $('[ng-show=saving].icon-spin:visible') [] However, when I try to do the same in protractor, I get this error at runtime:

JQuery: fire action when element is in view

匆匆过客 提交于 2019-11-30 05:31:23
In the footer of my site I'm using counUp.js (Link: http://inorganik.github.io/countUp.js/ ) to count up three numbers. I added this code at the bottom of the site: <script type="text/javascript"> var c1 = new countUp("upnum1", 1, 27, 0, 4); var c2 = new countUp("upnum2", 1, 10, 0, 4); var c3 = new countUp("upnum3", 1, 27, 0, 4); var c4 = new countUp("upnum4", 1, 1000, 0, 4); window.onload = function() { c1.start(); c2.start(); c3.start(); c4.start(); } </script> This works well, but starts counting once the page is loaded of course. How do I manage to fire this effect when the containing div

jQuery detect visible but hidden elements

只谈情不闲聊 提交于 2019-11-30 04:59:41
This seems like it should be fairly easy - but I can't find the right selector for it According to the docs ( http://api.jquery.com/hidden-selector/ and http://api.jquery.com/visible-selector/ )... Elements can be considered hidden for several reasons: An ancestor element is hidden, so the element is not shown on the page. What I want to detect is "this element is visible, but is contained in a hidden parent". Ie, if I made the parent visible, this element would also be visible. If this is something you'll commonly use, make your own selector :) Here's an example: jQuery.expr[':']

How can you tell if a View is visible on screen in Android?

混江龙づ霸主 提交于 2019-11-30 04:17:24
I want to check if a View within a ScrollView is currently visible in Android. I am not checking if it is focused on yet but if it is currently being displayed on screen. Is there a method in View that can tell me if the view is currently visible? This code works for me: public static boolean isVisible(final View view) { if (view == null) { return false; } if (!view.isShown()) { return false; } final Rect actualPosition = new Rect(); view.getGlobalVisibleRect(actualPosition); final Rect screen = new Rect(0, 0, getScreenWidth(), getScreenHeight()); return actualPosition.intersect(screen); } int