realbasic-nug.de
[Top] [All Lists]

Re: Right und Bottom

To: REALbasic NUG German <realbasic-nug dot de at lists dot realsoftware dot com>
Subject: Re: Right und Bottom
From: Dietmar Harms <harms at sds-software dot com>
Date: Tue, 25 Sep 2007 14:26:40 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug dot de at lists dot realsoftware dot com
References: <C31EB668 dot 2BC27%andy at foxwerk dot de>
Was muss man anstellen, um auch Right und Bottom in die
Property List zu bekommen?

Left + Width = Right
Top + Height = Bottom

In Mathe nicht aufgepasst, häh? :-))

Genau: Voll die Niete in Mathe, aber Programmierer geworden ;-)

Beispiel:

Left: 768
Top: 147
Width: 279
Height: 379

Wieviele Sekunden brauchst Du, um Right und Bottom zuverlässig (!) auszurechnen? Danach verschiebst Du das Objekt horizontal und vertikal um jeweils 23 Pixel und erhältst:

Left: 791
Top: 170
Width: 279
Height: 379

Und wieder rechnest Du ... es muss doch möglich sein, diese Werte direkt berechnen und in der PropertyList anzeigen zu lassen ... oder?

Dietmar :-)



<Prev in Thread] Current Thread [Next in Thread>