Screen box

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Screen box

Postby frankboss » Sun Nov 12, 2023 6:32 pm

I can't figure out how to make a screened box on a form.
What functons would I need to call?
frankboss
 
Posts: 4
Joined: Mon Sep 19, 2011 1:49 pm

Re: Screen box

Postby IDEAL Software Support » Sat Nov 25, 2023 2:11 pm

What exactly do you mean by "screened box on a form"? Please elaborate and take into consideration that we are no native English speakers. What edition of VPE are you using?
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: Screen box

Postby frankboss » Mon Nov 27, 2023 9:08 pm

When drawing a form, You want a column to have shaded background. so that the column or heading stands out.
Very common on pre-printed forms.
No problem with drawing a box, want a screened/shaded background.

Using VPE Professional V7.0

Thanks
Frank
frankboss
 
Posts: 4
Joined: Mon Sep 19, 2011 1:49 pm

Re: Screen box

Postby IDEAL Software Support » Tue Nov 28, 2023 4:26 am

I have no idea what you exactly mean. Please send a sample picture by e-mail to our support e-mail address.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: Screen box

Postby frankboss » Tue Nov 28, 2023 12:28 pm

I have emailed a sample of a form with shaded box around the headings
It was sent to support@idealsoftware.com
frankboss
 
Posts: 4
Joined: Mon Sep 19, 2011 1:49 pm

Re: Screen box

Postby IDEAL Software Support » Tue Nov 28, 2023 12:42 pm

From what I see, set the background color to a light gray, the pensize = 0 and then call the Box() method (DLL: VpeBox) and paint a grey box without a border (pensize = 0). Afterwards you can paint text on top of it.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: Screen box

Postby frankboss » Thu Dec 07, 2023 8:08 pm

I did the following
VpeSetBkgColor(hDoc, COLOR_LTGRAY)
VpePenSize(hDoc, 0)
VpeBox(hDoc, X1,Y1,X2,Y2)

It draw a clear box.

If I set the VpePenSize(hDoc, .01)
It draws a box with line around box.
frankboss
 
Posts: 4
Joined: Mon Sep 19, 2011 1:49 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 4 guests