Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 13 total
Thread EWB 2.01 First Observations / Funnies
Thu, Aug 27 2015 7:12 AMPermanent Link

Mark Brooks

Slikware

Avatar

Observations from an initial brief play:

TDateEditComboBox - does not appear to support UK date format

TButton - the new Icon property does not display the icon even though the button seems to resize to cater for it

TMenu - the Autosize property for a menu item does not take into account an icon set for the menu item

Interfaces - I have an EWB 2.00 project that had some customised interfaces. I placed these in a separate folder and added its path to the Environment Options, ahead of the standard interfaces path. EWB 2.01 is not picking them up.

Overflow - Try as I might, with the simplest of projects, I cannot get this to work e.g. drop basic panel 1 and set to lpTopLeft and lcRight, then drop basic panel 2 and set to lpTopLeft and lcRight, then set basis panel 2 loBottom and it overflows immediately, even though there is room for it to the right of basic panel 1?
Thu, Aug 27 2015 7:31 AMPermanent Link

Rick

On 27/08/15 21:12, Mark Brooks wrote:
>
> Overflow - Try as I might, with the simplest of projects, I cannot get this to work e.g. drop basic panel 1 and set to lpTopLeft and lcRight, then drop basic panel 2 and set to lpTopLeft and lcRight, then set basis panel 2 loBottom and it overflows immediately, even though there is room for it to the right of basic panel 1?
>

I have the same problem with overflow. Dynamically creating a number of
TPanels in a TScrollPanel with vertical but no horizontal scrolling.
Consumption is to the right with overflow set to bottom. Plenty of room
to the right to fit some panels but they always overflow down into a
single vertical column of panels. Turn off overflow and the panels all
get created to the right of each other (single horizontal line).

--
Rick
Thu, Aug 27 2015 7:32 AMPermanent Link

Mark Brooks

Slikware

Avatar

>>Rick wrote:

>>I have the same problem with overflow. Dynamically creating a number of
>>TPanels in a TScrollPanel with vertical but no horizontal scrolling.
>>Consumption is to the right with overflow set to bottom. Plenty of room
>>to the right to fit some panels but they always overflow down into a
>>single vertical column of panels. Turn off overflow and the panels all
>>get created to the right of each other (single horizontal line).

That's precisely it Rick
Thu, Aug 27 2015 7:37 AMPermanent Link

Rick

On 27/08/15 21:32, Mark Brooks wrote:
>>> Rick wrote:
>
>>> I have the same problem with overflow. Dynamically creating a number of
>>> TPanels in a TScrollPanel with vertical but no horizontal scrolling.
>>> Consumption is to the right with overflow set to bottom. Plenty of room
>>> to the right to fit some panels but they always overflow down into a
>>> single vertical column of panels. Turn off overflow and the panels all
>>> get created to the right of each other (single horizontal line).
>
> That's precisely it Rick
>

I also tried setting the LayoutOrder property for each dynamic TPanel so
that they are sequentially increasing but this didn't appear to make any
difference.

--
Rick
Thu, Aug 27 2015 7:47 AMPermanent Link

Malcolm Taylor

Mark Brooks wrote:

>
> TDateEditComboBox - does not appear to support UK date format
>

I think it will if you edit the FormatSettings at initialisation.  I am
using the ISO format and it seems to work as expected.

From my main form:

[code]
initialization
 // The FormatSettings are hard coded to US English.
 // Tim has said Locale detection is on the 'list' but we are not
 // to ask when it will be delivered.   Smile

 // At present you can adjust these properties at initialization as
shown below,
 // or I guess you can prompt the user
 
 // set date to ISO format
 // Set the date separator first if not '/'
 FormatSettings.DateSeparator := '-';
 FormatSettings.ShortDateFormat := 'yyyy-MM-dd';  // ISO date format
 // other FormatSettings as appropriate...
[code]

However, I am having a lot of problems getting TDateEditComboBox to do
what I 'expect' on Android mobiles.
It mostly does what I want on computers with keyboards but the VKbd is
getting in my way.
I will be adding to my earlier post once I get a better handle on the
innards of this component.  Surprised
Thu, Aug 27 2015 8:36 AMPermanent Link

Mark Brooks

Slikware

Avatar

"Malcolm" wrote:

>>I think it will if you edit the FormatSettings at initialisation.  I am
>>using the ISO format and it seems to work as expected.

Thanks Malcolm. I've tried this but to no avail. Combo always seems to output US format.
Thu, Aug 27 2015 9:19 AMPermanent Link

Malcolm Taylor

Mark Brooks wrote:

> "Malcolm" wrote:
>
> > > I think it will if you edit the FormatSettings at initialisation.
> > > I am using the ISO format and it seems to work as expected.
>
> Thanks Malcolm. I've tried this but to no avail. Combo always seems
> to output US format.

Mark, that intrigued me so I commented-out my two lines for the ISO
format and replaced then with the single line (no need to change the
separator this time):
   FormatSettings.ShortDateFormat := 'dd/MM/yyyy';  // UK date format,
case sensitive

That works for me.  I ran it in the IDE and clicked on tomorrow's date
in the pop-up Calendar ... hey presto I get 28/08/2015

Not calling you a l**r, but are you sure you re-compiled.?   Surprised
Thu, Aug 27 2015 9:47 AMPermanent Link

Mark Brooks

Slikware

Avatar

>> "Malcolm" wrote:
>>    FormatSettings.ShortDateFormat := 'dd/MM/yyyy';  // UK date format, case sensitive

Got it Malcolm. It is indeed case sensitive. I was using dd/mm/yyyy. Appreciated.
Thu, Aug 27 2015 10:00 AMPermanent Link

Malcolm Taylor

Mark Brooks wrote:

> Got it Malcolm. It is indeed case sensitive. I was using dd/mm/yyyy.
> Appreciated.

I have been bitten a few times.  
My main Windows suite is used in many countries and I used to get
support calls about date IO errors.
I have solved that one by reading the format settings from the user's
PC and displaying the format string close to the input field.  Not had
a 'complaint' since.   Surprised
Thu, Aug 27 2015 10:17 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Mark,

<< TDateEditComboBox - does not appear to support UK date format >>

The control uses the standard DateToStr/StrToDate functionality, so it should work as expected.

<< TButton - the new Icon property does not display the icon even though the button seems to resize to cater for it >>

Are you sure that the icon is set properly (and is white or some other color that can be seen) ?

<< TMenu - the Autosize property for a menu item does not take into account an icon set for the menu item >>

That's as-designed - it uses the caption for auto-setting the height, not the icon.

<< Interfaces - I have an EWB 2.00 project that had some customised interfaces. I placed these in a separate folder and added its path to the Environment Options, ahead of the standard interfaces path. EWB 2.01 is not picking them up. >>

I just tested this and it seems to work fine here, so I've got to do another "are you sure ?". Smile

<< Overflow - Try as I might, with the simplest of projects, I cannot get this to work e.g. drop basic panel 1 and set to lpTopLeft and lcRight, then drop basic panel 2 and set to lpTopLeft and lcRight, then set basis panel 2 loBottom and it overflows immediately, even though there is room for it to the right of basic panel 1? >>

I just tried this, and yes, I'm seeing this also.  Give me a few minutes to figure out what's going on...

Tim Young
Elevate Software
www.elevatesoft.com
Page 1 of 2Next Page »
Jump to Page:  1 2
Image