1. win32r.ew & win32lib conflicts [Attn. Al]

Is there away I can work doEvents into Win32r.ew ?
I'm trying to add it but it is turning out to be quite a lengthy project.

Don Cole
sf

new topic     » topic index » view message » categorize

2. Re: win32r.ew & win32lib conflicts [Attn. Al]

don cole wrote:
> 
> 
> Is there away I can work doEvents into Win32r.ew ?
> I'm trying to add it but it is turning out to be quite a lengthy project.
> 
> Don Cole
> sf
> 

Hi Don,

Offhand i dont know.  I'd have to look and see what doEvents does in
WinLib, but what are you trying to do exactly?

Keep in mind that 'r' lib is a very old library now smile
If you take a look at the GdiPlus library wrapper in the archives
that also comes with a picture file viewer you can modify.  That
demo doesnt use a library other than GdiPlus so everything is done
in raw WinAPI.


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: win32r.ew & win32lib conflicts [Attn. Al]

Al Getz wrote:
> 
> don cole wrote:
> > 
> > 
> > Is there away I can work doEvents into Win32r.ew ?
> > I'm trying to add it but it is turning out to be quite a lengthy project.
> > 
> > Don Cole
> > sf
> > 
> 
> Hi Don,
> 
> Offhand i dont know.  I'd have to look and see what doEvents does in
> WinLib, but what are you trying to do exactly?
> 
> Keep in mind that 'r' lib is a very old library now smile
> If you take a look at the GdiPlus library wrapper in the archives
> that also comes with a picture file viewer you can modify.  That
> demo doesnt use a library other than GdiPlus so everything is done
> in raw WinAPI.
> 
> 
> Take care,
> Al
> 
> And, good luck with your Euphoria programming!
> 
> My bumper sticker: "I brake for LED's"
> 


Thank you for replying Al.

I'm trying to create a slide show with your viewer (which I've done).
Now I would like to pause or stop it during the show.

     for x=1 to length(DirList)
        onClick_ButtonForward()
      ---  doEvents(0)
       -- onKeyDown[Win]=routine_id("onKeyDown_Win")
     end for

It won't recognize the keystroke while the loop is running.
I beleieve doEvents will fix that.

I 'm changing all the confliting terms in win32r.ew as such:
getText() to agettext() but this is taking quie a long time and I'm about 
to give up on that avenue.

If you know another way to jump in the loop ,without win32lib, I'd sure 
appriciate it.

don cole
SF

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

4. Re: win32r.ew & win32lib conflicts [Attn. Al]

Al Getz wrote:



> If you take a look at the GdiPlus library wrapper in the archives
> that also comes with a picture file viewer you can modify.  That
> demo doesnt use a library other than GdiPlus so everything is done
> in raw WinAPI.

I am looking at GdiPlus now I see the slide show would be easy with that.

I spend a lot a lot of time on zoom and autozoom each picture to fill the
screen with each picture. So Iwould like to stick with euviewer if posible.

I don't see anything in GdiPlus about zoom.

Thank you 
Don Cole
SF

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

5. Re: win32r.ew & win32lib conflicts [Attn. Al]

What is win32r.ew ?

Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.ew

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

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

6. Re: win32r.ew & win32lib conflicts [Attn. Al]

don cole wrote:
<snip>
> Thank you for replying Al.
> 
> I'm trying to create a slide show with your viewer (which I've done).
> Now I would like to pause or stop it during the show.
> 
>      for x=1 to length(DirList)
>         onClick_ButtonForward()
>       ---  doEvents(0)
>        -- onKeyDown[Win]=routine_id("onKeyDown_Win")
>      end for
> 
> It won't recognize the keystroke while the loop is running.
> I beleieve doEvents will fix that.
> 
> I 'm changing all the confliting terms in win32r.ew as such:
> getText() to agettext() but this is taking quie a long time and I'm about 
> to give up on that avenue.
> 
> If you know another way to jump in the loop ,without win32lib, I'd sure 
> appriciate it.
> 
> don cole
> SF
> 

Hi again Don,

I think i can come up with something fairly short if your interested...
I'll post it here?

BTW, i have updated the EuViewer to use GdiPlus and i meant to upload
it a while back and never seemed to get to it...it's the exact same
program only it uses GdiPlus to do all the graphics, which is nice
because more file formats are supported.  Everything else is the
same so you could probably patch in your code segments into the
newer program and get up and running in no time, but you'll have 
more file formats that are viewable (gif, ico, jpg, bmp, etc.).
If you're interested let me know...


Take care,
Al

PS.  Funny a lot of people seem to want a slide show and i never
thought to add it.

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: win32r.ew & win32lib conflicts [Attn. Al]

Bernie Ryan wrote:
> 
> 
> What is win32r.ew ?
> 
> Bernie
> 
> My files in archive:
> w32engin.ew mixedlib.e eu_engin.e win32eru.ew
> 
> Can be downloaded here:
> <a
> href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan">http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan</a>
> 

Hi Bernie,

Win32r.ew is a very old version of WinLib that i updated myself.
It's from the old days when D. Cuny first started on WinLib and
it was still buggie because it was still in it's early stages.
I added things like treeview and made various things work just
so i would have a library that worked the way i wanted it too and
fix things.  I havent ever updated it because i created other Windows
libraries which i find more flexible.


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

8. Re: win32r.ew & win32lib conflicts [Attn. Al]

Al Getz wrote:
> 
> 
> Win32r.ew is a very old version of WinLib that i updated myself.
> It's from the old days when D. Cuny first started on WinLib and
> it was still buggie because it was still in it's early stages.

As opposed to the now days, when it's still buggy because...er...well,
because...Sorry, not poking at Derek, who's fixed many of the bugs that
I left behind in that library, of which I'm sure there are still a
number that's greater than zero... :P

Matt Lewis

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

9. Re: win32r.ew & win32lib conflicts [Attn. Al]

Al Getz wrote:
> 
> don cole wrote:
> <snip>
> > Thank you for replying Al.
> > 
> > I'm trying to create a slide show with your viewer (which I've done).
> > Now I would like to pause or stop it during the show.
> > 
> >      for x=1 to length(DirList)
> >         onClick_ButtonForward()
> >       ---  doEvents(0)
> >        -- onKeyDown[Win]=routine_id("onKeyDown_Win")
> >      end for
> > 
> > It won't recognize the keystroke while the loop is running.
> > I beleieve doEvents will fix that.
> > 
> > I 'm changing all the confliting terms in win32r.ew as such:
> > getText() to agettext() but this is taking quie a long time and I'm about 
> > to give up on that avenue.
> > 
> > If you know another way to jump in the loop ,without win32lib, I'd sure 
> > appriciate it.
> > 
> > don cole
> > SF
> > 
> 
> Hi again Don,
> 
> I think i can come up with something fairly short if your interested...
> I'll post it here?
> 
> BTW, i have updated the EuViewer to use GdiPlus and i meant to upload
> it a while back and never seemed to get to it...it's the exact same
> program only it uses GdiPlus to do all the graphics, which is nice
> because more file formats are supported.  Everything else is the
> same so you could probably patch in your code segments into the
> newer program and get up and running in no time, but you'll have 
> more file formats that are viewable (gif, ico, jpg, bmp, etc.).
> If you're interested let me know...
> 
> 
> Take care,
> Al
> 
> PS.  Funny a lot of people seem to want a slide show and i never
> thought to add it.
> 
> And, good luck with your Euphoria programming!
> 
> My bumper sticker: "I brake for LED's"
> 


Yes Al i'm very interested.
Meanwhile I am re-writing win32r.ew so it will work with win32lib.
If I ever finish I will post it here.
Also I am writing a slide show with pause, zoom, scroll, and random sort.
If I ever finish that I will also post it here.

Don Cole
SF

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

10. Re: win32r.ew & win32lib conflicts [Attn. Al]

Hi Don,

Did you try something like this:

global function QueryQuitPaint()
  --Call this to decide if paint routine should end early.
  if c_func(win:GetQueueStatus,{QS_MOUSEBUTTON+QS_KEY}) then
    return 1
  else
    return 0
  end if
end function

Call this function from within your picture selection loop.
If it returns 1 then exit your loop, but dont exit if 0.

Note you'll need to call xGetQueueStatus() instead of "win:GetQueueStatus"
from the old WinLib lib.

Does this help?


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

11. Re: win32r.ew & win32lib conflicts [Attn. Al]

Matt Lewis wrote:
> 
> Al Getz wrote:
> > 
> > 
> > Win32r.ew is a very old version of WinLib that i updated myself.
> > It's from the old days when D. Cuny first started on WinLib and
> > it was still buggie because it was still in it's early stages.
> 
> As opposed to the now days, when it's still buggy because...er...well,
> because...Sorry, not poking at Derek, who's fixed many of the bugs that
> I left behind in that library, of which I'm sure there are still a
> number that's greater than zero... :P
> 
> Matt Lewis
> 


He he smile


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

Search



Quick Links

User menu

Not signed in.

Misc Menu