Search Results

Search found 6721 results on 269 pages for 'gnome panel'.

Page 55/269 | < Previous Page | 51 52 53 54 55 56 57 58 59 60 61 62  | Next Page >

  • GWT: Reloading a single tab in a tab panel

    - by auste piliponyte
    I have a GWT tab panel and would like to reload a single tab when a certain event (e.g. button click) happens in another tab. Is there a way to do that? Another possibility would be executing some code (e.g. adding a new element to a tab) when that tab is selected. Any help would be really appreciated, I am stuck with this for a while already. To make the question more specific I am providing some code below. I have my code organized in screens, there is a home screen that initiates the tab panel. And there are separate screens for initiation of each tab. The simplified code for the home screen: public class HomeScreen extends Composite{ public HomeScreen() { TabPanel tabPanel = new TabPanel(); FlowPanel flowpanel; flowpanel = new FlowPanel(); ProfileTabScreen profileTabScreen = new ProfileTabScreen(); flowpanel.add(profileTabScreen); tabPanel.add(flowpanel, "Profile"); flowpanel = new FlowPanel(); GroupsTabScreen groupsTabScreen = new GroupsTabScreen(); flowpanel.add(groupsTabScreen); tabPanel.add(flowpanel, "Groups"); initWidget(tabPanel); } } Code for the tab screen from which I want to initiate the reload: private VerticalPanel groupPanel = new VerticalPanel(); private Button newGroupButton = new Button("New group"); public GroupsTabScreen() { newGroupButton.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { createNewGroup(); } }); groupPanel.add(newGroupButton); initWidget(groupPanel); } Code for the tab screen that has to be reloaded: private VerticalPanel profilePanel = new VerticalPanel(); private Label label = new Label("No groups yet."); public ProfileTabScreen() { profilePanel.add(label); initWidget(profilePanel); } So let's imagine I just want to change text of a label in profileTab (while in reality it will be ListBox and other elements), when the newGroupButton is clicked in groupTab. As I said, reloading the whole profileTab each time is is selected would be acceptable as well.

    Read the article

  • ¿How to draw XNA window inside a panel?

    - by leviatan1001
    Hi there, Im developing a 3d Viewer in vb.net and xna. Its working very well. I have now a windows form and a xna render window, but i would like to render it inside a panel in the windows form. I have searching for info, but its so hard to addapt it into my application. How can i do it? Here is the application Thank you. Image: img299.imageshack.us/img299/384/87117064.jpg

    Read the article

  • How to override a Magento administration panel?

    - by Michelangelo
    Hi guys, I would like to know how have I do to add a field in the customer administration at system-configuration-Customer settings panel. Have I create the system.xml file from the core and paste in the local folder with the same path? and have I maintain all the content of the file or I can write only the portion interested? thanks

    Read the article

  • change all the label icon in a panel

    - by Josh
    I have a panel with several JLabel, I would like to change all their Icon, String path = System.getProperty("user.dir"); for (int x=0;x< 21;x++) { javax.swing.JLabel lab = boardPanel.getComponent(x).; lab.setIcon(new ImageIcon(path + "\\image\\blank.jpg")); } it gives me an error of incompatible type, all inside the boardPanel are JLabel, im using netbeans 6.8.

    Read the article

  • Passing a panel widget to a function

    - by user2939801
    I have written a quite complex script which calls a server handler to refresh elements in a grid at the press of a button. For code re-use and consistent behaviour, I am wanting to call that server handler directly during the initial painting of the grid. When the server handler gets called by clicking on the button, all expected widgets are available and can be queried with e.parameter.widget etc. When I call the function directly and pass it the panel variable, the value of e is just 'AbsolutePanel'. Is there some way I can emulate the addCallbackElement way of passing the entire panel and all widgets it contains to the function? Or a way of automatically firing a server handler on script start? Please forgive any syntax errors below, I have pruned 500 lines of code down to the pertinent bits! Thanks Tony function doGet() { var app = UiApp.createApplication(); var mainPanel = app.createAbsolutePanel(); var monthsAbbr = ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May.', 'Jun.', 'Jul.', 'Aug.', 'Sep.', 'Oct.', 'Nov.', 'Dec.']; var Dates = Array(); var period = 5; var dateHidden = Array(); var dayOfMonth = new Date(((period * 28) + 15887) * 86400000); var dateString = ''; var dayOfWeek = 0; for (var i=0; i<84; i++) { dateString = dayOfMonth.getDate() + ' ' + monthsAbbr[dayOfMonth.getMonth()] + ' ' + (dayOfMonth.getFullYear() - 2000); Dates [i] = dateString; dateHidden[i] = app.createHidden('dates'+i, dateString).setId('dates'+i); mainPanel.add(dateHidden[i]); dayOfMonth = new Date(dayOfMonth.getTime() + 86400000); } var buttonReset = app.createButton('Reset').setId('buttonReset'); var handlerChange = app.createServerHandler('myHandlerChange'); handlerChange.addCallbackElement(mainPanel); mainPanel.add(buttonReset.addChangeHandler(handlerChange)); app.add(mainPanel); myHandlerChange(mainPanel); return app; } function myHandlerChange(e) { var app = UiApp.getActiveApplication(); Logger.log('Here are the widgets passed into the function: ' + Utilities.jsonStringify(e)); return app; }

    Read the article

  • Windows 7, enabeling IE for removal

    - by Thew
    For a while now, Windows Update has been prompting me to update IE9 to IE10. And every time I turn off my PC, It starts to install that one update wich allways fails. Why does it fail updating IE9? I don't know. So the solution I had in my mind was to remove IE9 and then install IE10 manually. THe problem is now, I can't find the uninstall file for IE9. I have looked in windows control panel / programs and features but it didn't show up, not even in the installed updates section. So after I clicked on Turn windows features on or off, I saw that the IE9 box wasn't checked. So I checked it, clicked OK, but then when I clicked on the Turn windows features on or off link again, it wasn't checked anymore. It's almost like Windows doesn't want me to uninstall IE9. but I have to in order to normally shut down my pc, because everytime I shut my PC off, it tries to install that stupid update again! What can I do to solve this?

    Read the article

  • How do I move a Java JFrame partially off my Linux desktop?

    - by Erick Robertson
    I'm writing a Java application with movable frames, and I've come across a quirk in Linux. I'm running GNOME 2.16.0 under CentOS. When I use JFrame.setBounds to set the bounds to any location that's half off the screen, it actually sets the location of the frame to be as close as possible to the bounds specified while still staying completely on the screen. This is confusing because other non-Java windows can move half off the screen. How do I tell Java to tell GNOME to actually put the frame where I specify, even if that's half off the screen?

    Read the article

  • Eclipse And Linux: Keyboard unusable after gnome-screen-saver

    - by Martijn Courteaux
    Hi, I know this is not programming related. But I can't find any topics on Google or UbuntuForums. So the problem is: When gnome-screensaver starts on the moment Eclipse has the focus and I wake up again my laptop, Eclipse doesn't listen to keyboard-events. To solve this I have to change the focus to another program and then back to Eclipse. Than it works again. This isn't a real problem, but it would be nice if someone can solve it. Thanks

    Read the article

  • Qt drag/drop: cannot move when copy is enabled (Ubuntu Gnome)

    - by Scott
    I'm implementing a view and a model where I want to support both moving items internally (by dragging), and copying items (by pressing Ctrl while dragging). I've done everything I need to do according to the instructions. I've set up the mime functions, I've implemented removeRows(), and flags(). The problem is when I drag, it defaults to a copy operation (I get the arrow cursor with a plus sign, and it indeed copies the item by creating a new one in the model). The only difference I can see is this: If I return only Qt::MoveAction in supportedDropActions(), it only moves. If I return (Qt::CopyAction | Qt::MoveAction), it only copies. Any ideas? I want it to work like files in Nautilus (Gnome) or Windows file Explorer: drag moves icons around, ctrl+drag copies them.

    Read the article

  • Is it possible to use the Volume Notifications from Gnome Shell in XFCE?

    - by Uri Herrera
    I somehow had them working before in 11.10 but I don't really remember what did I do back then other than activating "load Gnome components on start up" in the XFCE's settings manager. I've tried the same in 12.04 but doesn't seem to do anything, I specifically ask for the Volume notifications as other notifications used notify-osd or xfce4-notifyd but the volume one was Gnome's (I found that later) As far as I know it uses notification-daemonbut installing it instead of the other two doesn't give me the correct notifications. I'm using XFCE 4.10

    Read the article

  • Sortie d'OpenSuse 12.1 : GNOME 3.2, KDE 4.7, Go, support amélioré du Cloud et la virtualisation plus stable et flexible

    Sortie d'OpenSuse 12.1 : GNOME 3.2, KDE 4.7, Go support amélioré du Cloud et la virtualisation pour l'OS plus stable et flexible Une nouvelle version majeure de la distribution Linux OpenSuse est disponible. Après plus de huit mois de travaux, la version 12.1 du système d'exploitation qui vient d'être publiée apporte un nombre impressionnant de nouveautés avec un support du Cloud et de la virtualisation. L'OS basé sur le noyau Linux 3.1, embarque l'environnement de bureau GNOME Shell 3.2, avec une meilleure gestion des écrans plus petits, des configurations multiécrans, de meilleures notifications et un système centralisé de configuration de comptes en ligne.

    Read the article

  • One Update Panel vs. Multiple Update Panels

    - by mattruma
    I have an ASP.NET web page that displays a variety of fields that need to be updated best on certain conditions, button clicks and so on. We've implemented AJAX, using the ASP.NET Update Panel to avoid visible postbacks. Originally there was only one area that needed this ability ... that soon expanded to other fields. Now my web page has multiple UpdatePanels. I am wondering if it would be best to just wrap the entire form in a single UpdatePanel, or keep the individual UpdatePanels. What are the best practices for using the ASP.NET UpdatePanel?

    Read the article

  • how to open a .pdf file in a panel or iframe using asp.net c#

    - by rahul
    I am trying to open a .pdf file on a button click. I want to open a .pdf file into a panel or some iframe. With the following code i can only open .pdf file in a separate window or in a save as mode. string filepath = Server.MapPath("News.pdf"); FileInfo file = new FileInfo(filepath); if (file.Exists) { Response.ClearContent(); Response.AddHeader("Content-Disposition", "inline; filename=" + file.Name); Response.AddHeader("Content-Length", file.Length.ToString()); Response.ContentType = ReturnExtension(file.Extension.ToLower()); Response.TransmitFile(file.FullName); Response.End(); } how to assign a iframe to the below line Response.AddHeader("Content-Disposition", "inline; filename=" + file.Name);

    Read the article

  • Modal Pop Extender Inside Update Panel

    - by Agamand The True
    Hi, I have a modal popup extender which is triggered by gridview onRowCommand. The gridview and the modal popup extender is in different updatePanel. The panel which assigned to PopupControlID of the mpe contains a textbox and a button. This button will triggered a page method web service that will return a value to be assigned to the textbox. My problem is when I click the button, after partial post back, the mpe disapper (hide). I tried everything to make it show. Below is my code. function Completed(result) { //get the target textbox inside the mpe var txt = '<%= txtContractNo.ClientID %>'; var txtRef = document.getElementById(txt); txtRef.value = result; var mpeId = '<%= mpeContract.ClientID %>'; $find(mpeId).show(); } How to make it show after partial post back? Thanks In advance

    Read the article

  • Flowlayout panel and autosizing child controls doesn't work

    - by Pete
    I am trying to get a very simple autosizing layout on a winform (C# .NET). I've tried TableLayoutPanels and FlowLayoutPanels but nothing works. I have a usercontrol which is a container for other usercontrols which are created at runtime - I've called it StackPanel as I want it to list the child controls vertically. I've tried this using a FlowLayoutPanel, TableLayoutPanel and a Panel (with each control docked to the top). The child usercontrol consists of a label and then any number of radiobuttons (or any other standard control - it doesn't matter). When the child controls are created, the label text is set (if this is long it needs to wrap to a new line) and the radio buttons are added. There seems to be no combination of docking/autosizing or manual size setting using the Resize events that can get everything to show without clipping and still resize with the form. Thanks!

    Read the article

  • Change panel "visible" property on MasterPage from Child pages

    - by Vitor Reis
    I want to show some panel with a label that is located on a MasterPage from inside it's child pages.. I already did the coding on the MasterPage: public class MyMaster : MasterPage { public void ShowPanel(string pMessage) { labelInside.Text = pMessage; myPanel.visible = true; } } Then I make the calls from child pages: public void ShowPanel(string pMessage) { MyMaster masterPage = this.Master as MyMaster; masterPage.ShowPanel(pMessage); } This "works" ok, but it won't show nothing, since I need the page to be "refreshed" in an "ajax-way" like an UpdatePanel, which I can't use because the Trigger is in another page, right? I really need this to work.. even if you have another completely different way to do this, I would appreciate.

    Read the article

  • Bad event on java panel

    - by LucaB
    Hi I have a java panel with 4 buttons. When I click on of these buttons, a new frame appears and the first is hidden with setVisibile(false). On that new window, I have another button, but when i click it, I got the event corresponding to the fourth button of the first window. Clicking the button again does the trick, but of course this is not acceptable. Am I missing something? I just show the frames with nameOfTheFrame.setVisible(true); and I have MouseListeners on every button. The code of the last button is simply: System.exit(0); EDIT Sample code: private void btn_joinGamePressed(java.awt.event.MouseEvent evt) { GraphicsTools.getInstance().getCreateGame().setVisible(false); GraphicsTools.getInstance().getMainPanel().setVisible(false); GraphicsTools.getInstance().getRegistration().setVisible(true); } GraphicsTools is a Singleton.

    Read the article

  • Cascade the MDI forms of a Splitter panel

    - by BDotA
    I am showing my MDI windows inside the main form but in one part of the splitter panel, like this: Form2 f2= new Form2(); f2.MdiParent = this; f2.Parent = this.splitContainer2.Panel2; f2.Show(); but the problem is that I cannot cascade them if I write a code like this: this.LayoutMdi(System.Windows.Forms.MdiLayout.Cascade); "this" is the parent form. the main form. Hoe can I cascade them? thanks all.

    Read the article

  • Why doesnt doesnt HTML input of type file not work with Ajax update panel

    - by Sean P
    I have a input of type file and when i try to do a Request.files when the input is wrapped in an update panel...it always returns an empty httpfilecollection. Why??? This is the codebehind: (At HttpContext.Current.Request.Files...its always 0 for the count.) Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click Dim uploads As HttpFileCollection uploads = HttpContext.Current.Request.Files For i As Integer = 0 To (uploads.Count - 1) If (uploads(i).ContentLength > 0) Then Dim c As String = System.IO.Path.GetFileName(uploads(i).FileName) Try uploads(i).SaveAs("C:\UploadedUserFiles\" + c) Span1.InnerHtml = "File Uploaded Sucessfully." Catch Exp As Exception Span1.InnerHtml = "Some Error occured." End Try End If Next i End Sub This example comes from the ASP.Net website...but my application is very similar.

    Read the article

  • Django: switch language of message sent from admin panel

    - by yoshi
    I have a model, Order, that has an action in the admin panel that lets an admin send information about the order to certain persons listed that order. Each person has language set and that is the language the message is supposed to be sent in. A short version of what I'm using: from django.utils.translation import ugettext as _ from django.core.mail import EmailMessage lang = method_that_gets_customer_language() body = _("Dear mister X, here is the information you requested\n") body += some_order_information subject = _("Order information") email = EmailMessage(subject, body, '[email protected]', ['[email protected]']) email.send() The customer information about the language he uses is available in lang. The default language is en-us, the translations are in french (fr) and german (de). Is there a way to use the translation for the language specified in lang for body and subject then switch back to en-us? For example: lang is 'de'. The subject and body should get the strings specified in the 'de' translation files.

    Read the article

  • How to programatically create a xaml panel with controls

    - by randy
    Hello, Is it possible to programatically create a new panel within a current document that contains duplicate elements? For example when the window loads I have a grid (one row) with three text fields, Fname01, Lname01, and DOB01, I would like to have a button that when clicked would append a new row to the grid with three new fields (Fname02, Lname02, and DOB02). Each time the button is clicked (addrow) a new row would be created. I am also interested to learn how these fields are identified within the xaml that would allow me to databind or programatically reference the created fields for insertion of the values into a database etc. Thank you in advance,

    Read the article

  • Joomla , forms with upload and custom field from inside the administration panel

    - by Stathis
    I want a plugin for joomla like jforms or chronoforms in order to make a form to upload videos along with other custom fields to db and manage them. The only problem is I want this functionality to be made from inside the administrator console and not to appear on a page at my site's frontend. My site does not have a login service , so I need to make the admin able to login to administration panel and from there to upload and manage videos. Do you know of a plugin wich supports this functionality? Thank you in advance.

    Read the article

  • Browser not handling exception from AJAX panel, ASP.NET c#

    - by Grant
    Hi, i am having trouble catching errors in an AJAX panel. Even when i throw an exception in the c# code behind the front end completely ignores it. Here is the code i have setup, can anyone see why? I ideally want to show a js alert window on error. Code Behind: protected void btnX_Click(object sender, EventArgs e) { throw new ApplicationException("test"); } protected void ScriptManager_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e) { ScriptManager.AsyncPostBackErrorMessage = e.Exception.Message; } Markup: <script type="text/javascript" language="javascript"> Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); function EndRequestHandler(sender, e) { window.alert(e.get_error().name); } </script> <asp:ScriptManager ID="ScriptManager" runat="server" AllowCustomErrorsRedirect="true" OnAsyncPostBackError="ScriptManager_AsyncPostBackError" />

    Read the article

< Previous Page | 51 52 53 54 55 56 57 58 59 60 61 62  | Next Page >