473,657 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ScrollableContr ol Problems

Hello,

I'm trying to create my own control derived from ScrollableContr ol
public partial class qViewer : ScrollableContr ol{
public qViewer() {
VScroll = true;
AutoScroll = true;
}
...
}

I override the OnPaint method with my own code,
however the scrollbars never shows though my drawings exceed the Control
size.

Thanks In Advance
Yehia A.Salm

Sep 26 '06 #1
6 4402
Hi Yehia,

ScrollableContr ol ensures that scroll bars will be visible if nested controls exceed the visible client area. It has nothing to do
with what is drawn on the control.

If you want to have scroll bars appear when your drawing exceeds the size of the visible client area, then you can use two ScrollBar
Controls. Use one as the horizontal bar and one as the vertical bar. Calculate the appropriate size and position of each scroll
box from the size of your Control's client area (minus the size of the scroll bars) and the size of your drawing.

You'll have to handle the Resize event as well if you want your Control to function properly.

--
Dave Sexton

"Yehia A.Salam" <ye*****@hotmai l.comwrote in message news:AA******** *************** ***********@mic rosoft.com...
Hello,

I'm trying to create my own control derived from ScrollableContr ol
public partial class qViewer : ScrollableContr ol{
public qViewer() {
VScroll = true;
AutoScroll = true;
}
...
}

I override the OnPaint method with my own code,
however the scrollbars never shows though my drawings exceed the Control size.

Thanks In Advance
Yehia A.Salm

Sep 26 '06 #2
but I always used to do it by the WS_VSCROLL style and then trapping the
WM_VSCROLL message in my old c++, but now it's really hard to accomplish
with the c# api limitation(no limitations here but rather hard to accomplish
requires more lines) , should I used the supplied VScrollBar control, is
there any limitation using this control, and what's the difference between
using the two methods?

>ScrollableCont rol ensures that scroll bars will be visible if nested
controls exceed the visible client area. It has nothing to do
with what is drawn on the control.

If you want to have scroll bars appear when your drawing exceeds the size
of the visible client area, then you can use two ScrollBar Controls. Use
one as the horizontal bar and one as the vertical bar. Calculate the
appropriate size and position of each scroll box from the size of your
Control's client area (minus the size of the scroll bars) and the size of
your drawing.

You'll have to handle the Resize event as well if you want your Control to
function properly.

--
Dave Sexton

"Yehia A.Salam" <ye*****@hotmai l.comwrote in message
news:AA******** *************** ***********@mic rosoft.com...
>Hello,

I'm trying to create my own control derived from ScrollableContr ol
public partial class qViewer : ScrollableContr ol{
public qViewer() {
VScroll = true;
AutoScroll = true;
}
...
}

I override the OnPaint method with my own code,
however the scrollbars never shows though my drawings exceed the Control
size.

Thanks In Advance
Yehia A.Salm

Sep 29 '06 #3
Hi Yehia,

You won't receive a WS_VSCROLL message unless you have scrollbars but they won't appear unless you have Controls that are partially
or completely outside of the ScrollableContr ol's visible area. In other words, you won't be able to accomplish this using the
scroll messages unless you add your own scrollbars as I suggested.

There might be an easier way that you can accomplish this but I haven't tested it myself. Please let me know if this works for you:

1. Derive from Control and perform all your drawing operations as necessary in an OnPaint method override (this will be your drawing
surface). Make sure that the Control's ClientRectangle is always equal to the calculated bounding rectangle of your drawing so that
the surface of the Control will not clip the drawing at all (i.e. the Control's size should never be smaller than your drawing's
size). You can handle the Resize event to prevent the Control from being resized smaller than your drawing's bounding rectangle.
Any time the size of your drawing must change, recalculate the size of the bounding rectangle and set the Control's size
accordingly.

2. Derive another class from Panel or ScrollableContr ol and add the previous Control as a private, nested class within its
declaration.
3. In the constructor of your second control add a new instance of your nested Control to the Controls collection and set its
location to {0, 0}.
4. Optionally, you can create a subclassed ControlCollecti on for your second control that prevents other controls from being added.
(Override CreateControlCo llection method.)
5. Set the AutoScroll and other scroll properties of the second control (the ScrollableContr ol container) as you desire.

The trick here would be ensuring that the drawing surface control is always the size of the drawing. The container should
automatically handle the scrollbars for you.

HTH

--
Dave Sexton

"Yehia A.Salam" <ye*****@hotmai l.comwrote in message news:7C******** *************** ***********@mic rosoft.com...
but I always used to do it by the WS_VSCROLL style and then trapping the WM_VSCROLL message in my old c++, but now it's really
hard to accomplish with the c# api limitation(no limitations here but rather hard to accomplish requires more lines) , should I
used the supplied VScrollBar control, is there any limitation using this control, and what's the difference between using the two
methods?

>>ScrollableCon trol ensures that scroll bars will be visible if nested controls exceed the visible client area. It has nothing to
do
with what is drawn on the control.

If you want to have scroll bars appear when your drawing exceeds the size of the visible client area, then you can use two
ScrollBar Controls. Use one as the horizontal bar and one as the vertical bar. Calculate the appropriate size and position of
each scroll box from the size of your Control's client area (minus the size of the scroll bars) and the size of your drawing.

You'll have to handle the Resize event as well if you want your Control to function properly.

--
Dave Sexton

"Yehia A.Salam" <ye*****@hotmai l.comwrote in message news:AA******** *************** ***********@mic rosoft.com...
>>Hello,

I'm trying to create my own control derived from ScrollableContr ol
public partial class qViewer : ScrollableContr ol{
public qViewer() {
VScroll = true;
AutoScroll = true;
}
...
}

I override the OnPaint method with my own code,
however the scrollbars never shows though my drawings exceed the Control size.

Thanks In Advance
Yehia A.Salm


Sep 29 '06 #4
You won't receive a WS_VSCROLL message unless you have scrollbars but they
won't appear unless you have Controls that are partially or completely
outside of the ScrollableContr ol's visible area. In other words, you
won't be able to accomplish this using the scroll messages unless you add
your own scrollbars as I suggested.
I am not sure that my question was clear, WS_VSCROLL is a parameter used in
the CreateWindowEx used to give a control scrollbars with no hwnd and then I
can receive the WM_VSCROLL message normally, but this seems not encouraged
in c# with all the api limitation so I was just asking if there any
difference between the using the vscroll control or the api(except the
hwnd)?

<DIV>&quot;Da ve Sexton&quot; &lt;dave@jwa[remove.this]online.com&gt; wrote
in message news:ec******** ******@TK2MSFTN GP05.phx.gbl... </DIV>Hi Yehia,
>
You won't receive a WS_VSCROLL message unless you have scrollbars but they
won't appear unless you have Controls that are partially or completely
outside of the ScrollableContr ol's visible area. In other words, you
won't be able to accomplish this using the scroll messages unless you add
your own scrollbars as I suggested.

There might be an easier way that you can accomplish this but I haven't
tested it myself. Please let me know if this works for you:

1. Derive from Control and perform all your drawing operations as
necessary in an OnPaint method override (this will be your drawing
surface). Make sure that the Control's ClientRectangle is always equal to
the calculated bounding rectangle of your drawing so that the surface of
the Control will not clip the drawing at all (i.e. the Control's size
should never be smaller than your drawing's size). You can handle the
Resize event to prevent the Control from being resized smaller than your
drawing's bounding rectangle. Any time the size of your drawing must
change, recalculate the size of the bounding rectangle and set the
Control's size accordingly.

2. Derive another class from Panel or ScrollableContr ol and add the
previous Control as a private, nested class within its declaration.
3. In the constructor of your second control add a new instance of your
nested Control to the Controls collection and set its location to {0, 0}.
4. Optionally, you can create a subclassed ControlCollecti on for your
second control that prevents other controls from being added. (Override
CreateControlCo llection method.)
5. Set the AutoScroll and other scroll properties of the second control
(the ScrollableContr ol container) as you desire.

The trick here would be ensuring that the drawing surface control is
always the size of the drawing. The container should automatically handle
the scrollbars for you.

HTH

--
Dave Sexton

"Yehia A.Salam" <ye*****@hotmai l.comwrote in message
news:7C******** *************** ***********@mic rosoft.com...
>but I always used to do it by the WS_VSCROLL style and then trapping
the WM_VSCROLL message in my old c++, but now it's really hard to
accomplish with the c# api limitation(no limitations here but rather hard
to accomplish requires more lines) , should I used the supplied
VScrollBar control, is there any limitation using this control, and
what's the difference between using the two methods?

>>>ScrollableCo ntrol ensures that scroll bars will be visible if nested
controls exceed the visible client area. It has nothing to do
with what is drawn on the control.

If you want to have scroll bars appear when your drawing exceeds the
size of the visible client area, then you can use two ScrollBar
Controls. Use one as the horizontal bar and one as the vertical bar.
Calculate the appropriate size and position of each scroll box from the
size of your Control's client area (minus the size of the scroll bars)
and the size of your drawing.

You'll have to handle the Resize event as well if you want your Control
to function properly.

--
Dave Sexton

"Yehia A.Salam" <ye*****@hotmai l.comwrote in message
news:AA****** *************** *************@m icrosoft.com...
Hello,

I'm trying to create my own control derived from ScrollableContr ol
public partial class qViewer : ScrollableContr ol{
public qViewer() {
VScroll = true;
AutoScroll = true;
}
...
}

I override the OnPaint method with my own code,
however the scrollbars never shows though my drawings exceed the
Control size.

Thanks In Advance
Yehia A.Salm


Sep 30 '06 #5
Hi Yehia,
I am not sure that my question was clear,
I mistakenly referred to WS_ instead of WM_ in my response. I guess my answer wasn't that clear either ;)

<snip>
but this seems not encouraged in c# with all the api limitation
I don't know of the limitations to which you are referring. I don't think there is any reason why you couldn't force scrollbars
using P/Invoke but it might not be recommended due to the fact that the managed control won't be "aware" of such a change. IMO,
it's perfectly reasonable for you to do so, if you're prepared to write the required functionality as well. Maybe someone else
would like to give some of their insight on this topic.
so I was just asking if there any difference between the using the vscroll control or the api(except the hwnd)?
For one thing, the VScrollBar control is managed and provides events and other ways to control and interact with the scroll bar so
that you won't have to respond to Windows messages. It doesn't make much sense to use the API directly unless you can't get what
you need from the managed control, which is doubtful. (I believe the VScrollBar class is just a managed wrapper for an unmanaged
vscroll class, IIRC).

Another thing is that since VScrollBar is a control you can place it anywhere you'd like, including outside of the control that it's
scrolling. You can't do that easily with the API, IMO.

Forcing scrollbars won't help you (via WS_VSCROLL) unless you're prepared to code all of the functionality yourself. I tried to
give you another solution that I had just thought of, so you wouldn't have to deal with messages and scrollbars in code. I know
that it didn't answer your question exactly, but I was just trying to help you avoid some extra work :)

--
Dave Sexton

"Yehia A.Salam" <ye*****@hotmai l.comwrote in message news:A7******** *************** ***********@mic rosoft.com...
>You won't receive a WS_VSCROLL message unless you have scrollbars but they won't appear unless you have Controls that are
partially or completely outside of the ScrollableContr ol's visible area. In other words, you won't be able to accomplish this
using the scroll messages unless you add your own scrollbars as I suggested.

I am not sure that my question was clear, WS_VSCROLL is a parameter used in the CreateWindowEx used to give a control scrollbars
with no hwnd and then I can receive the WM_VSCROLL message normally, but this seems not encouraged in c# with all the api
limitation so I was just asking if there any difference between the using the vscroll control or the api(except the hwnd)?

<DIV>&quot;Da ve Sexton&quot; &lt;dave@jwa[remove.this]online.com&gt; wrote in message
news:ec******** ******@TK2MSFTN GP05.phx.gbl... </DIV>Hi Yehia,
>>
You won't receive a WS_VSCROLL message unless you have scrollbars but they won't appear unless you have Controls that are
partially or completely outside of the ScrollableContr ol's visible area. In other words, you won't be able to accomplish this
using the scroll messages unless you add your own scrollbars as I suggested.

There might be an easier way that you can accomplish this but I haven't tested it myself. Please let me know if this works for
you:

1. Derive from Control and perform all your drawing operations as necessary in an OnPaint method override (this will be your
drawing surface). Make sure that the Control's ClientRectangle is always equal to the calculated bounding rectangle of your
drawing so that the surface of the Control will not clip the drawing at all (i.e. the Control's size should never be smaller than
your drawing's size). You can handle the Resize event to prevent the Control from being resized smaller than your drawing's
bounding rectangle. Any time the size of your drawing must change, recalculate the size of the bounding rectangle and set the
Control's size accordingly.

2. Derive another class from Panel or ScrollableContr ol and add the previous Control as a private, nested class within its
declaration.
3. In the constructor of your second control add a new instance of your nested Control to the Controls collection and set its
location to {0, 0}.
4. Optionally, you can create a subclassed ControlCollecti on for your second control that prevents other controls from being
added. (Override CreateControlCo llection method.)
5. Set the AutoScroll and other scroll properties of the second control (the ScrollableContr ol container) as you desire.

The trick here would be ensuring that the drawing surface control is always the size of the drawing. The container should
automaticall y handle the scrollbars for you.

HTH

--
Dave Sexton

"Yehia A.Salam" <ye*****@hotmai l.comwrote in message news:7C******** *************** ***********@mic rosoft.com...
>>but I always used to do it by the WS_VSCROLL style and then trapping the WM_VSCROLL message in my old c++, but now it's really
hard to accomplish with the c# api limitation(no limitations here but rather hard to accomplish requires more lines) , should I
used the supplied VScrollBar control, is there any limitation using this control, and what's the difference between using the
two methods?
ScrollableC ontrol ensures that scroll bars will be visible if nested controls exceed the visible client area. It has nothing
to do
with what is drawn on the control.

If you want to have scroll bars appear when your drawing exceeds the size of the visible client area, then you can use two
ScrollBar Controls. Use one as the horizontal bar and one as the vertical bar. Calculate the appropriate size and position of
each scroll box from the size of your Control's client area (minus the size of the scroll bars) and the size of your drawing.

You'll have to handle the Resize event as well if you want your Control to function properly.

--
Dave Sexton

"Yehia A.Salam" <ye*****@hotmai l.comwrote in message news:AA******** *************** ***********@mic rosoft.com...
Hello,
>
I'm trying to create my own control derived from ScrollableContr ol
public partial class qViewer : ScrollableContr ol{
public qViewer() {
VScroll = true;
AutoScroll = true;
}
...
}
>
I override the OnPaint method with my own code,
however the scrollbars never shows though my drawings exceed the Control size.
>
Thanks In Advance
Yehia A.Salm



Sep 30 '06 #6
yea u're right no pointing in reinventing the wheel, I'll just use the
VScrollBar control, Thanks for the answer

<DIV>&quot;Da ve Sexton&quot; &lt;dave@jwa[remove.this]online.com&gt; wrote
in message news:%2******** **********@TK2M SFTNGP05.phx.gb l...</DIV>Hi
Yehia,
>
>I am not sure that my question was clear,

I mistakenly referred to WS_ instead of WM_ in my response. I guess my
answer wasn't that clear either ;)

<snip>
>but this seems not encouraged in c# with all the api limitation

I don't know of the limitations to which you are referring. I don't think
there is any reason why you couldn't force scrollbars using P/Invoke but
it might not be recommended due to the fact that the managed control won't
be "aware" of such a change. IMO, it's perfectly reasonable for you to do
so, if you're prepared to write the required functionality as well. Maybe
someone else would like to give some of their insight on this topic.
>so I was just asking if there any difference between the using the
vscroll control or the api(except the hwnd)?

For one thing, the VScrollBar control is managed and provides events and
other ways to control and interact with the scroll bar so that you won't
have to respond to Windows messages. It doesn't make much sense to use
the API directly unless you can't get what you need from the managed
control, which is doubtful. (I believe the VScrollBar class is just a
managed wrapper for an unmanaged vscroll class, IIRC).

Another thing is that since VScrollBar is a control you can place it
anywhere you'd like, including outside of the control that it's scrolling.
You can't do that easily with the API, IMO.

Forcing scrollbars won't help you (via WS_VSCROLL) unless you're prepared
to code all of the functionality yourself. I tried to give you another
solution that I had just thought of, so you wouldn't have to deal with
messages and scrollbars in code. I know that it didn't answer your
question exactly, but I was just trying to help you avoid some extra work
:)

--
Dave Sexton

"Yehia A.Salam" <ye*****@hotmai l.comwrote in message
news:A7******** *************** ***********@mic rosoft.com...
>>You won't receive a WS_VSCROLL message unless you have scrollbars but
they won't appear unless you have Controls that are partially or
completely outside of the ScrollableContr ol's visible area. In other
words, you won't be able to accomplish this using the scroll messages
unless you add your own scrollbars as I suggested.

I am not sure that my question was clear, WS_VSCROLL is a parameter used
in the CreateWindowEx used to give a control scrollbars with no hwnd and
then I can receive the WM_VSCROLL message normally, but this seems not
encouraged in c# with all the api limitation so I was just asking if
there any difference between the using the vscroll control or the
api(except the hwnd)?

<DIV>&quot;Dav e Sexton&quot; &lt;dave@jwa[remove.this]online.com&gt;
wrote in message news:ec******** ******@TK2MSFTN GP05.phx.gbl... </DIV>Hi
Yehia,
>>>
You won't receive a WS_VSCROLL message unless you have scrollbars but
they won't appear unless you have Controls that are partially or
completely outside of the ScrollableContr ol's visible area. In other
words, you won't be able to accomplish this using the scroll messages
unless you add your own scrollbars as I suggested.

There might be an easier way that you can accomplish this but I haven't
tested it myself. Please let me know if this works for you:

1. Derive from Control and perform all your drawing operations as
necessary in an OnPaint method override (this will be your drawing
surface). Make sure that the Control's ClientRectangle is always equal
to the calculated bounding rectangle of your drawing so that the surface
of the Control will not clip the drawing at all (i.e. the Control's size
should never be smaller than your drawing's size). You can handle the
Resize event to prevent the Control from being resized smaller than your
drawing's bounding rectangle. Any time the size of your drawing must
change, recalculate the size of the bounding rectangle and set the
Control's size accordingly.

2. Derive another class from Panel or ScrollableContr ol and add the
previous Control as a private, nested class within its declaration.
3. In the constructor of your second control add a new instance of your
nested Control to the Controls collection and set its location to {0,
0}.
4. Optionally, you can create a subclassed ControlCollecti on for your
second control that prevents other controls from being added. (Override
CreateControl Collection method.)
5. Set the AutoScroll and other scroll properties of the second control
(the ScrollableContr ol container) as you desire.

The trick here would be ensuring that the drawing surface control is
always the size of the drawing. The container should automatically
handle the scrollbars for you.

HTH

--
Dave Sexton

"Yehia A.Salam" <ye*****@hotmai l.comwrote in message
news:7C****** *************** *************@m icrosoft.com...
but I always used to do it by the WS_VSCROLL style and then trapping
the WM_VSCROLL message in my old c++, but now it's really hard to
accomplish with the c# api limitation(no limitations here but rather
hard to accomplish requires more lines) , should I used the supplied
VScrollBar control, is there any limitation using this control, and
what's the difference between using the two methods?
>Scrollable Control ensures that scroll bars will be visible if nested
>controls exceed the visible client area. It has nothing to do
with what is drawn on the control.
>
If you want to have scroll bars appear when your drawing exceeds the
size of the visible client area, then you can use two ScrollBar
Controls. Use one as the horizontal bar and one as the vertical bar.
Calculate the appropriate size and position of each scroll box from
the size of your Control's client area (minus the size of the scroll
bars) and the size of your drawing.
>
You'll have to handle the Resize event as well if you want your
Control to function properly.
>
--
Dave Sexton
>
"Yehia A.Salam" <ye*****@hotmai l.comwrote in message
news:AA**** *************** *************** @microsoft.com. ..
>Hello,
>>
>I'm trying to create my own control derived from ScrollableContr ol
>public partial class qViewer : ScrollableContr ol{
> public qViewer() {
> VScroll = true;
> AutoScroll = true;
> }
> ...
>}
>>
>I override the OnPaint method with my own code,
>however the scrollbars never shows though my drawings exceed the
>Control size.
>>
>Thanks In Advance
>Yehia A.Salm
>
>


Sep 30 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
2316
by: Jim Hubbard | last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework? Not if you are unaware of the 1,596 issues listed at KBAlertz (http://www.kbalertz.com/technology_3.aspx). If you are going to use .Net......I highly recommend signing up for the free KBAlertz newsletter at http://www.kbalertz.com/default.aspx. Looking at all of the errors and quirks sometimes makes me wonder if this thing is really ready for prime time.
1
3039
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
5
8792
by: Corky | last post by:
This works: db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID = PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) - DAYS(PROBLEMS.CLOSE_DATE)) = 365 AND PROBLEMS.CLOSE_DATE IS NOT NULL But this doesn't: db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS
10
2401
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ComboBox.SelectedValue = db_value; If the db_value was not included in the ComboBox value list the ComboBox.SelectedIndex used to return -1, Now the very same code is
1
4341
by: Gates72 | last post by:
Hi Gurus, I am attempting to derive a User Control from the ScrollableControl class. I need to have control over which scrollbars get displayed. According to MSDN: "To manually override which scroll bars are visible, set the VScroll and HScroll properties. If either property is set to false, the corresponding scroll bar will not be
2
3169
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the problems that I have encountered to date and the solutions (if any) that I found. http://users.adelphia.net/~brianpclab/ServerControlCollectionIssues.htm This page also has all of the source code in a compressed file that you are free to download...
0
1387
by: Bob | last post by:
I implemented a ScrollableControl and only want vertical scrolling. Every time I make the form smaller then the control the control has h scroll bars even though I set it to false. I have the control anchored to all four corners. I watched the resize event and for some reason even if i keep setting hscroll to false it gets set back to true. Thanks! FromMSDN. To manually override which scroll bars are visible, set the VScroll and...
0
2238
by: Sergistm | last post by:
Hello World, :D I have a problem that it is making me crazy, I hope you can help me. I'm trying to execute a .exe file with the Procces.Start, and there is no problem when the file is on my computer, the problem comes when the file is in a network drive. The most amazing thing is that in one computer I can execute my .Net program without problems independently if the file is
2
5568
by: Rune Jacobsen | last post by:
Hi all, I have a few questions on deriving from ScrollableControl that I hope will be relatively easy to answer. I am using Visual Studio 2003, C# and ..Net 1.1. I have this custom control I am making called ResourceView. It is supposed to show a visual overview of resource usage over time. Time is represented by the X axis, and the different resources (people, equipment, rooms etc.) are in the Y axis. Usually one will view a
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.