OxyScripts.com
Menu spacer Home Tutorials Articles Code Forums irc.freenode.net #oxyscripts
Main (PHP)
Home Forums PHP News PHP Tutorials Articles PHP Code Snippets Contact Us Sysadmin Resources Books Template Shop
3rd Party Streams
SlashDot PHPDeveloper.org PHP.Net
Resources
PHP Manual MySQL Manual Smarty Manual PEAR Manual PHP-GTK Manual Symfony Manual
Code Snippets
Authentication Database Graphics HTTP Miscellaneous Time/Date
Affiliates
Scripts TutorialMan TutorialGuide CodingForums.com PHP Scripts Cheap Web Hosting Affordable Web Hosting Dreamweaver Templates

Search This Site :     PHP Function Reference :
 
GtkCalendar

GtkCalendar

A calendar offering dates that can be selected and marked.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkCalendar

Direct subclasses

None.

Description

A GtkCalendar is a widget consisting of a grid container displaying a calendar, with an optional label allowing month/year navigation and an optional header giving abbreviated day names.

Both the day and the month names are supplied by the system locale, and cannot be overwritten. Unfortunately, under win32 there are severe problems with internationalization in the GDK source currently used by PHP-GTK. Non-standard ISO8859-1/2 characters cannot be drawn in this widget as a result of a wide character conversion failure under Windows. Multibyte characters are not recognised, and as they are supplied directly by the system to the widget there is no option to convert them using PHP. This issue is gradually being addressed by the PHP-GTK development team on a widget-by-widget basis.

Assuming that your locale and your operating system will allow you to use this widget's headers, the only other point to keep in mind is that a marked date is differentiated from the other dates by being drawn on a slightly bigger base rectangle, making it appear bold while actually using the same font as the rest of the widget. This is less effective in some fonts than in others, and can become a very negligable distinction.

Constructor

GtkCalendar (void);
-- Creates a calendar widget.

Methods

select_month()
  Determines the month and year displayed.
select_day()
  Determines the selected day.
mark_day()
  Marks the given day.
unmark_day()
  Unmarks the given day, if marked.
clear_marks()
  Clears all marked dates.
display_options()
  Sets flags determining the appearance of the calendar.
get_date()
  Returns currently selected date.
freeze()
  Freezes the display to allow updates.
thaw()
  Thaws the display following updates.

Signals

"month-changed"
  Emitted whenever the displayed month is changed.
"day-selected"
  Emitted when a day is selected.
"day-selected-double-click"
  Emitted when the mouse is clicked twice on a day.
"prev-month"
  Emitted when user chooses to go back one month.
"next-month"
  Emitted when user chooses to go forward one month.
"prev-year"
  Emitted when user chooses to go back one year.
"next-year"
  Emitted when user chooses to go forward one year.

Properties

month:
  Currently selected month.
year:
  Currently selected year.
selected_day:
  Currently selected day.
num_marked_dates:
  Number of marked dates held.
marked_date:
  Array of marked dates.

 
   Print this page

Top Sponsor
Symantec\'s Norton SystemWorks 2006
Sponsors
CA
Sponsors
AdWords Dominator 125*125
Advertisting


Affiliates
VertexTemplates PHPFreaks CodeWalkers StarGeek DevScripts CGI & PHP Scripts PHP CMS

Shopping Rebates   Sell It 4 You   Flash Page Counters   Get Insured
GPS Tracking Service   Charity Donate Info   Web Site Hosting   VOIP Service

Privacy Policy | Links | Site Map | Advertising

All content on OxyScripts.com is (©)2002-2007

 
Powered by Adrastea - Version 1.0.0. Copyright © Rune Solutions, 2004-2005