Thread: [Dev-C++] Creating controls based on a database
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ed C. <em...@to...> - 2003-08-18 21:51:41
|
Hi all - I have a fairly straightforward requirement: query a database table, then generate checkboxes and labels to correspond to each row, with the checkboxes remaining non-static. For example, if my data consists of names of people, I want to add controls to my form like: [] John Doe [] Suzie Q [] G. W. Bush [] Jacque Chirac ... ([] represents a check box) Assuming I know how to query the database and store the data in an array, how would I use this array to create these controls? Thanks! -Ed |
|
From: P.D. v. Z. <pa...@my...> - 2003-08-18 22:36:23
|
That depends on what API or library you wish to use. If you had specified that up front, people would be able to provide you with samples. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ed Cottrell Sent: Monday, August 18, 2003 11:51 PM To: 'Dev-Cpp-Users' Subject: [Dev-C++] Creating controls based on a database Hi all - I have a fairly straightforward requirement: query a database table, then generate checkboxes and labels to correspond to each row, with the checkboxes remaining non-static. For example, if my data consists of names of people, I want to add controls to my form like: [] John Doe [] Suzie Q [] G. W. Bush [] Jacque Chirac ... ([] represents a check box) Assuming I know how to query the database and store the data in an array, how would I use this array to create these controls? Thanks! -Ed |
|
From: Ed C. <em...@ed...> - 2003-08-19 01:20:13
|
> That depends on what API or library you wish to use. I'm using the (Microsoft) Win32 API - sorry about that. -Ed -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of P.D. van Zelst Sent: Monday, August 18, 2003 6:36 PM To: 'Ed Cottrell'; 'Dev-Cpp-Users' Subject: RE: [Dev-C++] Creating controls based on a database That depends on what API or library you wish to use. If you had specified that up front, people would be able to provide you = with samples. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ed = Cottrell Sent: Monday, August 18, 2003 11:51 PM To: 'Dev-Cpp-Users' Subject: [Dev-C++] Creating controls based on a database Hi all - I have a fairly straightforward requirement: query a database table, = then generate checkboxes and labels to correspond to each row, with the checkboxes remaining non-static. For example, if my data consists of = names of people, I want to add controls to my form like: [] John Doe [] Suzie Q [] G. W. Bush [] Jacque Chirac ... ([] represents a check box) Assuming I know how to query the database and store the data in an = array, how would I use this array to create these controls? Thanks! -Ed ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including = Data Reports, E-commerce, Portals, and Forums are available now. Download = today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/= 01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Smurf, P. <smu...@xs...> - 2003-08-19 01:29:25
|
I'm not 100% sure but I think you should or could use CreateWindowEx (win32 API) to dynamically create any kind of window (control). Look it up in the MSDN lib. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Ed Cottrell Sent: Tuesday, August 19, 2003 3:17 AM To: 'Dev-Cpp-Users' Subject: RE: [Dev-C++] Creating controls based on a database > That depends on what API or library you wish to use. I'm using the (Microsoft) Win32 API - sorry about that. -Ed -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of P.D. van Zelst Sent: Monday, August 18, 2003 6:36 PM To: 'Ed Cottrell'; 'Dev-Cpp-Users' Subject: RE: [Dev-C++] Creating controls based on a database That depends on what API or library you wish to use. If you had specified that up front, people would be able to provide you with samples. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ed Cottrell Sent: Monday, August 18, 2003 11:51 PM To: 'Dev-Cpp-Users' Subject: [Dev-C++] Creating controls based on a database Hi all - I have a fairly straightforward requirement: query a database table, then generate checkboxes and labels to correspond to each row, with the checkboxes remaining non-static. For example, if my data consists of names of people, I want to add controls to my form like: [] John Doe [] Suzie Q [] G. W. Bush [] Jacque Chirac ... ([] represents a check box) Assuming I know how to query the database and store the data in an array, how would I use this array to create these controls? Thanks! -Ed ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Yeoh H. <ye...@ye...> - 2003-08-19 04:08:36
|
----- Original Message ----- From: "Smurf, Papa" <smu...@xs...> To: "Ed Cottrell" <em...@ed...>; "'Dev-Cpp-Users'" <dev...@li...> Sent: Tuesday, August 19, 2003 9:29 AM Subject: RE: [Dev-C++] Creating controls based on a database > I'm not 100% sure but I think you should or could use CreateWindowEx (win32 > API) to dynamically create any kind of window (control). Look it up in the > MSDN lib. > Yes, CreateWindowEx is the right Win32 function to use. |