looking for a specific use case

This forum is for eXpress++ general support.
Post Reply
Message
Author
jnesser
Posts: 1
Joined: Tue Jan 20, 2015 10:39 pm

looking for a specific use case

#1 Post by jnesser »

Hi, I'm new to the board, this is my first post but I recently started working with a developer whom uses xbase++ and the express library. As such, I'm not incredibly familiar with the express library and apologize if the answer to my question is obvious.

I'm looking for a way to build a window which can be outputted to from several different functions which are called in succession, they are the components of a conversion tool, and I need to output something to the user to inform them of progress made as well as to assure them that the program hasn't ended, as the conversion takes roughly 15 seconds and right now there are no windows or taskbar icon while the converter is working.

All the methods of window creation I know of require giving over control to the library functions which create them, which obviously isn't useful in my case. Thank you for you time.

Jonathan Nesser

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: looking for a specific use case

#2 Post by skiman »

Hi,

I think this is what you are looking for. There is a dialog which shows the status of running procedures. Other possibilities are the use of a progress bar.

Code: Select all

cSay1 := "step 1 of calculation"
@ 5,5 dcsay  cSay1 saycenter saysize 40 sayid 'oSay1'
DCREAD GUI TITLE "Proceeding..." ;
   PARENT @oDialog modal eval {|o| setappwindow(o) } ;
   FIT SAVE ;
   EXIT 

oDialog:show()
o:=DC_GetObject(Getlist,'oSay1')
// run your first procedure here

cSay1 := 'Second procedure started'
o:setCaption(cSay1)
dc_getrefresh(,'oSay1')

// run your second procedure here

cSay1 := 'Next procedure started'
o:setCaption(cSay1)
dc_getrefresh(,'oSay1')
...
oDialog:destroy()
Best regards,

Chris.
www.aboservice.be

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: looking for a specific use case

#3 Post by Eugene Lutsenko »

I placed a large system in the public domain with the source code. Of course, this is not the acme of perfection. But look, something can come in handy:

https://translate.google.com/translate? ... t=&act=url

Post Reply