The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Initialising ( tabbed ) dialogs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter.cook

UK
356 Posts

Posted - 05/23/2005 :  07:17:10 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): Origin 7.5 SR5
Operating System: Win 2000

Hi,

I'm still messing around with dialogs and Origin C which is interesting...

One problem I still have is that the user has to click on a control for the code to work and on all tabs of a tabbed dialog.
The code is based on that submitted by CP and Eric :

http://www.originlab.com/forum/topic.asp?TOPIC_ID=3771 and
http://www.originlab.com/forum/topic.asp?TOPIC_ID=3860

I guess all the dialog tabs need to be initialised .. where and how should this generally best be done for both simple and tabbed dialogs?
I think the two examples are different in this respect.
The user should be able to just click once on the OK button if that is all they ned to do.

Thanks,

cheers,

Pete

rlewis

Canada
253 Posts

Posted - 05/23/2005 :  10:00:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Peter ...
Initialization and ipdating of pages on a tabbed dialog is easily accomplished by incorporating the PAGE_ON_INIT and PAGE_ON_ACTIVE
into the Dialog Events block and writing the appropriate event handling functions.

Hope this helps


EVENTS_BEGIN
PAGE_ON_INIT(fn_OC_EventHandler_a) // ... for initialization
PAGE_ON_ACTIVE(fn_OC_EventHandler_b) // ... for updating
EVENTS_END
Go to Top of Page

peter.cook

UK
356 Posts

Posted - 05/24/2005 :  08:22:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Ruthven,

Thanks for reply. My code had of course conatined functions as above - the problem now appears to be a bug relating to launching a dialog from a text control button as described :
http://www.originlab.com/forum/topic.asp?TOPIC_ID=3967

Cheers,

Pete

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000