Icon View Thread

The following is the text of the current message along with any replies.
Messages 21 to 30 of 34 total
Thread Grid Row varying height and hiding border lines
Thu, Jan 14 2016 4:23 PMPermanent Link

Trinione

<< You're just dancing around the issue, which is that this should be created as a normal control, not a form. >>

Tim:
I never did a Custom Control in Delphi. However, I spent a couple hours reading up on it online and have easily been able to create a new custom component with ColCount and RowCount properties. This serves my need to create the blank calendar on the fly! Smile

Thank you for stopping the music and insisting that the No Custom Control Party was over.
Fri, Jan 15 2016 5:04 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< I never did a Custom Control in Delphi. However, I spent a couple hours reading up on it online and have easily been able to create a new custom component with ColCount and RowCount properties. This serves my need to create the blank calendar on the fly! Smile>>

Just to clarify: creating a new custom control in EWB is *much* easier than doing the same in Delphi/VCL on Windows.  The reason is very simple.  EWB's controls are simply a light wrapper around the browser DOM elements, and therefore you can easily modify their look and feel with simple property assignments and method calls.  The biggest amount of time is normally just spent deciding how you want things to look.  With Windows, you have the Windows API to deal with, as well as the painting process, region invalidation, etc.....

Some things, like grids, *can* get complicated, but most controls are pretty simple.

If you want me to do another video on this, just let me know.  There are still some basic controls that I could show how to implement, such as a TSlider control.

<< Thank you for stopping the music and insisting that the No Custom Control Party was over. >>

Smile  I'm just glad that someone, besides me, is creating some components for EWB.

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Jan 16 2016 2:35 AMPermanent Link

kentersoft

Tim Young [Elevate Software] wrote:

<< I never did a Custom Control in Delphi. However, I spent a couple hours reading up on it online and have easily been able to create a new custom component with ColCount and RowCount properties. This serves my need to create the blank calendar on the fly! Smile>>

Smile  I'm just glad that someone, besides me, is creating some components for EWB.

<<
Elevate Web Builder 2 Control Creation Tutorial
https://www.youtube.com/watch?v=dZEQBqP8NME>>

Can make this video downloadable from your site, thanks!

kenter
Sat, Jan 16 2016 3:43 AMPermanent Link

Trinione

<< Just to clarify: creating a new custom control in EWB is *much* easier than doing the same in Delphi/VCL on Windows. >>
Much is an understatement really.

<< Some things, like grids, *can* get complicated, but most controls are pretty simple.>>
After many hours I can agree that it can especially as a complete newbie to this. But, I am getting the hang of it.

<< If you want me to do another video on this, just let me know. >>
That would be fantastic, and yes - on some Basic controls. EWB is all 'new' to quite a few of us.

<< Smile  I'm just glad that someone, besides me, is creating some components for EWB.>>

I have given it a pretty good go. I have it working via new Properties I added. However, I would rather call the procedures from within the component. As such, I have created a 'constructor Create'

It works as expected with the creation of the columns. However, I get an Error whenever I attempt to create the rows.

I suspect a variable/value that would increment the row count on column creation is not being set and I need to action that.

Here is the Error:
**********************
'Row Index 1 out of bounds'

Stack Trace:

Exception raised in unit WebGrids at 4619, 7
SetToRow((FRows.Count -1, False, False)... at 4699,10

**********************

Here is the code thus far.

.There are 1 things I would like to know/do:
(1) Have this bug fixed, of course.
and,
(2) Know how to remove the '+' Add Column ability in Design Mode. I am sure I can figure it out, but I have spent too many hours trying to fix this bug and get this working as it is. So, I will just ask one time.

Thanks in advance.

.



Attachments: TBlankDataCalendar.zip
Sat, Jan 16 2016 8:00 AMPermanent Link

Trinione

<<  As such, I have created a 'constructor Create' >>

The only sense that sentence makes is that it was written at near 4am at the end of a 16-hour programming session. Please ignore.
Sat, Jan 16 2016 11:33 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< The only sense that sentence makes is that it was written at near 4am at the end of a 16-hour programming session. Please ignore. >>

Ignore the whole thing, or just that sentence ? Smile

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Jan 16 2016 11:37 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

kentersoft wrote:

<< Can make this video downloadable from your site, thanks! >>

Sure, here you go:

http://www.elevatesoft.com/ewb2_progressbar.mp4

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Jan 16 2016 12:03 PMPermanent Link

Trinione

<< Ignore the whole thing, or just that sentence ? Smile>>

The sentence. The rest is valid.

Going to view the video now. Thanks Tim.
Sat, Jan 16 2016 8:48 PMPermanent Link

kentersoft

Tim Young [Elevate Software] wrote:

<<
Sure, here you go:

http://www.elevatesoft.com/ewb2_progressbar.mp4
>>

Got it, wonderful, thank you!

kenter
Sat, Sep 24 2016 9:29 AMPermanent Link

Trinione

Tim Young [Elevate Software] wrote:
<< Honestly, I wouldn't try to do this right now and just wait until there is proper support for variable-height rows in the grid controls. >>


Is variable-height rows available in grid controls?

And, how can a row be 'hidden', and/or a row height be set to 0?
« Previous PagePage 3 of 4Next Page »
Jump to Page:  1 2 3 4
Image