You are not logged in.

Tr4d3r

Beginner

  • "Tr4d3r" is male
  • "Tr4d3r" started this thread

Posts: 12

Date of registration: Mar 16th 2009

Location: Caracas, Venezuela - Bogota, Colombia

Occupation: Senior Developer - SLM Sistemas

Hobbies: Developing, Securiy, others

  • Send private message

1

Wednesday, March 25th 2009, 10:31pm

Modal Window

Hello, in VB6 i can show a window in modal state (can't use the parent window until close the loaded one)

in VB6 you write: form1.show vbmodal

In Jabaco the show method don't receive any parameter ... and i look for something in the properties about MODAL but nothing ... anyone have a clue?

Thanks.

Tr4d3r

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

Wednesday, March 25th 2009, 10:53pm

Modal Windows again

Please have a look here.

You may find the "search" function of this board worth trying.
It helps you to spot existing solutions and hints.

Happy digging!

A1880

Tr4d3r

Beginner

  • "Tr4d3r" is male
  • "Tr4d3r" started this thread

Posts: 12

Date of registration: Mar 16th 2009

Location: Caracas, Venezuela - Bogota, Colombia

Occupation: Senior Developer - SLM Sistemas

Hobbies: Developing, Securiy, others

  • Send private message

3

Thursday, March 26th 2009, 12:22am

RE: Modal Windows again

Please have a look here.

You may find the "search" function of this board worth trying.
It helps you to spot existing solutions and hints.

Happy digging!

A1880
Yes, thanks ... but i already see that posts ... those talk about launching a new jmodal window and hiding the normal window ... but ... always that i open a normal window will exist 2 windows (one hided, one showed) ...

Now is working that way ... if you know another way to do this .. i will appreciate ... or maybe in the next release the show method can have the modal var ...

Thanks.

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

4

Friday, March 27th 2009, 7:01am

Hi Tr4d3r,

Quoted

a new jmodal window and hiding the normal window

it is: a new "JDialog" and hiding the "JFrame"

And there is the problem. Of course the solution is a work around.

the reason is:

Jabacos controls and windows are based on java swing. afaik in swing only the JDialog is capable of being modal, not a JFrame, but the base class of a Jabaco VB.Form is JFrame and in the Jabaco-IDE it is not possible to set the base class of a Form.

Quoted

if you know another way to do this .. i will appreciate ... or maybe in the next release the show method can have the modal var

So how to implement this in a next release of the Jabaco-Framework?

Make a suggestion! The Jabaco-Framework is OpenSource, so it is on your side please help :)

my suggestion would be:

we could make two possible base classes for a Form, one is based on JFrame and the other is based on JDialog, and then the Jabaco-IDE maybe could have a Property/Attribute in the property Editor for a Form where you can switch the base classes maybe a property "Modal True/False" would be enough.

@Manuel could this be feasible?

greetings

OlimilO

This post has been edited 1 times, last edit by "OlimilO" (Mar 27th 2009, 1:44pm)


Tr4d3r

Beginner

  • "Tr4d3r" is male
  • "Tr4d3r" started this thread

Posts: 12

Date of registration: Mar 16th 2009

Location: Caracas, Venezuela - Bogota, Colombia

Occupation: Senior Developer - SLM Sistemas

Hobbies: Developing, Securiy, others

  • Send private message

5

Friday, April 3rd 2009, 3:40pm

Hi Tr4d3r,


Quoted

a new jmodal window and hiding the normal window

it is: a new "JDialog" and hiding the "JFrame"

And there is the problem. Of course the solution is a work around.

the reason is:

Jabacos controls and windows are based on java swing. afaik in swing only the JDialog is capable of being modal, not a JFrame, but the base class of a Jabaco VB.Form is JFrame and in the Jabaco-IDE it is not possible to set the base class of a Form.

Quoted

if you know another way to do this .. i will appreciate ... or maybe in the next release the show method can have the modal var

So how to implement this in a next release of the Jabaco-Framework?

Make a suggestion! The Jabaco-Framework is OpenSource, so it is on your side please help :)

my suggestion would be:

we could make two possible base classes for a Form, one is based on JFrame and the other is based on JDialog, and then the Jabaco-IDE maybe could have a Property/Attribute in the property Editor for a Form where you can switch the base classes maybe a property "Modal True/False" would be enough.

@Manuel could this be feasible?

greetings

OlimilO
Hello .. really thanks for your comments ... now i understand ..

Greetings ...

Rate this thread
WoltLab Burning Board