In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Se encontraron 384 coincidencias

por ChrisGillard
Mar Sep 13, 2016 3:35 pm
Foro: English
Tema: 'Screen Prompt' class based on TLabel ....
Respuestas: 11
Vistas: 7882

Re: 'Screen Prompt' class based on TLabel ....

Hi Ignacio,

That last piece of code seems to fifish the job off.

It gets us started on a replacement GUI for our traditional applications, its going to take many months and up to a year to get something a customer can use but we have to start.

Thanks for your help

Chris
por ChrisGillard
Lun Sep 12, 2016 2:13 pm
Foro: English
Tema: 'Screen Prompt' class based on TLabel ....
Respuestas: 11
Vistas: 7882

Re: 'Screen Prompt' class based on TLabel ....

Hi Ignacio, I had not run your example project .... thats very much how I want this to look when it is finished. Thinking about whether onclick needs to work even when there is no <a></a> defined ... In looking at your example I'm fairly happy to have the underline if you think it should work that w...
por ChrisGillard
Lun Sep 12, 2016 1:57 pm
Foro: English
Tema: 'Screen Prompt' class based on TLabel ....
Respuestas: 11
Vistas: 7882

Re: 'Screen Prompt' class based on TLabel ....

Hi Ignacio, Thank you for that fix .... it is almost perfect. In the first example it works fine and gives me an OnClick event for the whole surface of the button. With example 2 .... with no html link defined with <a></a> .... the code bypasses your new OnClick fix. Something to do with it being in...
por ChrisGillard
Lun Sep 12, 2016 1:13 pm
Foro: English
Tema: 'Screen Prompt' class based on TLabel ....
Respuestas: 11
Vistas: 7882

Re: 'Screen Prompt' class based on TLabel ....

Just to summarise .... Seems what I really want is a TBtnEx inherited from TButton, but with the html text ability of TLabelEx. A bit like the TBtnBmp ..... without the Bmp but with enhanced text from the html ability of TLabelEx to style the text, would not need the <a></a> ). With some option for ...
por ChrisGillard
Dom Sep 11, 2016 3:31 pm
Foro: English
Tema: 'Screen Prompt' class based on TLabel ....
Respuestas: 11
Vistas: 7882

Re: 'Screen Prompt' class based on TLabel ....

Hi Ignacio, Thanks for your thoughts on this one. 2016-09-11_13-56-26_2.jpg I have had a go with TlabelEx and the basic HTML ability gives me the exact style I am looking for with the highlighted letter/s within the label .... example 2. If I use <a><a/> to achieve an action link then I may struggle...
por ChrisGillard
Jue Sep 08, 2016 7:28 pm
Foro: English
Tema: 'Screen Prompt' class based on TLabel ....
Respuestas: 11
Vistas: 7882

'Screen Prompt' class based on TLabel ....

I am attempting to make a 'Screen Prompt' class which responds to mouse clicks and key presses including ALT+Key combinations. It is based on a TLabel for its onclick event and I am using Form:FormKeyDown() and WMSysKeyDown() to detect the ALT key .... my prototype enhanced label is basically workin...
por ChrisGillard
Jue Abr 07, 2016 10:34 am
Foro: English
Tema: TArrayBrowse .... using AddRow() .... Hilite to bottom of list with scrolling
Respuestas: 2
Vistas: 2734

Re: TArrayBrowse .... using AddRow() .... Hilite to bottom of list with scrolling

Hi Ignacio,

You are absolutely right :GoBottom() works perfectly.

I have on idea what I was doing when I was testing it thought it did not work!

Apologies and thank you.

Chris
por ChrisGillard
Mié Abr 06, 2016 12:31 pm
Foro: English
Tema: TArrayBrowse .... using AddRow() .... Hilite to bottom of list with scrolling
Respuestas: 2
Vistas: 2734

TArrayBrowse .... using AddRow() .... Hilite to bottom of list with scrolling

Hi, I should know this but I can't find where I have done it before ... I am using a TArrayBrowse and using :Addrow() to add data rows in a loop. I want the 'cursor' to go to the last row added AND make the TArrayBrowse scroll to show the last few messages. I have tried oArrayBrowse:GoBottom() Proce...
por ChrisGillard
Jue Mar 17, 2016 1:00 pm
Foro: English
Tema: Simple single form project in IDE ... can't adjust ANYTHING with mouse??
Respuestas: 2
Vistas: 3062

Re: Simple single form project in IDE ... can't adjust ANYTHING with mouse??

Jose,

That solved it ....... how long has that button been there, I have never noticed it!!

Thank you.

Chris
por ChrisGillard
Mié Mar 16, 2016 6:47 pm
Foro: English
Tema: Simple single form project in IDE ... can't adjust ANYTHING with mouse??
Respuestas: 2
Vistas: 3062

Simple single form project in IDE ... can't adjust ANYTHING with mouse??

Hi, I have just opened up a small test project from several years ago in the IDE. When I try to adjust the one and only form size or reposition or resize any of its controls ... the mouse has no effect?? I have tried to comapare the forms properties in the inspector with another project form which a...
por ChrisGillard
Lun Feb 29, 2016 12:29 pm
Foro: English
Tema: New Xailer video: New TCardbox control for future Xailer 5
Respuestas: 1
Vistas: 2519

Re: New Xailer video: New TCardbox control for future Xailer 5

Ignacio,

This looks very good and will be useful.

Can be considered as a 'multi line browse' or as a 'scrolling set of forms/cards'.

Looking foerward to having a go with this.

Keep up the very good work.

Chris
por ChrisGillard
Vie Feb 05, 2016 6:34 pm
Foro: English
Tema: Trying to detect ALT + key in Form ....
Respuestas: 3
Vistas: 3682

Re: Trying to detect ALT + key in Form ....

Jose, I have had ago, below is my code and what I see using LogDisplay() Do you expect to get the Alt and the other key as 2 actions? I'm sure I can cope if that's the way it is. Alt A and Alt B give sensible nKey for the A & B, always upper case but that's fine. Alt F2 gives me a 'q' for a char...
por ChrisGillard
Vie Feb 05, 2016 5:39 pm
Foro: English
Tema: Trying to detect ALT + key in Form ....
Respuestas: 3
Vistas: 3682

Re: Trying to detect ALT + key in Form ....

Jose,

Thank you for the reply and suggestion.

I probably want to detect ALT + anykey and then scan an array of Keys & Action pairs to execute the action.

I will do some testing.

Have a good weekend, thanks again.

Chris
por ChrisGillard
Vie Feb 05, 2016 12:55 pm
Foro: English
Tema: Trying to detect ALT + key in Form ....
Respuestas: 3
Vistas: 3682

Trying to detect ALT + key in Form ....

Hi, Am exploring how to make Buttons or Prompts respond to mouse clicks and key presses including ALT+Key combinations .... maybe enhanced TButtons or maybe TLabel/TLabelEx made into buttons. I have looked at how TButton uses the & to give it an Action Key and how this adds the Key to an array :...
por ChrisGillard
Mar Feb 02, 2016 3:47 pm
Foro: English
Tema: Making TLables in code ... strange Font and Width behaviour
Respuestas: 7
Vistas: 5643

Re: Making TLables in code ... strange Font and Width behaviour

Hi Ignacio, TLabelEx looks very promising for what I have in mind ... thank you. My last wish is for the same text flebility in Tbutton objects .... that would make my life complete, at the moment!! I dont know what else you have planned for Xailer over the coming months and years but maybe a UI wit...
por ChrisGillard
Jue Ene 28, 2016 5:21 pm
Foro: English
Tema: Making TLables in code ... strange Font and Width behaviour
Respuestas: 7
Vistas: 5643

Re: Making TLables in code ... strange Font and Width behaviour

Jose, Thanks for the confirmation that fonts are shared by all controls on the form and how to get round it. Slightly different subject ..... is the any way of making a Label with a basic text colour but highlighting one or two characters in another characters ? I suspect not easy, maybe the possibi...
por ChrisGillard
Lun Ene 04, 2016 10:57 am
Foro: English
Tema: Making TLables in code ... strange Font and Width behaviour
Respuestas: 7
Vistas: 5643

Re: Making TLables in code ... strange Font and Width behaviour

Hi Ignacio, Thanks for the reply. The two properties, lParentFont to FALSE and lAutoSize to FALSE, have solved my length problems I still have a problem with the line TLable3:oFont:lBold This is setting all my labels to bold Should I be making a new oFont for oLabel3 ? Hopefully nearly there. Chris
por ChrisGillard
Jue Dic 31, 2015 1:43 pm
Foro: English
Tema: Making TLables in code ... strange Font and Width behaviour
Respuestas: 7
Vistas: 5643

Re: Making TLables in code ... strange Font and Width behaviour

Hmmm .... images in my post seem to be the wrong way round and I don't seem to be able to edit the sequence of the images and save it. Non Bold OK image should be the first one in the post. lBold = TRUE with All TLabels in Bold? and strange width effects should be in the second position. Sorry to ma...
por ChrisGillard
Jue Dic 31, 2015 11:32 am
Foro: English
Tema: Making TLables in code ... strange Font and Width behaviour
Respuestas: 7
Vistas: 5643

Making TLables in code ... strange Font and Width behaviour

Happy New Year to everyone, but still doing a bit of work in 2015. A simple test program with a mainform and making 3 TLabels in code. All 3 TLabels have same width and height. Xailer 4.0 All works OK as expected without any lBold 2015-12-31_10-08-52.png When I make TLabel3, :lBold := TRUE ... - All...
por ChrisGillard
Mié Dic 30, 2015 6:52 am
Foro: English
Tema: How to set a Font Colour/Color in code? .... SOLVED
Respuestas: 0
Vistas: 4575

How to set a Font Colour/Color in code? .... SOLVED

I seem to have lost my rights to post in the PRO section so I am posting here .... I want to access and change the Font Colour/Color in Code on TLabel. I can change the size of the font with oFont:nSize := 14 but I can't find the Property or Method for Colour/Color. Any thoughts please. Thanks Chris...
por ChrisGillard
Jue Jul 23, 2015 7:58 pm
Foro: English
Tema: Adaptation of TMS Cloud pack to Xailer
Respuestas: 5
Vistas: 4326

Re: Adaptation of TMS Cloud pack to Xailer

Hi Ignacio,

Sounds interesting, seems like that would open some useful possibilities.

I would be happy to sign up for that.

Let me know if you need anything else form me at this stage.

Regards

Chris
por ChrisGillard
Mar Jun 23, 2015 8:03 am
Foro: English
Tema: TButtons or similar with active keys?
Respuestas: 6
Vistas: 4603

Re: TButtons or similar with active keys?

Jose,

Thank you for that idea. I think that is what I need.

I am trying write something Like a TDbNavigator with number of buttons but also with keyboard action.

Overriding WMKeyDown() or WMChar() seems like the way to go.

Thank you very much.

Chris
por ChrisGillard
Jue Jun 18, 2015 4:45 pm
Foro: English
Tema: TButtons or similar with active keys?
Respuestas: 6
Vistas: 4603

Re: TButtons or similar with active keys?

Hmm trapping the onChar event of the form is not going to be ideal for this what I have in mind. I am writing a Class, inherited from TPanel, that you will call from code, and this class will contain several buttons that will have their own onClick events but I need some way of calling those same ev...
por ChrisGillard
Jue Jun 18, 2015 9:10 am
Foro: English
Tema: TButtons or similar with active keys?
Respuestas: 6
Vistas: 4603

Re: TButtons or similar with active keys?

Hi Ignacio,

I will do as you suggest and trap the keyboard events from the form and fire the button events in code.

Thank you for the suggestion.

Chris
por ChrisGillard
Vie Jun 12, 2015 2:14 pm
Foro: English
Tema: TButtons or similar with active keys?
Respuestas: 6
Vistas: 4603

Re: TButtons or similar with active keys?

Some progress, If I set the button text to "&View" or "&Add" .... I get an underline on the letter after the & and it becomes an action key with ALT+V etc. I now remember the '&' technique from many years ago. That's a start of what I want. In an ideal world I wou...