comp.lang.ada
 help / color / mirror / Atom feed
From: Sunny <daetalusun@gmail.com>
Subject: How to use a function in a procedure call?
Date: Fri, 30 Sep 2011 03:41:30 -0700 (PDT)
Date: 2011-09-30T03:41:30-07:00	[thread overview]
Message-ID: <604bf6ae-4050-4d03-be4a-aab907d42162@j10g2000vbb.googlegroups.com> (raw)

Hi all!
I want so set a icon to my frame. Use GtkAda. But when I use the
Set_Icon_From_File(win,"icon.jpg");
An Error said that "can not use function 'Set_Icon_From_File' in a
procedure call"
How to solve the problem? Thanks!

My source code is:
WITH Gtk.Window;USE Gtk.Window;
WITH Gtk.Main;USE Gtk.Main;
WITH Gtk.Enums;USE Gtk.Enums;

PROCEDURE  icon  IS
   win:gtk_window;

BEGIN
   Init;
   Gtk_new(win);
   Set_Size_Request(win,300,200);
   Set_Icon_From_File(win,"icon.jpg");
   Set_Title(win,"Icon");
   Set_Position(win,WIN_POS_CENTER);
   Show(win);
   Main;
END  icon;



             reply	other threads:[~2011-09-30 10:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-30 10:41 Sunny [this message]
2011-09-30 12:16 ` How to use a function in a procedure call? Dmitry A. Kazakov
2011-09-30 19:13 ` Jeffrey Carter
2011-10-01  3:53   ` Sunny
2011-10-01  5:06     ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox