News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Dialog controls

Started by post from old forum, September 13, 2004, 09:03:53 PM

Previous topic - Next topic

post from old forum

Hello. Is there way to add new controls to dialog editor? Like Rebar?

post from old forum

Try 'Dialog' -> 'New custom control', and enter the appropriate class name - I thinks it's ReBarWindow32 for the Rebar control.
You also have to figure out the correct hex value for 'Style' and 'Extended style'...

This should work...

Pelle

post from old forum

Yes this works. To make it easier might you add some other controls to dialog editor? I thinking rebar and status bar would be good to use like other controls in dialog editor.

post from old forum

and toolbar. I guess that might be more difficult though as toolbars have to be stuck to top or bottom of windows.

Mako

post from old forum

It's somewhere on the todo list. Rebar controls shouldn't be too difficult. But, as you say, toolbars (and probably statusbars) are usually stuck at the top/bottom. This makes the drag handles, and other things, go out-of-sync. This can be handled, but requires more work. So far, other things have been more 'urgent'.

Pelle

post from old forum

Does anyone have a sample that has a rebar with a menu and a toolbar in it. I have tried this many times and am having trouble.
Thanks in advance for the help.

P.S. I would love it to be a window if posible not in a dialog.

- Ryan
http://rjpcomputing.com

post from old forum

hello Ryan
you can find very good examples on
JohnF's website here

http://www.john.findlay1.btinternet.co.uk/

MS ReBar sample is here

http://www.john.findlay1.btinternet.co.uk/comctrl/comctrl.htm

so long

tiwag