PowerToTheBuilder
Helping to put the Power back in PowerBuilder

UI Designer - Part 2

June 4, 2009 10:20 by bradwery

I'm starting to make some good progress. I pretty much have the shell done and windows for each of the different controls. Next will be the hard part. I need to develop a very flexible properties window. I have an idea of how to do it. I can't wait to get this tool done. It's going to make our jobs much easier.

Actually, once I get the core stuff working, I'll end up using the application to develop the rest of the application. How cool is that.

Here is the current situation with the UI controls. Lets say you want to add a toolbar to your application. Right now you have to code all the of_AddItem's, figure out which pictures you want to use, are they opened on the left or right, border or no border...all through code. This means you have to figure out which functions to call. Add it to your application, run your application to see the results then go back and make modifications.

With this application you would open a new "ToolbarStrip Painter" window. There will be an empty toolbar presented to you. To the right will be a properties window. You will use this to customize your toolbar. You will also use this properties window to add items and select images. While you're doing this the toolbar will automatically be updated. You can see first hand what it will look like. On the screen you will also see a script editor type window. It will display all the PowerScript code that you will need to plug into your application. This code will be read-only and will only be used for copying.

You will then be able to save your changes so you can work with what you've created another time. 

If you have any idea's that you think would make it more of a useful tool please let me know. I will post some screenshots in the coming days as I make more progress.

Brad


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (4) | Comment RSSRSS comment feed

Related posts

Comments

June 5. 2009 00:17

Brad,

This tool sounds awesome! I can't wait to see the screenshots (and of course, the final result)!

Calvin Allen

June 5. 2009 04:37

Can't wait to see the screenshots. Thanks to support of the PB'rs.

tansks

July 1. 2009 01:48

We like make a properties windows too in us application, but we don't any idea to do it.

Can you share the idea or the code?.

x

July 1. 2009 10:39

The properties window is nothing more than a grouped datawindow. There is really nothing to it. Send me an email if you want the exported datawindow and some sample code.

bradwery