SLE Background?

This forum is meant for questions and discussions about the X# language and tools
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

SLE Background?

Post by FFF »

Strangely, i never used the background property of SLE...
- now i want to change it and fail at securing the "old" Background prior to any action.

On a Vo-style datawindow, in my sle class' constructor, i added a
SELF:oOldBrush:= SELF:Background
Debugging, i get SELF:Background is NULL - why?
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
Chris
Posts: 4898
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: SLE Background?

Post by Chris »

Hi Karl,

I think that means that there's no specific color used, VO just allows the OS to draw the control with the default color.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
ArneOrtlinghaus
Posts: 412
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

Re: SLE Background?

Post by ArneOrtlinghaus »

Yes, the background brush is only set when a non standard background is set by the program. Otherwise the standard functionality is used. If the Windows XP Themes are enabled, brushes are seldomly used because they cannot interfere correctly with the complex Theme rendering. In previous times (Theme support not enabled) brushes were useable much more.

Arne
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Re: SLE Background?

Post by FFF »

Chris, Arne,
thx for explaining. Indeed it works backwards, too, ie, a background set by the designer dissappears, when the property is set to Null.

Another pit i stumbled into was this:
SELF:oBG :=Brush{Colorred}
which produced neither warning nor error. After some thinking, i now understand: a define internally is a number, which suffices as a usual ;-)

Time to advance finally to the typed gui classes - i take it, these would throw here an error?
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
Kees Bouw
Posts: 119
Joined: Wed Nov 06, 2019 11:35 am
Location: Netherlands

Re: SLE Background?

Post by Kees Bouw »

A related question:

Is it possible to give the SLE's on VO-forms rounded corners in Windows 10, like they have automatically in Windows 11? Our clients like the rounded corners very much, but they also prefer Windows 10 over Windows 11.

Kees.
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: SLE Background?

Post by wriedmann »

Hi Kees,
Windows 10 goes out of maintenance in about a year, so your clients should upgrade.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: SLE Background?

Post by wriedmann »

Hi Karl,
the typed GUI classes are a lot better, but be prepared to some side effects because of strong typing.
And currently there is no bBrowser for them.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
ArneOrtlinghaus
Posts: 412
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

Re: SLE Background?

Post by ArneOrtlinghaus »

Yes, technically it is possible to have the round corners, but it may cost so much that the customer surely will not want to pay for it. :-)

Now we use the expensive Devexpress controls library together with Winforms windows and the design of the controls is now with round corners. The devexpress library makes its own rendering which costs also additional time to show the whole windows. There may be also some other libraries that make some "Scinning".

I would recommend to speak about security with the customer.
According to the statistics it seems much more safe to use Win 11 instead of Win 10.
From October 2025 Win 10 will not receive normal updates anymore.
Of course unfortunately there may be heavy hints: Many PCs cannot be converted to Win 11. So it is worth to make already some plans about Autumn next year.

So it is time to begin to convert the PCs where possible and to use Win 11 with all new PCs.

In our company we also have still more Win 10-PCs than Win 11-PCs. But the move to Win 11 has started.

Arne
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: SLE Background?

Post by wriedmann »

Hi Arne,
one thing about PCs not more compatible with Windows 11: they are at least 7 years old, so they have done their service for business use.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
ArneOrtlinghaus
Posts: 412
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

Re: SLE Background?

Post by ArneOrtlinghaus »

Hi Wolfgang,

in my eyes many PCs are still useable for work, as much of the heavy calculation work resides on servers. So this should not be the point of decision.

I still ask me if the Microsoft decisions were really only security reasons, same with the coming "IA-Chips".

But we are forced to follow what Microsoft decides and we must be glad that we make programs for such a successful operating system.

Arne
Post Reply