bb.donnay-software.com

Donnay Software Web Forums
It is currently Mon May 25, 2020 10:22 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: About SCREEN DESIGN
PostPosted: Thu Nov 19, 2015 5:18 am 
Offline
User avatar

Joined: Tue Jul 28, 2015 5:15 am
Posts: 94
All @ DCSAY etc will be managed by a DCREAD GUI command.

Are all the options of DCGETOPTIONS also valid in the DCREAD GUI ?
Could I put all my options in the DCREAD GUI ?

In this example, TITLE in DCREAD GUI will be the one displayed and not the TITLE in DCGETOPTIONS.

Code:
   SET DATE FORMAT TO 'mm/dd/yyyy'
   @ 1,1 DCSAY 'Enter a Date' GET dDate PICTURE '99/99/9999' ;
         SAYRIGHT GETSIZE 13
   @ 3,1 DCSAY 'Enter a Number' GET nNumber SAYRIGHT
   @ 5,1 DCSAY 'Enter a String' GET cString SAYRIGHT
   @ 7,1 DCSAY 'Enter Yes or No' GET lLogical PICTURE 'Y' SAYRIGHT

   DCGETOPTIONS ;
      SAYWIDTH 120 ;
      WINDOWHEIGHT 300 ;
      WINDOWWIDTH 400  ;
      BORDER XBPDLG_RECESSEDBORDERTHICK_FIXED ;
      TITLE 'Data Entry' // Store options to GetOptions

   DCREAD GUI ;
      MODAL ;
      TITLE 'Text-Based GETs' ;
      BUTTONS DCGUI_BUTTON_OK + DCGUI_BUTTON_CANCEL ;
      OPTIONS GetOptions


Top
 Profile  
 
 Post subject: Re: About SCREEN DESIGN
PostPosted: Thu Nov 19, 2015 6:18 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4124
Location: Boise, Idaho USA
Before we discuss the screen designer anymore, you need to work with the latest build - 263.
This build includes major improvements to the screen designer.

Send me a private email and I will send you download instructions.

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
 Post subject: Re: About SCREEN DESIGN
PostPosted: Thu Nov 19, 2015 7:00 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 12:59 am
Posts: 772
Location: Berlin, Germany
Quote:
Could I put all my options in the DCREAD GUI ?


DCGET OPTIONS ... or DCGETOPTIONS populates an array "GetOptions"; this one is used by the DC_ReadGui (DCREAD GUI ... OPTIONS GetOptions). You could do this by yourself and just hand the completed array to DCREAD GUI. But in this situation, you have to take care about all options having the right positions in the array (even take care about the lenght of the array). Look at "DCDIALOG.CH" and search for "DCGETOPTIONS". You will see how the array is created:

Code:
GetOptions := { <cName>, <cTitle>, <nWndHeight>, ....,  [<.lLockToOwner.>] }


But it may not be a good idea to do that, since your app may f*ck up if Roger changes the Getoptions array.

If you want to recycle options (use the same options everywhere), just take a look "DC_GetOptDefault()". This function sets one option array as the default for all dialogs. You may add (other) options there.

_________________
Best regards,
Tom

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


Top
 Profile  
 
 Post subject: Re: About SCREEN DESIGN
PostPosted: Thu Nov 19, 2015 7:47 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4124
Location: Boise, Idaho USA
Quote:
But it may not be a good idea to do that, since your app may f*ck up if Roger changes the Getoptions array.


It is not likely that I will do that, except I added 1 more element recently to handle design features.

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group