method to building a screen with many objects

This forum is for eXpress++ general support.
Message
Author
User avatar
Tom
Posts: 1185
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: method to building a screen with many objects

#11 Post by Tom »

Maxz, look at the "TABMERGE.PRG" in "..\Samples\TabPage" of your eXpress++-installation!
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4745
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: method to building a screen with many objects

#12 Post by rdonnay »

Have you tried this?

Code: Select all

DCGETOPTIONS ;
  BUSYMESSAGE 'Building Screen Objects. Please wait..'   COLOR GRA_CLR_DARKGREEN  
The eXpress train is coming - and it has more cars.

Maxz
Posts: 49
Joined: Sun Jan 09, 2022 12:11 pm

Re: method to building a screen with many objects

#13 Post by Maxz »

yes Roger,
i've tried BUSYMESSAGE option but I don't really like it because the progress bar (I think it's a thread) is positioned centrally on the screen and is untied from the window where the screen is composed

I would prefer to check the construction of the screen trying to optimize the speed and maintaining the similarity with other windows applications

I would like to explore Tom's suggestion ...

User avatar
Tom
Posts: 1185
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: method to building a screen with many objects

#14 Post by Tom »

Roger replaced the DC_MergeGetLists()-concept (which is still alive) with the MERGECHILDREN clause some years ago. Look at the sample!

This is how I use(d) DC_MergGetLists:

Code: Select all

@ 0,0 DCTABPAGE oTab ... GOTFOCUS {||IF(!lShowTab,lShowTab := ShowTab(oTab,GetList,oDialog),NIL)}

... somewhere else:

FUNCTION ShowTab(oOwner,aGetList,oDialog)
LOCAL Getlist := {}

... build parts

DCREAD GUI SAVE PARENT oOwner
DC_MergeGetLists(oGetList,GetList)
RETURN .T.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Wolfgang Ciriack
Posts: 481
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: method to building a screen with many objects

#15 Post by Wolfgang Ciriack »

Hello,
take a look at the XDEMO program from Roger, samples 5, MergeGetlist2.
It shows the building of tabpages and the elements on demand.
_______________________
Best Regards
Wolfgang

User avatar
Tom
Posts: 1185
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: method to building a screen with many objects

#16 Post by Tom »

It shows the building of tabpages and the elements on demand.
My shortened code showed almost the same.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Wolfgang Ciriack
Posts: 481
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: method to building a screen with many objects

#17 Post by Wolfgang Ciriack »

Sorry Tom, i did not realize your sample.
_______________________
Best Regards
Wolfgang

Post Reply