View Single Post
  #3  
Old 11-07-2014, 16:09
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by Logrim View Post
One little question, please help me in you can

i have a botva2 button, this:



and i have a label for that button. i want to have the same setbounds in the label that the button, but, and this is the problem, i want if i have to positioning the button in another point of the autorun, move the label at the same position automatly.. i hope you understand my problem.

I want something like this, but with button not work.
SetBounds((InstallGame1Btn.Left + InstallGame1Btn.Width) + 10,0,0,0);

This is the label:


Thanks

Edit: anyone know how to make a label color semitransparent?
these botva2 buttons are longintegers, looks at the functions and the variables, they are longint and longit doesn't have left, nor top and stuff like that but you can get those values by doing this:
var
Pos: TRect;
begin
BtnGetPosition(InstallGame1Btn,Pos.Left,Pos.Top,Po s.Right,Pos.Bottom);
//Right is Width and and Bottom is Height
SetBounds((Pos.Left + Pos.Right) + 10,0,0,0);
end;
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
Logrim (11-07-2014)