How can a control always be on top
-
I have a tab control and on that control I want to have a submit button displayed regardless of the tab I choose - the submit button is always on top in the client area. Please point me to documents / example of doing this. Steve
-
Maybe I am missing what you are saying but can't you just put the submit button outside of the tab control?
Cheers Disgyza Programmer Analyst
I could do that. The situation is that I have multiple tab controls for different functions and the submit button is for the associated tab control. Maybe a better idea is to have a submit button on each tabs client area because that is the information that is to be processed. Is there a way to make the same button appear, drawn, on the tabs client area when the tab is selected?
-
I could do that. The situation is that I have multiple tab controls for different functions and the submit button is for the associated tab control. Maybe a better idea is to have a submit button on each tabs client area because that is the information that is to be processed. Is there a way to make the same button appear, drawn, on the tabs client area when the tab is selected?
I don't think there is a way to draw the same control, but you can link the event handler of each submit button to one handler method.
sas9491 wrote:
the submit button is for the associated tab control
Then why again does it need to be on top? -- modified at 15:24 Friday 11th August, 2006
Cheers Disgyza Programmer Analyst
-
I don't think there is a way to draw the same control, but you can link the event handler of each submit button to one handler method.
sas9491 wrote:
the submit button is for the associated tab control
Then why again does it need to be on top? -- modified at 15:24 Friday 11th August, 2006
Cheers Disgyza Programmer Analyst
Couple of thoughts: 1 to provide a consitant interface, 2 so I had one area in code that would respond to all of the tabs responses, and 3 to cut down on the amount of overhead used for controls. Linking the events sounds like a good alternate solution. Thanks -SS-
-
Couple of thoughts: 1 to provide a consitant interface, 2 so I had one area in code that would respond to all of the tabs responses, and 3 to cut down on the amount of overhead used for controls. Linking the events sounds like a good alternate solution. Thanks -SS-
Wrap the tab and the button in a panel or blank control. Then you can have one object with all of them.
A man said to the universe: "Sir I exist!" "However," replied the Universe, "The fact has not created in me A sense of obligation." -- Stephen Crane