Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Skinning Questions with VB6

  1. #1
    (6)
    (6) is offline
    Newbie (6)'s Avatar
    Join Date
    Oct 2004
    Posts
    47

    Question Skinning Questions with VB6

    Ive been playing with the visuals of form s for a little while and i am a bit confused with a couple things. I was wondering if someone could help me out?
    The first thing i am confused about is ScaleMode.

    I noticed that the units that frodoskinner uses are very small in comparision to actual pixel and that if you want to use those numbers you have to change the ...

    ScaleWidth
    ScaleHeight
    ScaleTop
    ScaleLeft

    .... things will line up porperly but not for all frames using the same ratio. Can someone enlighten me as to how to go about using these ratios. The frodoskinner is a very usfull tool for skinning and i would like to use it for another application. Im sure knoew its possible just how do i do it???

  2. #2
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    I haven't used frodoskinner, but those small "units" are twips. They actually vary
    sometimes with monitors. (Most of the times it's 15)

    If you are using a scalemode of twips, you can convert twips to pixels by
    dividing the width or height of an object by screen.twipsperpixel(X or Y)
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  3. #3
    (6)
    (6) is offline
    Newbie (6)'s Avatar
    Join Date
    Oct 2004
    Posts
    47

    Still confused

    Im still unclear on how i should set my forms up to be able to use these usmaller units you called twips. I tried using the Twips ScaleMode and that doesnt work. Sorry if i sem ignorant to this but i am

    Only been working on tis for 2 weeks and i need to come upu with a way to skin this thign before i get even more lines ill have to change later to work for skinning. How woudl i go about setting a forom up to use the smaller numbers frodoskinner creates?

  4. #4
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by (6)
    Im still unclear on how i should set my forms up to be able to use these usmaller units you called twips. I tried using the Twips ScaleMode and that doesnt work. Sorry if i sem ignorant to this but i am

    Only been working on tis for 2 weeks and i need to come upu with a way to skin this thign before i get even more lines ill have to change later to work for skinning. How woudl i go about setting a forom up to use the smaller numbers frodoskinner creates?
    post me an example of the numbers.
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  5. #5
    (6)
    (6) is offline
    Newbie (6)'s Avatar
    Join Date
    Oct 2004
    Posts
    47
    Quote Originally Posted by frodobaggins
    post me an example of the numbers.

    This is a set of number that frodoskinner creates for three seperate buttons..

    Key1_LEFT=4.867257
    Key1_TOP=57.692307
    Key1_WIDTH=22.566372
    Key1_HEIGHT=18.681318

    Key2_LEFT=28.761063
    Key2_TOP=57.692307
    Key2_WIDTH=20.353983
    Key2_HEIGHT=18.406593

    Key3_LEFT=53.539822
    Key3_TOP=57.692307
    Key3_WIDTH=17.699116
    Key3_HEIGHT=18.131868

    When i use Twips it puts all the buttons on top of each other....
    When i use user and play with the scale settings i can eventually get it to align but that is after playing with decimal points for hours... "Not somthing economical"

    Thanks for Helping me Frodo...

  6. #6
    And then I was mod. Tidder's Avatar
    Join Date
    Sep 2003
    Location
    New Mexico, USA
    Posts
    4,211
    Huh, that's weird.

    Then again, I don't know **** about programming...
    Tidder

    Try RevFE
    The best resurrected frontend I've ever used, period.

  7. #7
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by (6)
    This is a set of number that frodoskinner creates for three seperate buttons..

    Key1_LEFT=4.867257
    Key1_TOP=57.692307
    Key1_WIDTH=22.566372
    Key1_HEIGHT=18.681318

    Key2_LEFT=28.761063
    Key2_TOP=57.692307
    Key2_WIDTH=20.353983
    Key2_HEIGHT=18.406593

    Key3_LEFT=53.539822
    Key3_TOP=57.692307
    Key3_WIDTH=17.699116
    Key3_HEIGHT=18.131868

    When i use Twips it puts all the buttons on top of each other....
    When i use user and play with the scale settings i can eventually get it to align but that is after playing with decimal points for hours... "Not somthing economical"

    Thanks for Helping me Frodo...


    That's percentage.
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  8. #8
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Say you have a form.
    (Based off percentages of the size of the parent.)
    You want an object 50% from the left, 27% from the top, and 10% width and height.

    it would be:

    OBJECT_LEFT=50
    OBJECT_TOP=27
    OBJECT_WIDTH=10
    OBJECT_HEIGHT=10

    then to place the object...

    object.left = parent.width * ("OBJECT_LEFT"/100)
    object.top = parent.height * ("OBJECT_TOP"/100)
    object.width = parent.width * ("OBJECT_WIDTH"/100)
    object.height = parent.height * ("OBJECT_HEIGHT"/100)
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  9. #9
    (6)
    (6) is offline
    Newbie (6)'s Avatar
    Join Date
    Oct 2004
    Posts
    47
    Quote Originally Posted by frodobaggins
    Say you have a form.
    (Based off percentages of the size of the parent.)
    You want an object 50% from the left, 27% from the top, and 10% width and height.

    Well I m completly frustrated. I tried thae example you have just showed me and im not getting results. When i set the ScaleMode to twip and try this example i dont even see the button anymore.

  10. #10
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    attach your code.
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

Page 1 of 2 12 LastLast

Similar Threads

  1. Lots of questions.. long post.
    By rach in forum Newbie
    Replies: 8
    Last Post: 11-13-2004, 10:53 PM
  2. Laptop Installation Questions On an 03 altima
    By daguju1der in forum Newbie
    Replies: 0
    Last Post: 07-12-2004, 10:16 AM
  3. Few Skinning Questions..
    By [iG] in forum FrodoPlayer
    Replies: 5
    Last Post: 07-02-2004, 06:58 AM
  4. Additional questions about LCDs: Is 400 nit too bright?
    By khiser0001 in forum LCD/Display
    Replies: 3
    Last Post: 05-06-2003, 07:13 PM
  5. starting project soon, questions..
    By tekknikal in forum General Hardware Discussion
    Replies: 1
    Last Post: 05-28-2002, 06:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •