Help me in creating a control
-
Hi, I need some help in creating a control. I need to have a button, which is nothing but the file browse button. But on the button one more down arrow will be there to show/allow to select the recent five files. When the user clicks on the arrow, recent list will be displayed. If user clicks on the button then the file browse dialog will be popped up. I know how to open the file browse dialog, but is ther any control which displays the arrow. Thanks in advance Pratap
-
Hi, I need some help in creating a control. I need to have a button, which is nothing but the file browse button. But on the button one more down arrow will be there to show/allow to select the recent five files. When the user clicks on the arrow, recent list will be displayed. If user clicks on the button then the file browse dialog will be popped up. I know how to open the file browse dialog, but is ther any control which displays the arrow. Thanks in advance Pratap
If I understand you correctly, you need to create two buttons, one to open the fie browser dialog and another to display the last files. Perhaps you could use a context menu for the latter. If you change the style for the menu button ( remove the borders etc ) you can create the illusion of a single button. Using two buttons will also make your life easier when trapping the messages. There is no button which contains an arrow that I know of, you will have to add a bitmap to the button. Either add a bitmap to your resources or create it at runtime. Or, depending on the font you are using, there may be an arrow character that you could use.
-
Hi, I need some help in creating a control. I need to have a button, which is nothing but the file browse button. But on the button one more down arrow will be there to show/allow to select the recent five files. When the user clicks on the arrow, recent list will be displayed. If user clicks on the button then the file browse dialog will be popped up. I know how to open the file browse dialog, but is ther any control which displays the arrow. Thanks in advance Pratap
humm.. in continuation with waldermort.. you can add List Control on fly on click of button!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you
-
Hi, I need some help in creating a control. I need to have a button, which is nothing but the file browse button. But on the button one more down arrow will be there to show/allow to select the recent five files. When the user clicks on the arrow, recent list will be displayed. If user clicks on the button then the file browse dialog will be popped up. I know how to open the file browse dialog, but is ther any control which displays the arrow. Thanks in advance Pratap
You can always try to find a button class that would allow you to add images there, and then using pretranslatemessage to try yo read the position in which the mouse was when the OnLButtonUp was received, depending on that position you could react in different ways. A good class for that could be CButtonST. Hope this helps.
-
Hi, I need some help in creating a control. I need to have a button, which is nothing but the file browse button. But on the button one more down arrow will be there to show/allow to select the recent five files. When the user clicks on the arrow, recent list will be displayed. If user clicks on the button then the file browse dialog will be popped up. I know how to open the file browse dialog, but is ther any control which displays the arrow. Thanks in advance Pratap
Its interesting I think your answer yesterday but I dont know its on edit section or button section on the codeproject ;)
WhiteSky