wbOmnibus - Dialogs & Events & Trackbars

Started by JTaylor, January 28, 2025, 01:02:39 PM

Previous topic - Next topic

JTaylor

I recently had an Epiphany while working on the WebView2 Extender (it is now bundled in the main release.  You are responsible for downloading Runtime. Link in Help file.)

I realized that I could update an Editbox from within my Extender and trigger the Dialog Callback Function.  This made me think about my Event functions in the Dialog Extender.  As a result, that has been reworked.  Actually, the old way is there so I didn't break anything but the new stuff is SO MUCH BETTER.  You no longer need to use the Timer Event.


With the use of an Editbox you define for the purpose (it can be set to Invisible), the Event messages are posted to the Editbox which triggers the standard Editbox Event.  You can then take action based on the posted text.

Another big plus (assuming someone doesn't point out something I have missed all these years), is you can interrogate the editbox from anywhere in the script so if you use the Keyboard Event and you are off in a Loop in a SubRoutine and you want to cancel the Loop by pressing Esc, you can now do that.  This has been a huge pain for me.  Of course, you can catch any of the keystrokes, for whatever purpose.

I have also added Events for the Trackbar control, which makes things MUCH EASIER.  I added trCreateTrackBarEx() so as to not break things.

http://www.jtdata.com/anonymous/wbOmnibus.zip

Please do read the Help as there are some things that are critical you know.  You will find Events under the Dialogs section. 

Jim