[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [paragui-users] loadlayout
From: |
Alexander Pipelka |
Subject: |
Re: [paragui-users] loadlayout |
Date: |
17 Apr 2002 15:49:54 +0200 |
Am Mit, 2002-04-17 um 15.36 schrieb Keith Swyer:
> hi, just wondering how to use the loadloayout function and connect a button
> in the layout to a function.
Quite easy :))
- load your layout via LoadLayout()
- get a pointer to the widget e.g.:
PG_Widget* my_widget = PG_Application::GetWidgetByName("widgetname");
- connect your widget to the callback
my_widget->SetEventCallback(...)
or
my_widget->SetEventObject(...)
That's it.
Have fun.
Alex