1. WinClass question for Al

How do you minimize a window with WinClass.ew?

Don Cole
 A Bug is an un-documented feature.
A Feature is a documented Bug.

new topic     » topic index » view message » categorize

2. Re: WinClass question for Al

don cole wrote:
> 
> 
> How do you minimize a window with WinClass.ew?
> 
> Don Cole
>  A Bug is an un-documented feature.
> A Feature is a documented Bug.

Hi there Don,

I've never needed to do this, but i guess it would be:

object void
void=ShowWindow(GetHandle(WindowID),SW_MINIMIZE)

which is using "ShowWindow" to change the show state of the window.

In that function call:
  'GetHandle' is used to get the actual window handle from the window id,
  (where the window id is returned from the Create call)
  and the possible values to use as second param (SW_MINIMIZE shown above)
  are:

Value
  /Meaning

SW_HIDE
  /Hides the window and activates another window.
SW_MAXIMIZE
  /Maximizes the specified window.
SW_MINIMIZE
  /Minimizes the specified window and activates the next 
  /top-level window in the Z order.
SW_RESTORE
  /Activates and displays the window. If the window is
  /minimized or maximized, Windows restores it to its original size
  /and position. An application should specify this flag when 
  /restoring a minimized window.
SW_SHOW
  /Activates the window and displays it in its current size and position. 
SW_SHOWDEFAULT
  /Sets the show state based on the SW_ flag specified in
  /the STARTUPINFO structure passed to the CreateProcess
  /function by the program that started the application.
  /An application should call ShowWindow with this flag to
  /set the initial show state of its main window.
SW_SHOWMAXIMIZED
  /Activates the window and displays it as a maximized window.
SW_SHOWMINIMIZED
  /Activates the window and displays it as a minimized window.
SW_SHOWMINNOACTIVE
  /Displays the window as a minimized window. The active window remains 
  /active.
SW_SHOWNA
  /Displays the window in its current state. The active window remains 
  /active.
SW_SHOWNOACTIVATE
  /Displays a window in its most recent size and position. The active
  /window remains active.
SW_SHOWNORMAL
  /Activates and displays a window. If the window is minimized or maximized,
  /Windows restores it to its original size and position. An application
  /should specify this flag when displaying the window for the first time.



Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

3. Re: WinClass question for Al

Al Getz wrote:
> 
> don cole wrote:
> > 
> > 
> > How do you minimize a window with WinClass.ew?
> > 
> > Don Cole
> >  A Bug is an un-documented feature.
> > A Feature is a documented Bug.
> 
> Hi there Don,
> 
> I've never needed to do this, but i guess it would be:
> 
> object void
> void=ShowWindow(GetHandle(WindowID),SW_MINIMIZE)
> 
> which is using "ShowWindow" to change the show state of the window.
> 
> In that function call:
>   'GetHandle' is used to get the actual window handle from the window id,
>   (where the window id is returned from the Create call)
>   and the possible values to use as second param (SW_MINIMIZE shown above)
>   are:
> 
> Value
>   /Meaning
> 
> SW_HIDE
>   /Hides the window and activates another window.
> SW_MAXIMIZE
>   /Maximizes the specified window.
> SW_MINIMIZE
>   /Minimizes the specified window and activates the next 
>   /top-level window in the Z order.
> SW_RESTORE
>   /Activates and displays the window. If the window is
>   /minimized or maximized, Windows restores it to its original size
>   /and position. An application should specify this flag when 
>   /restoring a minimized window.
> SW_SHOW
>   /Activates the window and displays it in its current size and position. 
> SW_SHOWDEFAULT
>   /Sets the show state based on the SW_ flag specified in
>   /the STARTUPINFO structure passed to the CreateProcess
>   /function by the program that started the application.
>   /An application should call ShowWindow with this flag to
>   /set the initial show state of its main window.
> SW_SHOWMAXIMIZED
>   /Activates the window and displays it as a maximized window.
> SW_SHOWMINIMIZED
>   /Activates the window and displays it as a minimized window.
> SW_SHOWMINNOACTIVE
>   /Displays the window as a minimized window. The active window remains 
>   /active.
> SW_SHOWNA
>   /Displays the window in its current state. The active window remains 
>   /active.
> SW_SHOWNOACTIVATE
>   /Displays a window in its most recent size and position. The active
>   /window remains active.
> SW_SHOWNORMAL
>   /Activates and displays a window. If the window is minimized or maximized,
>   /Windows restores it to its original size and position. An application
>   /should specify this flag when displaying the window for the first time.
> 
> 
> Take care,
> Al
> 
> And, good luck with your Euphoria programming!
> 
> My bumper sticker: "I brake for LED's"


Thank you Al ,

As you may have figured out I am trying to add the zoom feature to your 
Euviewer 3 SlideShow.

I need that as a POS key (parrent over sholder).

Don Cole
 A Bug is an un-documented feature.
A Feature is a documented Bug.

new topic     » goto parent     » topic index » view message » categorize

4. Re: WinClass question for Al

don cole wrote:
> 
> Thank you Al ,
> 
> As you may have figured out I am trying to add the zoom feature to your 
> Euviewer 3 SlideShow.
> 
> I need that as a POS key (parrent over sholder).
> 
> Don Cole
>  A Bug is an un-documented feature.
> A Feature is a documented Bug.

Hi Don,


I was hoping you were working on that :)
Cant wait to see how it turns out.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

5. Re: WinClass question for Al

don cole wrote:
> 
> Al Getz wrote:
> > 
> > don cole wrote:
> > > 
> > > 
> > > How do you minimize a window with WinClass.ew?
> > > 
> > > Don Cole
> > >  A Bug is an un-documented feature.
> > > A Feature is a documented Bug.
> > 
> > Hi there Don,
> > 
> > I've never needed to do this, but i guess it would be:
> > 
> > object void
> > void=ShowWindow(GetHandle(WindowID),SW_MINIMIZE)

I using void=ShowWindow(MainApWindow,SW_MINIMIZE) rather than GetHandle.

By the way did you read the post about the interview and oop being made as 

complicated as posible.

Don Cole
 A Bug is an un-documented feature.
A Feature is a documented Bug.

new topic     » goto parent     » topic index » view message » categorize

6. Re: WinClass question for Al

don cole wrote:
> 
> don cole wrote:
> > 
> > Al Getz wrote:
> > > 
> > > don cole wrote:
> > > > 
> > > > 
> > > > How do you minimize a window with WinClass.ew?
> > > > 
> > > > Don Cole
> > > >  A Bug is an un-documented feature.
> > > > A Feature is a documented Bug.
> > > 
> > > Hi there Don,
> > > 
> > > I've never needed to do this, but i guess it would be:
> > > 
> > > object void
> > > void=ShowWindow(GetHandle(WindowID),SW_MINIMIZE)
> 
> I using void=ShowWindow(MainApWindow,SW_MINIMIZE) rather than GetHandle.
> 
> By the way did you read the post about the interview and oop being made as 
> 
> complicated as posible.
> 
> Don Cole
>  A Bug is an un-documented feature.
> A Feature is a documented Bug.

Hi there Don,

Well, if MainAppWindow is a window 'handle' then 
  void=ShowWindow(MainApWindow,SW_MINIMIZE)
will work ok, but if MainAppWindow is a window 'id' then
  void=ShowWindow(GetHandle(MainApWindow),SW_MINIMIZE)
will be required in order to get the window minimized.

What post was that about oop?  I'll surely read it...sounds
interesting although already it sounds like the misconceptions
about oop but i wont say anything until i've read it :)



Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

7. Re: WinClass question for Al

Al Getz wrote:
> 
> Hi there Don,
> 
> Well, if MainAppWindow is a window 'handle' then 
>   void=ShowWindow(MainApWindow,SW_MINIMIZE)
> will work ok, but if MainAppWindow is a window 'id' then
>   void=ShowWindow(GetHandle(MainApWindow),SW_MINIMIZE)
> will be required in order to get the window minimized.
> 
> What post was that about oop?  I'll surely read it...sounds
> interesting although already it sounds like the misconceptions
> about oop but i wont say anything until i've read it :)
> 
> 
> Take care,
> Al
> 
> And, good luck with your Euphoria programming!
> 
> My bumper sticker: "I brake for LED's"


It took a while to find it.
http://www.listfilter.com/cgi-bin/esearch.exu?fromMonth=6&fromYear=1&toMonth=B&toYear=A&postedBy=&keywords=+Stroustrup%3A

Don Cole
 A Bug is an un-documented feature.
A Feature is a documented Bug.

new topic     » goto parent     » topic index » view message » categorize

8. Re: WinClass question for Al

don cole wrote:
> 
> Al Getz wrote:
> > 
> > Hi there Don,
> > 
> > Well, if MainAppWindow is a window 'handle' then 
> >   void=ShowWindow(MainApWindow,SW_MINIMIZE)
> > will work ok, but if MainAppWindow is a window 'id' then
> >   void=ShowWindow(GetHandle(MainApWindow),SW_MINIMIZE)
> > will be required in order to get the window minimized.
> > 
> > What post was that about oop?  I'll surely read it...sounds
> > interesting although already it sounds like the misconceptions
> > about oop but i wont say anything until i've read it :)
> > 
> > 
> > Take care,
> > Al
> > 
> > And, good luck with your Euphoria programming!
> > 
> > My bumper sticker: "I brake for LED's"
> 
> 
> It took a while to find it.
> <a
> href="http://www.listfilter.com/cgi-bin/esearch.exu?fromMonth=6&fromYear=1&toMonth=B&toYear=A&postedBy=&keywords=+Stroustrup%3A">http://www.listfilter.com/cgi-bin/esearch.exu?fromMonth=6&fromYear=1&toMonth=B&toYear=A&postedBy=&keywords=+Stroustrup%3A</a>
> 
> Don Cole
>  A Bug is an un-documented feature.
> A Feature is a documented Bug.

Hi Don,

I read that article and geeeeeeezzzzze, what a load 'a bull :)

First off, if you take the whole thing as truth then someone is admitting that
they
threw a 'wrench in the works' some time ago, and lied about it.  This means
there's
no telling if they are doing the exact same thing now... either in addition to
back
then, only back then, or only just now.  This of course means maybe the real
wrench
is the new one. If they were lying back then too that's not too much of an issue
right
now.  Of course there's a chance that it's not the real person anyway.

From my own experiences with oop, some one is lying NOW, or trying to throw a
 wrench
in the works NOW.  There's just too many good points about oop (oop taken by
itself
apart from C++ itself) to put it down like that and still be able to say you
have
"at least a quarter of a brain left" he he.

Also, the article sounds like it's too centered around C++ to be confused with
notes
on oop alone, but there are notes which seem to knock oop itself, even apart
from
C++, which are down right incorrect.  The worst is the part about 'reusable
code'.
I've re-used wayyyyy too much code for different programs to EVER be able to
agree
with that :)  I've even built classes from code that already existed, so i just
dont see where this guy is coming from anymore.

Maybe like Bob Fischer who after finding out the 'Russians' were cheating in top
tourny's, he's going off the deep end.


BTW, thanks for pulling that post up again.

Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

9. Re: WinClass question for Al

Al Getz wrote:
> 
> don cole wrote:

<snip link to C++ article>

> Hi Don,
> 
> I read that article and geeeeeeezzzzze, what a load 'a bull :)
> 
> First off, if you take the whole thing as truth then someone is admitting that
> they
> threw a 'wrench in the works' some time ago, and lied about it.  This means
> there's
> no telling if they are doing the exact same thing now... either in addition
> to back
> then, only back then, or only just now.  This of course means maybe the real
> wrench 
> is the new one. If they were lying back then too that's not too much of an
> issue
> right
> now.  Of course there's a chance that it's not the real person anyway.
> 
>  From my own experiences with oop, some one is lying NOW, or trying to throw
> a wrench
> in the works NOW.  There's just too many good points about oop (oop taken by
> itself
> apart from C++ itself) to put it down like that and still be able to say you
> have
> "at least a quarter of a brain left" he he.
> 
> Also, the article sounds like it's too centered around C++ to be confused with
> notes
> on oop alone, but there are notes which seem to knock oop itself, even apart
> from
> C++, which are down right incorrect.  The worst is the part about 'reusable
> code'.
> I've re-used wayyyyy too much code for different programs to EVER be able to
> agree
> with that :)  I've even built classes from code that already existed, so i
> just
> dont see where this guy is coming from anymore.
> 
> Maybe like Bob Fischer who after finding out the 'Russians' were cheating in
> top
> tourny's, he's going off the deep end.
> 
> 
> BTW, thanks for pulling that post up again.
> 
> Take care,
> Al
> 
> And, good luck with your Euphoria programming!
> 
> My bumper sticker: "I brake for LED's"

Hey, Al. The article was meant as a joke, supposedly an interview with Bjarne
Stroustrup, the creator of C++.

--
"Actually, I'm sitting on my butt staring at a computer screen."
                                                  - Tom Tomorrow

j.

new topic     » goto parent     » topic index » view message » categorize

10. Re: WinClass question for Al

Jason Gade wrote:
> 
> Al Getz wrote:
>> 
>> don cole wrote:

<snip>

> Hey, Al. The article was meant as a joke, supposedly an interview with Bjarne
> Stroustrup, the creator of C++.

Of course it is... I read other interviews with him in the past; he's bias and
advocates the language that he invented.

Regards,
Vincent

new topic     » goto parent     » topic index » view message » categorize

11. Re: WinClass question for Al

Jason Gade wrote:
> 
> Al Getz wrote:
> > 
> > don cole wrote:
> 
> <snip link to C++ article>
> 
> > Hi Don,
> > 
> > I read that article and geeeeeeezzzzze, what a load 'a bull :)
> > 
> > First off, if you take the whole thing as truth then someone is admitting
> > that
> > they
> > threw a 'wrench in the works' some time ago, and lied about it.  This means
> > there's
> > no telling if they are doing the exact same thing now... either in addition
> > to back
> > then, only back then, or only just now.  This of course means maybe the real
> > wrench 
> > is the new one. If they were lying back then too that's not too much of an
> > issue
> > right
> > now.  Of course there's a chance that it's not the real person anyway.
> > 
> >  From my own experiences with oop, some one is lying NOW, or trying to throw
> > a wrench
> > in the works NOW.  There's just too many good points about oop (oop taken by
> > itself
> > apart from C++ itself) to put it down like that and still be able to say you
> > have
> > "at least a quarter of a brain left" he he.
> > 
> > Also, the article sounds like it's too centered around C++ to be confused
> > with
> > notes
> > on oop alone, but there are notes which seem to knock oop itself, even apart
> > from
> > C++, which are down right incorrect.  The worst is the part about 'reusable
> > code'.
> > I've re-used wayyyyy too much code for different programs to EVER be able to
> > agree
> > with that :)  I've even built classes from code that already existed, so i
> > just
> > dont see where this guy is coming from anymore.
> > 
> > Maybe like Bob Fischer who after finding out the 'Russians' were cheating in
> > top
> > tourny's, he's going off the deep end.
> > 
> > 
> > BTW, thanks for pulling that post up again.
> > 
> > Take care,
> > Al
> > 
> > And, good luck with your Euphoria programming!
> > 
> > My bumper sticker: "I brake for LED's"
> 
> Hey, Al. The article was meant as a joke, supposedly an interview with Bjarne
> Stroustrup, the creator of C++.
> 
> --
> "Actually, I'm sitting on my butt staring at a computer screen."
>                                                   - Tom Tomorrow
> 
> j.


HI there Jason,

Oh that's good he he.  I had a funny feeling about that being the
real person:
 "Of course there's a chance that it's not the real person anyway"

Either way, i dont listen to anyone else's idea of what programming
should be like anyway, unless it includes some good 'hard' examples that
really are better than something else is.
I like some things about C++ and other things i dont like.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

12. Re: WinClass question for Al

Vincent wrote:
> 
> Jason Gade wrote:
> > 
> > Al Getz wrote:
> >> 
> >> don cole wrote:
> 
> <snip>
> 
> > Hey, Al. The article was meant as a joke, supposedly an interview with
> > Bjarne
> > Stroustrup, the creator of C++.
> 
> Of course it is... I read other interviews with him in the past; he's bias and
> advocates the language that he invented.
> 
> Regards,
> Vincent

Yeah, and he's the only one left using it (he he).

All kidding aside, i like some things about C++ and other things i 
kinda dont like, so i try to include the things i like in my WinClass
library and leave the crummy stuff out.  If i even go to a compiler
perhaps i'll be able to include more stuff.  I could use operator
overloading for my Sci Calculator and other math stuff that needs to
work with data types other than atom, seq, etc.  Without it you always
end up doing  "c=Add(a,b)" instead of just c=a+b when you work with
data types that can be added but are not simply sequences or atoms.
Yeah they end up being stored in sequences, but they cant be added using
Eu's sequence addition s=s1+s2.  For example addition and subtraction for
complex numbers can be done with Eu's sequence addition C=A+B but not
multiplication or division: C!=A*B and C!=A/B.



Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

13. Re: WinClass question for Al

Al Getz wrote:
> 
> Vincent wrote:
> > 
> > Jason Gade wrote:
> > > 
> > > Al Getz wrote:
> > >> 
> > >> don cole wrote:
> > 
> > <snip>
> > 
> > > Hey, Al. The article was meant as a joke, supposedly an interview with
> > > Bjarne
> > > Stroustrup, the creator of C++.
> > 
> > Of course it is... I read other interviews with him in the past; he's bias
> > and
> > advocates the language that he invented.
> > 
> > Regards,
> > Vincent
> 
> Yeah, and he's the only one left using it (he he).
> 
> All kidding aside, i like some things about C++ and other things i 
> kinda dont like, so i try to include the things i like in my WinClass
> library and leave the crummy stuff out.  If i even go to a compiler
> perhaps i'll be able to include more stuff.  I could use operator
> overloading for my Sci Calculator and other math stuff that needs to
> work with data types other than atom, seq, etc.  Without it you always
> end up doing  "c=Add(a,b)" instead of just c=a+b when you work with
> data types that can be added but are not simply sequences or atoms.
> Yeah they end up being stored in sequences, but they cant be added using
> Eu's sequence addition s=s1+s2.  For example addition and subtraction for
> complex numbers can be done with Eu's sequence addition C=A+B but not
> multiplication or division: C!=A*B and C!=A/B.
> 
> 
> Take care,
> Al
> 
> And, good luck with your Euphoria programming!
> 
> My bumper sticker: "I brake for LED's"

I think C++ has a lot of good ideas in it, but in some ways it has become like
PERL (or PERL has become like C++...) where anything non-trivial is extremely
difficult to wade through. It is almost a write-only language.

I find myself more attracted to programming language ideas and concepts than to
actual programming itself. I just don't have enough itches to scratch to write
very many programs. If I need something done with a computer, 9 times out of 10 I
can find a program or tool that will do it with minimal work on my part.

Pretty sad, actually.

I do want to restart on my Computer Language Shootout benchmarks sometime, but
with so much going on in Real Life and other things taking my attention I haven't
had the motivation to yet.

I have another idea for a program that I want to write but that, too, has
remained just an unimplemented idea.

Plus, I haven't participated much in the ESL project although I continue to
monitor it.

But back to concepts, some of the best concepts in programming I have seen are
in Euphoria. And also in a language called Io. And Qu looks interesting, too. I
love the simplicity of Forth but I think it can get out of hand with larger
projects. I don't understand Lisp or Scheme yet, even though I keep trying. I do
like the idea of anonymous functions and being able to store and pass functions
as data.

I think a programming language should be easily readable and writable by human
beings without straying too far from what the computer is actually doing. Too
much abstraction is just as difficult to understand as too little.

Object orientation has its place, but it is not the end-all be-all of
programming. I notice that people try to shoehorn every possible problem into an
object-oriented solution, and that is not always correct.



--
"Actually, I'm sitting on my butt staring at a computer screen."
                                                  - Tom Tomorrow

j.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu