Setting the display to binary
Does anyone know how to set the CWIMAQViewer Palette to binary using C++? I know how to do it in Visual Basic, but I can't figure it out in C++. I need to do it programatically. Thanks in advance.
To Set the viewer to binary:
m_cViewer.GetPalette().SetType(4096);
I don't know where 4096 is defined...
To Set the viewer to grayscale:
m_cViewer.GetPalette().SetType(2048);
Again, I don't know where this is defined. To get these values I just inserted the line,
long paletteType=m_cViewer.GetPalette().GetType();
and ran the debugger to see what it set paletteType to when I changed the palette using the viewer's palette menu.
Similar Messages
-
How to set the display size of the PDF - in percent?
Hi, I wonder if anyone knows if it is possible to set
the display size of the PDF document, so that it always
shows in, let´s say 100%, in the viewers browser window?
Much grateful for any help!
/AnniIn Acrobat, under Document Properties (Ctrl+D), you can edit the Initial
View settings, including the zoom level. -
Setting the display name in a message
Hello for the following code:
String from = "[email protected]";
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
I'd like to set the display name, i.e.
"A Message From Foo"
However I did not see a msg.setDisplayName() method... is there any way to do this?
As a working example, amazon sends an email with a return address of [email protected], but the display name is 'Amazon Payments' which looks a lot nicer for the customer. I'd like to do the same.
ThanksSolution is:
new InternetAddress(email_address, display_name); -
How to set the DISPLAY variable to run admsi.pl?
Dear Experts,
I'm trying to patch Oracle apps R12 using admsi.pl.
hostname: black
APPS db: VIS
But I keep getting the error:
Please set the DISPLAY variable and re-run this script
This is what I did:
VIS database and listener are already running.
login to the linux server as unix user: applmgr
cd /oapps/applmgr/VIS/apps/apps_st/appl/
. APPSVIS_black.env
cd /oapps/applmgr/VIS/apps/apps_st/appl/ad/12.0.0/bin/
admsi.pl
Invoking Oracle Patch Application Assistant....
Please set the DISPLAY variable and re-run this script
huh ?
set | grep -i "display"
DISPLAY=:0.0
set | wc
435 486 25235
I notice that there are 36 .env files!
For applmgr alone!!
find /oapps/applmgr/ -type f -name "*.env" | wc
36 36 2626
For oracle, there are another 7 .env files!
find /oapps/oracle/ -type f -name "*.env" | wc
7 7 513
Did I get the environment (env) file correct?
Or do I need to run a few more env first?
If so, which ones?
What would the order of operations be?
sqldeveloper has given me problems with Display sometimes.
But even sqldeveloper works fine.
What is the secret to get admsi.pl to run in the normal manner?
Thank a lot!Thanks a lot, that worked! So the perl script was wrong.
In the meantime, I had done this, and it seemed to work:
admsi.pl -debug
Gathering Information..
Enter the patch_top : /oappsinstall/update12.1.1/7303030
Enter the APPS user password:
Logfile for this session is located at admsi.log
Generating installation instructions for patch 7303030..
Updating database....
install_7303030.html generated successfully
install_7303030.txt generated successfully
cat /oapps/applmgr/VIS/apps/apps_st/appl/ad/12.0.0/bin/admsi.log
Executing begin :value := ad_manual_step_object.is_step_already_done('per_hrglobal','120.2.12010000.1'); end;
Generating installation instructions for patch 7303030..
Updating database....
install_7303030.html generated successfully
install_7303030.txt generated successfully
Performing final cleanup..
Do you think this worked ok?
Thanks again! -
Hi
I need to access SDM to deploy the Java patch ( we have X manger enterprise 3)
We try to set the display in UNIX
sb2adm> DISPLAY=10.211.146.141:0.0
sb2adm> export DISPLAY
sb2adm> set |grep DISPLAY
DISPLAY=10.211.146.141:0.0
_=DISPLAY
sb2adm>
sb2adm> xclock
Error: Can't open display: 10.211.146.141:0.0
My questions:
When run the command set |grep DISPLAY it would be show DISPLAY=10.211.146.141:0.0
But in my case it show DISPLAY=10.211.146.141:0.0
_=DISPLAY
Thanks so much for your help!!!!
I would greatly appreciate
Regards
NaveenHi ,
Your shell is ksh (Korn Shell) yout have run export command.
> sb2adm>setenv DISPLAY 10.211.146.141:0.0
> -ksh93:: not found
>
> Note: one of my college who in onshore he can able to access.as per below command
>
> sb2adm> DISPLAY=xxxxxxxxx:0.0
> sb2adm> export DISPLAY=xxxxxxxxx:0.0
> sb2adm> set |grep DISPLAY
> sb2adm > xclock
You can also use same it will work.
OR
sb2adm> DISPLAY=xxxxxxxxx:0
sb2adm> export DISPLAY=xxxxxxxxx:0
sb2adm> set |grep DISPLAY
sb2adm > xclock
Thanks
siva -
How to set the display ratio of master and detail view
Currently, I use SplitApp that contain the master and detail view. And I would like to show the master view on the left half and detail view on the right half. Is there any proper way to adjust this?
Thank you in advance.You can set the width ratio by adding css. Check this,
http://jsbin.com/dakir/1 -
How do I set the display font in TB31.3?
I would like to see all of my incoming messages displayed as plain text in the same font. Old versions of TB were able to do this. After updating to 31.3, fonts of incoming messages are all different sizes and styles and changing Preferences doesn't help. How can I set them to a single size/style?
I've checked and unchecked everything I can think of, and it doesn't seem to help. Unless it's just that incoming messages are HTML but that doesn't seem to be the case, and it also seems like there was a big change in this behavior as soon as I updated to 31.3.
-
Unable to open the xclock in RHEL even after setting the display
Hi All,
I''ve install the oracle on linux before that i need to se the diplay in order to launch OUI however I couldnt make it.
and the showstopper is shown below.
[root@Machine1 Desktop]# DISPLAY=192.168.0.129:1.0
[root@Machine1 Desktop]# export DISPLAY
[root@Machine1 Desktop]# xhost +
xhost: unable to open display "192.168.0.129:1.0"
[root@Machine1 Desktop]#
Could any please help on this ASAP.Ramu Jagini wrote:
Hi All,
I''ve install the oracle on linux before that i need to se the diplay in order to launch OUI however I couldnt make it.
and the showstopper is shown below.
[root@Machine1 Desktop]# DISPLAY=192.168.0.129:1.0
[root@Machine1 Desktop]# export DISPLAY
[root@Machine1 Desktop]# xhost +
xhost: unable to open display "192.168.0.129:1.0"
[root@Machine1 Desktop]# LOL.
First and foremost - get out of the habit of using root unless absolutely required. You will not be able to use root in the real world and using it now for this kind of activity will simply introduce wrong habits.
Working as root most of the time ... Bad habit. Bad bad habit. Anyone teaching to log in and stay as root ... shame. In business, auditors will note the habit and user will be reprimanded, up to and including 'go find a new job - you are not the SysAdmin'.
Secondly - you need to understand xhost, and indeed 'display ownership'. When you log in to the Desktop, your screen is 'owned' by a userid. You use xhost (unwisely most of the time) to give permission to others to display on your screen.
Thirdly - you need to understand the influence of DISPLAY variable - it tells programs where they should display... on an authorized display ... such as the one authorized by xhost.
Since you want to do it the wrong way, use the following sequence:
1) Log all the way out of Linux and the desktop (all the way - ensures you don't have screwed up environment)
2) Log in (whatever user you wish - even the bad habit, go stand in the corner, root user)
3) Open a new terminal and give permission to the world to use your screen and get the IP address of the machine. Prior to this xhost command do NOT su (nor set DISPLAY); do not cross Go; do not collect $200
4) Open a new session, preferrably on a different computer (but open new terminal and then 'su - (otheruser)' will do)
5) Under that new user, tell it to display on the IP address and screen from step 3
6) Run xclock
But ... to install Oracle s/w, the 'right way' is to simply log all the way out and then log in to a new desktop as the non-root Oracle owner (on the machine; or using Xming or Xceed or ...; or using VNC client such as UltraVNC or TightVNC)
Did you notice that logging in as root by habit is a bad idea? -
Setting the displayed text in a JList
I have created a JList by passing it a class that implements the interface ListModel (thank you, Gita Weiner). When the JList is displayed, it shows a cryptical representation of the entries in the class. For example: leeftijd.Persoon@6190b689. (Each entry in the list is an object of type Persoon). How can I show (some of) the attributes of each Persoon object? Class Persoon has attributes First Name and Last Name. I would like to displat that information in the form 'Last Name, First Name'.
The code looks like this:
public class LeeftijdList extends JFrame {
LeeftijdList(Personenlijst eenPersonenLijst) {
super("Leeftijd");
setSize(300, 300);
JPanel pane = new JPanel();
FlowLayout lm = new FlowLayout();
pane.setLayout(lm);
JList dataList = new JList(eenPersonenLijst);
JScrollPane scrollPane = new JScrollPane(dataList);
scrollPane.getViewport().setView(dataList);
pane.add(scrollPane);
setContentPane(pane);
public static void main(String[] arguments) {
Personenlijst lijst = new Personenlijst();
lijst.init();
JFrame frame = new LeeftijdList(lijst);
ExitWindow exit = new ExitWindow();
frame.addWindowListener(exit);
frame.show();
}Note: I don't really understand the line scrollPane.getViewport().setView(dataList). I took it from a code snippet in the API specification.The default renderer of JList simply uses the toString() method of the Object in the list. What you see is the the default toString() implementation of the Object class which I believe is the memory address of the Object.
Solution. Implement the toString() method in your Object or provide a custom renderer for the JList.
This posting shows both of the above concepts for a JComboBox althought the concept is exactly the same:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=613731 -
How to set the "display name" of an customized property
Hi,
I've created a customzied property of KM file with KM API, and display it in KM navigation iview. It is ok, except the Column head show the technical name of the property. But what i want is some specify display name and even can support multi language, how this can be done?? Any hint?? Thanks!!
Best Regards,
Xiaoming Yangyou must change the collection render and the resource render in order to show the properties you want.
For translation propourses check this link
http://help.sap.com/saphelp_nw04/helpdata/en/75/e000861cb8ad4b8e4f19dd6416346d/frameset.htm
You must deal with resource bundle -
How to set the display color of string?
I want to display several lines of text string with different colors. Does anybody know how to do that?
a simple example would be great.
thanks in advancedepends on how you go about it ...
if you use labels you can use the labels setForeground(Color c); method.
you also do this in the paint() method,
using setPaint() , and the drawString() method og Graphics instance -
How to set the display value of subtotal
Hi,
I'd like to ask a problem,
I'm using BIEE11.1.1.6, I created a table in BIP layout,there are 3 column,
YEAR-------COMPANY----------SALES
2009--------A----------------------100
2009--------B----------------------100
2010--------A----------------------100
2010--------B----------------------100
2010--------C----------------------100
I want to add a subtotal row,like
YEAR-------COMPANY----------SALES
2009--------A----------------------100
2009--------B----------------------100
2009 total------------------------200
2010--------A----------------------100
2010--------B----------------------100
2010--------C----------------------100
2010 total------------------------300
by default, it is
YEAR-------COMPANY----------SALES
2009--------A----------------------100
2009--------B----------------------100
---------------------------------------200
2010--------A----------------------100
2010--------B----------------------100
2010--------C----------------------100
---------------------------------------300
how can it show the YEAR value||' total' ? like showing '2009 total'?
thank you!Hi Christian,
Have a look at this thread Re: Default the Date Picker to Today
It covers this issue in detail.
Regards
Paul -
How do I set the LUT binary thresholds?
In a LabVIEW vi I am controlling the acquisition of an image with the IMAQ Property Node. I can select the LUT through the image parameters to Binary or Inverse Binary. However, I can't find the parameters to set the thresholds for binary conversion, both high and low.
How do I set these?I was trying to emulate the properties available in Measurement & Automation Explorer for the camera. Binary is listed as a LUT with controls to set the threshold leves. If I select the Binary LUT through software, the display is black, and if I select Inverse Binary the display is all white. Therefore it must be using an LUT to determine the values. I can't find anything in the property node to set these values however.
Using IMAQ Threshold will work, but I was assuming using a LUT is different and possibly a speed advantage? Since the LUT is applied before snapping the image, would it not be faster than processing the image later?
Excuse my ignorance on how the low level IMAQ works. -
Music skips when the display off power setting kicks in
I have a Satellite S55T-B5152, running Windows 8 (until 10 comes out). I've noticed a very odd and irritating problem - when playing my local music via VLC Media Player (just mp3s from the hard drive), I notice that the audio will start to skip after a few minutes. I timed how long it took to start and it will happen after 10 minutes of no activity when plugged in, and after 2 minutes of no activity when on battery, each and every time. I investigated my power settings and it turns out this *exactly* the amount of time when my display is set to turn off. When I alter the time for the display to turn off, the time elapsed until the audio skips will follow it exactly. I tested this with another mp3 player (Foobar) as well and got the same results. I can't test this with video as my display won't turn off if I'm playing video (either in the player or via the internet). What's also kind of interesting is that if I close my lid, which turns off the display, it won't cause the audio to skip - it will ONLY happen when the time to turn off the display has elapsed. So if my time to turn off display is 2 minutes, I can close my lid and the audio plays fine, but after exactly 2 minutes, the audio will start skipping. Anyone have any thoughts on this? It's very annoying - I basically can't play music unless I set the display to never turn off, which I'd prefer not to do for power saving and longevity reasons. Help would be much appreciated.
Mount the Disk Image on the Desktop. Open Disk Utility and select the dmg file in the left hand pane:
Next insert a blank DVD and click on the Burn button at the top. In the next window select the burn speed you want. I use 2x.
Always use top quality media: Verbatium, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
OT -
How to set the prompt of a Spark Combobox programmatically
Hi,
here a Combobox wich use my cutom Skin to manaully set the prompt:
<s:ComboBox id='artistNameCB' labelField="artistName"
skinClass="view.music.skins.ArtistComboBoxSkin"
/>
here is the reklevat part of the Skin:
<!--- @copy spark.components.ComboBox#textInput -->
<s:TextInput id="textInput"
text='select'
left="0" right="18" top="0" bottom="0"
skinClass="spark.skins.spark.ComboBoxTextInputSkin"/>
How do I set the displayed text of a combobox programmatically ?ArtistComboBoxSkin(artistNameCB.skin).textInput.text = "prompt"
Maybe you are looking for
-
Transfer kodak emailed photos to iphoto
my newest question is how do you get photos emailed to you in kodak's email photo gallery to transfer to iphoto ? there is no attachment to click on or save button
-
Memory leak in Acrobat X?
I use Acrobat X Standard version 10.0.2 under Windows XP. When working with large documents, I often have problems with the Acrobat program. The first symptom is that icons on the toolbar disappear or become black boxes. Then whole pages of the docum
-
The creation of snapshot fails
Hi All, In my database the creation of snapshot fails sometimes. When I go to the enterprise manager, it show the following error Task Name ADDM:1655533543_1_12151 Task Owner SYS Status ERROR Error Message error occurred at recursive SQL level 2 Can
-
Displaying Date types in the grid control
I have a grid control and one of the column is displaying 'Date' type data. I am able to see the Date values in the grid, if I define the return type of the getter function as String format. But the problem with this is, when I click on the Date colu
-
Dear Experts . Is there a way to send a notification per Sender System Name when Errors occur ? Thanks , NC.