Results 1 to 13 of 13

Thread: Here's a free shangle

  1. #1

    Thread Starter
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796

    Here's a free shangle

    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.
    Attached Files Attached Files
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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.

  3. #3

    Thread Starter
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796

    Smile Thanks, but...

    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
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288

    Re: Thanks, but...

    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

  5. #5

    Thread Starter
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    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.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  6. #6

    Thread Starter
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796

    Re: Here's a free shangle

    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......
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  7. #7
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Here's a free shangle

    !!! I just noticed that too!! 64K views!! wow! hats off to you.. that must be a record here!
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  8. #8
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Here's a free shangle

    hmm.. just tried to download.. not a valid archive??
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  9. #9
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: Here's a free shangle

    And also, the little gripper in the bottom right hang corner, is called. Wait for it...

    A Gripper

    I will link you to the image... http://www.thevbprogrammer.com/winxp..._statusbar.jpg

    and here is the document, very helpful for programming... http://www.thevbprogrammer.com/winxp/default.htm

  10. #10
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Here's a free shangle

    Quote Originally Posted by [LGS]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?

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Here's a free shangle

    Now here is truly a first.

    I actually moved something from ClassicVB to the CodeBank.

  12. #12
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Here's a free shangle

    Quote Originally Posted by Hack
    Now here is truly a first.

    I actually moved something from ClassicVB to the CodeBank.
    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 .

  13. #13
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Here's a free shangle

    Quote Originally Posted by Joacim Andersson
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width