Home   Help Search Login Register  

Author Topic: Another dialog question  (Read 919 times)

0 Members and 1 Guest are viewing this topic.

XPS

  • Guest
Another dialog question
« on: 01 Aug 2006, 21:43:58 »
And another dialog question.

I have a picture which I have made transparent at some spots.
I also have a button.

The picture needs to be on top of the button. (So you can see the button through the transparant part of the picture)
How can I change the order of the picture and the button?

Code: [Select]
class MobilePhone
{
  idd = -1;
  movingEnable = true;
  controlsBackground[] = {};
  objects[] = { };
  controls[] = {BUTTON1, PICTURE2};
 class BUTTON1 : RscButton
 {
  x = 0.4225
  y = 0.64327
  idc = 220
  w = 0.05
  h = 0.04
  style = ST_CENTER
  colorText[] = {0, 0, 0, 1};
 font = "CourierNewB64"
  SizeEX = 0.02
 text = "1"
 action = ""
 default = false
  };
 class PICTURE2 : RscText
 {
  x = 0.2525
  y = 0.10721
  idc = 201
  w = 0.5
  h = 0.8
  style = ST_PICTURE
  colorText[] = {1, 1, 1, 1};
  colorBackground[] = {1, 1, 1, 1};
 font = "TahomaB36"
  SizeEX = 0.04
 text = "Pictures\Picture.Paa"
  };
};

Offline nindall

  • Members
  • *
Re: Another dialog question
« Reply #1 on: 01 Aug 2006, 23:05:06 »
Declare the button in controlsBackground and the picture in controls.

When you click a button it moves down & to the right a bit, that's why i've made it smaller than the pic.

Code: [Select]
class Dlg
{
idd = -1;
movingEnable = true;
controlsBackground[]={"Button"};
controls[] = {"Picture"};
objects[] = {};

class Picture: RscPicture
{
idc=-1;
x=0.44;
y=0.44;
w=0.12;
h=0.12;
text="\Flags\BIS_White.jpg";
};

class Button: RscButton
{
idc=-1;
x=0.45;
y=0.45;
w=0.1;
h=0.1;
text="hint ""Ding!""";
};
};

XPS

  • Guest
Re: Another dialog question
« Reply #2 on: 01 Aug 2006, 23:46:02 »
Great thank you it's working  ;D

That was simple  :-[