Liberty BASIC Community Forum
« Visual Designer v270 updated again! »

Welcome Guest. Please Login or Register.
Aug 23rd, 2017, 8:00pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Visual Designer v270 updated again!  (Read 350 times)
cundo
Guru
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 626
xx Visual Designer v270 updated again!
« Thread started on: Jun 29th, 2016, 12:30pm »

User Image


I did some changes to the code, now it has a proper Graphical User Interface, and some tweaks here and there. Download the code from my page at the wikispaces site.
cundo's place
You will find there links to my other codes too.

BTW, since it is a work-in-progress, while I was packing these files, I already made some changes to code so I'm uploading version 15, but I have version 16 on the way.
« Last Edit: Jul 14th, 2016, 11:09am by cundo » User IP Logged

cundo
CarlGundel
Administrator
ImageImageImageImageImage


member is offline

Avatar

author of Liberty BASIC


Homepage PM


Posts: 2833
xx Re: Visual Designer v120.15 updated!
« Reply #1 on: Jun 30th, 2016, 07:02am »

Cool. What are you working to add now? Is there any way to edit properties on the window and controls? You could steal the properties window from FreeForm.

-Carl
User IP Logged

author of Liberty BASIC
http://www.libertybasic.com
cundo
Guru
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 626
xx Re: Visual Designer v120.15 updated!
« Reply #2 on: Jul 2nd, 2016, 11:29am »

Yes, I'm thinking to add something simple to modify control's properties. Not so sure how, I have two options:
Just a window there with some textboxes, that will let you change the label, x and y positions, and the width and height of the control.
Or, maybe an external TKN file that will communicate with the main program. Receiving and sending new parameters.

In some of the updates I will add this Sub
Code:
Sub EraseWindow hWnd
    flags = _RDW_ERASE Or _RDW_INVALIDATE or _RDW_ALLCHILDREN
    CallDLL #user32, "RedrawWindow", _
        hWnd  as ulong, _
        NULL  as ulong, _
        _NULL as ulong, _
        flags as ulong, _
        ret   as long
End Sub
 
I believe it is better than my workaround to clean the screen while moving the controls around.


At the same time, I have found another way to do a visual designer, code posted at the API board. I can't decide which one is better.
User IP Logged

cundo
cundo
Guru
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 626
xx Re: Visual Designer v180.7 updated!
« Reply #3 on: Jul 6th, 2016, 4:01pm »

I did some changes to the code. You can edit some properties on controls now: label (for some controls , ie: buttons), x and y positions, width and height.
You can also modify the Grid size.
Buttons on toolbar are:
The eleven controls, a stop and play buttons (disable and enable controls), create code, and finally the preferences button.
User IP Logged

cundo
cundo
Guru
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 626
xx Re: Visual Designer v270 updated again!
« Reply #4 on: Jul 14th, 2016, 11:16am »

I did many changes to the code, now it uses an MDI client, I took the idea from the wiki. It has a statusbar, API comes from the LB Workshop.
So the features are:
Add real LB controls at runtime.
Resize using the little colored box.
A colored frame now around controls, (needs some tweaking yet).
Mouse Right click for options:
Edit some properties.
Delete controls.
Change controls and window title.
Change bmpbutton bitmap.
User IP Logged

cundo
CarlGundel
Administrator
ImageImageImageImageImage


member is offline

Avatar

author of Liberty BASIC


Homepage PM


Posts: 2833
xx Re: Visual Designer v270 updated again!
« Reply #5 on: Jul 14th, 2016, 11:30am »

on Jul 14th, 2016, 11:16am, cundo wrote:
I did many changes to the code, now it uses an MDI client, I took the idea from the wiki. It has a statusbar, API comes from the LB Workshop.
So the features are:
Add real LB controls at runtime.
Resize using the little colored box.
A colored frame now around controls, (needs some tweaking yet).
Mouse Right click for options:
Edit some properties.
Delete controls.
Change controls and window title.
Change bmpbutton bitmap.




Get it here. smiley

http://basic.wikispaces.com/cundo
User IP Logged

author of Liberty BASIC
http://www.libertybasic.com
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls