How do i drag indicator control type on WPF instead of using Drag and Drop points
In my WPF application, i have a window which is docked with the screen. i want to automate to expand the window using an Indicator control type, by sliding it. As of now i use StartDrag and StopDrag using specific points, which is not correct when it runs
in many other screens.
Could you please let me know, is there way to slide the control (to set window display size to viewable) without using drag and drop action using points.
Hi Pavithra,
>> As of now i use StartDrag and StopDrag using specific points, which is not correct when it runs in many other screens.
To really understanding this issue, could you share us what you mean by ”which is not correct”? It would be much helpful if you could share us a screen shoot about your UI and your issue.
>> Could you please let me know, is there way to slide the control (to set window display size to viewable) without using drag and drop action using points
Do you mean that the control of the WPF is invisible and you want to set the window display size to make it visible? If so, I think you could use the Mouse.MoveScrollWheel Method to change the windows view until the control is visible. The link below might
be useful to you:
# CodedUI cann't find the controls outside the screen view, Mouse.MoveScrollWheel doesn't work too
https://social.msdn.microsoft.com/Forums/vstudio/en-US/e1dba9ee-dc51-4160-9a1a-a2220c903db0/codedui-cannt-find-the-controls-outside-the-screen-view-mousemovescrollwheel-doesnt-work-too?forum=vstest
If I misunderstood you, please feel free to let me know.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Similar Messages
-
How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?
unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
unplug the at&t box for a minute and plug it back in
factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
login to your at&t router and disable wifi on it
add new clients to the new wifi network, and point your Macs to the time machine for backups -
Could someone tell me how to control a small dc motor by using labeled and a NI 6008 daq. The motor is adjustable by using a pot that ranges between 0-V if that is of any additional benefit.
Read the second thread you have a link to. While both of these will produce PWM signals, the first one is a couple of orders of magnitude too slow to do anything useful in control the speed of a motor, what you would see would be the motor run at the full speed, then stop for a period, then run at full speed, rather than at the "average of on and off" as the Pulse Widths will be very long relative to the motor's response. The second one has a better chance, IF all you want to do is run the motor. If there is any other calculations ... Look at both and try and get an understanding of what they are doing. For PWM speed control of a motor you really need a pretty fast pulse width, and probably some filtering to smooth out the resulting "harsh" waveform, giving you the "average" voltage resulting from the PWM.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion -
Question
I would like to be able to take a website that I use ofter and drop it on the firefox screen below the url. Then I will have a quick access. How do I do this? I currently use this on my laptop, but recently bought a new computer and downloaded firefox and lost a lot of features that I enjoyed.Hi Ruthannw,
I think you are talking about the [[Bookmarks Toolbar]]. That article will show you how to add sites to the toolbar and even how to display the toolbar if it is hidden in your new Firefox install.
Hopefully this helps! -
How can I cancel my auto-renewal payments I don't use it and every month I have to pay
How can I cancel my auto-renewal payments I don't use it and every month I have to pay.
http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
-
Control CS-200 Konica Minolta chromameter using USB and labview
Hi,
Does any body have any ideas about controling a Konica Minolta CS-200 chromameter using Labview. The Chromameter has an USB interface to the computer that is controlled by its own software. I dont think there is a command language available for this or any such thing. But is there a brute force way of reading measurements from CS-200.
Thank you, JigneshI developed a LabVIEW application a few years ago that use the Minolta
CA210 color analyzers. I used the ActiveX controls in LabVIEW to
interface to the unit via USB (RS232 as well). The unit came with
software that you had to install on the target computer (it put the
DLLs used to control the unit in the windows system folder and added
registry entries). There was a SDK manual that showed all of the
methods and properties in the DLLs; once I figured out how to make
calls via ActiveX, I was able to control the unit.
Hopefully the CS-200 can be controlled similarly. I've attached a subVI used to initialize a CA210; hope this helps!
Daniel
Attachments:
CA210 ActiveX Initialize.zip 22 KB -
How to pick max value from a column of a table using cursor and iteration
Hello Everybody
I have a table loan_detail
and a column in it loan_amount
now i want to pick values from this table using cursor and then by using iteration i want to pick max value from it using that cursor
here is my table
LOAN_AMOUNT
100
200
300
400
500
5600
700i was able to do it using simple loop concepts but when i was trying to do this by using cursor i was not able to do it .
Regards
PeeyushSQL> SELECT MAX(sal) Highest_Sal,MIN(sal) Lowest_Sal FROM emp;
HIGHEST_SAL LOWEST_SAL
5000 800
SQL> set serverout on
SQL> DECLARE
2 TYPE tmp_tbl IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
3 sal_tbl tmp_tbl;
4 CURSOR emp_sal IS
5 SELECT sal FROM emp;
6 counter INTEGER := 1;
7 BEGIN
8 FOR i IN emp_sal LOOP
9 sal_tbl(i.sal) := counter;
10 counter := counter + 1;
11 END LOOP;
12 DBMS_OUTPUT.put_line('Lowest SAL:' || sal_tbl.FIRST);
13 DBMS_OUTPUT.put_line('Highest SAL:' || sal_tbl.LAST);
14 END;
15 /
Lowest SAL:800
Highest SAL:5000
PL/SQL procedure successfully completed.
SQL> Even smaller
SQL> DECLARE
2 TYPE tmp_tbl IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
3 sal_tbl tmp_tbl;
4 CURSOR emp_sal IS
5 SELECT sal FROM emp;
6 counter INTEGER := 1;
7 BEGIN
8 FOR i IN emp_sal LOOP
9 sal_tbl(i.sal) := 1;
10 END LOOP;
11 DBMS_OUTPUT.put_line('Lowest SAL:' || sal_tbl.FIRST);
12 DBMS_OUTPUT.put_line('Highest SAL:' || sal_tbl.LAST);
13 END;
14 /
Lowest SAL:800
Highest SAL:5000
PL/SQL procedure successfully completed.
SQL> Edited by: Saubhik on Jan 5, 2011 4:41 PM -
How can I use Drap and Drop in Linux system?
I try to use DnD in a item from "explorer" in Linux into my application, but it does atually not work. The same version is work well on Windows. Below is code (3 separated files):
* FileAndTextTransferHandler.java is used by the 1.4
* DragFileDemo.java example.
import java.io.*;
import java.util.*;
import java.awt.*;
import java.awt.datatransfer.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.*;
class FileAndTextTransferHandler extends TransferHandler {
private DataFlavor fileFlavor, stringFlavor;
private TabbedPaneController tpc;
private JTextArea source;
private boolean shouldRemove;
protected String newline = "\n";
//Start and end position in the source text.
//We need this information when performing a MOVE
//in order to remove the dragged text from the source.
Position p0 = null, p1 = null;
FileAndTextTransferHandler(TabbedPaneController t) {
tpc = t;
fileFlavor = DataFlavor.javaFileListFlavor;
stringFlavor = DataFlavor.stringFlavor;
public boolean importData(JComponent c, Transferable t) {
JTextArea tc;
if (!canImport(c, t.getTransferDataFlavors())) {
return false;
//A real application would load the file in another
//thread in order to not block the UI. This step
//was omitted here to simplify the code.
try {
if (hasFileFlavor(t.getTransferDataFlavors())) {
String str = null;
java.util.List files =
(java.util.List)t.getTransferData(fileFlavor);
for (int i = 0; i < files.size(); i++) {
File file = (File)files.get(i);
//Tell the tabbedpane controller to add
//a new tab with the name of this file
//on the tab. The text area that will
//display the contents of the file is returned.
tc = tpc.addTab(file.toString());
BufferedReader in = null;
try {
in = new BufferedReader(new FileReader(file));
while ((str = in.readLine()) != null) {
tc.append(str + newline);
} catch (IOException ioe) {
System.out.println(
"importData: Unable to read from file " +
file.toString());
} finally {
if (in != null) {
try {
in.close();
} catch (IOException ioe) {
System.out.println(
"importData: Unable to close file " +
file.toString());
return true;
} else if (hasStringFlavor(t.getTransferDataFlavors())) {
tc = (JTextArea)c;
if (tc.equals(source) && (tc.getCaretPosition() >= p0.getOffset()) &&
(tc.getCaretPosition() <= p1.getOffset())) {
shouldRemove = false;
return true;
String str = (String)t.getTransferData(stringFlavor);
tc.replaceSelection(str);
return true;
} catch (UnsupportedFlavorException ufe) {
System.out.println("importData: unsupported data flavor");
} catch (IOException ieo) {
System.out.println("importData: I/O exception");
return false;
protected Transferable createTransferable(JComponent c) {
source = (JTextArea)c;
int start = source.getSelectionStart();
int end = source.getSelectionEnd();
Document doc = source.getDocument();
if (start == end) {
return null;
try {
p0 = doc.createPosition(start);
p1 = doc.createPosition(end);
} catch (BadLocationException e) {
System.out.println(
"Can't create position - unable to remove text from source.");
shouldRemove = true;
String data = source.getSelectedText();
return new StringSelection(data);
public int getSourceActions(JComponent c) {
return COPY_OR_MOVE;
//Remove the old text if the action is a MOVE.
//However, we do not allow dropping on top of the selected text,
//so in that case do nothing.
protected void exportDone(JComponent c, Transferable data, int action) {
if (shouldRemove && (action == MOVE)) {
if ((p0 != null) && (p1 != null) &&
(p0.getOffset() != p1.getOffset())) {
try {
JTextComponent tc = (JTextComponent)c;
tc.getDocument().remove(
p0.getOffset(), p1.getOffset() - p0.getOffset());
} catch (BadLocationException e) {
System.out.println("Can't remove text from source.");
source = null;
public boolean canImport(JComponent c, DataFlavor[] flavors) {
if (hasFileFlavor(flavors)) { return true; }
if (hasStringFlavor(flavors)) { return true; }
return false;
private boolean hasFileFlavor(DataFlavor[] flavors) {
for (int i = 0; i < flavors.length; i++) {
if (fileFlavor.equals(flavors)) {
return true;
return false;
private boolean hasStringFlavor(DataFlavor[] flavors) {
for (int i = 0; i < flavors.length; i++) {
if (stringFlavor.equals(flavors[i])) {
return true;
return false;
* TabbedPaneController.java is used by the 1.4
* DragFileDemo.java example.
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
* Class that manages area where the contents of
* files are displayed. When no files are present,
* there is a simple JTextArea instructing users
* to drop a file. As soon as a file is dropped,
* a JTabbedPane is placed into the window and
* each file is displayed under its own tab.
* When all the files are removed, the JTabbedPane
* is removed from the window and the simple
* JTextArea is again displayed.
public class TabbedPaneController {
JPanel tabbedPanel = null;
JTabbedPane tabbedPane;
JPanel emptyFilePanel = null;
JTextArea emptyFileArea = null;
FileAndTextTransferHandler transferHandler;
boolean noFiles = true;
String fileSeparator;
public TabbedPaneController(JTabbedPane tb, JPanel tp) {
tabbedPane = tb;
tabbedPanel = tp;
transferHandler = new FileAndTextTransferHandler(this);
fileSeparator = System.getProperty("file.separator");
//The split method in the String class uses
//regular expressions to define the text used for
//the split. The forward slash "\" is a special
//character and must be escaped. Some look and feels,
//such as Microsoft Windows, use the forward slash to
//delimit the path.
if ("\\".equals(fileSeparator)) {
fileSeparator = "\\\\";
init();
public JTextArea addTab(String filename) {
if (noFiles) {
tabbedPanel.remove(emptyFilePanel);
tabbedPanel.add(tabbedPane, BorderLayout.CENTER);
noFiles = false;
String[] str = filename.split(fileSeparator);
return makeTextPanel(str[str.length-1], filename);
//Remove all tabs and their components, then put the default
//file area back.
public void clearAll() {
if (noFiles == false) {
tabbedPane.removeAll();
tabbedPanel.remove(tabbedPane);
init();
private void init() {
String defaultText =
"Select one or more files from the file chooser and drop here...";
noFiles = true;
if (emptyFilePanel == null) {
emptyFileArea = new JTextArea(20,15);
emptyFileArea.setEditable(false);
emptyFileArea.setDragEnabled(true);
emptyFileArea.setTransferHandler(transferHandler);
emptyFileArea.setMargin(new Insets(5,5,5,5));
JScrollPane fileScrollPane = new JScrollPane(emptyFileArea);
emptyFilePanel = new JPanel(new BorderLayout(), false);
emptyFilePanel.add(fileScrollPane, BorderLayout.CENTER);
tabbedPanel.add(emptyFilePanel, BorderLayout.CENTER);
tabbedPanel.repaint();
emptyFileArea.setText(defaultText);
protected JTextArea makeTextPanel(String name, String toolTip) {
JTextArea fileArea = new JTextArea(20,15);
fileArea.setDragEnabled(true);
fileArea.setTransferHandler(transferHandler);
fileArea.setMargin(new Insets(5,5,5,5));
JScrollPane fileScrollPane = new JScrollPane(fileArea);
tabbedPane.addTab(name, null, (Component)fileScrollPane, toolTip);
tabbedPane.setSelectedComponent((Component)fileScrollPane);
return fileArea;
* DragFileDemo.java is a 1.4 example that
* requires the following file:
* FileAndTextTransferHandler.java
* TabbedPaneController.java
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
public class DragFileDemo extends JPanel
implements ActionListener {
JTextArea fileArea;
JFileChooser fc;
JButton clear;
TabbedPaneController tpc;
public DragFileDemo() {
super(new BorderLayout());
fc = new JFileChooser();;
fc.setMultiSelectionEnabled(true);
fc.setDragEnabled(true);
fc.setControlButtonsAreShown(false);
JPanel fcPanel = new JPanel(new BorderLayout());
fcPanel.add(fc, BorderLayout.CENTER);
clear = new JButton("Clear All");
clear.addActionListener(this);
JPanel buttonPanel = new JPanel(new BorderLayout());
buttonPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
buttonPanel.add(clear, BorderLayout.LINE_END);
JPanel upperPanel = new JPanel(new BorderLayout());
upperPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
upperPanel.add(fcPanel, BorderLayout.CENTER);
upperPanel.add(buttonPanel, BorderLayout.PAGE_END);
//The TabbedPaneController manages the panel that
//contains the tabbed pane. When there are no files
//the panel contains a plain text area. Then, as
//files are dropped onto the area, the tabbed panel
//replaces the file area.
JTabbedPane tabbedPane = new JTabbedPane();
JPanel tabPanel = new JPanel(new BorderLayout());
tabPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
tpc = new TabbedPaneController(tabbedPane, tabPanel);
JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
upperPanel, tabPanel);
splitPane.setDividerLocation(400);
splitPane.setPreferredSize(new Dimension(530, 650));
add(splitPane, BorderLayout.CENTER);
public void setDefaultButton() {
getRootPane().setDefaultButton(clear);
public void actionPerformed(ActionEvent e) {
if (e.getSource() == clear) {
tpc.clearAll();
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
private static void createAndShowGUI() {
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("DragFileDemo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the menu bar and content pane.
DragFileDemo demo = new DragFileDemo();
demo.setOpaque(true); //content panes must be opaque
frame.setContentPane(demo);
//Display the window.
frame.pack();
frame.setVisible(true);
demo.setDefaultButton();
public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();I'm currently using Linux Fedora system.
Doesn't matter. There's no standard way for D&D on Linux, no single API.
Every application has its own mechanism which may or may not be compatible with any other.
Gnome and KDE groups are doing some work to provide a common standard but as you know the Linux zealots are completely opposed to anyone telling them what to do (such as creating standards) and won't in general follow them. -
How to write select statement directly in java file instead of using vo
Hi,
I have written the following code in my java file:
if(empvo==null)
empvo=worklistamimpl2.createViewObject("InvoiceVO", "xxetfc.oracle.apps.icx.icatalog.shopping.server.InvoiceVO");
if(empvo!=null){
OAViewObject oaviewobject2 = (OAViewObject)worklistamimpl2.findViewObject("InvoiceVO");
OAViewObjectImpl oaviewobjectimpl = (OAViewObjectImpl)oapagecontext.getApplicationModule(oawebbean).findViewObject("InvoiceVO");
oaviewobject2.setWhereClause("Invoice_num="+" ' " + s + " ' ");
oaviewobjectimpl.executeQuery();
String abc = (String)oaviewobjectimpl.first().getAttribute("Invoice_id");
It is giving me error as
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select invoice_id from ap_invoices_all) QRSLT WHERE (Invoice_num='ERS15022012_3')
1. Why is this error coming.. how to solve this
2. Instead of using vo how can i write select statement directly in the above code
Thanks,
Edited by: user10873676 on Apr 9, 2012 1:18 AM
Edited by: user10873676 on Apr 9, 2012 1:21 AMit says java.sql.SQLSyntaxErrorException: ORA-00904: "INVOICE_NUM": invalid identifier
where as invoice_num column is present in my table -
How does one register a non apple phone number so as use ichat with that phone?
Have you tried applying the update by going to Help>Updates within Photoshop Lightroom? The update should be using the same licensing? Did you perhaps customize the installation location? Finally which operating system are you using?
-
How do I change the content-type in http header when using JAX-WS?
I need to change Content-Type in http Header. I am using JAX-WS to invoke web service call. Can someone tell me how to do it? Thanks a lot!
LabVIEW does so many wonderful things, but the inability to perform what should be a simple task, such as upgrade a RT chassis within a LV Project, bewilders me. This is going to cost me hours, I just know it...
Is there anything on the Idea Exchange for this?? A quick search shows nothing, so maybe I'll add an entry.
Thoric (CLA, CLED, CTD and LabVIEW Champion) -
How do I clear the control alt delete key downs when using input acquire.vi?
I am trying to monitor keystroks... When I use the Input Acquire.vi after I log in to my system it says the Control LAlt and the Delete key are down and my code does not like that because the keyboard value is not corect...the Keypressed array always has 3 keys down....
Is there a way to clear them or send key ups some how to get rid of them.
Thanks for any help you can provide...
I am using Labview 8.0
Thanks
Eric HorwitzThere is no way that you can press multiple buttons at exactly the same time. Which keys are you trying to press? Are you talking about "PlatMods" (shift, ctrl, etc.)?
Keep a shift registers with the states of the desired buttons in a boolean array and change the respective elements to true or false, depending on key-up and key-down events. On the Key down events, check if all elements are true and act accordingly.
LabVIEW Champion . Do more with less code and in less time . -
It is getting very annoying when I want to use the control button for other functions.
I tried looking in settings under keyboard, but found nothing.
If anybody knows how to change it, I would really appreciate it!
Thanks,
Neel.Please describe what you are doing and what is happening more fully. I can press the control key all day long and nothing happens.
-
i´m using pages 5.1 and i need 2 different types of page in 1 document: first page with large logo and second with a small one. in pages 09 was a option for different first page ...
that's not my problem, and I am unfortunately not a professional. Sorry.
In Pages09 there was an option "Different First Page" (like MS Word). I could create different pages (first and second) with two different logos and text boxes. If the document was opened, there was only one side with the large logo. during writing the small logo and the other text boxes appeared on the second page (and subsequent pages).
Unfortunately I miss this function. I mean the inclusion of items on a second page. However, this must not necessarily be active. -
I have a usb-6363 DAQ and a J-type non-contact thermocouple that I am looking to connect and measure temperature through. However, the DAQ does not have any T/C inputs, which is needed to measure in the thermocouple temperature. I am connecting the thermouple to an analog input (+/-) and I am not looking to buy an amplifier, converter or any other hardware. I believe there is a way to program labview to read in the voltages of the thermocouple and convert it into accurate temperature readings. Any help/ideas?
Hello George,
This tutorial should step you through the basic process of configuring the device and connecting the thermocouple:
Tutorial: Connect Thermocouples to a Data Acquisition (DAQ) Device
http://www.ni.com/gettingstarted/setuphardware/dataacquisition/thermocouples.htm#Connecting a Thermocouple to Your Device
From there, there are a number of things you can do- I'd recommend taking a look at the LabVIEW shipping examples (Help>>Find Examples...) as well as the DAQmx getting started tutorials:
Getting Started with NI-DAQmx: Main Page
http://www.ni.com/white-paper/5434/en
At first glance, the 6363 you're using should have enough resolution to acquire usable data from a thermocouple- if you attempt reading raw voltages be sure that the acquisition range is configured for +/- 0.1V, though.
Regards,
Tom L.
Maybe you are looking for
-
So I had the stock 320gb drive that came with my machine. It started crashing, so I pre-empted the loss of data and installed a spare Western Digital 500gb Scorpio Blue drive, installed Mavericks, and restored my data. Almost immediately I began havi
-
64 bit version of Connect Add-in
After the upgrade to Connect 8 on June 10, I was able to participate with my team in Adobe Connect for a few days, but today, June 14th, I can no longer get in. I get a pop up window with "The selected resource does not exist." I do the connection te
-
I have an iPhone, iMac and a MobileMe account and was trying to merge all my data together. I noticed that some of my iPhone contacts were not on my iMac or MobileMe account. I thought the settings were correct when I did a sync, but the data on my i
-
In Adobe 7 Pro can you link to a certain page in another pdf document? Apprecaiate advise
-
Dear BT, Despite repeated contacts (phone & emails) requesting a delivery date for my overdue £75 Sainsbury's Gift Card, you have failed to respond. I have email confirmation of my voucher claim (the offer period was stated at 45 days). We are now at