control location within a frame

Questions regarding IDE/Code-Editor

control location within a frame

Postby Blue Blazes » Tue Aug 25, 2009 2:04 am

How to locate controls relative to the frame perimeter? In VB6 the "left" and "top" properties were relative to the frame perimeter. Here it seems they are relative to the form perimeter.
Blue Blazes
 
Posts: 19
Joined: Sun Aug 23, 2009 7:22 pm

Re: control location within a frame

Postby berndnoetscher » Tue Aug 25, 2009 7:24 am

You are right.

Not sure about why what you need. You could write in code
Code: Select all
x  = frame.x - innercontrol.x
y  = frame.y - innercontrol.y


Anyway, it will be changed to VB6 behaviour in the 2.x series comming later this year.
berndnoetscher
Site Admin
 
Posts: 1059
Joined: Tue Sep 25, 2007 9:37 am

Re: control location within a frame

Postby Blue Blazes » Tue Aug 25, 2009 10:58 am

Thank you, Bernd, I will look at innercontrol.
Blue Blazes
 
Posts: 19
Joined: Sun Aug 23, 2009 7:22 pm

Re: control location within a frame

Postby berndnoetscher » Wed Aug 26, 2009 7:03 pm

Blue Blazes wrote:Thank you, Bernd, I will look at innercontrol.


With innercontrol I meant the control(s) lying in the frame.
berndnoetscher
Site Admin
 
Posts: 1059
Joined: Tue Sep 25, 2007 9:37 am

Re: control location within a frame

Postby Henning » Wed Aug 26, 2009 7:09 pm

Hi Bernd,

Will the "real container" issue be 'fixed' at the same time? ;)

/Henning
Henning
 
Posts: 262
Joined: Mon Feb 09, 2009 12:03 am
Location: Sweden

Re: control location within a frame

Postby berndnoetscher » Thu Aug 27, 2009 6:32 am

Due to lack of time, I plan to implement it in KBasic 2.x only.

Rewriting the needed parts for KBasic 1.x is just to much work for now for me as single person. But critical bugs in 1.x will be fixed.

Sorry about that.
berndnoetscher
Site Admin
 
Posts: 1059
Joined: Tue Sep 25, 2007 9:37 am


Return to IDE

cron