Disko Forum logo Login  |  Register  |  Lost Password
<< Start < Prev 1 2 3 Next > End >>
Re:Issues in test programs

Stefan
Posts: 91
graph

Re:Issues in test programs 5 Years, 1 Month ago  
Hi Joaquim,

okay, then its confirmed... I will have a look into it, if its a missing refresh or something else.

Stay tuned!

kind regards
Stefan
 
  The administrator has disabled public write access.
Re:Issues in test programs

Stefan
Posts: 91
graph

Re:Issues in test programs 5 Years, 1 Month ago  
Hi Joaquim,

found the error, the refresh method was too optimistic. Please check again with the git version.

kind regards
Stefan
 
  The administrator has disabled public write access.
Re:Issues in test programs

Duran
Posts: 37
graphgraph

Re:Issues in test programs 5 Years, 1 Month ago  
Stefan,

It's working fine.

What about the rest of issues, especially the last one, about mouse pointer?

Joaquim Duran
 
  The administrator has disabled public write access.
Re:Issues in test programs

Stefan
Posts: 91
graph

Re:Issues in test programs 5 Years, 1 Month ago  
Hi Joaquim,

how is the parameter pointer set in the graphics section in the diskorc.xml? Is it set to internal or external?

As to the layouting question, can you elaborate this a bit more?

kind regards
Stefan
 
  The administrator has disabled public write access.
Re:Issues in test programs

Duran
Posts: 37
graphgraph

Re:Issues in test programs 5 Years, 1 Month ago  
Hello,

>> how is the parameter pointer set in the graphics section in the
>> diskorc.xml? Is it set to internal or external?

This parameter is not set in diskorc.xml. Currently I'm using the file diskorc-1cd9902de71787944af1b1d4bd3c2158.txt that you send to me some time ago.

>> As to the layouting question, can you elaborate this a bit more?

Well, I've used Gtkmm to develop two applications. When I've developed the test appliation with disko, I've checked that compared with Gtkmm, the boxes widgets from Disko are no flexible (Perhaps I hanven't get the disko filosophy, yet).

How can I align widgets in disko, using HBoxes, VBoxes and Menus?

Once concrete think to discuss: I would like to enhance the boxes interface. Currently I only could insert widgets to the end of the list of a box but no in other positions. It is possible to implement the following members functions in vertical and horizontal boxes?

void add (MMSWidget *widget)
--> Insert a widget at the end of the list. Currently implemented.

void add (size_t position, MMSWidget *widget)
--> Insert a widget at a position of the list (0 means at the begin). If the position is bigger than the size of the list of widgets of the box, then the widget is inserted at the end of the list.

void add (MMSWidget *widget1, MMSWidget *widget2)
--> Widget2 is inserted at position of widget1 (and the position of widget1 in the list is incresed by 1)

Thanks and Best Regards,
Joaquim Duran
 
  The administrator has disabled public write access.
Re:Issues in test programs

Stefan
Posts: 91
graph

Re:Issues in test programs 5 Years ago  
Hi Joaquim,

The parameter "pointer" resides in the graphics section of the diskorc. Please try the value "external". This makes use of the X11 pointer completely disabling the internal one.

As to the layouting. Normally we do all the layouting in the dialog xml files. Using a combination of <hbox>, <vbox> and <gap> elements for the placement. All of our layouting - in our projects - is done using xml-files and the dialog manager.

The widgets have a size attribute. This attribute is used to determine the space needed in a box widget. In an hbox this reflects the width taken by a widget. In a vbox the size attribute reflects the height of the widget.

So layouting 2 Buttons in a xml dialog can look as follows:

QUOTE:
<mainwindow w="320px" h="200px" >
<vbox>
<gap size="10%"/>
<button size="40px"/>
<gap size="10px"/>
<button size="40px"/>
</vbox>
</mainwindow>


That's adding 2 Buttons with some space between them vertically aligned to the window. Yo can nest the <vbox>, <hbox> and <gap> as you please, and thus can reach most of you layouting purposes.

There are lots of attributes that have an impact on this, like alignment, size, margins and so on. The pity is, that we do not have a thorough documentation yet, outlining all of them. The best thing is to have a look to the Morphine.TV source code, as there are lots of dialog files used. In the meantime, just keep asking, and we will help you on the layouting.

Your wishes could certainly be addressed, i will have closer look into it, but it seems that they could be added without too much hassle.


kind regards
Stefan
 
 
Last Edit: 2009/08/18 13:50 By Stefan.
  The administrator has disabled public write access.
<< Start < Prev 1 2 3 Next > End >>
Powered by FireBoard
get the latest posts directly to your desktop