TButton / TBitBtn issue

Must be me because this issues happens with several components.  I am using C++ Builder XE7.

Add a TButton to a form.  Change the Anchors to akLeft and akBottom (uncheck akTop).  Resize the form vertically, everything seems ok.  Now uncheck akBottom.  Resize the form vertically.  The button moves, when only akLeft is checked.  No matter what attributes you change, it will always be anchored to the bottom once that box is checked, even if unchecked.  If you want to remove the bottom anchor, you must delete the button and add a new button.
0
Doug
8/5/2015 5:02:09 AM
embarcadero.cppbuilder.using 1848 articles. 1 followers. Follow

1 Replies
714 Views

Similar Articles

[PageSpeed] 57
Get it on Google Play
Get it on Apple App Store

Doug wrote:

> Add a TButton to a form.  Change the Anchors to akLeft and
> akBottom (uncheck akTop).  Resize the form vertically, everything
> seems ok. Now uncheck akBottom.  Resize the form vertically.
> The button moves, when only akLeft is checked.

This is correct behavior and is by design.  It is not specific to XE7, either. 
 It happens in earlier versions, too.

Since you have both akTop and akBottom unchecked, there is nothing to hold 
the button in place vertically, so it moves in relative proportion to changes 
in its parent's Height regardless of the button's Top property.  If you want 
the button to stay in place and respect its Top property, you need to enable 
the akTop anchor.

-- 
Remy Lebeau (TeamB)
0
Remy
8/5/2015 6:25:42 PM
Reply:

Similar Artilces:

Issues in using reporting services we are using vs2005 and adding reports "*.rdlc", and are facing with follwoing issues
1:-There is one Main report having 2 subreports in it, each sub reoprt has it own header and footer but when its called from Master report, the header and footer of the sub report doesnt show on the Master report, how to make them visible. 2:-If we need to add some customize code for the report, we used the CustomCode tab that appear when Properties link of that report is clicked, how can we acess the items on the report under that code ???like if the report has the subreports, tables and want to acess their visibility is there any way.?? 3:-How can we check in the cutomcode o...

Issues with using a record type and using getmem
I have a record type defined. There are several fields, and I want to assign to them from a custom class: (D2010, win7) <code> type tmyrec record field1: pchar; ... end; type tmyclass = class ffield1: string; public property field1: string read ffield1 write ffield1; procedure assignto(var aMyRec: tmyrec); procedure freeMem(var aMyRec: tmyrec); end; ... procedure tmyclass.assignto(var aMyRec: tmyrec); begin if not assigned(aMyRec.field1) then getmem(aMyRec.field1,4); aMyRec.field1 := pchar(self.field1); end; ...

Cross platform compatability using issue using oledb connection
I am writing a website application that needs to connect to either Oracle or MSSQL Server depending on what the client wants. Given this issue I am writing all my sql statements using the ANSI 92 standards and using the oledb connect as it is capable of handling this. It is all going well however I have hit a problem with string concatanation in the sleect statement. in oracle I would do this - select firstname || ' ' || Middlename || ' ' || lastname as fullname from whatevertablein mssql I would do this - select firstname + ' ' + Middlename + ' &...

Connection issue with Sybase using Studio 2003 using GUI
When I use Server Explorer in studio 2003 the connection fails , and also get some errors. 1.. I used Sybase ADO Provider, when the Data Link properties comes I am able to the test connection successfully, once I have the connection when I click on the tables , Procedures etc I get the Connection Failure Error. So I cannot do any thing with this connection. 2.. I used Sybase ASE OLE DB Provider in the Data Link properties same as above successful connection, the tables expand and procedure come up(I can see all the objects) when I try to drag and drop a t...

Using Using
I have just completed reading a chapter in my book on performance. The books says to speed up performance on your web site you should use the using statement when opening connections. My question is how do you catch errors if you are using this as apposed to a try catch block.thanksBryan  Why would you use it as an alternative to a try/catch statement. Couldn't you just do something like  public void UsingSomeMethod() { try { SomeMethod(); } catch(SomeException e) { /// do something useful }}public void SomeMethod() { using (Something) { ...

When to use ( and when to use ((?
I'm just not getting it. When do you use ( in a statement, when do you need to use ((, and is the space after either or both mandatory? For example, I coded this statement: if (( $_ eq $bad_guys_ip )) { more_stuff_here }; Why the two (( in an if? And why does it seem to not work when I miss the space after the ((? Thanx! Mark me as... /Corn-fused|Dense/ > I'm just not getting it. >=20 > When do you use ( in a statement, when do you need to use ((, and is > the space after either or both mandatory? >=20 > For example, I coded this sta...

Issue with getting values from child controls in a gridview, to use for the update using a SQLDataSource control
Hi all, I have a gridview bound with a SQLDataSource. I am using the Update feature of the SQLDataSource to update a SQL Server database with values entered into the gridview. However I am not getting it to work. I believe this is due to the controls that contain the user entries are not the gridview itself, but rather child controls within the gridview. I have been using the names of the actual controls but nothing happens. Upon submit, the screen returns blank, and the database is not updated. Here is some code:   <asp:GridView ID="GridEditSettlement" runat="server" AutoGenerate...

How to use the arguments to use() in the package being used
Howdy,=20 The subject says it all believe it or not :) What I'm trying to figure out is how to pass an argument=20 (pragma I believe is the proper term) to use() and do=20 sonethign in the package based on it. I've looked at CGI.pm source but can't seem to track it down.=20 (Similar idea as to CGIs -oldstyle_urls -newstyel_urls) http://search.cpan.org/~lds/CGI.pm-3.04/CGI.pm#PRAGMAS What I'd like to do is something like this: # for old time's sake we'll just use our favorite module use Foo::Monkey qw(:Foo :Bar -doamazingthings); #then in Foo::Monkey...

Using AJAX Issue
Hi Everyone. We have an Web Application that is located on a shared folder on a Server in our network.  2 developers are accessing the same application and they  both have the same computer, the same installation evereything is the same.  The problem is that on one of the computers AJAX control Toolkit does not work at all.  Every time that we try to use it, we get this error message : Server Error in '/Sarde' Application. Security Exception Description: The application attempted to perform an operation not allowed by the security policy.  To gra...

TButton/TBitBtn descendent...
ok, this is a hard question... I know that speedbuttons already works in the way that I want, but I really need to make a TButton/TBitBtn that not only don't tabstop, that also don't accept focus (but still be clicked). SpeedButtons accept click, and don't get focus, I need to mimic this behavior with a TBitBtn, tabstop = false takes care about focus with keyboard, but still be focused when gets clicked... any hints? "Sergio Gianezini" <sergio_ag@terra.com.br> wrote in message news:237213@forums.embarcadero.com... > ... I really need to make a TButto...

An issue when using TBytesStream
When passing the value of a TBytesStream.Bytes to subroutines that rely on checking the Length(...) the size will not be correct unless you reset the size manually first. for example: (Before: Length(YourStream.Bytes) <> YourStream.Size) YourStream.SetSize(YourStream.Size) (After: Length(YourStream.Bytes) = YourStream.Size) I wish the compiler could somehow generate a warning for this. This is probably worth being in the offical documentation too. -- Ray Raymond wrote: > When passing the value of a TBytesStream.Bytes to subroutines > that rely on check...

Issue with using StrToDate???
This is a strange error, but for some reason StrToDate is not working correctly. var lastPayrollDate : TDateTime; begin lastPayrollDate := StrToDate('9/30/2020'); //function always returns '12/30/1899' ... end; I am using this function in other places within my application, and it works correctly. I am assuming this is some type of memory leak. Has anyone ever seen this? I have Googled it and cannot find anything. Any ideas on what to do? On 26.04.2010 16:02, Shane Davis wrote: > This is a strange error, but for some reason StrToDat...

Issue in using DPAPI
Friends, I am using DPAPI Encryption using the following syntax to encrypt my credentials aspnet_regiis -pef <section> <Path> After the encryption, when the application is deployed in the web server, I am facing an wierd issue. 1)After 15 mins (or) IIS Reset , I am able to Login immediately, (No Issue) 2) After 15 mins (or) IIS Reset , None of the other users are able to login. Says Login issue with the entered user details (The credentials encrypted was my userID /Password/Domain. And hence Its allowing only me) 3) After I login , rest of the other users are abl...

Issues with using redirection
Hi all, Sorry in advanced if this post belongs in another forum. We have web application that Handles redirections to our websites.  Example: In IIS we have: Site A Site B SiteRedirector So if we want all users to be directed to site A when they try to access site B, SiteRedirector will take the domain of the URL which contains site B (ie. www.B.com/MyStuff/default.aspx) and replace it with Site A's domain (i.e. www.A.com/MyStuff/default.aspx) and does a response.redirect to that new URL.  This works whenever the user tries to access a .aspx page, but would not work if the...

Web resources about - TButton / TBitBtn issue - embarcadero.cppbuilder.using

Visual Component Library - Wikipedia, the free encyclopedia
This article includes a list of references , related reading or external links , but its sources remain unclear because it lacks inline citations ...

The Delphi Geek: programming
procedure TForm125 . Button1Click ( Sender : TObject ) ; var button : TButton ; begin button := Sender as TButton ; button . Caption := 'Working ...

Components vs Children in FireMonkey
procedure TForm2.Button1Click(Sender: TObject);var i: Integer;begin Memo2.Lines.Clear; for i := 0 to ComponentCount-1 do Memo1.Lines.Add(Com ...

Accessibility Functionality Add On For Delphi XE6 Firemonkey On Windows And IOS
Fernando Rizzato from Embarcadero has a blog post up with a pretty big add on for Delphi XE6 Firemonkey. The add on is Accessibility functionality ...

Consumer - HD/CD/DVD/Flash - HotHardware Forums
HotHardware.com's Forum Community Of Tech Enthusiasts And Power Users

var Item1 : TTreeViewItem; Item2 : TTreeViewItem; begin Item1 := TTreeView - Pastebin.com
... Item1.Parent := TreeView1; Item2 := TTreeViewItem.Create(Self); Item2.Text := 'My Child Node'; Item2.Parent := Item1;end; Button := TButton.Create(self); ...

Burger King Corporation and Caribbean Restaurants LLC Announce PepsiCo Renewed Agreement in Puerto ...
re> MIAMI, July 16 /PRNewswire/ Burger King Corporation and Caribbean Restaurants LLC Announce PepsiCo Renewed Agreement in Puerto Rico.

Dedication of St. Joseph's Boathouse, First New One on the Schuylkill in 98 Years, Set for June 15 ...
Free Online Library: Dedication of St. Joseph's Boathouse, First New One on the Schuylkill in 98 Years, Set for June 15. by "PR Newswire"; Business ...

Turbo Vision port to the GNU compiler and more - History
Turbo Vision port to the GNU compiler and more

Pensions remain a bit issue for chief executives - Emma Watkins - Wales Online
Emma Watkins: On why employee pensions provision remains a big issue for business

Resources last updated: 12/28/2015 11:17:11 AM