Change the selection of tree control with a right click
How is it possible to change the item selected in a tree control (LabVIEW7) with a mouse right click ?
Filippo,
Here is a popup menu toolkit, with an additional example for a listbox. If I
understand your problem, it shouldn't be hard to change it to a tree
control.
Regards,
Wiebe.
"Filippo" wrote in message
news:[email protected]..
> Sorry for my english ! If you can send me an example, it could be very
> useful for me.
> My e-mail is : [email protected]
> Thanks.
> Regards,
>
> Filippo
[Attachment Menu 042004.zip, see below]
Attachments:
Menu_042004.zip 175 KB
Similar Messages
-
JTable: Allowing the highlight of a row with a right click
Hi, this is my first post here. I'm using a JTable to display data from a JDBC ResultSet and I added a popup menu to the JTable (activated with the PopupTrigger) to display options related to the selected row like DELETE, UPDATE, etc.
But the problem is that if you right click (the PopupTrigger that MS Windows has) anywhere on the table the Pop Up shows even if you aren't right clicking over the selected row.
What I want to do is to:
* When I right click over a row on the JTable I want to highlight that row and then show the PopUp menu so it correctle performs the operation on the row the Menu is placed over.
* Or another option is not to show the PopUp at all in case the cursor is not over the selected row.
Anyway, the bottom line is that I need a way to know in which row of the JTable is the mouse over?
Thanks in advance.Thanks my man! That was my missing piece!
I also used the JTable.addRowSelectionInterval(clickedRow, clickedRow) to highlight the clicked row.
10 Duke Dollars coming your way.
class IFramePersons_jTablePerson_mouseAdapter
extends java.awt.event.MouseAdapter
IFramePersons adaptee;
IFramePersons_jTablePerson_mouseAdapter(IFramePersons adaptee)
this.adaptee = adaptee;
public void mouseClicked(MouseEvent e)
if(e.getClickCount() == 2)
adaptee.jTablePerson_mouseClicked(e);
public void mousePressed(MouseEvent e)
maybeShowPopup(e);
public void mouseReleased(MouseEvent e)
maybeShowPopup(e);
private void maybeShowPopup(MouseEvent e)
if(e.isPopupTrigger())
int clickedRow = adaptee.jTablePerson.rowAtPoint(e.getPoint());
adaptee.jTablePerson.addRowSelectionInterval(clickedRow, clickedRow);
adaptee.jPopupMenuRow.show(e.getComponent(), e.getX(), e.getY());
} -
How do i change the secondary click from starting up mission control to standard right click
Downloaded lion but i can't seem to changes the secondary click. The secondary or right click opens up mission control instead of the standard right click menus
Any ideas?I had the same problem with my 2010 MBA. I plugged in a mouse and changed the preference on the right button to secondary click in the mouse preferences. For some reason it changed the setting on the trackpad from mission control to standard right click as well, even after the mouse is unplugged. So if you have a mouse you might try that. Hopefully Apple will fix this with an update.
-
Hi all,
I am making a vi where I have to save the selected value from listbox with its respective tab control dropdown selcted values in another listbox.Whenever I select Item1 then the heading change and respective tab will open for that item.But Now I just want to save the selection and put it in another ListBox.SO that I can renmove or add according to my wish. Plz help me.
Solved!
Go to Solution.
Attachments:
my_vi.png 83 KBHi, I successfully make the vi to insert itmes from listbox1 to listbox2.Whenever I select itmes 1 in listbox 1 it display same elected item in listbox2 , but it not appending the items in listbox2.Like If 1 is selected in listbox1 then 1 will display , next time after saving when I selct next item like 3 then in listbox 2, 1 is replaced by 3,it dont come in second row of listbox2.Hope I am able to explain.\
Plz help me to resolve this.
Attachments:
listbox_update.vi 11 KB -
Trying to import a .mov file made with gotomeeting - no problems in past doing this. After 3 attempts recording the hour long video and trying to upload it to iMovie, it says No importable files -None of the selected files or folders can be imported. Change the selection and try again. What could the reason be?
After much research and troubleshooting, GoToMeeting replied with the final answer: We do not support the uploading of recordings to editing software. If you are having issues uploading a recording, unfortunately, we do not have tools or steps to resolve this. It is not a supported feature. I am sorry for any inconvenience this may have caused you.
The no longer plan to support editing of recordings made with their software. So, we are planning to find a new meeting provider. -
Can we change the Bill/Payment tree structure on Control central page?
Can we change the Bill/Payment tree structure on Control central page to Bill/Payment Tree containing a single node for all A/R related activities for a specific bill period, in reverse chronological order. Basically the tree should look like
+ Bill - Date: 03-17-2010 Complete
+++++ CR Note - Date: 05-04-2010 Complete
++++++++++ Pay - Date: 05-04-2010 Frozen
+ Bill - Date: 03-17-2010 Complete
+++++ Pay - Date: 05-04-2010 Frozen
I have tried changing controlCentralBPTree.xml but if I do that the tree is not expanding its just collapsed I m not able to expand.
So do I need to change some other file to change the tree structure and look like above?Hello CHS.
I tested your project but to change the label and has not worked.
I tried running the Application Module and test the ViewCriteria, and show correctly the labels defined in control hint of bind variable.
Again, I think the component af:query should do the same, but does not work.
Any Oracle ACE Director some could verify this problem?
thank you very much -
How can I change the description of a control Icon with property nodes?
hi
I want to change the description of a control Icon and use for this the property nodes, but I don't know how. Who can help me?
labprogIf you're referring to the control's name on the screen, you can't change the label while the VI is running because it's part of the control's definition. Instead, make the label invisible and the caption visible and use the property Caption.
If this doesn't help, elaborate more on what it is you need.
Try to take over the world! -
Impossible to change the Fontsize for a Radiogroup(with Submit).
Impossible to change the Fontsize for a Radiogroup(with Submit).
I have a Menue displayed from a Query like (select menue_title, id from lov_tabel)
and displayed in a Report Region as a Radio group with Submit.
The problem is, i've not been able to change the font size.
What i' have tried.
- Change the color works if i change "+Page Item"-> Element -> HTML Table Celle Attributes+ to
style="font-size:1.2em; color:#CC00CC" I see the new color but NO change in font-size.
- If change in Application-> Shared Components-> Templates
copy the Template "Reports Region" to "MenueReport",
then change on "MenueReport"->Template
value to <table class="t6ReportsRegion" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES# summary=""
*style="font-size:1.2em; color:#CC00CC; font-family:Verdana"*>
<tr><td class="t6Header">#TITLE#</td></tr>
<tr><td class="t6ButtonHolder">#CLOSE# #PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</td></tr>
<tr><td class="t6Body">#BODY#</td></tr>
</table> option style="font-size:1.2em; color:#CC00CC; font-family:Verdana" inserted
and then change in the template for the report region the Option
Edit Region->User Interface -> Template to "MenueReport".
I see a new color but NO font-size will be changed!
- I have changed the query to SELECT ' <font size="4">' || rt_name as x, rt_nr FROM report_types order by rt_nr But there is NO change of font size, and the Tag <font size= .. is deprecated.
Used Version is Apex apex_030200 with Firefox 3.5.5 Windows.
After all this failed attempts, i have no idea how to change the font for page to a larger size.
Can anyone help me and explain how to change the font size in Apex for a Radiogroupe?
Thanks in advanced
DieterAssign a [static region ID|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/ui.htm#sthref1438] to the region containing the radiogroup.
Place the following code in the HTML Header page property, replacing static-region-id with the ID given to the region:
<style type="text/css">
#static-region-id label {
font-size:1.2em;
</style>after that how do we need to call this css
and does it need to be called within the Region HTML table cell attributes of a region or in the HTML Form Element Attributes of the radio group items
>
CSS isn't "called". Learn how [themes, templates|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/themes.htm#CJABAEIE] and CSS are used to control the appearance of APEX applications. -
Tree control with Nodes in ALV
Hi ABAP Gurus,
I am trying to create tree control with nodes in ALV. I have referred to standard BCALV_TREE* programs but new to OO programming. Not sure as to how I can display my internal table data than the SFLIGHT information in these programs. Can you please let me know how this can be done or if I can use any ALV function modules for the node display.
thanks,
ChaitanyaMaybe you could use this. Call this VI from a Value Change event of the tree.
Attachments:
Check_Tree_Items.vi 28 KB -
Change the selection while I'm typing
Hi everyone,
It is possible with some webdynpro control, like DropDownbyIndex, to select from a list of text the word that I'm typping. something like while I'm typping a word, the control change the selection in the current list automatic.
Thanks in advance,Hi,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/2833ce90-0201-0010-f1af-d3cfe1155b16
Regards,
Sudhir -
How to delete the row in table control with respect to one field in module pool programming?
Hi,
Can I know the way to delete the row in table control with respect to one field in module pool programming
Regards
Darshan MSHI,
I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
I have written this code,
module USER_COMMAND_9000 input.
DATA OK_CODE TYPE SY-UCOMM.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN 'DELETE'.
LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
APPEND LS_SOURCE TO LT_RESTORE.
DELETE TABLE LT_SOURCE FROM LS_SOURCE.
SOURCE-LINES = SOURCE-LINES - 1.
ENDLOOP.
But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
So I thought of doing with respect to the field. -
How can I change the 'selected' color of one JToggleButton only.
Hi,
This seems like a simple / trivial question, but I just can't figure it out. Is there a way that I can create a JToggleButton and change the selected color of only that JToggleButton.
I'm trying to create a simple sidebar like component for navigation within my app. A group of JToggleButton[s] added to a ButtonGroup (with the proper layout / sizing) works great, but the default JToggleButton colors don't suit my needs. I know that I can change the colors using the UIManager / UIDefaults, but I don't want to change the defaults for every JToggleButton in my app. I only want to change the defaults for a few select JToggleButton[s].
For example, I can do this:
UIManager.put("ToggleButton.select", UIManager.getColor("Table.selectionBackground"));
UIManager.put("ToggleButton.background", UIManager.getColor("Table.background"));but I'd rather do something like this:
JToggleButton jtb = new JToggleButton("Toggle Button Text");
jtb.setSelectedColor(UIManager.getColor("Table.selectionBackground"));
jtb.setBackground(UIManager.getColor("Table.background"));The only thing is, I can't find any method that is the equivilant of 'setSelectedColor(Color)' for JToggleButton.
I know I could do it by adding some listeners to the JToggleButton[s], but that seems a little complicated for something like changing a color.
I'd also seen a solution in the forums where someone had extended the ButtonUI of the pluggable look and feel they were using. I'm not interested in modifying the look and feel I'm using. As far as I'm concerned, that would defeat the purpose of having a pluggable look and feel as I would have to duplicate my efforts for every look and feel I want to use.
Any help would be appreciated,
Ryantry this
import javax.swing.*;
import java.awt.*;
class Testing extends JFrame
public Testing()
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(250,75);
setLocation(400,300);
JPanel jp = new JPanel();
JToggleButton jtb = new JToggleButton("Toggle me");
jtb.setUI(new MyUI());
jp.add(jtb);
getContentPane().add(jp);
public static void main(String args[]){new Testing().setVisible(true);}
class MyUI extends javax.swing.plaf.metal.MetalToggleButtonUI
public Color getSelectColor(){return Color.BLACK;}
} -
CRM - change the selection fields in standard extractor
Hello everyone!
I would like to change the selection parameters for the DataSources 0CRM_SRV_PROCESS_H and 0CRM_SRV_CONTRACT_H in order to include the field CHANGED_AT. However, in the DataSource definition this field appears grayed out (even in process mode).
Is there any way I could change this?
If not, I was thinking about appending a custom field with the the same information and include this in the selection criteria. Would this work?
If not, could I create a generic DataSource whose function module would internally call the standard DataSources own FM with the standard selection criteria and then filter it out further with my own criterion?
Performance is not really an issue here.
Thanks in advance for any input on this!
Best Regards,
Luís Andrade.Hi,
>
scoy123 wrote:
> I have added one screen field to the standard report , now i want to change the selection text in the standard report/transaction
Refer:-
CONSTANTS : c_comment(20) TYPE c VALUE 'write your comment'.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) c_comment.
PARAMETERS : p_matnr TYPE matnr.
SELECTION-SCREEN END OF LINE.
Hope this helps you.
Regards,
Tarun -
Can I change the select option text for pnp ldb ?
hi Akll,
I am using a pnp logical database in my report and I have created my own hr category because i wanted to use field ename from the ldb in the selection screen. Now the problem with ename is I cant do a case sensitive search.
So I have replaced it with sname, so now my screen has sname instead of ename, however I want to change the selection text for select option ( at present it is 'EE name can be sorted' )
Kindly advise,
thanks,
GVI guess the text cannot be changed.. anyways you can add the field as an additional field by normal coding in your report
-
Recent software upgrades has changed the way my iPhone syncs with my macbook and items entered on my iPhone are no longer uploaded to my macbook. I've tried to fix it and seem to have made things worse, my iPhone now has a long list of calanders that I don't want and can't delete and nothing is uploading to my macbook.
You need to look at Mac's iTunes, check > System Preferences > iCloud.
If you use iCloud for Calendar, Contacts then turn off those items in iTunes, Info tab with your iPhone connected and selected.
Maybe you are looking for
-
I need to learn how to use all about java & mysql...help me!
I have a situation here, I need to learn how to use java with mysql . Can I connect to a MYSQL DB with servlets? how can I build an e-mail server with java (no matter how difficult) please, I need help, and I really apreciate your help. thank you ver
-
Displaying Column name in a text field
I am running a report in a spreadsheet format using the across orientation.. the last column is a total total of the previous columns and I need to display a title 'weekly totals' at the top of this column,, I am trying to write code to return a text
-
Syncing between iPod and computer messed up!
My dad was trying to sync an album onto his nano, but when the songs are imported they come out shuffled in alphabetical order. How can he fix this?
-
can someone tell me how many seconds the cross fade is when running your Ipod 6th Gen nano in that mode? I teach spin class and want to know how much time I'm losing in that mode.
-
Lov choice in enumeration mode
hi All, i am using JDeveloper 9051+adf+uix. i just want to use message choice on my page, in which i want to bind my table data to other data,ie suppose i m having a field month - NUMBER(2) in my table. how i can able to show names of month in place