IonicWind Software

IWBasic => General Questions => Topic started by: CodeTRUCKER on December 10, 2009, 08:59:45 PM

Title: Dynamic Button Creation, Placement and Resizing in real time.
Post by: CodeTRUCKER on December 10, 2009, 08:59:45 PM
Hello,

I want to try a crazy experiment (call it a 'wild hare') that I have dreamed up.  As strange as it may seem, I can already see three different applications for this if I can get it to work.  One of them is a "Living Map."  It will use a main form with a sidebar.  Here are some particulars...


Ok, does that sound doable?  

Don't get me wrong, I am not asking for "how" to do it.  The math and logic is already congealing in my head, if I am not starting with wrong premises.  I just need to know if these things are doable in EB?  

Thanks in advance for any input.
Calvin
Title: Re: Dynamic Button Creation, Placement and Resizing in real time.
Post by: LarryMc on December 10, 2009, 10:47:02 PM
My answer would be absolutely yes, it is doable.

I personally wouldn't want to tackle it(only because I can't see a need for it -no first hand application in mind).

It would probably help you to purchase Paul's EB Beta Designer which would show how to manage multiple dynamically created buttons and do almost all the things you are describing.

There's code in the forms on dragging and dropping.
There's code with multiple windows and multiple controls and the resizing of both.

I'm not sure I understand "I also want to display text in different areas of the button, i.e., to dynamically display the dimensions of the button in pixels(?)."
Changing text on the fly in a button is a no-brainer as well as the font and size.
Placing text in different locations within a button can be simple(left,center,right align) or it can be that you would need to subclass the button and draw your own text.

My custom button library will allow you to offset text left or right or up or down from center real time by x-number of pixels.  But without knowing more about what exactly you are wanting to do I can't say if it's a fit for your needs.

So the bottom line, in my opinion, is that if you can dream it up you can do it in EB.

You might want to be reading up on how EB handles oop also.

Larry
Title: Re: Dynamic Button Creation, Placement and Resizing in real time.
Post by: mrainey on December 11, 2009, 05:03:57 AM
Larry,

I remember you having some anti-aliasing discussions with Ficko.  Did you ever incorporate anti-aliasing into your button library?  The "jaggies" were the only thing that kept me from buying and using it.
Title: Re: Dynamic Button Creation, Placement and Resizing in real time.
Post by: LarryMc on December 11, 2009, 07:08:28 AM
Mike,

I used anti-aliasing in the chart library which I worked on after the button library.

Maybe I need to put "revisiting the button designer" on my list of things to do.
Right now I don't know how well regions and anti-aliasing work together.

Larry