Print Page | Close Window

How to get radiobutton bounds?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3128
Printed Date: 04 Apr 26 at 8:56AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: How to get radiobutton bounds?
Posted By: alexdmatveev
Subject: How to get radiobutton bounds?
Date Posted: 09 Jun 15 at 4:36PM
Hello,

Delphi library 11.15, win32, xe7

I have a task to render some controls from PDF onto my form.

I have some radio groups in the PDF.

Very pseudo code:
for index := 1 to FormFieldCount do
begin 
 if FDebenu.GetFormFieldKidCount(index) <> 0 then
 begin
  for j := 2 to FDebenu.GetFormFieldSubCount(index) do
   begin
    radio := TRadioButton.Create(panel);
    radio.Left := ?????
    radio.Right := ????
    radio.Checked := ????
    radio.GroupName := index;
   end;
 end;
end;

Pls show me the way to fill ???-marked fields.

Thanks a lot!



Replies:
Posted By: alexdmatveev
Date Posted: 11 Jun 15 at 3:07PM
Will ask using other words.

for index := 1 to FormFieldCount do
begin 
 if FDebenu.GetFormFieldType(index) = 4 then //radio
 begin
if FDebenu.GetFormFieldKidCount(index) = 0 then //simple radio inside group
 begin
//how can I get here information about the radio group?
//I need current group value and name.
   end;
 end;
end;


Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk