Results 1 to 7 of 7

Thread: Suggestions for creating a sort of a widgit thingy - sort of half midimised

  1. #1

    Thread Starter
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,732

    Suggestions for creating a sort of a widgit thingy - sort of half midimised

    I have a winforms app and the customer is asking for it to be able to run in 4 modes. The standard 3 (minimised, maximised and midimised) should behave as normal. However, they also want a sort of "inconspicuous" mode where a small cut down form would run in bottom right of the screen with some bare details. Basically nothing but a progress bar/counter and an abort button. A bit like a persistent toaster notification.

    I think I've really got two questions at this stage:-
    1. Can anyone suggest a framework / approach that would support this sort of mini-window?
    2. Can anyone suggest a good way to transition between it and the standard 3 modes (it would be great to add a 4th button to the top right of the main window but I wouldn't know where to start)?
    The best argument against democracy is a five minute conversation with the average voter - Winston Churchill

    Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd

  2. #2
    Hyperactive Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Posts
    346

    Re: Suggestions for creating a sort of a widgit thingy - sort of half midimised

    For #2, you might need custom size mode buttons at the top of your main form if you want a fourth. I have time on my hands to design them all for ya.

    Transitioning, have the main form fade-out, and the progress form fade-in to something like 50% opacity or whatever.

    If the program is always going to be running in the background, the close button can start the transition to the progress form. Just I don't know if winforms mode buttons can be overridden, so you might have to go with a borderless form with custom buttons.
    Last edited by Peter Porter; Oct 31st, 2021 at 01:19 PM.

  3. #3
    Hyperactive Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Posts
    346

    Re: Suggestions for creating a sort of a widgit thingy - sort of half midimised

    If you go with a borderless main form, here's a bare bones mode to transition to the bottom right progress form. That's if you don't have your own button icons. It's size is 24x24.

    Name:  bare_bones_button.png
Views: 53
Size:  2.9 KB

    I'll recreate the other button modes so this new one doesn't look out of place.
    Last edited by Peter Porter; Oct 31st, 2021 at 08:32 AM.

  4. #4
    Hyperactive Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Posts
    346

    Re: Suggestions for creating a sort of a widgit thingy - sort of half midimised

    And here are all the modes:

    Name:  minimize.png
Views: 56
Size:  2.8 KB Name:  restore_down.png
Views: 57
Size:  2.9 KB Name:  maximize.png
Views: 57
Size:  2.9 KB Name:  bare_bones_button.png
Views: 57
Size:  2.9 KB Name:  close.png
Views: 60
Size:  3.1 KB

    Right click and open in new tab to save these pngs.
    Last edited by Peter Porter; Oct 30th, 2021 at 04:52 PM.

  5. #5
    Hyperactive Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Posts
    346

    Re: Suggestions for creating a sort of a widgit thingy - sort of half midimised

    If you prefer transparent to show the form's background color:

    Name:  minimize.png
Views: 54
Size:  2.8 KB Name:  restore_down.png
Views: 50
Size:  2.9 KB Name:  maximize.png
Views: 58
Size:  2.8 KB Name:  bare_bones.png
Views: 55
Size:  2.9 KB Name:  close.png
Views: 56
Size:  3.0 KB

    My feelings wont be hurt if you don't use them. They are kinda large.

    I can redraw them 16x16. 12x12 is stick figure size, but doable.
    Last edited by Peter Porter; Oct 31st, 2021 at 05:54 AM.

  6. #6

    Thread Starter
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,732

    Re: Suggestions for creating a sort of a widgit thingy - sort of half midimised

    Hey dude. Huge help, thank you very much.

    They've put this requirement on hold but I'm pretty sure they're going to go ahead with it, just prioritising a few fixes first. So I reckon I'll be coming back to this in a couple of weeks or so.

    The program is long running rather than always running so the close button should behave as normal but having an extra button would remove that need anyway.
    The best argument against democracy is a five minute conversation with the average voter - Winston Churchill

    Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd

  7. #7
    Frenzied Member
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    1,331

    Re: Suggestions for creating a sort of a widgit thingy - sort of half midimised

    Quote Originally Posted by Peter Porter View Post
    If you go with a borderless main form
    That is exactly what I do on my small chat program, it 'minimises' to a borderless form containing a pertinent small image on the desktop, that can be dragged to anywhere on the desktop. Location saved and restored on a restart. When the application receives an update the image on the borderless form 'pulses' to alert the user to the fact. A single click on the borderless form activates the main window, borderless form fades out, main windows fades in.
    By the power invested in me, all the threads I start are Niya and Olaf free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

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