comp.lang.ada
 help / color / mirror / Atom feed
* How to use a function in a procedure call?
@ 2011-09-30 10:41 Sunny
  2011-09-30 12:16 ` Dmitry A. Kazakov
  2011-09-30 19:13 ` Jeffrey Carter
  0 siblings, 2 replies; 5+ messages in thread
From: Sunny @ 2011-09-30 10:41 UTC (permalink / 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;



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-01  5:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-30 10:41 How to use a function in a procedure call? Sunny
2011-09-30 12:16 ` Dmitry A. Kazakov
2011-09-30 19:13 ` Jeffrey Carter
2011-10-01  3:53   ` Sunny
2011-10-01  5:06     ` Jeffrey Carter

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