1. Print Preview Version 0.32.

I've added Word wrapping, switched over to DeviceCapabilities(), which
should be more platform/version independant, used Font Mapping in
designmode, made the tutorial run on 800x600, and made a few licence
mods.

I know I'll probably just get a bunch of ex.err files for my troubles,
but fingers crossed.

Pete

new topic     » topic index » view message » categorize

2. Re: Print Preview Version 0.32.

On Thu,  6 Nov 2003 21:18:25 +0000, Brian Broker <bkb at cnw.com> wrote:

>Curious, why is the tutorial limited to 1024x768 and 800x600 
>resolutions?  Doesn't seem particularly flexible to me...

Because I don't know any better blink

I've written this "off my own bat"; there don't appear to be any
examples in the archives for this soft of thing.

tutorial.ew has hard-coded "dialog commands" such as:

	 {25,M_Move,630,200,499,158},

which move the cursor to a specific point ({630,200} if running
1024x76, and {499,158} if running 800x600).

The math don't seem to work. Eg 630*1024/800=492, above, much worse
with menus, so actually it does not work (probably) if you have
large/normal/small font settings, and other annoyances...

The source of tutorial.ew is there, if you can give me any
suggestions, as to how I can write it in a more flexible way.

If you need any info you don't appear to have, let me know. 

Thanks,
Pete

PS another example of the math not working for me is A4 wide. On my
15" screen, I reckon that A4 on 640x480 is 500 pixels wide, on 800x600
it is 618 pixels wide, and on 1024x768, it is 779 pixels wide.

But 779*800/1024=608, and 779*640/1024=486. 14 pixels at that
resolution (as does 10 at 800x600) misses the control completely.

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

3. Re: Print Preview Version 0.32.

Derek,

I've been told the following fails on windows XP (it works on win98):

include win32lib.ew
constant
zwin=createEx(Window,"Zoom",0,0,30,1600,130,0,{WS_CHILD,WS_EX_TOOLWINDOW})

I know, WS_CHILD is wrong. My question is do you think win32lib should
trap this case. I know you can't guard against all my stupidity, but
for  version compatibility it may be better to stop it working on 98.

Pete
http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html

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

4. Re: Print Preview Version 0.32.

----- Original Message ----- 
From: "Pete Lomax" <petelomax at blueyonder.co.uk>
To: <EUforum at topica.com>
Subject: Re: Print Preview Version 0.32.


> 
> 
> Derek,
> 
> I've been told the following fails on windows XP (it works on win98):
> 
> include win32lib.ew
> constant
> zwin=createEx(Window,"Zoom",0,0,30,1600,130,0,{WS_CHILD,WS_EX_TOOLWINDOW})
> 
> I know, WS_CHILD is wrong. My question is do you think win32lib should
> trap this case. I know you can't guard against all my stupidity, but
> for  version compatibility it may be better to stop it working on 98.
> 

Yes it should fail. Using WS_CHILD without speciying the parent is never going
to work as expected. I could detect this and fail it within the library.

-- 
Derek

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

5. Re: Print Preview Version 0.32.

On Tue, 11 Nov 2003 09:35:06 +1100, Derek Parnell
<ddparnell at bigpond.com> wrote:

>> I've been told the following fails on windows XP (it works on win98):
>> 
>> include win32lib.ew
>> constant
>> zwin=createEx(Window,"Zoom",0,0,30,1600,130,0,{WS_CHILD,WS_EX_TOOLWINDOW})
>> 
>> I know, WS_CHILD is wrong. My question is do you think win32lib should
>> trap this case. I know you can't guard against all my stupidity, but
>> for  version compatibility it may be better to stop it working on 98.
>> 
>
>Yes it should fail. Using WS_CHILD without speciying the parent is never going
>to work as expected. I could detect this and fail it within the library.
Also WS_CHILD was passed in the extended flags slot, so it fails even
when you do specify a parent, I think (but don't have XP so I can't
test that).

Pete
http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html

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

6. Re: Print Preview Version 0.32.

----- Original Message ----- 
From: "Pete Lomax" <petelomax at blueyonder.co.uk>
To: <EUforum at topica.com>
Subject: Re: Print Preview Version 0.32.


> 
> 
> On Tue, 11 Nov 2003 09:35:06 +1100, Derek Parnell
> <ddparnell at bigpond.com> wrote:
> 
> >> I've been told the following fails on windows XP (it works on win98):
> >> 
> >> include win32lib.ew
> >> constant
> >> zwin=createEx(Window,"Zoom",0,0,30,1600,130,0,{WS_CHILD,WS_EX_TOOLWINDOW})
> >> 
> >> I know, WS_CHILD is wrong. My question is do you think win32lib should
> >> trap this case. I know you can't guard against all my stupidity, but
> >> for  version compatibility it may be better to stop it working on 98.
> >> 
> >
> >Yes it should fail. Using WS_CHILD without speciying the parent is never
> >going to work as expected. I could detect this and fail it within the library.
> Also WS_CHILD was passed in the extended flags slot, so it fails even
> when you do specify a parent, I think (but don't have XP so I can't
> test that).
> 

Hey! I didn't even notice that mistake. Soon you will be able to specify such a
window like ...

newUIObj("Window, Zoom, at={0,30}, size={1600,130}, flags={WS_CHILD,
 WS_EX_TOOLWINDOW}" )

and win32lib will handle the Flags/ExFlags issue, plus use the most recent
window as the parent window by default.

-- 
Derek

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

Search



Quick Links

User menu

Not signed in.

Misc Menu