Duran
Posts: 37
|
Issues in test programs 6 Years, 1 Month ago
|
|
Hello,
I've done a copy of firtstep/01 sample, I've begin to modifiy it to see
how disko works: I've placed a vertical box to the window and two labels
in the vertical box. From the main thread, every 5 seconds It was setting
the second label visible and not, alternativelly.
- To see the changes in the configuration of the labels, it was needed
to call window::refresh(). Why is it needed if the widgets has a pointer
to window? The call to window::refresh() is not nedded when changing the
text of the label.
- Vertical box allways sets the same space to its widgets. It's is
expected to implement other policies: only set space to visible
widgets,...
(see attached file)
Also, I've detected that running the applications on X11, and moving the
mouse from disko window to another window, some times a copy of the
mouse pointer is shown in the disko window.
Thanks and Best Regards,
Joaquim Duran
|
|
|
|
|
The administrator has disabled public write access.
|
Duran
Posts: 37
|
Re:Issues in test programs 6 Years, 1 Month ago
|
|
See the source code of the program.
Joaquim Duran File Attachment: File Name: main.txtFile Size: 3413
|
|
|
|
|
The administrator has disabled public write access.
|
Stefan
Posts: 91
|
Re:Issues in test programs 6 Years, 1 Month ago
|
|
Hi Joaquim,
the setText() and setVisible() methods along with many others have a Parameter bool refresh. This parameter has the default value false. If you call setVisible(true) or setText("text",true) you should instantly see the changes.
We have done this concept of refresh, to enable the developer to stack some actions and then to use the window->refreh() to make them visible.
|
|
|
|
|
The administrator has disabled public write access.
|
Duran
Posts: 37
|
Re:Issues in test programs 6 Years, 1 Month ago
|
|
Stefan,
Sorry, but de refresh parametrs defaults to true, almost in disko 1.5.0. From source code:
virtual void setVisible(bool visible, bool refresh = true);
void setText(string text, bool refresh = true);
IMO, I think that in setVisible, a call to redraw or something similar is missing.
Joaquim Duran
|
|
|
|
|
The administrator has disabled public write access.
|
Stefan
Posts: 91
|
Re:Issues in test programs 6 Years, 1 Month ago
|
|
Hi Joaquim,
yes you are right, I mixed that up. All in all, that seems to be a bug there. You are using disko-1.5.0? Could you retest your program using the latest version from git, if you haven't already?
kind regards
Stefan
|
|
|
|
|
The administrator has disabled public write access.
|
Duran
Posts: 37
|
Re:Issues in test programs 6 Years, 1 Month ago
|
|
Hi Stefan,
Updating to the lastest version from git, doesn't fix the problem.
Joaquim Duran
|
|
|
|
|
The administrator has disabled public write access.
|
|