New GUI Buttons
Hi,
Besides the existing GUI buttons in Labview, are there any place where new GUIs can be created or downloaded?
Thanks alot
From
Don
You can easily make your own using the control editor, e.g. cut& paste buttons from any existing windows program (e.g. MS Office) using a screen capture utility and an image editor.
Also have a look at the openG button controls (see attached image). You can download and install it via the OpenG Commander.Message Edited by altenbach on 03-04-2005 08:31 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
openG-Buttons.gif 5 KB
Similar Messages
-
Adding Radio button & regular button to selection-screen without new gui
Hi,
Is there a way to add a radio button & regular button to a selection-screen without having to create a new gui, status and etc?
Thanks,
JohnHi
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 4(30) TEXT-001 FOR FIELD P_1.
SELECTION-SCREEN POSITION 1.
PARAMETERS: P_1 RADIOBUTTON GROUP R1 DEFAULT 'X'.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 4(30) TEXT-002 FOR FIELD P_2.
SELECTION-SCREEN POSITION 1.
PARAMETERS: P_2 RADIOBUTTON GROUP R1.
SELECTION-SCREEN END OF LINE.
Where the symbols text TEXT-001 and TEXT-002 have the label for the radiobuttons
Max -
Using my new GUI component in an applet :Help!!!
I am seeking help for the following
Define class MyColorChooser as a new component so it can be reused in other applications or applets. We want to use the new GUI component as part of an applet that displays the current Color value.
The following is the code of MyColorChooser class
* a) We define a class called MyColorChooser that provides three JSlider
* objects and three JTextField objects. Each JSlider represents the values
* from 0 to 255 for the red, green and blue parts of a color.
* We use wred, green and blue values as the arguments to the Color contructeur
* to create a new Color object.
* We display the current value of each JSlider in the corresponding JTextField.
* When the user changes the value of the JSlider, the JTextField(s) should be changed
* accordingly as weel as the current color.
* b)Define class MyColorChooser so it can be reused in other applications or applets.
* Use your new GUI component as part of an applet that displays the current
* Color value.
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.event.*;
import java.text.DecimalFormat;
public class MyChooserColor extends JFrame{
private int red, green, blue; // color shade for red, green and blue
private static Color myColor; // color resultant from red, green and blue shades
private JSlider mySlider [];
private JTextField textField [];
// Panels for sliders, textfields and button components
private JPanel mySliderPanel, textFieldPanel, buttonPanel;
// sublcass objet of JPanel for drawing purposes
private CustomPanel myPanel;
private JButton okButton, exitButton;
public MyChooserColor ()
super( "HOME MADE COLOR COMPONENT; composition of RGB values " );
// setting properties of the mySlider array and registering the events
mySlider = new JSlider [3];
ChangeHandler handler = new ChangeHandler();
for (int i = 0; i < mySlider.length; i++)
{ mySlider[i] = new JSlider( SwingConstants.HORIZONTAL,
0, 255, 255 );
mySlider.setMajorTickSpacing( 10 );
mySlider[i].setPaintTicks( true );
// register events for mySlider[i]
mySlider[i].addChangeListener( handler);
// setting properties of the textField array
textField = new JTextField [3];
for (int i = 0; i < textField.length; i++)
{ textField[i] = new JTextField("100.00%", 5 );
textField[i].setEditable(false);
textField[i].setBackground(Color.white);
// initial Background color of each slider and foreground for each textfield
// accordingly to its current color shade
mySlider[0].setBackground(
new Color ( mySlider[0].getValue(), 0, 0 ) );
textField[0].setForeground(
new Color ( mySlider[0].getValue(), 0, 0 ) );
mySlider[1].setBackground(
new Color ( 0, mySlider[1].getValue(), 0 ) );
textField[1].setForeground(
new Color ( 0, mySlider[1].getValue(), 0 ) );
mySlider[2].setBackground(
new Color ( 0, 0, mySlider[2].getValue() ) );
textField[2].setForeground(
new Color ( 0, 0, mySlider[2].getValue() ) );
// initialize myColor to white
myColor = Color.WHITE;
// instanciate myPanel for drawing purposes
myPanel = new CustomPanel();
myPanel.setBackground(myColor);
// instanciate okButton with its inanymous class
// to handle its related events
okButton = new JButton ("OK");
okButton.setToolTipText("To confirm the current color");
okButton.setMnemonic('o');
okButton.addActionListener(
new ActionListener(){
public void actionPerformed (ActionEvent e)
{ // code permetting to transfer
// the current color to the parent
// component backgroung color
//System.exit( 0 );
// instanciate exitButton with its inanymous class
// to handle its related events
exitButton = new JButton("Exit");
exitButton.setToolTipText("Exit the application");
exitButton.setMnemonic('x');
exitButton.addActionListener(
new ActionListener(){
public void actionPerformed (ActionEvent e)
{ System.exit( 0 );
// define the contentPane
Container c = getContentPane();
c.setLayout( new BorderLayout() );
// panel as container for sliders
mySliderPanel = new JPanel(new BorderLayout());
// panel as container for textFields
textFieldPanel = new JPanel(new FlowLayout());
// panel as container for Jbuttons components
buttonPanel = new JPanel ();
buttonPanel.setLayout( new BoxLayout( buttonPanel, BoxLayout.Y_AXIS ) );
//add the Jbutton components to buttonPanel
buttonPanel.add(okButton);
buttonPanel.add(exitButton);
// add the mySlider components to mySliderPanel
mySliderPanel.add(mySlider[0], BorderLayout.NORTH);
mySliderPanel.add(mySlider[1], BorderLayout.CENTER);
mySliderPanel.add(mySlider[2], BorderLayout.SOUTH);
//add the textField components to textFieldPanel
for (int i = 0; i < textField.length; i++){
textFieldPanel.add(textField[i]);
// add the panels to the container c
c.add( mySliderPanel, BorderLayout.NORTH );
c.add( buttonPanel, BorderLayout.WEST);
c.add( textFieldPanel, BorderLayout.SOUTH);
c.add( myPanel, BorderLayout.CENTER );
setSize(500, 300);
show();
// inner class for mySlider events handling
private class ChangeHandler implements ChangeListener {
public void stateChanged( ChangeEvent e )
// start by collecting the current color shade
// for red , forgreen and for blue
setRedColor(mySlider[0].getValue());
setGreenColor(mySlider[1].getValue());
setBlueColor(mySlider[2].getValue());
//The textcolor in myPanel (subclass of JPanel for drawing purposes)
myPanel.setMyTextColor( ( 255 - getRedColor() ),
( 255 - getGreenColor() ), ( 255 - getBlueColor() ) );
//call to repaint() occurs here
myPanel.setThumbSlider1( getRedColor() );
myPanel.setThumbSlider2( getGreenColor() );
myPanel.setThumbSlider3( getBlueColor() );
// display color value in the textFields (%)
DecimalFormat twoDigits = new DecimalFormat ("0.00");
for (int i = 0; i < textField.length; i++){
textField[i].setText("" + twoDigits.format(
100.0* mySlider[i].getValue()/255) + " %") ;
// seting the textcolor for each textField
// and the background color for each slider
textField[0].setForeground(
new Color ( getRedColor(), 0, 0 ) );
mySlider[0].setBackground(
new Color ( getRedColor(), 0, 0) );
textField[1].setForeground(
new Color ( 0, getGreenColor() , 0 ) );
mySlider[1].setBackground(
new Color ( 0, getGreenColor(), 0) );
textField[2].setForeground(
new Color ( 0, 0, getBlueColor() ) );
mySlider[2].setBackground(
new Color ( 0, 0, getBlueColor() ) );
// color of myPanel background
myColor = new Color (getRedColor(),
getGreenColor(), getBlueColor());
myPanel.setBackground(myColor);
// set methods to set the basic color shade
private void setRedColor (int r){
red = ( (r >= 0 && r <= 255) ? r : 255 );
private void setGreenColor (int g){
green = ( (g >= 0 && g <= 255) ? g : 255 );
private void setBlueColor (int b){
blue = ( (b >= 0 && b <= 255) ? b : 255 );
// get methods (return the basic color shade)
private int getRedColor (){
return red ;
private int getGreenColor (){
return green;
private int getBlueColor (){
return blue;
public static Color getMyColor (){
return myColor;
// main method
public static void main (String args []){
MyChooserColor app = new MyChooserColor();
app.addWindowListener(
new WindowAdapter() {
public void windowClosing( WindowEvent e )
{ System.exit( 0 );
// inner class CustomPanel for drawing purposes
private class CustomPanel extends JPanel {
private int thumbSlider1 = 255;
private int thumbSlider2 = 255;
private int thumbSlider3 = 255;
private Color myTextColor;
public void paintComponent( Graphics g )
super.paintComponent( g );
g.setColor(myTextColor);
g.setFont( new Font( "Serif", Font.TRUETYPE_FONT, 12 ) );
DecimalFormat twoDigits = new DecimalFormat ("0.00");
g.drawString( "The RGB values of the current color are : "
+ "( " + thumbSlider1 + " , " + thumbSlider2 + " , "
+ thumbSlider3 + " )", 10, 40);
g.drawString( "The current background color is composed by " +
"the folllowing RGB colors " , 10, 60);
g.drawString( "Percentage of RED from slider1 : "
+ twoDigits.format(thumbSlider1*100.0/255), 10, 80 );
g.drawString( "Percentage of GREEN from slider2 : "
+ twoDigits.format(thumbSlider2*100.0/255), 10, 100 );
g.drawString( "Percentage of BLUE from slider3 : "
+ twoDigits.format(thumbSlider3*100.0/255), 10, 120 );
// call to repaint occurs here
public void setThumbSlider1(int th){
thumbSlider1 = (th >= 0 ? th: 255 );
repaint();
public void setThumbSlider2(int th){
thumbSlider2 = (th >= 0 ? th: 255 );
repaint();
public void setThumbSlider3(int th){
thumbSlider3 = (th >= 0 ? th: 255 );
repaint();
public void setMyTextColor(int r, int g, int b){
myTextColor = new Color(r, g, b);
repaint();
//The following method is used by layout managers
public Dimension getPreferredSize()
{ return new Dimension( 150, 100 );
The following is the code of application that tests the component
//Application used to demonstrating
// the homemade GUI MyChooserColor component
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class ShowMyColor extends JFrame {
private JButton changeColor;
private Color color = Color.lightGray;
private Container c;
MyChooserColor colorComponent;
public ShowMyColor()
{ super( "Using MyChooserColor" );
c = getContentPane();
c.setLayout( new FlowLayout() );
changeColor = new JButton( "Change Color" );
changeColor.addActionListener(
new ActionListener() {
public void actionPerformed( ActionEvent e )
{ colorComponent = new MyChooserColor ();
colorComponent.show();
color = MyChooserColor.getMyColor();
if ( color == null )
color = Color.lightGray;
c.setBackground( color );
c.repaint();
c.add( changeColor );
setSize( 400, 130 );
show();
public static void main( String args[] )
{ ShowMyColor app = new ShowMyColor();
app.addWindowListener(
new WindowAdapter() {
public void windowClosing( WindowEvent e )
{ System.exit( 0 );Yes, I want help for the missing code to add in actionPerformed method below. As a result, when you confirm the selected color (clicking the OK button), it will be transferred to a variable color of class ShowMyColor.
// instanciate okButton with its inanymous class
// to handle its related events
okButton = new JButton ("OK");
okButton.setToolTipText("To confirm the current color");
okButton.setMnemonic('o');
okButton.addActionListener(
new ActionListener(){
public void actionPerformed (ActionEvent e)
{ // code permetting to transfer
// the current color to the parent
// component backgroung color
//System.exit( 0 );
); -
How to hide gui buttons in selection screen
In Selection screen how to hide buttons like back, exit,cancel buttons.
can any one help.Hi,
Create a new GUI Status for your program.. put whatever button you require for it..
In the AT SELECTION-SCREEN OUTPUT event..
SET pf-status xxx.
Regards,
Anand -
New GUI 7.40 SAP printout problem
Hello Expert,
Recently we updated new GUI 7.40.When we are taking print out system is not giving any output. Pls find below spool request for printout,if any outdated please let us know how to resolve this.
(3:42:37 PM) Number of processors: 2
(3:42:37 PM) Icon DLL loaded.
(3:42:37 PM)
(3:42:37 PM) Network Communication via SAP-NiLib
(3:42:37 PM) Hostname: XXXXNB0905012
(3:42:37 PM) IP Address: 10.201.9.73
(3:42:37 PM)
(3:42:37 PM) SAPLPD version 740 Final Release.7400.1.0.32
(3:42:37 PM)
(3:42:37 PM) OS-Info: version = 6.1, build = 0/7601, text = Service Pack 1
(3:42:37 PM) (C) Copyright 1992-2014 SAP AG
(3:42:37 PM)
(3:42:47 PM)
(3:42:47 PM) Receive job for printer \\XXXXPS01\CNIRAD6075_MOB_5L_ENG (Berkeley LPD protocol / RFC1179)
(3:42:47 PM) send_status called
(3:42:47 PM) send_status called
(3:42:47 PM) send_status called
(3:42:47 PM) send_status called
(3:42:47 PM) send_status called
(3:42:47 PM) Job 000pdcQb.KED for user srinivas.j.I queued.
(3:42:47 PM) Start printing job 000pdcQb.KED on printer \\XXXXPS01\CNIRAD6075_MOB_5L_ENG
(4:25:15 PM) Error: Unable to start print job, Windows rc = -1, Error = The operation completed successfully.
(4:25:15 PM) Error: BG: saplpd_open_dc failed, msg = 808 SAPLPD:Windows Problem, siehe SAPLPD ProtokollHi ,
Please follow the below steps,
1) Go to transaction SPAD
2 Just click " Enter key"
3) And the screen will appear below and click " change" and select the printer name you want to change for exp:" LP01"
Now you can able to see the option called "Access Method"
Host Spool Access Method: F or G: Printing on Front End Computer
Host printer: __DEFAULT
Please remember in above step its two times under-scope then DEFAULT
and SAVE the entry by clicking button SAVE which I marked red colour.
Kindly let me know if you need any other details.
Thanks,
Brindavan -
Table Maintenance Object - Hide New Entries button
Hello,
Does anyone know how to hide the "New Entries" button in a table maintenance object?
I want to allow editing of the table, but I don't want to allow new lines to be inserted.
The generated screens do not have a gui status. I guess the gui status is part of SM30 and not part of the maintnenance object itself.
Thanks
Doughi
check the below link, this might solve your issue
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2082425f-416b-2d10-25a3-85b8b6c5302c?quicklink=index&overridelayout=true
thanks -
SAPGUI (new session) button disable in Netweaver
Hi all,
I have a few users where their SAPGUI's "New Session" button is disable if they launch it via Netweaver (single-sign on). However, if they sign in to another computer, this issue did not arise.
Likewise, any user that sign in to this particular PC will have it's "Net Session" button disabled.
They are using Internet Explorer 7 version 7.0.5730.13
My Netweaver version is SAP Netweaver 7.0 (2004s) SPS 15 (Release March 2008)
I'm just wondering (confirming) if the reason behind this is because of compatibilty between Netweaver and Internet Explorer (similar to compatibility issue between Netweaver & Internet Explorer 8 earlier this year)?
Or could it be due to a different (older) version of Java Runtime Environment that is installed onto the user's computer?
Thank you.Hello,
I think that SAP Note 1258154 - "EP 7.0: Different behavior for SAP WinGUI in the portal " could help :
https://service.sap.com/sap/support/notes/1258154
The related note "631198 - Behavior of SAP GUI for Windows in SAP Workplace/Portal" would be useful too.
https://service.sap.com/sap/support/notes/0000631198
Regards -
Collaboration Room Task - Remove New Task button
Hi,
We have My Task iView on all our home pages which are available to internal and external users. We do not want to give "New Task" button for external users. Is there any way to hide New Task button based on Users or Roles, or remove New Task button from the My Task iView. Please let me know if you know any other solution.
Thanks
SomHello,
there is an update in the configuration documentation coming up shortly (In oct.) - it wil be available online on the Help portal.
But as of now, please follow the process as listed here:
also please let me know in case this is not working for you.
Removing Actions From the UWL Display
There are a couple of ways to remove actions.
· You can customize the Views and ItemType (which can remove the actions from all UWL pages, Collaboration, My Task, and so on)
· You can modify the iView and add the name of the actions under the Action to exclude from the UWL property.
See the list below for some of the common action names.
Note: For other actions not listed here, see the custom properties XML files.
in the list below you will see the "Display Text" for the action followed by the "Action Name"
Alerts Configuration
AlertConfiguration
Claim --- reserve
Complete---- acknowledge
Complete Task --- confirm
Create Ad Hoc Request --- uwlTaskWizard
Create Task --- defaultGlobalWizard
Decline --- decline
Delete -
deleteItem
Edit --- editItem
Follow-up --- followUp
Forward --- forward
Forward --- forwardUsers *
Manage Attachments --- manageAttachments
Open Task --- launchSAPAction
Personalize View --- personalize
Revoke Claim --- replace
Submit Memo --- addmemo
View Detail in SAP Gui -
launchSAPDetails
- this action is for multiple user selection.
Note:
If excluding more than one actions, the action names must be comma separated.
Note:
Do not add ALL of the above listed action names to Actions to Exclude iView property. Be selective in what actions you want to remove. To determine the action name you want to remove, you can turn on the support information page (see below) and a list of support action will be displayed per item displayed.
Example
Suppose you do not want the Personalize View function on the UWL view. You can remove it by adding personalize to the iView property List of UWL Actions to Exclude.
Turning on the Support Information Section
From the UWL iView configuration, select Yes for the parameter Display UWL Support Information. -
Help needed on ALV variant with new GUI screen is created by set PF status
Hi Gurus,
I have created a new GUI screen for ALV grid display thru set pf-status, since i need two buttons on application toolbar.
have been passing parameters to alv_grid_display FM for display-*
i_save = 'A'
is_variant = gwa_variant
I have an ALV variant selection paramter on selection screen.
Please guide me with some pointers on how to implement ALV variant selection thru selection screen.
Many Thanks,
MadanHi,
Search default variant for the report
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = i_variant1
EXCEPTIONS
not_found = 2.
If default variant is found , use it as default.
Else , use the variant LAYOUT1.
IF sy-subrc = 0.
p_var = i_variant1-variant.
ELSE.
p_var = 'LAYOUT1'.
ENDIF.
endform. " SUB_VARIANT_INIT
*& Form SUB_CHECK_PVAR
Once the user has entered variant, check about its existence
FORM SUB_CHECK_PVAR.
If the name of the variable is not blank, check about its existence
if not p_var is initial.
clear i_variant.
i_variant-report = sy-repid.
i_variant-variant = p_var.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
I_SAVE = 'A'
CHANGING
CS_VARIANT = I_VARIANT.
If no such variant found , flash error message
if sy-subrc ne 0 .
message e398(00) with 'No such variant exists'.
else.
If variant exists , use the variant name to populate structure
I_VARIANT1 which will be used for export parameter : IS_VARIANT
in the function module : REUSE_ALV_GRID_DISPLAY
clear i_variant1.
move p_var to i_variant1-variant.
move sy-repid to i_variant1-report.
endif.
else.
clear i_variant.
endif.
ENDFORM. " SUB_CHECK_PVAR
*& Form SUB_VARIANT_F4
Display a list of various variants of the report when the
user presses F4 key in the variant field
form SUB_VARIANT_F4.
i_variant-report = sy-repid.
Utilising the name of the report , this function module will
search for a list of variants and will fetch the selected one into
the parameter field for variants
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
IS_VARIANT = I_VARIANT
I_SAVE = 'A'
I_DISPLAY_VIA_GRID = 'X'
IMPORTING
ES_VARIANT = I_VARIANT1
EXCEPTIONS
NOT_FOUND = 1
PROGRAM_ERROR = 2
OTHERS = 3.
IF SY-SUBRC = 0.
P_VAR = I_VARIANT1-VARIANT.
ENDIF.
endform. " SUB_VARIANT_F4
Thanks
Ashu -
HI all;
We just have BI 7.0; but when I opened the query designer I still saw the old Query designer because I had GUI 640 ; so I installed new GUI 7.1 and got the new look of Query designer fine but I don't see a button to run the query on BEx analyzer. Only option I have is to Execute the query but it goes to the web.
The other issue I have is when I go to the BEx analyzer via RRMX the excel window opens but don't see any extra menu we used have to open the query save it...and etc.
Does someone have this issue before?
Thank you.Hi Nitik,
Follow these steps. It should help.
1) Install Dot net framework Version 2 (Minimum required is 1.1)
2) Install Microsoft Visual J# .Net
http://www.microsoft.com/downloads/details.aspx?FamilyId=E3CF70A9-84CA-4FEA-9E7D-7D674D2C7CA1&displaylang=en
3) Apply OSS Note 1025122 Microsoft Office 2003 Update
http://www.microsoft.com/downloads/details.aspx?FamilyId=1B0BFB35-C252-43CC-8A2A- 6A64D6AC4670
4) Install Sap GUI 7.10 (Select both GUI and Business Explorer during Installation)
5) Upgrade the SAP GUI to Patch level 3
Rgds,
Abhishek -
In FF 17.0.1 I have several bugs to mention. I am only able to open bookmarks by right clicking them and selecting Open In New Tab from the drop down menu. I am unable to open a new tab by clicking on the new tab button or by clicking open new tab from the FF drop down menu at top of browser. Also, none button work in FF, such as Home, Back, Forward, or refresh. This is so aggravating!!
After I posted this, I restarted with add ons disabled and it worked..deleted a cpl of addons for compatibility checking and that fixed it.
-
I don't know if my settings are not being remembered or what, but the New Tab button is missing each time I open up Firefox.
Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
You can also check: http://kb.mozillazine.org/Preferences_not_saved -
When I click on the "new tab" button it does not open a new tab, how do I fix this?
Left clicking or right clicking on the new tab button does not open a new tab. Common fixes have been unsuccessful. I don't know what's wrong. It's a recent problem, and even though I'm using an older version of Firefox this hasn't been a problem before.
Try uninstalling the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and the current version of Firefox.
-
Just a couple days ago all of a sudden the "Open a new tab" button wasn't working and even going into "file" and then "open new tab" it doesn't open a new tab. I have to go into my bookmarks and right click "open in new tab" for any new tab to open. I've checked my settings and nothing is there about it. Is there anything that I can do to fix it?
You're welcome
-
New tab button doesn't open up new tabs, help please?
When trying to click the new tab button that lies beside your last open tab, the button highlights and acts like it's working, then when clicked nothing happens.
This issue can be caused by the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
See:
* [[Troubleshooting extensions and themes]]
Maybe you are looking for
-
ElementsOrganizerSyncAgent.exe - No Disk ERROR message
I keep getting this error and I'm not sure why...Photoshop Elements 8
-
Windows XP 32 bit SP3 and Windows 7 64 bit
Can I use Network Magic Pro to share files, and the printer between the two operating systems?
-
Selection Cretria for Selection screen
Hi Experts, In Report selection Screen,if user click on variable selection option(F4 query).Then data listed in Ascending order and i need to change it to Descending order. Please any one can help me to fix this issue.. For Examp
-
Change page dimensions to match an object
Hello. If I bring in an object (e.g. a photograph), is there a simple way to have the page dimensions match the object? Currently I copy the dimensions of the photograph, select the page tool, select the page, and manually enter the new dimensions. T
-
Help ! I am making a DVD for the high school baseball team and the banquet is next week. I did the same thing 2 years ago without incident. My iMovie is a slideshow of digital photos set to music. When transferring to iDVD, it encodes the menu, encod