Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
11
Erster Beitrag:
vor 5 Jahren, 2 Monaten
Letzter Beitrag:
vor 5 Jahren, 2 Monaten
Beteiligte Autoren:
JP, Fabrice Harari, Andy Stapleton.pcs.crosspost, Alexandre Leclerc, Paulo Oliveira

Internal Window Control

Startbeitrag von JP am 27.04.2013 15:51

Hi All,

Just looking for some feedback on how (or why) one would use the internal window control. How would you use this in an application?

TiA

Antworten:

Hi JP

that could be used to make a UI kind of MDI, with toolbars on the border, and an internal window control displaying different windows depending on the user actions...

Best regards

von Fabrice Harari - am 27.04.2013 16:00
Hi Fabrice,

WinDev 17

I think I understand - internal windows allows me to create MDI interface within a specific window i.e. a parent window which contains multiple child windows? Do I need one internal control for each child window?

von JP - am 27.04.2013 16:24
Hi Fabrice

I found an example in WinDev (the FTP Progressbar example). I can see the use of internal windows as a way to create new objects containing other objects which can be shared between several windows and/or projects. That's pretty useful.

von JP - am 27.04.2013 17:55
Hi JP

you can by example use control clone to clone internal windows control as needed (size, position and so on...

I each ofthem you can display the SAME or different internal windows (by example, you build a genric table window able to display any data, and use it in 5 different internal window controls cloned on the spot for your UI....

You can do some pretty powerfull stuff this way

Best regards

von Fabrice Harari - am 27.04.2013 20:01
Yes, in another language (VFP) we call this a container control as in a container of other objects/controls. Very useful and powerful. Thanks.

von JP - am 28.04.2013 08:09
Hi JP,

To complete Fabrice's answer (because I also use this tehcnique in some cases), you can also use a single Internal Window Control with the function ChangeSourceWindow() to dynamically change the content of the Internal Window Control.

Both have pros and cons. Cloning the control allows you to not loose the state of the internal window and coming back to it later (usually I use planes with that too). Like making a wizard, etc. Not cloning the control allows you to have a "clean" display every time. You must save any data before changing the source. This technique is good if the Iternal Window is using much memory or for other reasons. Both techniques are very useful depending of your software design and expected behaviour.

Note that it is not yet possible to use window templates with internal Windows. We hope it will in a coming version.

Also in version 18, it is now possible to Open() directly an internal Window. This is quite good and has multiplied the use of them.

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 29.04.2013 12:45
We use it a lot.
We have several internal windows with search criteria controls and all the function for associated with it.
When we need to add search functions to one windows the only thing to do is to create one internal windows control, associate the internal windows we need (or in some cases associate it by programming) and it's done.

The search is only one example, we have internal windows for several others generic purposes.

The most difficult thing at the beginning was to understand the concept of internalwindow and internalwindow control.

von Paulo Oliveira - am 29.04.2013 14:14
I have a database management tool, using internal windows along with
the ribbon bar...

each tab of the ribbon bar does a changesourcewindow() to an new
internal window and allows me to use the ribbon as intended.

the internal windows are quite powerful, and with addition of the
OPEN()
in v18, quite cool... (I had done it via code earlier).

http://screencast.com/t/IuRsHZVUyVH

is a link on Screencast that shows how it works... this also does the
controlclone() on a tab

Andy Stapleton
www.ccscowboy.com
skype windev chat skype:andy_ccscowboy





JP formulated on Saturday :
> Hi All,
>
> Just looking for some feedback on how (or why) one would use the internal
> window control. How would you use this in an application?
>
> TiA

--
Andy Stapleton
www.ccscowboy.com
Skype group Windev English andy_ccscowboy


Message forwarded from pcsoft.us.windev

von Andy Stapleton.pcs.crosspost - am 29.04.2013 15:44
Thanks Andy - looks very professional. I'm thinking of ways we can use it!

von JP - am 29.04.2013 16:18
Thanks Paulo. It is indeed a very useful control.

von JP - am 29.04.2013 16:18
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.