Page 2 of 4

OSDTIP_Pop() - Code updated

Posted: 14 Jun 2020, 15:59
by SKAN
OSDTIP_Pop() v0.55 :
Couple of glitches fixed.
WS_EX_STATICEDGE is removed from progress
The border you see around Progress will no more be present.
 
  • Code: Select all

    OSDTIP_Pop("Notification", "Message", 0, "C11 zh7 w160 CW101010 CTD3D3D3 U1 U2",,,0x00FFFF, 0x808080, 30) ; #Persistent required
    Previously w/ WS_EX_STATICEDGE
    Image

    Hereafter w.o WS_EX_STATICEDGE
    Image

Re: OSDTIP()

Posted: 16 Jun 2020, 02:07
by jNizM
Thanks for these interesting functions. Those look useful. :thumbup:

It's good to see you more active again. ;)

Re: OSDTIP()

Posted: 16 Jun 2020, 06:53
by SKAN
@jNizM Thanks for the feedback :thumbup: :)

OSDTIP_KBLeds() - Code updated

Posted: 27 Jun 2020, 17:58
by SKAN
OSDTIP_KBLeds() v0.51 :
Some unknown glitch fixed. GetKeyState() was returning incorrect key state maybe due to being called from timed pseudo thread.
I didn't 'see' the error as I wrote the function with a wireless keyboard which had no LEDs.
Fixed the code now with help of a wired keyboard (which has LEDS).

Re: OSDTIP()

Posted: 06 Jul 2020, 14:44
by blue83
Hi @SKAN ,

All of this look really helpfull and beautiful work.

Thank you for your all new functions.
Blue

Re: OSDTIP()

Posted: 06 Jul 2020, 16:56
by SKAN
@blue83 Thanks for the feedback :) :thumbup:

Re: OSDTIP()

Posted: 24 Jul 2020, 04:18
by ozzii
Hi SKAN,

A question about OSDTIP_Pop().
How to make the OSD centered? Because the standard for progress is centered. so I can't overide this option (without some calcul).....
Maybe a new option to add ;)

OSDTIP()

Posted: 24 Jul 2020, 07:59
by SKAN
Hi ozzii :)
ozzii wrote:How to make the OSD centered?
OSDTIP_Pop() was written specifically for EjectEx() : Call Eject() from File Explorer.
 
If we show it centered, it wouldn't look good without a drop shadow, but then AnimateWindow() shouldn't be used
Microsoft says: Avoid animating a window that has a drop shadow because it produces visually distracting, jerky animations.
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-animatewindow

ozzii wrote:Maybe a new option to add ;)
Maybe a new OSDTIP instead, that appears center screen!
What do you favor:
Drop shadow or animation?
Plain progress BG that acts as a line or a marquee?

Re: OSDTIP()

Posted: 24 Jul 2020, 08:02
by jNizM
Nice. Another idea. Some kind of running banner (scrolling ticker). At the top, bottom (above the taskbar) or in the middle of the screen.


With different types of information. Like this:
Image

Re: OSDTIP()

Posted: 25 Jul 2020, 04:12
by ozzii
@SKAN
Don't have any preferences. What's is easier to you ;)

@jNizM
Yes, a simple like bootstrap notification in the center of the screen.
With type (success, error...), message and timeout like parameters ;)
This can be very handy.

Re: OSDTIP()

Posted: 25 Jul 2020, 17:13
by SKAN
ozzii wrote: @SKAN
Don't have any preferences. What's is easier to you ;)
Okay! Wanted to try something new.. experimented with TaskDialogIndirect
20200726032835.png
20200726032835.png (4.5 KiB) Viewed 3138 times
1) Cannot stop it from getting activated
2) Cannot resize it with WinMove

I will try some other thing before falling back to Progress UI. Please allow me some time.

@jNizM

Nice! Thanks for the suggestion. I will have to use HTM to get such result I suppose.

Re: OSDTIP()

Posted: 26 Jul 2020, 02:28
by hasantr
It is beautiful as usual, and very easy to use. :)

Re: OSDTIP()

Posted: 26 Jul 2020, 03:55
by ozzii
Nice SKAN.
And of course you have time to do it.... Let's say 2-3 hours max ;)

(kidding of course) ;) ;)

Re: OSDTIP()

Posted: 26 Jul 2020, 20:03
by SKAN
hasantr wrote:
26 Jul 2020, 02:28
It is beautiful as usual, and very easy to use. :)
Thanks :thumbup: :)

Re: OSDTIP()

Posted: 26 Jul 2020, 20:05
by SKAN
@ozzii

Do these look okay? Any suggestions?
alert.png
alert.png (13.26 KiB) Viewed 2385 times

OSDTIP_Alert() - Suggestions please!

Posted: 27 Jul 2020, 05:59
by SKAN
Okay! Using text color for vertical bar looks so bland.
Is this better?
Alert2.png
Alert2.png (15.57 KiB) Viewed 1624 times

Re: OSDTIP()

Posted: 27 Jul 2020, 07:35
by jNizM
Looks great so far 👍
But I think the original color codes fit better. Or am I just blind.

Re: OSDTIP()

Posted: 27 Jul 2020, 09:20
by ozzii
For me the 2 looks fine ;)
What you think it's better, this is what I will use....

Re: OSDTIP()

Posted: 27 Jul 2020, 10:50
by SKAN
jNizM wrote:
27 Jul 2020, 07:35
Looks great so far 👍
But I think the original color codes fit better. Or am I just blind.
Maybe it looks too punchy because of large fonts. I have toned down the default text size.
 
Where can I find original color codes?
I screen picked the following colors from : https://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=common-alert-messages
which is slightly different from color specified in bootstrap CSS : https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css
Alert3.png
Alert3.png (7.81 KiB) Viewed 873 times
 
Without an Icon, Info and Success look too close!
These colors can be over-ridden with parameters.. I'm only struggling to fix the default ones..

@ozzii :thumbup: :)
I think I will finalize the above color scheme as default. Hope you are ok with it.

Re: OSDTIP()

Posted: 27 Jul 2020, 17:26
by SKAN
@ozzii

Hi, refer next post for documentation and main post for the function.
Please let me know any glitches.

:)