Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [SMARTY] First steps with PHP-GTK
Hi,
whats wrong with you? This is the smarty mailing list. Smarty is a
template system for php.
write in the gtk mailing list.

take a look at gtk.php.net.

bye
Andreas





Ricardo Cezar wrote:

>I am in my first steps with PHP-GTK, and I have a lot of questions to make.
>
>Now I'm trying to put a GtkCalendar() and a GtkButton() in a window. When I
>press the button, the GtkCalendar() select today's date.
>
>I can put the calendar to work. I also can put the button in the window, bu
t
>one at a time. When I try to put both, only the calendar is visible.
>
>Someone can help me? I'll put the code here.
>
>I'm sorry for the bad english...
>
>Ricardo
>
>
>---------------------- THE CODE ----------------------------------
>
>
><?php
>
>    // Carrega o módulo PHP-GTK correto
> dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')) || die("Não foi
>possível carregar o módulo\n");
>
>    // Funções
>
>    function hoje() {
>        global $calendario;
>        $calendario->select_day(date('d'));
> }
>
>    $janela = &new GtkWindow();
>
> $calendario = &new GtkCalendar();
>    $calendario->select_day(date('d'));
>    $janela->add($calendario);
>
>    $botao1 = &new GtkButton('Hoje');
>    $botao1->connect('clicked', 'hoje');
>    $janela->add($botao1);
>
>    $janela->show_all(); // mostra a janela
>
>    gtk::main(); // loop principal
>
>?>
>
>
>


--
Data-Center
system solutions
Harras 55
2564 Furth
T 02674 88488
office@data-center.at
http://www.data-center.at

Report this thread to moderator Post Follow-up to this message
Old Post
Andreas Otterstein
08-25-04 08:59 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:53 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.