![]() |
|
d_something_proc |
chaseC
Member #8,368
February 2007
|
Hi, I have looked at many examples and I can't figure out how to use the d_..._proc() fuctions. I'm mostly trying to use the d_edit_proc but I can't figure out how to create and display editable text.:'( |
CGamesPlay
Member #2,559
July 2002
![]() |
Look at exdialog.c, in the examples folder of the Allegro source code. -- Ryan Patterson - <http://cgamesplay.com/> |
Johan Halmén
Member #1,550
September 2001
|
You don't run d_something_proc() like you run most functions. You put it in a dialog struct as a function pointer. Instead you run do_dialog() or popup_dialog(), which operates on the struct. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
chaseC
Member #8,368
February 2007
|
Thanks, I got it to work. Now all I need to know though is how to change the text color. All I can get it to do is change shades of blue??? |
ReyBrujo
Moderator
January 2001
![]() |
Don't use makecol at the array initialization, if you are doing so. You can also post a small sample of your application so that we can help you. -- |
chaseC
Member #8,368
February 2007
|
here is the part of my program that makes the dialog
|
ReyBrujo
Moderator
January 2001
![]() |
Well, you hardcoded 500 as fg, depending on the color depth you are using, that 500 may be a blue. Just change it (after initializing Allegro, you can use customoptions[0].fg = makecol(64, 0, 0); to change the text1 foreground color to a shade of red. -- |
chaseC
Member #8,368
February 2007
|
That did the trick, Thanks a lot, I never would have thought of that.;D |
|