Hi all,
I need to add a custom button to title bar on a form in addition of a
standard button. (Minimize/Maximize, close etc.)
I need also to handle OnClick event of this button. I looked around
google but i'm not able to find any example that can help me.
Many thanks in advance for your help.
Marco 7 9082
Marcolino wrote:
I need to add a custom button to title bar on a form in addition of a
standard button. (Minimize/Maximize, close etc.)
Why?
Unless you're doing something very, /very/ specialised, what does this
gain you or, more importantly, your users that you /can't/ achieve in a
more "standard" Windows way?
I looked around google but i'm not able to find any example that can
help me.
Which ought to suggest that, perhaps, it's not a very good thing to do...
Regards,
Phill W.
On 2 Mag, 18:12, "Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-k>
wrote:
Marcolino wrote:
I need to add a custom button to title bar on a form in addition of a
standard button. (Minimize/Maximize, close etc.)
Why?
Unless you're doing something very, /very/ specialised, what does this
gain you or, more importantly, your users that you /can't/ achieve in a
more "standard" Windows way?
I looked around google but i'm not able to find any example that can
help me.
Which ought to suggest that, perhaps, it's not a very good thing to do...
Regards,
Phill W.
Hi Phil,
I have my reason to do this. In deep I need to change the behavior of
Maximize/Restore Button on a form.
To make this I subclassed System message to a form and now i'm able to
run my custom code. But after this, the Maximize button will not
change to minimize.
I tried with SetWindowLong and then SetWindowPos, but this change the
button but also maximize the form and I do not need this.
So I think to disable standard Maximize/restore button and to add a
new customized one, so I'll be able to make whatever I want.
I hope this is clear for you and the reason for may need.
Many thanks for your attention.
--Marco http://www.codeproject.com/vb/net/tr...tlebuttons.asp
"Marcolino" <ma************ @gmail.comwrote in message
news:11******** **************@ n76g2000hsh.goo glegroups.com.. .
Hi all,
I need to add a custom button to title bar on a form in addition of a
standard button. (Minimize/Maximize, close etc.)
I need also to handle OnClick event of this button. I looked around
google but i'm not able to find any example that can help me.
Many thanks in advance for your help.
Marco
Marcolino wrote:
On 2 Mag, 18:12, "Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-k>
wrote:
>Marcolino wrote:
>>I need to add a custom button to title bar on a form in addition of a standard button. (Minimize/Maximize, close etc.)
Why?
Unless you're doing something very, /very/ specialised, what does this gain you or, more importantly, your users that you /can't/ achieve in a more "standard" Windows way?
>>I looked around google but i'm not able to find any example that can help me.
Which ought to suggest that, perhaps, it's not a very good thing to do...
Regards, Phill W.
Hi Phil,
I have my reason to do this. In deep I need to change the behavior of
Maximize/Restore Button on a form.
Again, I ask .. why?
*Every* other Windows application that shows these buttons (you /can/
just hide them, BTW) behaves in exactly the same way. They have done
for years and (hopefully) will continue to do so for years to come.
Users are /familiar/ with this and "expect" [all] their applications to
work this way.
If you change this behaviour, especially if you are tinkering with an
area of the window that is normally /outside/ of an application's
control and should be the same for /every/ window shown to the user,
then you're going to confuse and alienate your user community.
the Maximize button will not change to minimize.
And I should hope not!
If I click a Maximise button on any window, I expect that window to
maximise itself. Your application is going to do something different?
Expect to be flooded with "bug reports" from your users.
Take a step back for your current problem and tell us what it is that
you want to /achieve/ (not how). Why do you want to change the
behaviour of these buttons? We might be able to give you a more
"standard" (i.e. more familiar, user-friendly, etc.) alternative.
Regards,
Phill W.
"Phill W." <p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-kwrote in message
news:f1******** **@south.jnrs.j a.net...
Marcolino wrote:
>On 2 Mag, 18:12, "Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-k> wrote:
>>Marcolino wrote: I need to add a custom button to title bar on a form in addition of a standard button. (Minimize/Maximize, close etc.) Why?
Unless you're doing something very, /very/ specialised, what does this gain you or, more importantly, your users that you /can't/ achieve in a more "standard" Windows way?
I looked around google but i'm not able to find any example that can help me. Which ought to suggest that, perhaps, it's not a very good thing to do...
Regards, Phill W.
Hi Phil, I have my reason to do this. In deep I need to change the behavior of Maximize/Restore Button on a form.
Again, I ask .. why?
*Every* other Windows application that shows these buttons (you /can/ just
hide them, BTW) behaves in exactly the same way. They have done for years
and (hopefully) will continue to do so for years to come. Users are
/familiar/ with this and "expect" [all] their applications to work this
way.
Not really Phill. I have used several windows applications that contain
custom titlebar buttons. Hmm, I believe most of these apps were installed
via video card bundled software and they allow you to do many things with
the "window" that has nothing to do with the application. Of course, this
was a modification to ALL applications installed, and not just it's own
application. The button I am remember for 1 case was actually a context
menu when you clicked on it and allowed you to change the resolution of the
window, size, colors, etc. Pretty nifty for the advanced use...
Mythran
On May 3, 11:46 am, "Mythran" <kip_pot...@hot mail.comwrote:
"Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-kwrote in message
news:f1******** **@south.jnrs.j a.net...
Marcolino wrote:
On 2 Mag, 18:12, "Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-k>
wrote: Marcolino wrote: I need to add a custom button to title bar on a form in addition of a standard button. (Minimize/Maximize, close etc.) Why?
>Unless you're doing something very, /very/ specialised, what does this gain you or, more importantly, your users that you /can't/ achieve in a more "standard" Windows way?
>>I looked around google but i'm not able to find any example that can help me. Which ought to suggest that, perhaps, it's not a very good thing to do...
>Regards, Phill W.
Hi Phil,
I have my reason to do this. In deep I need to change the behavior of
Maximize/Restore Button on a form.
Again, I ask .. why?
*Every* other Windows application that shows these buttons (you /can/ just
hide them, BTW) behaves in exactly the same way. They have done for years
and (hopefully) will continue to do so for years to come. Users are
/familiar/ with this and "expect" [all] their applications to work this
way.
Not really Phill. I have used several windows applications that contain
custom titlebar buttons. Hmm, I believe most of these apps were installed
via video card bundled software and they allow you to do many things with
the "window" that has nothing to do with the application. Of course, this
was a modification to ALL applications installed, and not just it's own
application. The button I am remember for 1 case was actually a context
menu when you clicked on it and allowed you to change the resolution of the
window, size, colors, etc. Pretty nifty for the advanced use...
Mythran
I believe Phill was talking about changing the behavior of the
"default" buttons (minimize, restore, maximize, close) and not about
additional custom buttons (like NVidia's nview titlebar buttons).
Thanks,
Seth Rowe
On 3 Mag, 18:57, rowe_newsgroups <rowe_em...@yah oo.comwrote:
On May 3, 11:46 am, "Mythran" <kip_pot...@hot mail.comwrote:
"Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-kwrote in message
news:f1******** **@south.jnrs.j a.net...
Marcolino wrote:
>On 2 Mag, 18:12, "Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-k>
>wrote:
>>Marcolino wrote:
>>>I need to add a custom button to title bar on a form in addition of a
>>>standard button. (Minimize/Maximize, close etc.)
>>Why?
>>Unless you're doing something very, /very/ specialised, what does this
>>gain you or, more importantly, your users that you /can't/ achieve in a
>>more "standard" Windows way?
>>>I looked around google but i'm not able to find any example that can
>>>help me.
>>Which ought to suggest that, perhaps, it's not a very good thing to
>>do...
>>Regards,
>> Phill W.
>Hi Phil,
>I have my reason to do this. In deep I need to change the behavior of
>Maximize/Restore Button on a form.
Again, I ask .. why?
*Every* other Windows application that shows these buttons (you /can/ just
hide them, BTW) behaves in exactly the same way. They have done for years
and (hopefully) will continue to do so for years to come. Users are
/familiar/ with this and "expect" [all] their applications to work this
way.
Not really Phill. I have used several windows applications that contain
custom titlebar buttons. Hmm, I believe most of these apps were installed
via video card bundled software and they allow you to do many things with
the "window" that has nothing to do with the application. Of course, this
was a modification to ALL applications installed, and not just it's own
application. The button I am remember for 1 case was actually a context
menu when you clicked on it and allowed you to change the resolution of the
window, size, colors, etc. Pretty nifty for the advanced use...
Mythran
I believe Phill was talking about changing the behavior of the
"default" buttons (minimize, restore, maximize, close) and not about
additional custom buttons (like NVidia's nview titlebar buttons).
Thanks,
Seth Rowe- Nascondi testo tra virgolette -
- Mostra testo tra virgolette -
Hi All,
Phil I'm Italian and I'm not write English very well, but in any way I
will try to explain you and all other guys my needs.
So, the truth is that the maximize button on my app will operate as
Microsoft want, maximizing the form but in a little bit different way.
I'm trying to explaing....... .......
I have an MDI container with a toolbar docked on the top. Inside this
MDI I have my child form. With standard behavior, when I'll click on
maximize, the child form will be maximized but the Title Bar of my
child form will go between the title bar of MDI and the ToolBar Docked
on the top of MDI. This is horrible to see for me and final users. In
addition all other child form that will open, will be maximized, also
if for default the maximize button is disable on their properties.
I don't need this. So I modified a little bit the behavior of maximixe
button, to adapt my child form, to MDI maximum usable space. With this
operation, my child will seems maximized, but its title bar remain on
its top and all other child that will be open mantain their original
ratio and position.
The user of this app, agree with me from this point of view.
The only thing that miss to my "Little Bit Modified Maximize" is to
change the Maximize Button to Restore Button after maximized to return
the child form to its original size. From here was born my request on
this Newsgroup.
I hope that it's clear.
In any way many thanks for your helps.
Bye Marco This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lo?c Mah? |
last post by:
Hello
I try to use a Validator for a TxtCtrl placed in a Panel with a Button
in order to trigger the Validator and test the content of TxtCtrl.
I have looked into wxPython documentation and demo and searched in
google, but I am still unsuccessful yet.
My problem is that I do not manage to call the Validate() method of my
Validator from the button handler.
|
by: Dennis C. Drumm |
last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am
building a custom MessageBox dialog that has, among other things, a few new
button options (yes to all, no to all, etc.) and would like to make the
dialog look and act like the standard MessageBox. Therefore, I would like to
put in the message section the same type of icons found in the MessageBox
dialog, such as MessageBoxIcon.Exclamation. In another post here I had...
|
by: Benny Raymond |
last post by:
How would you go about custom drawing the title bar of a form? I'd like
to change it so that I can add different colors to my title and also
change how the close button works (since I override it and cause the
form to minimize).
Thanks in advance,
Benny
|
by: Jay Walker |
last post by:
I created a custom DataGridColumn based on Marcie Robillard's MSDN
Article:
Creating Custom Columns for the ASP.NET Datagrid
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/creatingcustomcolumns.asp
The problem I am having is that the data in the custom datagridcolumn
is not saved to viewstate and after postback, the column does not
contain data.
|
by: Furer Ramon |
last post by:
hi every one
please i need know how to create a custom title bar like writing on title
bar and change the look of maximize button and close button and so on using
..net framework
Greets
R. Furer
| |
by: mpaine |
last post by:
I have read
http://msdn2.microsoft.com/en-us/library/ms178472(VS.80).aspx and my
interpretation is that custom events should be fired between Page_Load
and Page_LoadComplete. When I run the following sample code, the
custom events are always last. Why is that?
Your help will be greatly appreciated!
<%@ Page Language="VB" AutoEventWireup="false" Title="Test ASP.NET Life
Cycle"
|
by: Veerle |
last post by:
Hi,
I use the infragistics tabcontrol on several pages of my application,
that looks like this:
<igtab:UltraWebTab ID="MyTabPage" runat="server">
<Tabs>
<igtab:Tab Key="Tab1" Text="Title for tab 1">
<ContentTemplate>
Content of tab 1, can contain usercontrols or
|
by: newlearner |
last post by:
Hi,
Can an custom attribute be added into a input tag, apart from the predefined one
<td ><button type="button" title="title" onclick="myFunction()" name="Name" ><span>OK</span></button></td>
my button is as above is there any way that i can include another custom attribute to this.
in advance......
Thanks for your reply
|
by: =?Utf-8?B?UmljaEI=?= |
last post by:
I am trying to create a project using the ASP.NET AJAX accordion control. I
would like to dynamically add panes to the control with a form template added
when the pane is added. I have tried unsuccessfully in creating the whole
pane as a user control and have succeeded in adding the pane and then
dynamically adding the content which is a user control to the pane,
dynamically within the page.
However I would like to have a single pane...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |