Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Database with Custom GUI. Textfield V2 released
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Cervantes




PostPosted: Tue Jun 21, 2005 4:02 pm   Post subject: Database with Custom GUI. Textfield V2 released

Here's source code to the GUI classes I used in my FP, and to my FP as well. The classes are not entirely finished, as there are some other things I can add/modify, though I'm not saying I will. Wink


  • Button class -> Standard buttons. (can't have pictures)
  • Textfields -> Like the Address Bar in an Internet Browser.
  • Labels -> Very basic, text in a box. Whoopie!
  • Scrollbox -> Similar to what you see after you click a dropdown box.


The textfield has been updated to Version 2.0. It is greatly improved.
Features:

  • Selections: Select a range of text by using the shift keys or by dragging a selection with the mouse
  • Fully functional input: Use the ctrl keys to move word by word, use the home and end keys, use the mouse to select positions, drag with the mouse to select ranges, double click with the mouse to select words, and triple click with the mouse to select a range of everything in the textfield.
  • Error Proofed input: For example, If you want your textfield to get a real value, the textfield will automatically parse the input and prevent stupid inputs such as "1.4.78..2"
  • Easy Initializing: You can use the INIT_full procedure to totally customize the textfield (except for some things which can be changed manually with other procedures. See the description of the INIT_full procedure below), or you can use the INIT procedure to quickly and easily create a predefined textfield.
  • Movement: Use the set_centre and set_coords procedures to move the textfield about the screen.
  • TABing: use the TAB button to scroll through textfields. This requires calling the handle_behaviour procedure found in "textfield procedures.t"
  • Only one selection at a time: Easily prevent more than one textfield from being selected at a time. Doing this requires calling the handle_behaviour procedure found in "textfield procedures.t"
  • A host of procedures and functions to easily interact with the textfield (checking for various conditions, for example).


If you download the textfield.zip file, you'll get four files:

  • TEXTFIELD.tu -> The class file
  • textfield procedures.t -> Gives two procedures to use in your main program: one fixes tabbing and multiple textfield selections, the other draws the fields for you
  • Ex Field.t -> Gives an example of a login screen, using two textfields
  • README.txt -> Extensive readme, with descriptions of all the methods you'll need to use.


My FP sells tickets for a ficticious cinema chain. It uses a database to store information on both the cinema showings and users. The most elaborate part of the program is only accessable by the administrator. To see this, log in as "admin" and with a password of "clapton".

Enjoy!



textfield.zip
 Description:
Textfield Version 2.0!
Includes the class file, procedures to use in your main program, an example, and a README.

Download
 Filename:  textfield.zip
 Filesize:  10.71 KB
 Downloaded:  685 Time(s)


scrollbox.zip
 Description:

Download
 Filename:  scrollbox.zip
 Filesize:  4.72 KB
 Downloaded:  234 Time(s)


Label.tu
 Description:

Download
 Filename:  Label.tu
 Filesize:  3.8 KB
 Downloaded:  218 Time(s)


Button.tu
 Description:

Download
 Filename:  Button.tu
 Filesize:  9.03 KB
 Downloaded:  246 Time(s)


Theatre.zip
 Description:
FP. Includes source, pictures, GUI classes, and database files.
The textfield included here is Version 1.0.

Download
 Filename:  Theatre.zip
 Filesize:  452.25 KB
 Downloaded:  277 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
pro123




PostPosted: Thu Jun 23, 2005 7:49 pm   Post subject: (No subject)

Wow. Really nice program. I wish I could program like that. I like the nice buttons and all the graphics. And it is an original idea.
Cervantes




PostPosted: Mon Jul 18, 2005 7:55 am   Post subject: (No subject)

The textfield has been updated and greatly improved. See main post.
Delos




PostPosted: Mon Jul 18, 2005 9:24 am   Post subject: (No subject)

Awsome readme...I particularly like "maximum maximum number". Keep up le bon travail.
illu45




PostPosted: Tue Oct 18, 2005 11:56 am   Post subject: (No subject)

Nice program. I like the buttons, and the seat choice part is very well written. The only thing that could be improved, IMO, is I think itd be nice if you printed off a receipt for the user after they bought their ticket, with the information they typed in when they created their account.
djlenny_3000




PostPosted: Tue Oct 25, 2005 8:18 am   Post subject: (No subject)

Dang if only i could program like that

stupid VB (i want turing back waaaa)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: