Click to See Complete Forum and Search --> : Here's a free shangle
BrianHawley
Oct 10th, 2001, 02:58 AM
A shangle is the little grab handle at the bottom right of a form that lets the user resize it.
I am told that 'shangle' is a combination of 'shingle' (a roof tile, for non-Americans) and triangle.
Here's a short and easy bit of code that puts a shangle on a form.
I just posted this under the .net forum, asking how to convert it to .net, but I'm posting it here too, as it may be of use or interest to somebody.
A complete working example is attached. The zipped download is under 2Kb.
Comments and grovelling thanks welcome.
Joacim Andersson
Oct 10th, 2001, 04:33 AM
You don't have to convert it to .Net since a Windows Form in .Net has a SizeGripStyle property that you can set to True.
BrianHawley
Oct 11th, 2001, 02:44 AM
Originally posted by Joacim Andersson
You don't have to convert it to .Net since a Windows Form in .Net has a SizeGripStyle property that you can set to True.
Hi Joacim.
Yes, I know that, but:
1) That does not let me use my own graphic. I'm stuck with MS's.
2) That does not let me put the shangle on the bottom left corner instead of the bottom right. (I write Arabic and Hebrew software, so I need to do this for right-to-left forms).
3) It's an intellectual excercise anyway. I justy picked a shangle as an example. The big question is should I be using API's at all under .net?
Thanks anyway:)
amitabh
Oct 11th, 2001, 02:53 AM
Originally posted by BrianHawley
3) It's an intellectual excercise anyway. I justy picked a shangle as an example. The big question is should I be using API's at all under .net?
I suppose MS is replacing Win32 API's with .Net Api's
BrianHawley
Oct 11th, 2001, 04:58 AM
Yes, I think they are replaced. If not with ".net apis" at least with something that does the same job. The problem is it's all very underdocumented at the moment, with a lot of blank pages in the beta help files. I know you can still call Windows API's from .net, but I understand this is not a good idea as it makes the application unportable between operating systems.
BrianHawley
Aug 24th, 2005, 10:53 AM
Just revisiting this post because I lost the original code I wrote and astonished to see over 64,000 downloads!
Now if I'd sold it for 50 cents a copy......
Static
Aug 24th, 2005, 11:24 AM
!!! I just noticed that too!! 64K views!! wow! hats off to you.. that must be a record here!
Static
Aug 24th, 2005, 11:25 AM
hmm.. just tried to download.. not a valid archive??
I_Love_My_Vans
Aug 24th, 2005, 11:46 AM
And also, the little gripper in the bottom right hang corner, is called. Wait for it...
A Gripper :D
I will link you to the image... http://www.thevbprogrammer.com/winxp/Content/Media/content_media/ctb_statusbar.jpg
and here is the document, very helpful for programming... http://www.thevbprogrammer.com/winxp/default.htm
Hack
Aug 24th, 2005, 11:48 AM
Static']hmm.. just tried to download.. not a valid archive??I had no problems downloading the attachment.
Brian: Do you have any objections to me moving this thread to the VB6 CodeBank?
Hack
Aug 26th, 2005, 06:56 AM
Now here is truly a first.
I actually moved something from ClassicVB to the CodeBank. :eek2: :)
Joacim Andersson
Aug 26th, 2005, 07:02 AM
Now here is truly a first.
I actually moved something from ClassicVB to the CodeBank. :eek2: :)Actually it's not the first. Manavo11 recently moved one of my 4 year old threads here. It was a thread about my CCommonDialog class that is a replacement for the bulky common dialog control :).
Hack
Aug 26th, 2005, 07:05 AM
Actually it's not the first. Manavo11 recently moved one of my 4 year old threads here. It was a thread about my CCommonDialog class that is a replacement for the bulky common dialog control :).Cool.
If you have any others out there that you feel would be appropriate for a CodeBank submission, PM me with the Link and I'll move it over. :thumb:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.