how to use a splitter

Started by balisteor, August 13, 2013, 07:25:14 AM

Previous topic - Next topic

balisteor

For some reason I cannot find out how splitters are supposed to work. nor can I find basic help on these. so nevermind how upsetting this is for me, I would like someone to take a look at this and tell me what I'm doing wrong.  I have each listbox alignment edges set to the splitter but when it is moved, the two listboxes stay put  and when I perform a redraw on the form they still do nothing. I'm assuming I'm not supposed to resize, move the listboxes on my own (which is what I've currently been doing) because isn't the splitter supposed to to do that?  So I'm quite confused. I'm sure this is a lisp code problem and I need to add more, I just need someone to politely tell me what it is I need to add.


(attached are opendcl and lisp file)
Thanks.

owenwengerd

#1
You need to set the list box edge position to be relative to the splitter. Use the Properties wizard and choose Splitter1 to align the appropriate left or right edge to the splitter. You do not need any lisp code. Please take a look at the Splitter sample if you have trouble understanding how the splitter works.
Owen Wengerd (Outside The Box) / ManuSoft

balisteor

Are they not already? the right edge of listbox1 is set to splitter1, and the left edge of listbox2 is set to splitter1.  and splitter 1 the left and right is set to itself.

owenwengerd

The file you attached does not have the list box edges aligned to the splitter.
Owen Wengerd (Outside The Box) / ManuSoft

balisteor

I know this is going to sound stupid, I'm not seeing the error, and in the sample that matches what I have done. but the sample works   So could you change that odcl file to working order and re-attach it? and see if it will work for me?

owenwengerd

Here are the steps to fix your file:

1) Download splittertest.odcl from the previous post and open it in Studio.
2) In the project tree, double click on Modeless\Form1 to open it for editing.
3) In the Z-Order tab, double click on ListBox1 to open the property wizard.
4) On the Geometry tab, change Right Side Alignment to Splitter1 and press [OK].
5) In the Z-Order tab, double click on ListBox2 to open the property wizard.
6) On the Geometry tab, change Left Side Alignment to Splitter1 and press [OK].
7) Save the modified file.
Owen Wengerd (Outside The Box) / ManuSoft

balisteor

#6
something is getting my editor mixed up, it gets the splitter stuck on itself, and the listbox1 left alignment stuck on the splitter, when i did your exact steps, it worked! for the first time ever!  And it made me a little upset because I cannot figure out why..   When i remake a new one and create all them together again like i did the first time it gets stuck and wont work and i cannot get them fixed. So I will go through all my steps again and see what is causing this error of i can. then report back. (video attached of error)

owenwengerd

If you can provide exact steps to reproduce that from a new project, I would like to investigate further. I think the editor should not allow a splitter to be aligned to itself; I will investigate that as well.
Owen Wengerd (Outside The Box) / ManuSoft

balisteor

#8
I'm using version 7.0.0.13

ok, so I make a new project, add a modal or mode-less dialog and add a splitter. it automatically assigns the edges to itself.. no matter what i do. if its a vertical splitter (moves up and down) it assigns the top and bottom to itself as well.
So i was thinking why did it work when I downloaded my own file?

So i saved this new form, and re-opened it, and then it works. it gets rid of the bug, so its only when i make them the first time. if it is saved, closed and then re-opened it seems to fix itself.

balisteor

#9
Now I see why this never worked for me. I've worked for hours on a project and could never get the splitter to work, but now if i just save the project and re-open it it I can edit it and make it work.

I assume its only my computer doing this though, it doesn't seem that anyone else has encountered this, But why I do not know.

Hopefully it's easy for you to figure out.
again if it helps -> I'm using v7.0.0.13, Windows 7

owenwengerd

Thanks, I was able to reproduce the problem. It is now fixed for the next build.
Owen Wengerd (Outside The Box) / ManuSoft

balisteor

Thanks to you for helping me think a little harder, I have a workaround and can now use them.
I now have my first splitter and it works!