invisible

How to make shortcut to invisible menu item in Java

限于喜欢 提交于 2019-12-02 11:58:43
问题 I've recently added a console dialog to my program to make catching bugs easier. This is currently accessible through a JMenuItem and has keyboard shortcut 'Ctrl+L'. Ideally I'd like to keep this option in but make the menu item hidden/invisible, because I only really want people to use it if they are copying the contents to me so I can investigate something. However, when I set the menu item to be invisible the shortcut also stops working. Here's what I've tried: mntmViewLogs.setAccelerator

How can I invisiblize groups of controls via jQuery?

放肆的年华 提交于 2019-12-02 06:52:14
问题 In my Sharepoint project/Web Part/Web Page, I dynamically create page elements/controls using C# in the *.ascx.cs file. In the *.ascx file, I use jQuery for responding to events that happen on the page (selections, changes of checkbox states, etc.). I have a need to conditionally invisiblize groups of controls/elements on the page. Specifically, if the user checks a certain checkbox, I can "remove" whole swaths of the page that, in that scenario, don't apply to her. How can I do this? I've

How to make shortcut to invisible menu item in Java

大城市里の小女人 提交于 2019-12-02 04:14:12
I've recently added a console dialog to my program to make catching bugs easier. This is currently accessible through a JMenuItem and has keyboard shortcut 'Ctrl+L'. Ideally I'd like to keep this option in but make the menu item hidden/invisible, because I only really want people to use it if they are copying the contents to me so I can investigate something. However, when I set the menu item to be invisible the shortcut also stops working. Here's what I've tried: mntmViewLogs.setAccelerator(KeyStroke.getKeyStroke('L', KeyEvent.CTRL_DOWN_MASK)); mntmViewLogs.setVisible(false); Thanks! You

How can I invisiblize groups of controls via jQuery?

烂漫一生 提交于 2019-12-02 03:49:34
In my Sharepoint project/Web Part/Web Page, I dynamically create page elements/controls using C# in the *.ascx.cs file. In the *.ascx file, I use jQuery for responding to events that happen on the page (selections, changes of checkbox states, etc.). I have a need to conditionally invisiblize groups of controls/elements on the page. Specifically, if the user checks a certain checkbox, I can "remove" whole swaths of the page that, in that scenario, don't apply to her. How can I do this? I've got this starting point: /* If the select "Yes" (they are seeking payment for themselves, as opposed to

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

Making my console application invisible

▼魔方 西西 提交于 2019-11-30 11:07:36
I am developing a console application for my public library as a school project. The console application will run as soon as the user logs on and do some background work. The thing is, I don't want the console application to actually appear. I need it invisible. The last thing I need is complaints because some people got freaked out that a CMD window opened and closed, besides that the library wants it as invisible as possible. I tried following the code in this thread: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/ea8b0fd5-a660-46f9-9dcb-d525cc22dcbd but to no avail, I

Protractor : wait for element to become invisible/hidden

此生再无相见时 提交于 2019-11-30 11:02:55
I saw other protractor related post mentioning about how to wait for an element to become visible. However, recently, I ran into an opposite use case. I wanted to wait for an element until it becomes invisible. Since I could not find anything specific about it. I went ahead and came up with a solution. var ptor = protractor.getInstance(); ptor.wait(function() { return element(by.css('#my-css-here')).isDisplayed().then(function(isVisible){ console.log('is visible :' + isVisible); return !isVisible; }); }, 12000).then(function(){ //do whatever you want }); hopefully it helps. any suggestion is

Adding an invisible image watermark in C#?

梦想的初衷 提交于 2019-11-30 09:29:29
I want to insert multiple invisible watermarks into my JPEG pictures through C# code. That means that I need a .NET library that does this work and not some external batch application. Any suggestions? there is a port of image magick library to c# , and it can easily perform that operation for you... Storing "invisible" data in pictures is known as "steganography". A Google-search for "steganography .net" yields this article as its top hit - might prove useful. What is the purpose of this? Is it to enable you to identify JPGs that have been taken from your site? Response in comments: "Yes, I

Modifying the default hash value [duplicate]

别等时光非礼了梦想. 提交于 2019-11-30 09:01:19
问题 This question already has answers here : Strange, unexpected behavior (disappearing/changing values) when using Hash default value, e.g. Hash.new([]) (4 answers) Closed 2 years ago . Ruby lets you define default values for hashes: h=Hash.new(['alright']) h['meh'] # => ["alright"] Assignment of a value shows up when displaying the hash, but a modified default does not. Where's 'bad' ? h['good']=['fine','dandy'] h['bad'].push('unhappy') h # => {"good"=>["fine", "dandy"]} 'bad' shows up if we

Invisible / transparent button that works like a regular in android?

≡放荡痞女 提交于 2019-11-30 06:20:57
How do I get one area in the middle of a image clickable (not the whole image)? Tried with a button set to invisible and clickable but the button does not work. What are the alternatives to an invisible / transparent button that works like a regular? I've also thought of a completely transparent and clickable PNG that should work but maybe not the best way? Here you go: Button theButton = (Button)findViewById(R.id.theButton); theButton.setVisibility(View.VISIBLE); theButton.setBackgroundColor(Color.TRANSPARENT); phoneButton.setOnClickListener(new OnClickListener() { @Override public void