Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:17 AM UTC

Uniface Development: Use a form as both a tabpage and modal form?

Use a form as both a tabpage and modal form?

Author: christoffer.aronsson@ladok.umu.se (voltagecontrol)

Hi,

We're building a form that will contain a tabform with several tabpages. However, one of these tabpages also need to exist as a standalone form. This would all work very well if we could find a way to change the Window Type between Form and TabPage on the fly via proc-code.

Has anyone tried something like this before - is it possible to do? Or do you have any other clever suggestions?

 

Best regards

Christoffer, Sweden

13 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:17 AM UTC

Use a form as both a tabpage and modal form?

Author: christoffer.aronsson@ladok.umu.se (voltagecontrol)

Hi,

We're building a form that will contain a tabform with several tabpages. However, one of these tabpages also need to exist as a standalone form. This would all work very well if we could find a way to change the Window Type between Form and TabPage on the fly via proc-code.

Has anyone tried something like this before - is it possible to do? Or do you have any other clever suggestions?

 

Best regards

Christoffer, Sweden

Hi Uli,

Ah, yes, that was my initial thought as well. Too bad it looks a bit out of place. If one could somehow hide the tab-bar, then that would be a quite allright solution. Problem is that we don't want to have to maintain two exact copies of the same form - that's just an accident waiting to happen.

Perhaps one could do some sort of massive complete-form-dummy-entity that's inherited via the model in both the tabpage and the form?

 

Best regards
Christoffer, Sweden


Author: voltagecontrol (christoffer.aronsson@ladok.umu.se)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:17 AM UTC

Use a form as both a tabpage and modal form?

Author: christoffer.aronsson@ladok.umu.se (voltagecontrol)

Hi,

We're building a form that will contain a tabform with several tabpages. However, one of these tabpages also need to exist as a standalone form. This would all work very well if we could find a way to change the Window Type between Form and TabPage on the fly via proc-code.

Has anyone tried something like this before - is it possible to do? Or do you have any other clever suggestions?

 

Best regards

Christoffer, Sweden

Hi Christoffer,

what about a

"pseudo-modal" (no way to leave this component, because all the "leave xxx" triggers return -1)

tabcarrier with just a tabwidget (and only your single tabpage) ?

Success, Uli

P.S. I do not think tabpages can be changed so easily to a modal page that this can be done via proc.

 


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:17 AM UTC

Use a form as both a tabpage and modal form?

Author: christoffer.aronsson@ladok.umu.se (voltagecontrol)

Hi,

We're building a form that will contain a tabform with several tabpages. However, one of these tabpages also need to exist as a standalone form. This would all work very well if we could find a way to change the Window Type between Form and TabPage on the fly via proc-code.

Has anyone tried something like this before - is it possible to do? Or do you have any other clever suggestions?

 

Best regards

Christoffer, Sweden

I am attracted by the title of this thread on the form control. This is also a topic which I am eager for a good answer. Hope I can find a good form control guide.  


Author: xiaoyuandlg (xiaoyuandlg@hotmail.com)