Tuesday, May 22nd 2012, 12:46am UTC+2

You are not logged in.

  • Login
  • Register

1

Thursday, March 24th 2011, 5:21am

Control Functions

Hi guys

I want make functions that returns:

- how many controls are in a form or a control.
- which control is positioned closer to the bottom of the control container in which it is inserted


Thanks in Advance.

A1880

Intermediate

Posts: 500

Location: Hanover, Germany

Occupation: Software Engineer

2

Thursday, March 24th 2011, 2:18pm

Have a look at this posting

Greetings

A1880

3

Thursday, March 24th 2011, 3:42pm

Hi A1880:


I saw this post and saw that you put a solution there, but looks like this solution serves only to user controls.
I would suggest to put Manuel that somehow we could simulate in a For Each Forms.
I think it's very useful resource and should be in the framework


Best regards

A1880

Intermediate

Posts: 500

Location: Hanover, Germany

Occupation: Software Engineer

4

Thursday, March 24th 2011, 7:05pm

It should be possible to traverse the hierarchy of Java swing components behind a Jabaco form.
"Form" is a descendant class of JFrame, which is a "Container" of "Components".
I have to confess that I am not deep enough in Java swing to figure this out.

The extension of the Jabaco Form with a collection of Controls could be easily accomplished by extending the Add()
method were every Control has to go through. This would be the place to maintain the collection of controls.
Care has to be taken though to handle deleted controls and control arrays.

Volunteers for the framework are alwas welcome!

Greetings

A1880

Rate this thread
WoltLab Burning Board