You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

joekaisaka

Beginner

  • "joekaisaka" started this thread

Posts: 11

Date of registration: Feb 1st 2011

  • Send private message

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

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

2

Thursday, March 24th 2011, 2:18pm

Have a look at this posting

Greetings

A1880

joekaisaka

Beginner

  • "joekaisaka" started this thread

Posts: 11

Date of registration: Feb 1st 2011

  • Send private message

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

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

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