Page 1 of 1

Dialog without class

Posted: Mon Nov 20, 2006 5:05 am
by Gilbert
Hi All,

I have a situation where I need to display a Dialog box that will contain 5 Listbox and 1 Button. Now, I want this function to be CLASS independant.

Is there a way to do this without using TDialog, TListbox and TButton. Just pure code.

Regards

Posted: Mon Nov 20, 2006 10:00 am
by Antonio Linares
Gilbert,

Do you mean C code or PRG code ?

Posted: Mon Nov 20, 2006 7:21 pm
by Gilbert
Hi Antonio,


I mean PRG. I`m not to good at C.

By the way, is it poosible for you to take a peak at the thread MESSAGE TO BADARA. I called this way because I did`nt know how to call it.
This thread is about Windows Available Printers retreival form Windows Register. Badara has done a tremendous job on this and I`m trying to adapt my own ideas to it`s work. But there is so many unknown thing that it`s not easy to takle. I would apreciate if you could help.

Regards,

Posted: Mon Nov 20, 2006 7:23 pm
by Antonio Linares
Gilbert,

Why don't you want to use the classes in your PRG code ?

Posted: Mon Nov 20, 2006 7:37 pm
by Gilbert
Hi Antonio,

This function I`m developing as to be completely independant form any CLASSES because of portability. Also want to reduce code to a maximum.
I would like to use pure code instead of CLASSES.

Regards

Posted: Mon Nov 20, 2006 7:56 pm
by Antonio Linares
Gilbert,

The only way to avoid the use of classes is to develop it in pure C code.