Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #1061

Re: VB6 Frames

From scbs29 <scbs29@fred.talktalk.net>
Newsgroups comp.lang.basic.visual.misc
Subject Re: VB6 Frames
Message-ID <m4a2q7hrts4joa4j04964tdtq1tf3oosl1@4ax.com> (permalink)
References <535op7d1eqve0prjlcl8m73fl7finp8pgd@4ax.com> <qeusp7lg99qcqet6lvsjjkp1icv063lklf@4ax.com> <jnm1cr$sop$1@dont-email.me>
Organization Forte Inc. http://www.forteinc.com/apn/
Date 2012-05-02 13:39 +0100

Show all headers | View raw


On Mon, 30 Apr 2012 13:43:21 +0100, "Mike Williams"
<Mike@WhiskyAndCoke.com> wrote:

>"scbs29" <scbs29@fred.talktalk.net> wrote in message 
>news:qeusp7lg99qcqet6lvsjjkp1icv063lklf@4ax.com...
>> On Sat, 28 Apr 2012 17:12:17 +0100, scbs29 <scbs29@fred.talktalk.net>
>> wrote:
>> I was thinking that there may be something like a
>> frame.border property which I could access, but
>> it seems that I was wrong.
>
>There is a BorderStyle property for Frames which can be set to either 0 (no 
>border) or 1 (FixedSingle) but I gathered from your original post that you 
>already knew about that? Or have I misunderstood the above statement of 
>yours?
>
>Regarding the code you have just posted, it seems to be rather strange so I 
>am quite surprised that it is working okay for you, unless you have missed 
>telling us something? For example, you are setting an IntHad property to one 
>tenth the Height of a Frame and then you are /afterwards/ changing the 
>Height of the Frame to the height of the Image plus (2 * IntHad). So, the 
>size of the actual horizontal borders (intHad) will depend on the Heght of 
>the frame as it was /before/ the Frame's height was altered to take account 
>of the height of the Image, which as far as i can see could have been 
>anything at all. There is a similar problem with IntWad. This just isn't 
>right to my mind. Also, you are completely failing to take account of the 
>fact that the top position and the height of the Frame's border is /not/ the 
>same as the Top or Height properties of the frame itself. It all sounds a 
>bit "iffy" to me.
>
>Mike
>
>

Thanks for the reply.
Yes, you are right, I did have setting intWad and intHad in the wrong
place. I have now moved them to after setting the width and height of
the first frame, since all frames will be the same size. 
I knew about the BorderStyle property, but could not find any
reference to finding out the amount of the frame the border took up,
ie. is the border at 10% of the height from the top, 20%, how do the
position, height and width of the frame within the  border relate to
those of the entire frame, what are the position, height and width of
the border wrt the frame, how can you find out? The idea is to fit the
image control within the border with borderstyle 1.
How I have done it works, but it does not seem a very 'elegant'
solution.


remove fred before emailing
Registered Linux User 490858

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

VB6 Frames scbs29 <scbs29@fred.talktalk.net> - 2012-04-28 17:12 +0100
  Re: VB6 Frames "Auric__" <not.my.real@email.address> - 2012-04-29 00:24 +0000
    Re: VB6 Frames scbs29 <scbs29@fred.talktalk.net> - 2012-04-29 10:10 +0100
      Re: VB6 Frames Deanna Earley <dee.earley@icode.co.uk> - 2012-04-30 08:59 +0100
  Re: VB6 Frames "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-04-29 13:18 +0100
    Re: VB6 Frames "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-04-30 11:25 +0100
  Re: VB6 Frames scbs29 <scbs29@fred.talktalk.net> - 2012-04-30 12:52 +0100
    Re: VB6 Frames "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-04-30 13:43 +0100
      Re: VB6 Frames scbs29 <scbs29@fred.talktalk.net> - 2012-05-02 13:39 +0100
        Re: VB6 Frames "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-05-02 21:21 +0100

csiph-web