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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Initialising ( tabbed ) dialogs

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
peter.cook Posted - 05/23/2005 : 07:17:10 AM
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

2   L A T E S T    R E P L I E S    (Newest First)
peter.cook Posted - 05/24/2005 : 08:22:47 AM
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

rlewis Posted - 05/23/2005 : 10:00:37 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000