2021-06-1510:46 PM - last edited on 2021-09-1412:34 AM by Noemi Balogh
I created a palette dialog and use some of the dialog item classes. But these three seems to not work for me.
class MyPalette : public DG::Palette,
// dialog items
//.. more codes ..
Palette constructor (initial size and position)
DG::Palette(DG::NativePoint(), 125, 100, m_guid, VGrow, Close, TopCaption),
m_separatorV(GetReference(), DG::Rect(1, 1, 2, 2)),
m_separatorH(GetReference(), DG::Rect(1, 1, 2, 2)),
m_editSpin(GetReference(), DG::Rect(0, 0, 10, 25), m_intEdit),
//.. more codes (including actual size and position of items and Show() functions are called)..
ERR: m_editInt should be m_intEdit in this image
Separator (SOLVED, see comment below)
It seems that DG::Separator only caters vertical separator. As seen on the image above, m_separatorV is okay. But m_separatorH (highlighted by white color) only has left "border". Do I have to do or set values to make it a horizontal line?
Currently, I am using GroupBox as horizontal separator.
The created EditSpin (up/down buttons) does not show. Only the IntEdit is visible.
Currently, I am using SingleSpin and IntEdit. Whenever SingleSpin changes (clicked), IntEdit will be updated; and vice versa.
When a multiple item is selected then SetOnTabItem() is called, the item will only be place on the first selected item in the list. If you are on the last of the list, you will not notice that the item is already set to the tab index. Is there a way to let it be placed on any of the selected items? Like, instead of SetOnTabItem(tabIndex, item) we'll be using SetOnTabItem(listItem, tabIndex, item).
Currently, whenever I call SetOnTabItem() I will also call SetScrollPosition() so that the first selected item will be visible.
~ReignBough~ ARCHICAD 24 INT 4018 FULL (from AC18) Windows 10 Pro, Intel Core i7-4790 CPU @ 3.60GHz, 32.0GB RAM, 64-bit OS
1. The dialog Manager decides the type of the separator by comparing the horizontal and vertical sizes of the control.
2. The order of the edit and the editspin control is important. The edit control should be preceeding the spin control which follows it in the resource. In the sample code above the edit control was created with an empty rect.
3. Currently multisel listboxes can have the ontab item only on the first selected row.