problem in printer property sheet

hi friends,
I am facing a problem in the property sheet UI of printer driver.

In the list of paper settings, i have a “Custom Size” option which on selection displays a dialog box that enables the user to set the height and width of paper size.
If i select the papersize again as “custom” from mouse, no event is generated and the callbackfunction is not executed. (ie click on the list, scroll it with mouse, and click on custom again)

For the first time i am getting messages “CPSUICB_REASON_OPTITEM_SETFOCUS” (when control for PAPERTYPE is selected) then “CPSUICB_REASON_SEL_CHANGED” (if the current selection is different from the older one in the list of available papertypes).
The problem comes, if the user wishes to change paper dimensions again, he has to first some other papertype then again “Custom” type.
The papertype list is of “TVOT_COMBOBOX”

Is there any solution for this situation…
thanks in advance.

best regards
vaibhav


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

This is basically a design issue not to do with CPSUI in particular.
SEL_CHANGED is generated only when the selected item is changed. If it
does not change, the escape is not generated. I can’t think of any
trivial workaround.

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: Vaibhav Kalia [mailto:xxxxx@newgen.co.in]
Sent: Wednesday, January 30, 2002 12:08 AM
To: NT Developers Interest List
Subject: [ntdev] problem in printer property sheet

hi friends,
I am facing a problem in the property sheet UI of printer driver.

In the list of paper settings, i have a “Custom Size” option which on
selection displays a dialog box that enables the user to set the height
and width of paper size.
If i select the papersize again as “custom” from mouse, no event is
generated and the callbackfunction is not executed. (ie click on the
list, scroll it with mouse, and click on custom again)

For the first time i am getting messages
“CPSUICB_REASON_OPTITEM_SETFOCUS” (when control for PAPERTYPE is
selected) then “CPSUICB_REASON_SEL_CHANGED” (if the current selection is
different from the older one in the list of available papertypes).
The problem comes, if the user wishes to change paper dimensions again,
he has to first some other papertype then again “Custom” type.
The papertype list is of “TVOT_COMBOBOX”

Is there any solution for this situation…
thanks in advance.

best regards
vaibhav

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

ashwin,
thats true & absolutely logical that SELCHANGE should come when a selection
is changed, but according to my observations, the CPSUI is giving me some
filtered events only that correspond to the change in the property sheet
items, ie, in case of general SDK application, i can get all the messages
regarding controls but our case the CPSUI gives only the following “reasons”
to my callback function, for others events there is no message generated
(and hence my callback doesnt get executed)
CPSUICB_REASON_SEL_CHANGED
CPSUICB_REASON_PUSH BUTTON
CPSUICB_REASON_ECB_CHANGED
CPSUICB_REASON_DLGPROC
CPSUICB_REASON_EXTPUSH
CPSUICB_REASON_APPLYNOW
CPSUICB_REASON_OPTITEM_SETFOCUS
CPSUICB_REASON_ITEMS_REVERTED
CPSUICB_REASON_ABOUT

Is this a design issue of CPSUI (implemented with the thought that user is
relieved from all this event processing handling) or there is something
which i am missing.!!!

thankx for help.
best regards
Vaibhav
----- Original Message -----
From: “Ashwin Needamangala”
To: “NT Developers Interest List”
Sent: Wednesday, January 30, 2002 11:51 PM
Subject: [ntdev] RE: problem in printer property sheet

> This is basically a design issue not to do with CPSUI in particular.
> SEL_CHANGED is generated only when the selected item is changed. If it
> does not change, the escape is not generated. I can’t think of any
> trivial workaround.
>
> - Ashwin
>
> This posting is provided “AS IS” with no warranties, and confers no
> rights.
>
> -----Original Message-----
> From: Vaibhav Kalia [mailto:xxxxx@newgen.co.in]
> Sent: Wednesday, January 30, 2002 12:08 AM
> To: NT Developers Interest List
> Subject: [ntdev] problem in printer property sheet
>
>
> hi friends,
> I am facing a problem in the property sheet UI of printer driver.
>
> In the list of paper settings, i have a “Custom Size” option which on
> selection displays a dialog box that enables the user to set the height
> and width of paper size.
> If i select the papersize again as “custom” from mouse, no event is
> generated and the callbackfunction is not executed. (ie click on the
> list, scroll it with mouse, and click on custom again)
>
> For the first time i am getting messages
> “CPSUICB_REASON_OPTITEM_SETFOCUS” (when control for PAPERTYPE is
> selected) then “CPSUICB_REASON_SEL_CHANGED” (if the current selection is
> different from the older one in the list of available papertypes).
> The problem comes, if the user wishes to change paper dimensions again,
> he has to first some other papertype then again “Custom” type.
> The papertype list is of “TVOT_COMBOBOX”
>
> Is there any solution for this situation…
> thanks in advance.
>
> best regards
> vaibhav
> —
> You are currently subscribed to ntdev as: xxxxx@microsoft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@newgen.co.in
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

This behaviour with CPSUI is by design.

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: Vaibhav Kalia [mailto:xxxxx@newgen.co.in]
Sent: Wednesday, January 30, 2002 9:27 PM
To: NT Developers Interest List
Subject: [ntdev] RE: problem in printer property sheet

ashwin,
thats true & absolutely logical that SELCHANGE should come when a
selection is changed, but according to my observations, the CPSUI is
giving me some filtered events only that correspond to the change in the
property sheet items, ie, in case of general SDK application, i can get
all the messages regarding controls but our case the CPSUI gives only
the following “reasons” to my callback function, for others events there
is no message generated (and hence my callback doesnt get executed)
CPSUICB_REASON_SEL_CHANGED CPSUICB_REASON_PUSH BUTTON
CPSUICB_REASON_ECB_CHANGED CPSUICB_REASON_DLGPROC CPSUICB_REASON_EXTPUSH
CPSUICB_REASON_APPLYNOW CPSUICB_REASON_OPTITEM_SETFOCUS
CPSUICB_REASON_ITEMS_REVERTED CPSUICB_REASON_ABOUT

Is this a design issue of CPSUI (implemented with the thought that user
is relieved from all this event processing handling) or there is
something which i am missing.!!!

thankx for help.
best regards
Vaibhav
----- Original Message -----
From: “Ashwin Needamangala”
To: “NT Developers Interest List”
Sent: Wednesday, January 30, 2002 11:51 PM
Subject: [ntdev] RE: problem in printer property sheet

> This is basically a design issue not to do with CPSUI in particular.
> SEL_CHANGED is generated only when the selected item is changed. If it

> does not change, the escape is not generated. I can’t think of any
> trivial workaround.
>
> - Ashwin
>
> This posting is provided “AS IS” with no warranties, and confers no
> rights.
>
> -----Original Message-----
> From: Vaibhav Kalia [mailto:xxxxx@newgen.co.in]
> Sent: Wednesday, January 30, 2002 12:08 AM
> To: NT Developers Interest List
> Subject: [ntdev] problem in printer property sheet
>
>
> hi friends,
> I am facing a problem in the property sheet UI of printer driver.
>
> In the list of paper settings, i have a “Custom Size” option which on
> selection displays a dialog box that enables the user to set the
> height and width of paper size. If i select the papersize again as
> “custom” from mouse, no event is generated and the callbackfunction is

> not executed. (ie click on the list, scroll it with mouse, and click
> on custom again)
>
> For the first time i am getting messages
> “CPSUICB_REASON_OPTITEM_SETFOCUS” (when control for PAPERTYPE is
> selected) then “CPSUICB_REASON_SEL_CHANGED” (if the current selection
> is different from the older one in the list of available papertypes).
> The problem comes, if the user wishes to change paper dimensions
> again, he has to first some other papertype then again “Custom” type.
> The papertype list is of “TVOT_COMBOBOX”
>
> Is there any solution for this situation…
> thanks in advance.
>
> best regards
> vaibhav
> —
> You are currently subscribed to ntdev as: xxxxx@microsoft.com To
> unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@newgen.co.in To
> unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com