Vision2 question

2 Messages Forum Options Options
Permalink
Chris Saunders-4
Vision2 question
Reply Threaded More
Print post
Permalink
Is there a class in the Vision2 library that can get system metrics such as
a windows captions height and/or border width?

 

Regards

Chris Saunders



[Non-text portions of this message have been removed]


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/eiffel_software/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/eiffel_software/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:eiffel_software-digest@...
    mailto:eiffel_software-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    eiffel_software-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

larryliuming
Re: Vision2 question
Reply Threaded More
Print post
Permalink
Hi, Chris,

Maybe there is no class to query window caption height and window
border width in Vision2 for the moment. :P

But you can easily calculate yourself by following codes:

window_caption_height (a_window: !EV_WINDOW): INTEGER is
                -- Calculate window caption height
        do
                Result := a_window.height - a_window.client_height -
window_border_width (a_window)
        end

window_border_width (a_window: !EV_WINDOW): INTEGER is
                -- Calculate window border width
        do
                Result := (a_window.width - a_window.client_width) // 2
        end



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/eiffel_software/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/eiffel_software/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:eiffel_software-digest@...
    mailto:eiffel_software-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    eiffel_software-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/