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
 GetNBox "Ok" Button

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
TreeNode Posted - 02/06/2010 : 4:10:09 PM
Hi all,

is there a possibility to deactivate the "Ok" Button of a GetNBox Dialog,
as long the user entered valid input?

It would be nice if my EventHandler function proofs if entered data is valid,
and activate the "Ok" button.

Anyone a idea how to do this?




<!-- helping each other is a good thing...like TreeNode holding the branches and leaves of a Tree -->
4   L A T E S T    R E P L I E S    (Newest First)
TreeNode Posted - 03/15/2010 : 03:09:39 AM
Thank you for that information. I will give it a try!


|-- TreeNode
...|-- a??
...|-- ha!!
cpyang Posted - 03/14/2010 : 8:32:55 PM
Yes, will be good to spend the time to learn X-Function, you can then focus on the functionality and less on the GUI.

XF can include your own .h so you can still have your classes.

In terms of organization, yes, create an XF for each of your task. You can share codes with your classes by putting them into .h that you can include into the XF code.

Please note that your .h should be placed in in the <UserFile>\OriginC\X-Functions\ subfolder so that you can include it by


#include "myclass.h"


The OC compiler will search in the following order:

1. <UserFile>\OriginC\X-Functions
2. <UserFile>\OriginC



CP

TreeNode Posted - 03/14/2010 : 07:11:12 AM
Hi Penn,

thank you for that hint. I have not been engaged with using X-Functions yet.
To consider a certain complexity of my project, I started trying to work objectoriented.
I imagined to build classes to encapsulate functionality of my use cases.

I have to realize a few use cases. Each of them needs to bring up a dialog, where user
have to input some data or change properties.

I am new to the buisness of programming. So I dont have much experience of handling a project
of certain compexity.

I started to read the manual of X-Functions, and think that this Framework is a very powerful
instrument. Think it would make things easier, and I dont have to think about the GUI.

So here is my question:
Would you recommend me to just build a X-Function for each of my use cases?

thanks



|-- TreeNode
...|-- a??
...|-- ha!!
Penn Posted - 03/08/2010 : 04:09:10 AM
Hi,

Maybe you can try to create an X-Function. Then you can control the OK button on the dialog of the X-Function. You can refer to this page for more details.

Penn
OriginLab Technical Services

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