Questions tagged [ddx]

10 questions
3
votes
1 answer

How do I change the font for the table of contents in a PDF generated with DDX file?

I'm using ColdFusion to generate a PDF and creating a DDX file that will generate the TOC for the file when it's done. I can configure and format a header for the TOC page, but have not been able to find anything anywhere on how to change the font…
mwill81
  • 115
  • 7
2
votes
2 answers

coldfusion/DDX PDF single page bookmarks

Is there a possibility to generate bookmarks (for DDX table of content) with Coldfusion or DDX without starting a new page? Coldfusion gives us the possibility to generate pdf-bookmarks with: But this…
Xavier L.
  • 368
  • 1
  • 11
1
vote
1 answer

Can we map a checkbox to a bool variable in MFC instead of BOOL?

Take this variable mapping in a CDialog: DDX_Check(pDX, IDC_CHECK_PREVIEW_CURRENT_WEEK, m_bPreviewCurrentWeek); By design in the IDE it to map to a BOOL variable instead of a bool variable. I know that under normal circumstances you can just use a…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
1
vote
1 answer

MFC DDX_Radio causes debug assertion failure when DoDataExchange is called (dlgdata.cpp Line 286)

I have a dialog with radio button with groups of 4 buttons. DDX_Radio(pDX, D_RADIO_GROUPLEAD, intToStore) in DoDataExchange is there for saving and loading. It works perfectly fine. Selection changed, DoDataExchange called, stores and loads data no…
Shintaro Takechi
  • 1,215
  • 1
  • 17
  • 39
1
vote
0 answers

How to create a text field within a DDX file?

I'm trying to create an adobe form that consists in a text field inside a DDX file that contains properties such as watermarks and other options. Adobe DDX reference indicates that it supports XDP declarations but I've not been able to make it…
Joel Orona
  • 46
  • 5
0
votes
0 answers

My compiler seems to think my header DDX function is multiply defined when it is not. Why?

I have just tried to add a second DDX_CBWordIndex to my header file: #pragma once #include "stdafx.h" template void AFXAPI DDX_RadioEnum(CDataExchange* pDX, int nIDC, E& value) { if (pDX == nullptr) return; // (1)…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
0
votes
1 answer

C++ - in DDX_Text function should a nIDC be unique?

Let's say we have some Dialog and in DoDataExchange function we have some DDX_Text calls which works with some text fields. Let's see a prototype: void AFXAPI DDX_Text( CDataExchange* pDX, int nIDC, CString& value ); I'm new to Windows Dialogs and…
Archont
  • 101
  • 1
  • 9
0
votes
0 answers

Application is getting crashed when I drag the dialog box created through MFC because of DDX mechanism

I am able to fix the bug I got but I am interested in the reason behind the bug. I used my combo box (which was created using DDX mechanism) pointer as argument in one of my method. For example: bool CMyStuff::FillCombo(CComboBox* combo_ctrl) But…
0
votes
1 answer

DDX Data Binding with Windows Forms Can't Find Class Method

So I'm using Visual C++ 2013 to make a GUI application using MFC. I've embedded a C# Windows Form into the GUI using this tutorial and from there, used this tutorial, to add data binding to the Windows Form window. Now, I can use the following line…
Toby
  • 21
  • 4
0
votes
1 answer

Don't include header on first page (CFPDF + DDX)

I'm using DDX to add headers, footers, and pagination to PDF documents. If possible I would like the header for the first page of each file to be blank, but then to have headers for the remaining pages. I've looked through the documentation and…
Jordan Reiter
  • 20,467
  • 11
  • 95
  • 161