> I'm porting a web application back to a win32 app and have used win32-gui for
> my development for the past three years. However I have hit a road block in
> creating controls on the fly. My web application allows my users to define
> questions tied to a database field. As part of the question definition they
> can choose the control type (i.e,: text box, list box, radio button, check
> box). What is the best method to create these controls in a win32 window?

Hi,

Creating controls (or indeed windows) on the fly is straightforward. All you 
need to do is make sure your new control stays in scope and use the new event 
model (NEM) for handling the events. Using NEM will allow you to have a single 
event handler for each control type with each control having it's own state 
information with the UserData method.

Hope that is of some help,

Cheers,

jez. 
_________________________________________________________________

http://clk.atdmt.com/UKM/go/msnnkmgl0010000009ukm/direct/01/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/

Reply via email to