Hi,
Is there a way to modify the header of a window so that the close/ iconify/expand buttons can be customized instead of inheriting from the system ? Annick Fron _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Hi Annick,
I recently did something to create a complete customized window with rounded borders as you can see in the attachment. This only works on windows however. What I do is to let VW create a window and before it really opens I strip the title, the border and everything. Of course, from then on you're on your own: if you want to be able to resize the window, you need to implement it yourself. If you want close/minimize/maximize buttons you need to do it yourself, which I did. In my case the window acts as a floating toolwindow, so I didn't have to implement the min/max stuff. A good place to start looking for some code to achieve this can be found in the Epigent packages by Runar Jordahl in the public repository. And msdn is another place where you can find the meaning of all the windows functions. In my case I do something along these lines to strip all the decorations from windows: | rect | self setWindowLong: aWindow windowHandle nIndex: self GWL_EXSTYLE dwNewLong: self WS_EX_TOOLWINDOW. self setWindowLong: aWindow windowHandle nIndex: self GWL_STYLE dwNewLong: self WS_POPUP. rect := self getClientBoundsFor: aWindow. aWindow moveTo: aWindow globalOrigin resize: rect extent But again, only available on windows. Best regards, Mark -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Annick Fron Sent: vrijdag 31 oktober 2008 9:48 To: vwnc NC Subject: [vwnc] Window header Hi, Is there a way to modify the header of a window so that the close/ iconify/expand buttons can be customized instead of inheriting from the system ? Annick Fron _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc example.PNG (11K) Download Attachment |
What Mark does is really cool but if all you want to do is change the Cincom
Icon then go to Icon reaplce the defaultIcon and put Icon initialize in the initialize method of your application. @+Maarten, ----- Original Message ----- From: "Mark Plas" <[hidden email]> To: "Annick Fron" <[hidden email]> Cc: <[hidden email]> Sent: Friday, October 31, 2008 11:30 AM Subject: Re: [vwnc] Window header Hi Annick, I recently did something to create a complete customized window with rounded borders as you can see in the attachment. This only works on windows however. What I do is to let VW create a window and before it really opens I strip the title, the border and everything. Of course, from then on you're on your own: if you want to be able to resize the window, you need to implement it yourself. If you want close/minimize/maximize buttons you need to do it yourself, which I did. In my case the window acts as a floating toolwindow, so I didn't have to implement the min/max stuff. A good place to start looking for some code to achieve this can be found in the Epigent packages by Runar Jordahl in the public repository. And msdn is another place where you can find the meaning of all the windows functions. In my case I do something along these lines to strip all the decorations from windows: | rect | self setWindowLong: aWindow windowHandle nIndex: self GWL_EXSTYLE dwNewLong: self WS_EX_TOOLWINDOW. self setWindowLong: aWindow windowHandle nIndex: self GWL_STYLE dwNewLong: self WS_POPUP. rect := self getClientBoundsFor: aWindow. aWindow moveTo: aWindow globalOrigin resize: rect extent But again, only available on windows. Best regards, Mark -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Annick Fron Sent: vrijdag 31 oktober 2008 9:48 To: vwnc NC Subject: [vwnc] Window header Hi, Is there a way to modify the header of a window so that the close/ iconify/expand buttons can be customized instead of inheriting from the system ? Annick Fron _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc -------------------------------------------------------------------------------- > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG. Version: 7.5.549 / Virus Database: 270.8.5/1759 - Release Date: 31/10/2008 16:10 _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |