Page 1 of 2

IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Thu Feb 08, 2024 3:48 pm
by INFORMAISVRB

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Thu Feb 08, 2024 5:43 pm
by vilian

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Fri Feb 09, 2024 1:42 am
by Otto
Hello,
I recommend using WebView2.
The painting of the TSwitch in OVALSTYLE could be improved.

Best regards,
Otto

webview2
Image

FW
Image

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Fri Feb 09, 2024 2:46 pm
by INFORMAISVRB
WebView2

is it functional ?

how to use ?

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Fri Feb 09, 2024 6:20 pm
by Antonio Linares
> WebView2

Si

> is it functional ?

Yes!

> how to use ?

Please review webview*.prg examples in FWH\samples

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Fri Feb 09, 2024 7:44 pm
by TimStone
A response is given to look at TSwitch control.
A further response is given that the control is incomplete because it doesn't have a prompt ability, nor does it have resource implementation

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Fri Feb 09, 2024 7:56 pm
by Antonio Linares
Dear Tim,

I fully agree with you

WebView is opening new possibilities but users should not be forced to use it

FWH provides a Class TSwitch that includes a ::lOvalStyle

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Fri Feb 09, 2024 8:12 pm
by Otto
Tim,
The challenge of integrating modern UI elements into traditional applications involves technological compromises and economic constraints.

The cost of updates, for example for TSwitch, can outweigh the benefits, leading to a difficult balance between innovation and financial feasibility.

I'm not very familiar with this, but I think one would need to reprogram FIVEWIN from the traditional Windows API (WinAPI) to WinUI,
which is the latest and most modern user interface library for Windows, to achieve nearly the same results on the desktop.

Best regards,
Otto

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Fri Feb 09, 2024 9:27 pm
by TimStone
was tSwitch updated to provide for the use in resource files ?

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Fri Feb 09, 2024 9:42 pm
by Marc Venken
WebView could also become a separate forum ?

In all cases Webview is not interesting for people that are not willing to use it. It would keep the forum more on topic.

In Belgium there was a serious hack. 320.000 peoples data were stolen. Since then we are getting phonecalls from the other side of the world, putting down in hope that people call back on a heavy cost phoneline.
There are always people not smart and looking and call back.

For me... no online data

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Fri Feb 09, 2024 11:53 pm
by TimStone
Thankfully, FWH has given us tools to take advantage of those web services we do need.

Of course, I was asking a question about an existing control, and I only wanted to know if it now worked with resources. I don't have to use it. My clients are fine with a checkbox for logicals, but since they see it in other applications, IF it were available, I could use it.

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Sat Feb 10, 2024 12:39 am
by Otto
Tim,
Please explain to me why you need the internet for WebView2 or mod_harbour.
It works wonderfully on a local network or even on a single PC.

Best regards,
Otto

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Sat Feb 10, 2024 12:47 am
by TimStone
Why would I re-write a very complex program with over 100,000 lines of code, to use on a network, when it works perfectly on one now, is rock solid, incredibly fast, and completely satisfies my clients? How would they benefit?

If it was a New program, fine, but I see no gain from doing all of that with this one.

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Sat Feb 10, 2024 1:16 am
by Otto
Tim,
Do you see your preconceived opinion?

Now, because it turns out that you are completely wrong with your claim that it needs the internet,
you list a series of points that have nothing to do with the matter.

The fact is, you don't need the internet for WebView2 and mod_harbour.

And that's where the whole problem started. These preconceived opinions.

And that's unfortunate because you have the reputation of an expert in this group, and it unsettles the less experienced.

Please be fair and admit that I am right, there is no need for the internet for webview2 and mod harbour.

Best regards,
Otto

Re: IS IT POSSIBLE TO MAKE THIS CONTROL

PostPosted: Sat Feb 10, 2024 1:28 am
by TimStone
Seriously, this is ridiculous. I accepted your solution can be used on a network in my last comment.

All I asked is if tSwitch can now work with resources since Nages said elsewhere it couldn’t.

No problem. I’m done. I don’t really need an answer. Bye.