I am trying to display scores by what the user is requesting either 'Average','Total',or 'Both'. The following is my code for the loop_tester.php and below that is the code for my index.php. I am trying to add a switch statement to the index.php file that will sets values for only the average calculation if the user selected the "average" radio button, only the total calculation if the user selected the "total" radio button, both the average and total if the user selected the "both" button. After the user puts in the scores and then selects either 'average','total','both' it should display …

Member Avatar
Member Avatar
+0 forum 3

Hi I am creating a quiz of 10 questions, using a string array. When the user clicks on the next button the next question follows. How do i set it up that when the user comes towards the end of the array the previous button changes to finish. I know how to change the name and the event handler for that button, but just cant work out how to get the code in to say its the end of the array so lets change the function of that button Thanks for any help

Member Avatar
Member Avatar
+0 forum 9

Hi All, Im still finding it hard to understand Paint method, Almost all websites i had gone thru, they are showing examples of how to use it in an applet. I just cant understand on how to use it in a GUI application by extending Jframe object. Here is one example, i want to create an oval shape Button to use it in my program. Im starting my program in this way, package painttest; import Javax.swing.*; import Java.awt.* public class PaintTest extends JFrame { private JButton oval; private static final int HEIGHT = 400; private static final int WIDTH = …

Member Avatar
Member Avatar
+0 forum 2

Hi All, I have created an application that allows a user to select a diectory, where we parse the photos, and upload to a database. The issue that I am having is that I have a button on the form found in the newJFrame.java class called upload that when pressed will call a method from a class that has be initalized in the photouploader.java class. This class has the main function for the application. It is being used to initalize and instatiate all of my classes, such as: fileParser fp = new fileParser(); //create new fileparser fp.setFiles(matches); //send in all …

Member Avatar
Member Avatar
+0 forum 2

IE is screwing up my site. the button headings dont show up in IE. Am i missing something here? all other browsers work fine. I feel like I am cursed via IE! Any help would be great! http://www.christmaslightup.com/

Member Avatar
Member Avatar
+0 forum 4

Hi There. I joined here some three years ago when i created my ONE and ONLY Python program that actually functions as intended *YAY*, it's a little ugly and i've decided to return and learn more, improve it and maybe start up some new projects. I'm a little confused as this isn't the regular forum layout so if i make some mistakes, please forgive me and i'll do my best to mimimise the damage and learn. I've got some catching up to do :) My question for today. I use a locked window, you can't move it, resize it etc, …

Member Avatar
Member Avatar
+0 forum 3

My goal is to create a clone of minesweeper. I've created a custon component that extends the JButton class, for each of the minesweeper buttons. I've called this new class SweeperButton. the game board is going to be made in another class by creating a two deminsional array of SweeperButtons, displaying them, and handling the logic for the game. That having been said, there's somewhere between 12 and 15 images that I need to load into the program as ImageIcons, so that my SweeperButtons can use them as icons. although I'd like the array of images to be loaded into …

Member Avatar
+0 forum 0

Well, I have managed to create controls during runtime. Dim Rbut As New Button() Dim Lbut As New Button() With Rbut .Location = New Point(590, y + 15) .Text = "Remove" .Name = FontName(ListBoxCount) End With With Lbut .Location = New Point(590, y + 45) .Text = "Lock" .Name = FontName(ListBoxCount) End With Me.Panel1.Controls.Add(Rbut) Me.Panel1.Controls.Add(Lbut) AddHandler Rbut.Click, AddressOf RemButton_Click AddHandler Lbut.Click, AddressOf LocButton_Click Private Sub RemButton_Click(ByVal Sender As Object, ByVal e As System.EventArgs) ListBox1.Items.Remove(Sender.Name) End Sub Private Sub LocButton_Click(ByVal Sender As Object, ByVal e As System.EventArgs) ListBox1.SelectedItem = Sender.Name End Sub Here Rbut is Remove Button and Lbut is Lock …

Member Avatar
Member Avatar
+0 forum 12

Hello, Something really weird started happening in my web application. I have some buttons defined in a Master Page File and then I have a lot of pages that derive from this Master Page file. One of the buttons (In the master page file) closes the user session. This means that this button is present in all the pages that derive from the master page. Here is the weird thing, the buttons works in all pages except for one. This page works perfectly but the button does not work. Obviously the page is deriving from the master page (checked in …

Member Avatar
Member Avatar
+0 forum 1

Hi , In my application I have to implement Tooltip for Link Button. When mouse hover on link button , I should get a Tooltip. It can be a Telerik ToolTip as well. Please help me with this concept. I need step by step process for implementing this. Regards.

Member Avatar
Member Avatar
+0 forum 4

I don't know javascript very well... I have a form with the name register_group and a radio button for pc_parade_float with yes/no options. I want to display a different comment depending on if they clicked yes or no in the radio button. The code I have is as follows: [CODE]<script type='text/javascript'> if(document.register_group.pc_parade_float[0].checked==true) {document.writeln('use PayPal to pay your &#36;75.00 registration fee.')} else {document.writeln('use PayPal to pay your &#36;50.00 registration fee.')} </script>[/CODE] Note that this code is outside the <form></form> if that matters. If I change the value of the button it does not change the value of the output. What am …

Member Avatar
Member Avatar
+0 forum 1

Hi ! i m working on asp.net project and using c# for it , i want to place my delete button on the right most of the gridview , by default button is placed at left side of the grid , can any one please help me . as i m new in c# Best Regards Waqas

Member Avatar
Member Avatar
+0 forum 2

I hate to complain, but I'm not terribly impressed at the documentation for utilizing binding, it covers quite a bit but not common stuff, or maybe I'm just missing it. I was wondering how I could make the <RETURN> key equivalent to a <BUTTON1> click when a button is highlighted (from being tabbed over to, such as in the case of a search button. Also how would I make this work for multiple buttons, or even if the user hit <RETURN> in the Entry field? Ideas? I'm sure this one is way easier than it seems.

Member Avatar
Member Avatar
+0 forum 4

Hello everyone, I've visited a lot of websites, like Daniweb, and found effects on the sites pages that are really of a considerable design. I know it's becoming common, but I really get impressed at seeing such things. When you put the mouse cursor on some button it becomes highlighted immediately without the need to replace the image of the button with another one. Also, there are the menus that appear on the top of each page. So, I just wanna know... Is it done using Javascript or what? Thank you.

Member Avatar
Member Avatar
+0 forum 2

wxpython i cant figure out the problem. it says that the global neme 'panel' is not defined. Traceback (most recent call last): File "C:\Users\Daniel\Desktop\Duffan Teorem", line 34, in clickbutton wx.StaticText(panel,-1,media,pos=(150,240)) NameError: global name 'panel' is not defined could someone please help me to figure tha problem out? Thanks in Advance import wx class duff(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,'Duffan Formula', size=(400,300)) panel=wx.Panel(self,-1) g=wx.StaticText(panel,-1,"________________________________________________________",pos=(10,65)) z=wx.StaticText(panel,-1,"Welcome to Duffan Formula!!",pos=(10,10)) r=wx.StaticText(panel,-1,"Here you can discover the score of any girl you are looking for.",pos=(10,30)) q=wx.StaticText(panel,-1,"Use it, with Knowledge!",pos=(10,50)) a=wx.StaticText(panel,-1,"What`s her name?",pos=(10,110)) b=wx.StaticText(panel,-1,"What`s her beauty score?",pos=(10,150)) c=wx.StaticText(panel,-1,"What`s her body score?",pos=(10,190)) average=wx.StaticText(panel,-1,"Average: ", pos=(80,222.5)).SetForegroundColour('blue') self.one=wx.TextCtrl(panel,-1,'Enter name',pos=(110,108),size=(80,20)) self.two=wx.SpinCtrl(panel,-1,'1',pos=(150,148),size=(60,20),min=0,max=100) self.three=wx.SpinCtrl(panel,-1,'1',pos=(130,188),size=(60,20),min=0,max=100) …

Member Avatar
Member Avatar
+0 forum 2

[CODE]/*********************************************************************************** * * File: Customer.java * * Author: Austin Smith * * Date: 04/04/2011 * * Description: The Customer class handles all client information * such as name and address. * **********************************************************************************/ public class Customer { /*** Defaults/Constants ***/ public static final String DEFAULT_NAME = "ERROR: Invalid Name"; public static final String DEFAULT_ADDRESS = "ERROR: Invalid Address"; public static final String DEFAULT_CITY = "ERROR: Invalid City"; public static final String DEFAULT_STATE = "ER"; public static final String DEFAULT_ZIP_CODE = "ERROR"; /*** Instance Variables ***/ private String name; private String address; private String city; private String state; private String zipCode; /*** …

Member Avatar
Member Avatar
+0 forum 5

Hy, could anyone please told me how can i move controls on a windows form when i click for example, on a button? When i click on a button i want to increase the height of my form and move a textbox and label a little down... Please help.Thanks

Member Avatar
Member Avatar
+0 forum 2

I have just started learning Basic, and i know you can create command butons from the virtual environment, but how do you create (and, more importantly, let the user drag around) them from code?

Member Avatar
Member Avatar
+0 forum 6

Hi, I'm a relative newb to Python and I'm starting my first major project - a logarithmic graphing system. I'm using tkinter for the GUI part of the design, but I've run into a problem. Basically, I want my graph (a tk canvas) to appear in the same (root) window as the buttons that control it. How do I go about this? Any help would be greatly appreciated. Thanks in advance :) [code=Python] # plot of log line from tkinter import * import math def particleCount(decay, p0, time): p = (p0*math.e)**(-(decay*time)) return (p) # define root window root = Tk() …

Member Avatar
Member Avatar
+0 forum 2

Hi all, Hopefully someone can help me out with this one. I have a form which gets populated by 15 buttons dynamically at runtime (these need to be dynamic as there will be a user config file at some point) What I need these buttons to do is to open a specific form when clicked. Which form that opens will be dealt with in the config file. [code=vb] Public Class frm_MainScreen Private Sub frm_MainScreen_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim count As Integer Dim ImageDir As String Dim xpos As Integer Dim ypos As Integer xpos …

Member Avatar
Member Avatar
+0 forum 2

Hi everyone, I have a flash files, which has navigation menus and the contents. I just want to know how to edit the name of the buttons? Example it has 4 buttons and these 4 buttons is linked to each others. Home Home Home Home If i change one of these, the rest will change as well.

Member Avatar
Member Avatar
+0 forum 3

There are already 2 checkboxes to change to bold and italic. Now I want to make four radio buttons to change the font of the saying "say it with style!". Below is my code. [CODE]//******************************************************************** // StyleOptionsPanel.java Author: Lewis/Loftus // // Demonstrates the use of check boxes. //******************************************************************** import javax.swing.*; import java.awt.*; import java.awt.event.*; public class StyleOptionsPanel extends JPanel { private JLabel saying; private JCheckBox bold, italic; // have a button for style1, button for style2, button for style3 private JRadioButton style1, style2, style3, style4; { style1 = new JRadioButton ("Arial", true); style2 = new JRadioButton ("Times New Roman", true); …

Member Avatar
Member Avatar
+0 forum 6

Visual Basic 2008 Hey i was wondering if it was possilbe to change the colour of text in a textbox through a button in a simple text editor that i am working on any help would be appreciated. cheers

Member Avatar
Member Avatar
+0 forum 2

Im looking to Delete a row of information in my datagrid, but also from my database. im not even really sure where to start. I want to use a button to do this. so that when i highlight a row, then click the button it brings up a message box that asks " are you sure you want to delete row/s?" and then when you click yes it is deleted from both the grid and the database.

Member Avatar
Member Avatar
+0 forum 12

Hello This is my first post on this forum. I have found that this place seems to have lot of knowledgeable people when it comes to Python. Anyway I'm quite new to GUI programming and I'm not exactly having a huge problem but I'm more interested about how to make my code prettier and proper. Issue is that I have defined this class where I have three buttons that all call the same function/subroutine/def but with each button I would like to pass different variable.. in this case a number. I found a working solution and I have also tried …

Member Avatar
Member Avatar
+0 forum 4

Hi, would u please help me with the buttons i use on my vb.net forms. I want a way in which if i drag my mouse onto a particular button it would increase its size and if i click onto it, it can respond to the codes. May be like i want it too look like those Macintosh laptop icons, whereby if u put my mouse on it, it increases its size. Is there any way like that, please help me with the steps and codes if possible thnks.

Member Avatar
Member Avatar
+0 forum 5

In an html form, I want a certain field to be invisible when "no" is checked and visible when "yes" is checked. This is my code: html: [code] <form action="pageName.html" method="post" name="formName"> Question? <input name="radioBool" type="radio" value="1" onchange="dispField('textInput');" />yes <input name="radioBool" type="radio" value="0" onchange="dispField('textInput');" />no <br /> <span id="textInput" style="display:none"> Specify: <input name="specify" type="text" /> </span> </form> [/code] javascript: [code] function dispField(htmlID) { if (document.formName.radioBool[0].checked == true) { document.getElementById(htmlID).style.display = ""; } else { document.getElementById(htmlID).style.display = "none"; } } [/code] This seems to work perfectly across all browsers [I]except[/I] for IE (latest version). In IE the only problem is that …

Member Avatar
Member Avatar
+0 forum 2

Hi, I'm trying to hide 5 to 12 buttons on a form until a screenshot is saved to the clipboard. I have it set right now so the user clicks a button(btnSavePDF) and then whichever buttons are visible are made not visible. But I haven't a clue how to restore just those buttons. I'm trying to avoid restoring them all unless they were all originally visible. Please help. Here is the code I have so far: [CODE] Private Sub btnSavePDF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSavePDF.Click Try If btnChange1.Visible = True Then btnChange1.Visible = False If btnChange2.Visible …

Member Avatar
Member Avatar
+0 forum 4

hi! I have a form to add content in database(addcontent.php) and one file which shows the content(content.php).Database has id,title,content columns. IS it possible to make the content.php to "$_GET" the id's from the database and show them on the page as : content.php?id=1 And other thing. i have buttons in content.php which i want to make them dinamicaly working (hyperlink to sent to "content.php?id=2" and etc.) All help will be appresiated :) Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi, I'm working on a dissertation based around graph visualization. I need to make a GUI for my program but I am having trouble getting the JPanels to display what is required. My code so far: [code] //Class to create the GUI import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Component; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JPanel; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JLabel; public class GUI extends JFrame { private GridBagLayout layout; private GridBagConstraints constraints; private JButton upload; private JButton input; private JButton edit; private JButton clear; private JButton save; private JButton sunflower; private JButton type; private JButton mini; private JButton saveMini; private …

Member Avatar
Member Avatar
+0 forum 5

The End.