February 12, 200422 yr Trying to make a simple XML heading bug. I've got a 30px knob bmp but for some reason my mouse hot spots are offset from the bitmap...Can anyone help with which coordinates I've shifted improperly?Thanks!sg (A:Autopilot heading lock dir,degrees) d (A:Plane heading degrees gyro,degrees) 90 + - dgrd [email protected] | 32gb RAM | EVGA GTX1080 8gb | Mostly P3Dv5 (also IL2:BoX, DCS, XP11)
February 12, 200422 yr Hi,Presuming the knob is 30 x 30 pix may be this works ok:Jan"Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
February 12, 200422 yr Author Thanks, Jan - I'll give that a try... [email protected] | 32gb RAM | EVGA GTX1080 8gb | Mostly P3Dv5 (also IL2:BoX, DCS, XP11)
February 12, 200422 yr Hi,If you want to use your own code try this: orJan"Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
February 12, 200422 yr Author Jan,Could you help me by explaining what the numbers are defining? For example, in the first example of previous message, the first Area (Left =0 Right=30 Top=0 Bottom=30) defines the whole bmp as an area - the default I'd imagine, so leaving it out in the second example does the same? Then AREA LEFT="15" and AREA RIGHT="15" - is it implicit in the LEFT and RIGHT which "15" are defined as the mouse spot?Thanks for entertaining my newbie questions!sg [email protected] | 32gb RAM | EVGA GTX1080 8gb | Mostly P3Dv5 (also IL2:BoX, DCS, XP11)
February 12, 200422 yr Author Also, (sorry!), because it's a rotating gauge in which I've defined the axis, the coordinates don't become relative to the axis, right - always relative to the bmp.?Thanks!sg [email protected] | 32gb RAM | EVGA GTX1080 8gb | Mostly P3Dv5 (also IL2:BoX, DCS, XP11)
February 12, 200422 yr Hi,You can define in a gauge the exact position of the clickspots by defining their left, right, top and bottom coordinates, x/y of pixel.When the bitmap of the gauge is exact that what you see on the panel, no transparant parts on top, left or right etc., then you can give the format of the gauge as clickspot, only defining the maesure, amount of pixels, of the left and right area (or top and bottom)See the examples above, all three.The axis of rotation has nothing to do with the clickspots.In your case, a rotating knob of 30 pix, it is quite logical to put the spot for decrease on the left and increase on the right of the axis, the middle, so 15 pix on each side.Hope it helpsJan"Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
February 12, 200422 yr Author >Hope it helpsIt sure does - thanks for you time and assistance!sg [email protected] | 32gb RAM | EVGA GTX1080 8gb | Mostly P3Dv5 (also IL2:BoX, DCS, XP11)
Create an account or sign in to comment