[AD] some GUI patches |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
`morewheels.diff' adds mouse wheel support to `d_textbox_proc' and `d_slider_proc', and fixes a small buglet in `d_list_proc'. `stretch-fsel.diff' vertically stretches the `file_select' dialog so that the label, edit box and buttons are resized according to the current font in use (right now it assumes an 8x8 font), and so that the file list takes up as much space as possible. The code is a bit ugly in that it takes a brute force approach (see `stretch_dialog' function in patch). `stddlg-override.diff' makes it possible to customise the look of the standard dialogs (in the spirit of gui_{fg,mg,bg}_color). It does so by making them use new proc functions, which look like: int _gui_button_proc(int msg, DIALOG *d, int c) { if (gui_button_proc) return gui_button_proc(msg, d, c); else return d_button_proc(msg, d, c); } where `gui_button_proc' is a function pointer to a dialog procedure. The first patch is a no-brainer, but what about the other two? -- tjaden@xxxxxxxxxx - http://www.psynet.net/tjaden/ CREEDLES (KRE dulz), n. The colony of microscopic indentations on a golfball. -- Rich Hall, "Sniglets"
Attachment:
morewheels.diff.gz
Description: application/gunzip
Attachment:
stretch-fsel.diff.gz
Description: application/gunzip
Attachment:
stddlg-override.diff.gz
Description: application/gunzip
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |