1. Sivaprakash BKR
  2. PowerBuilder
  3. Tuesday, 19 April 2022 07:47 AM UTC

Hello,

PB 2019 R3

Trying to convert a print option datawindow into a Ribbonbar menu item.   Users will select the Printer, set paper size, set Margins etc.   Now to set
1.  Printer ->  Combo Box option is available
2.  Paper Size -> Combo Box Option is available
3.  Margins ->  Need SLE option.  Is that available?   

Or other suggested methods to get the input for
1.  Top Margin, Bottom Margin, Left margin, Right Margin
2.  Zoom (in /out), in %.  In dw, we have Spinner control for this.  Any equivalent in Ribbon Bar?

Happiness Always
BKR Sivaprakash

 

Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 20 April 2022 03:11 AM UTC
  2. PowerBuilder
  3. # 1

Hi BKR,

 

Currently, RibbonBar doesn't support singlelineedit like control.

Our document has a list of supported controls for RibbonBar. See the following link for reference:

https://docs.appeon.com/pb2021/pbug/Working_with_RibbonBar.html

If you want to use a singlelineedit like control, as mentioned by Andreas, the only alternative is to use ComboBox with AllowEdit="true" to work around it.  The drawback is that you can't get rid of the down arrow.

Sample XML code

<ComboBox PictureName="" Label="Edit:" AllowEdit="true" AutoScale="true" Text="" AutoHScroll="false" Enabled="true" PowerTipText="" PowerTipDescription="" HScrollBar="false" VScrollBar="false" SelectedIndex="1" Sorted="true" Tag="" BoxHeight="600" BoxWidth="300" Width="400" Visible="true" Modified="ue_ComboBoxPageSizeModified" Selected="ue_ComboBoxPageSizeSelected" SelectionChanged="ue_ComboBoxPageSizeSelectionChanged" />

Therefore, we will record this as an enhancement request and transfer it to product team for consideration.

 

Regards,

Comment
  1. Sivaprakash BKR
  2. Wednesday, 20 April 2022 04:25 AM UTC
Thanks Mark Lee, for taking this as an enhancement request. We will use the alternative method suggested by Andreas as of now.
  1. Helpful
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 19 April 2022 08:46 AM UTC
  2. PowerBuilder
  3. # 2

I don't believe that singlelineedit is supported. But you may try to use combobox with: AllowEdit="true". It's not what you ask for but it may do the job.

Andreas.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.