Re: Initial Help Needed



On Tue, 19 Jun 2001, Linux Developer wrote:
> > Of course
> > you can only find a widget which is contained
> > somewhere in the
> > root_widget.
>
> the root widget I think so will be dialog/form what
> ever u say..... and this routine can find any widget
> on the form......but when we have an application with
> lets say 3 dialogs/forms then this routine is capeable
> to find any widget on any dialog/form or it just finds
> the widgets on one dialog ??

It only finds the widget on one dialog.

>  Please give me a brief
> over using 2/3 dialog/forms
>
> > If you have the reference to your desired widget
> > (e.g. the textentry
> > widget) you can use the functions described in
> > GTK/GNOME API docs at
> > developer.gnome.org to change the settings.
>
> in OOP we use method and properties so is there a way
> to access the properties or since we are working in c
> language so we just have plain functions.

The child has multiple names. If you want to call it method then call it
method. But of course you can't have  obj_ref.method () in C. This works
only this way: method (obj_ref).

> where should I define global varaibles to store the
> pointers to point the widget so that I dont have to
> call the above routine again and again ???

At the top of the source file is a good idea. ;-)

> is it a good idea to store the pointers like this ???

It depends on what you want to do.

> Finally I would like if you or someone else just make
> a small program in glade for me and email me
>
> 1) put an input box
> 2) put a button

Well, actually I think this is a good lesson. So try it yourself.
If you can't get this working read the book first and then ask again on
the list.

Jens





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]