www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - lost: text parsing & GUI

reply Tyro <ridimz_at yahoo.dot.com> writes:
Could someone lend me a hand with this please?

I'd like to create a form similar to the ones below and populate it with 
the information provided in the attached file:

  -----------------------------------------
|    *********      *********       ***** |
| TE * N1195 *  TAM * A0001 *  AUTH * 1 * |
|    *********      *********       ***** |
|                              PLAN * 0 * |
|                                   ***** |
  -----------------------------------------

  -----------------------------------------
|    *********      *********       ***** |
| TE * N1220 *  TAM * D0900 *  AUTH * 0 * |
|    *********      *********       ***** |
|                              PLAN * 1 * |
|                                   ***** |
  -----------------------------------------

TE should be a drop-down list identifying all TEs in the file. In this 
case the values would be B1195, D1121, N1120, and N1172. Likewise, TAM 
should be a drop-down list of all TAMs in the file where both allowed 
and planned not equals to zero. For example, when TE N1172 is selected 
the only option available in the TAM field should be D0900.

I'm not sure how to begin. How do I design the form? Should parse the 
text file placing the required information into a data structure? What 
structure would be most suitable to hold this information?

Thanks,
Andrew
Dec 11 2004
parent reply Sjoerd van Leent <svanleent wanadoo.nl> writes:
Doesn't this belong on the forums of DUI and DWT (can both be found at 
www.dsource.org)?

D doesn't support GUI natively, you should use a library.

Regards,
Sjoerd

Tyro wrote:
 Could someone lend me a hand with this please?
 
 I'd like to create a form similar to the ones below and populate it with 
 the information provided in the attached file:
 
  -----------------------------------------
 |    *********      *********       ***** |
 | TE * N1195 *  TAM * A0001 *  AUTH * 1 * |
 |    *********      *********       ***** |
 |                              PLAN * 0 * |
 |                                   ***** |
  -----------------------------------------
 
  -----------------------------------------
 |    *********      *********       ***** |
 | TE * N1220 *  TAM * D0900 *  AUTH * 0 * |
 |    *********      *********       ***** |
 |                              PLAN * 1 * |
 |                                   ***** |
  -----------------------------------------
 
 TE should be a drop-down list identifying all TEs in the file. In this 
 case the values would be B1195, D1121, N1120, and N1172. Likewise, TAM 
 should be a drop-down list of all TAMs in the file where both allowed 
 and planned not equals to zero. For example, when TE N1172 is selected 
 the only option available in the TAM field should be D0900.
 
 I'm not sure how to begin. How do I design the form? Should parse the 
 text file placing the required information into a data structure? What 
 structure would be most suitable to hold this information?
 
 Thanks,
 Andrew
 
 
 ------------------------------------------------------------------------
 
                                               T A B L E  O F  E Q U I P M E N T
 T/E FOR  FMF UNITS INDICATED                             TYPE 1 ITEMS
     TAM                                     U
   CONTROL           NOMENCLATURE            N
     NO.                                     I
                                             T N 1120  D 1121  N 1172  B 1195  
                                                     
 ------------------------------------------------------------------------------------------------------------------------------------
       1                 2                   3      4       5       6       7  
    8       9      10      11      12      13      14
 ------------------------------------------------------------------------------------------------------------------------------------
                                                                             
 A0001  VIIG  SOME DESCRIPTION OF SOME,      KT     5       2               1
              ITEM OVER MULTIPLE LINES                                       
                                                                             
 D0900  VIIGP SOME DESCRIPTION OF SOME,      EA                              
              OTHER ITEM SPANNING MULTIPLE L                                 
              PLANNED ALLOWANCES FOR FY-05          1               1       1
                                                      PAGE NO.   27
Dec 11 2004
parent reply Tyro <ridimz_at yahoo.dot.com> writes:
Sjoerd van Leent wrote:
 Doesn't this belong on the forums of DUI and DWT (can both be found at 
 www.dsource.org)?
 
 D doesn't support GUI natively, you should use a library.
 
 Regards,
 Sjoerd
 
Sorry, don't know what I was thinking!
Dec 11 2004
parent Sjoerd van Leent <svanleent wanadoo.nl> writes:
You're a human, I'm a human, everyone makes a mistake.

Regards,
Sjoerd

Tyro wrote:
 Sjoerd van Leent wrote:
 
 Doesn't this belong on the forums of DUI and DWT (can both be found at 
 www.dsource.org)?

 D doesn't support GUI natively, you should use a library.

 Regards,
 Sjoerd
Sorry, don't know what I was thinking!
Dec 11 2004