Why it is that ListButton control is shift to right on the ToolBar of application. Why is it?
Visual Prolog 802 CE.
Localization of ListButton control in editor of ToolBar is correct.
-
- Active Member
- Posts: 40
- Joined: 30 Nov 2003 0:01
-
- VIP Member
- Posts: 452
- Joined: 5 Nov 2000 0:01
Re: The control is shift to right on the ToolBar of application
It behaves as expected for me using VP 802. Did you check the automatically generated controlList for spurious (? invisible) items?
I have a tiny suggestion for PDC: The automatically generated code for ProjectToolbar.pro needs the following:
so that the following code does not need manual inserted class specification for b_true when inserting a listbutton in the generated controlList:
I have a tiny suggestion for PDC: The automatically generated code for ProjectToolbar.pro needs the following:
Code: Select all
open core
Code: Select all
% tb_lbut(id_tb_1_2, 80, [], b_true, 0)
tb_lbut(id_tb_1_2, 80, [], core::b_true, 0)
-
- Active Member
- Posts: 40
- Joined: 30 Nov 2003 0:01
Re: The control is shift to right on the ToolBar of application
ControlList do not contains spurious (invisible) items.
I think the problem is localized in VpiToolBar.pro on my computer and fixed in my project.
The detailed description and screen-shots is on forum http://www.hardforum.ru/t135856/
Thanks.
I think the problem is localized in VpiToolBar.pro on my computer and fixed in my project.
The detailed description and screen-shots is on forum http://www.hardforum.ru/t135856/
Thanks.
-
- Active Member
- Posts: 40
- Joined: 30 Nov 2003 0:01
Re: The control is shift to right on the ToolBar of application
It is the tablet to valid localize the listBox in toolBar in SDI-project (file vpiToolbar.pro):
Now the localization of listBox in toolBar is correct.
Pictures here http://www.hardforum.ru/t135856/#post900490
Code: Select all
clauses
create_listcontrols(TbWin) :-
lbut(TbWin, Id, rct(L, T0, R, _), SList, Enabled, Pos),
T = T0 + 1,
B = T + toolbar_listbutton_height,
LBW = vpi::winCreateControl(wc_LBoxButton, rct(L, T, R, B), "", TbWin, [wsf_Visible], convert(ctlId, Id)),
vpi::lboxSuspend(LBW),
vpi::lboxAdd(LBW, -1, SList),
vpi::lboxSetSel(LBW, Pos, b_true),
vpi::lboxResume(LBW),
get_Flag(Enabled, FLAG),
vpi::winSetState(LBW, [FLAG]),
vpi::winMove(LBW,rct(L, T, R, B)), % <- it is tablet
fail.
Pictures here http://www.hardforum.ru/t135856/#post900490
- Thomas Linder Puls
- VIP Member
- Posts: 1424
- Joined: 28 Feb 2000 0:01
Re: The control is shift to right on the ToolBar of application
I have not been able to reproduce the problem.
But the code you state seems harmless, and if it solves the problem then we will add it.
But the code you state seems harmless, and if it solves the problem then we will add it.
Regards Thomas Linder Puls
PDC
PDC
-
- Active Member
- Posts: 40
- Joined: 30 Nov 2003 0:01
Re: The control is shift to right on the ToolBar of application
Yes, code is harmless.
Thanks.
Thanks.