ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to read data stored using CAdUiDialog::SetDialogData() without calling DoModal?

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
622 Views, 2 Replies

How to read data stored using CAdUiDialog::SetDialogData() without calling DoModal?

Hi All,

 

I'm looking for a way to read the data that I stored using SetDialogData without calling the doModal.

 

I need the data to be available outside of the dialog class.

 

Thanks in advance,

Badie Saliba

Labels (3)
2 REPLIES 2
Message 2 of 3
Alexander.Rivilis
in reply to: Anonymous

As far as CAdUiDialog::GetDialogData method is public - so you call it outside of CAdUiDialog derived class.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 3 of 3
Anonymous
in reply to: Alexander.Rivilis

Hi Alexander, 

 

In the below example I set the ARROW_POSITION_AS_MADE_SAVE in the BSKAcUiAsMadeDialog class, however, when I call it from BSK_ASMADE_POLY (outside the class ) I'm getting null data.

 

 

 

void BSK_ASMADE_POLY() {

	BSKAcUiAsMadeDialog dlg;
	//// Set the dialog name for registry lookup and storage
	dlg.SetDialogName(_T("GEOtip:BSKAcUiAsMadeDialog"));



	DWORD arrow_position_asmade;
	DWORD arrow_position_bestfit;
	DWORD arrow_position_ref;
	if (!dlg.GetDialogData(_T("ARROW_POSITION_AS_MADE_SAVE"), arrow_position_asmade))
		arrow_position_asmade = 1;
	if (!dlg.GetDialogData(_T("ARROW_POSITION_BEST_FIT_SAVE"), arrow_position_bestfit))
		arrow_position_bestfit = 0;
	if (!dlg.GetDialogData(_T("ARROW_POSITION_REF_SAVE"), arrow_position_ref))
		arrow_position_ref = 0;

}

 

 

 

Regedit screenshot:

 

Capture.PNG

 

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report