View Single Post
  #18  
Old October 25th 19, 08:23 AM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default desktop icons - change grid offset ?

John,

How many controls do you see in the below picture - and I don't mean the
ones in the caption bar of the window itself :
http://zetcode.com/img/gui/winapi/statictext.png


None.


There you have it. A problem with the definition of the word "control".

And is therefore not a "control", as most people would use the term.


I'm not "most people", and neither are you. Both of us have done "something"
in programming, using multiple languages even. But does it really matter ?
We had a problem in communication, which now has been solved.

I don't think I know anyone who would call a progress bar a control.


Actually, you've known someone who does, and for quite a while now: me. :-)

Also everyone who designs user interfaces (read: a window/dialog with stuff
on it) will. Most definitily if he's a programmer too. Microsoft has
always called them that (guess where I got my clue from), with an example
here :
https://docs.microsoft.com/en-us/win...guide/controls

In earlier posts, you said you were moving (what _you_ call, I now see) a
"control" that contains the icons. It now sounds as if you're referring to
something transparent, and thus probably invisible.


The control has been made invisible (actually, it simply does not erase its
background and has its border-drawing disabeled, meaning that whatever
should be behind it stays visible), not its contents (the icons).

I'm puzzled how you (a) move such a thing, (b) know that you've done so.


a) You use one of Windows own functions to tell the control to position
itself somewhere else (function in case: MoveWindow. Or SetWindowPos. Both
work).

b) the icons that are placed on the control move with it. As the icons move
I know that the control must have moved. But, I've also, as a test, enabled
the controls build-in border-drawing (by flipping a single bit in its
"style" property). Seeing that border appear and change position when I
tell the control to move does give me some confidence that I actually did
so. :-)

Regards,
Rudy Wieser


Ads