Search found 129 matches: units

Return to advanced search

Re: Resizing Controls

... not done any work with resizing, but it seems to me that you need to work with percentages not pixels (or in the case of dialogs, "dialog units"). So, I would be multiplying each control's height and width by a factor. Then you can make them different sizes by just passing a factor ...
by James Bott
Sat Dec 21, 2013 5:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Resizing Controls
Replies: 10
Views: 3061

Re: Otro Problema en folders

... Las páginas de los folders usan un diálogo, y se aplica lo mismo que en todos los diálogos: al crear sus controles a priori, se usan "dialog units" y si el diálogo está ya creado, se usan pixels para los controles: http://forums.fivetechsupport.com/viewtopic.php?p=151592#p151592 Gracias ...
by mastintin
Fri Oct 11, 2013 8:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Otro Problema en folders
Replies: 2
Views: 612

Re: Otro Problema en folders

Manuel,

Las páginas de los folders usan un diálogo, y se aplica lo mismo que en todos los diálogos: al crear sus controles a priori, se usan "dialog units" y si el diálogo está ya creado, se usan pixels para los controles:

viewtopic.php?p=151592#p151592
by Antonio Linares
Fri Oct 11, 2013 6:16 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Otro Problema en folders
Replies: 2
Views: 612

Re: Distinto comportamiento

... un post reciente de Biel Cuando se crean los controles, justo despues del DEFINE DIALOG y antes del ACTIVATE DIALOG, estamos usando "dialogs units" y no pixeles. http://forums.fivetechsupport.com/posting.php?mode=quote&f=6&p=151592
by Daniel Garcia-Gil
Thu Sep 26, 2013 8:27 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Distinto comportamiento
Replies: 6
Views: 1139

Re: Posición de controles en dialogo.

Biel, Cuando se crean los controles, justo despues del DEFINE DIALOG y antes del ACTIVATE DIALOG, estamos usando "dialogs units" y no pixeles. Desde la claúsula ON INIT, se estan usando pixeles. Esta es una diferencia propia del API de Windows, que en su dia se pudo haber corregido, ...
by Antonio Linares
Tue Sep 17, 2013 8:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Posición de controles en dialogo.
Replies: 2
Views: 575

Re: cPS in bPainted

Antonio,

Antonio Linares wrote:Enrico,

You can convert from units to pixels and viceversa, so I don't see any limitation


The problem is that the pixels coordinates have to be rounded after the conversion.

EMG
by Enrico Maria Giordano
Mon Aug 26, 2013 9:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: cPS in bPainted
Replies: 20
Views: 2577

Re: cPS in bPainted

Enrico,

You can convert from units to pixels and viceversa, so I don't see any limitation
by Antonio Linares
Mon Aug 26, 2013 9:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: cPS in bPainted
Replies: 20
Views: 2577

Re: cPS in bPainted

Antonio,

I think it's not possible to use a bitmap when the grid dots have to be aligned to dialog units and not pixels, am I wrong?

EMG
by Enrico Maria Giordano
Sun Aug 25, 2013 9:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cPS in bPainted
Replies: 20
Views: 2577

Re: Compilar con xEdit 3.0, problema

... IntellisenseTime=1.5 VarCaseMatching=.T. IntellisensePrj=.T. IntellisenseFont=Verdana IntellisenseBold=.F. IntellisenseItalic=.F. [PRINT] Units=.F. ColorMode=0 WrapMode=2 PrintHeader=.T. HeaderText=Proyecto: %J - Archivo: %F PrintFooter=.T. FooterText=Página: %P LineNumbers=.T. FrameStyle=0 ...
by noe aburto
Wed Aug 21, 2013 1:24 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Compilar con xEdit 3.0, problema
Replies: 5
Views: 1730

Re: Problem in creating GETs

... confirm the behavior. And even when the two GETs are defined with the same dimensions, they are not same size. I suspect that one is using dialog units and the other is using window units. James Yes, this is normal. The problem I'd want mainly pointing out was the visual difference between the ...
by Enrico Maria Giordano
Thu Aug 15, 2013 3:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem in creating GETs
Replies: 6
Views: 1286

Re: Problem in creating GETs

I also confirm the behavior. And even when the two GETs are defined with the same dimensions, they are not same size. I suspect that one is using dialog units and the other is using window units.

James
by James Bott
Thu Aug 15, 2013 1:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem in creating GETs
Replies: 6
Views: 1286

Re: Trouble with PIXEL clause of SAY command

Antonio,

Yes, I would agree that you can't break existing code.

The only solution I can see is to create a global setting to really use pixels instead of dialog units. But, I doubt there is much demand for this so I would place a very low priority on it.

Regards,
James
by James Bott
Wed Jul 17, 2013 5:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trouble with PIXEL clause of SAY command
Replies: 5
Views: 1495

Re: Trouble with PIXEL clause of SAY command

James,

When the PIXEL clause was implemented in FWH we were not aware that on dialogs, controls use dialog units instead of pixels :-)

By the time that we noticed it (and really understood it), there were already many FWH code around, so we decided to keep it as it was :-)
by Antonio Linares
Wed Jul 17, 2013 4:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trouble with PIXEL clause of SAY command
Replies: 5
Views: 1495

Re: Trouble with PIXEL clause of SAY command

OK, I solved the mystery. Dialogs have different units than windows, panels, etc. The controls are placed properly on windows (I didn't check panels yet). So, it does seem to be a bug--controls are not placed properly on dialogs when using the PIXEL ...
by James Bott
Wed Jul 17, 2013 12:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trouble with PIXEL clause of SAY command
Replies: 5
Views: 1495

Re: [SOLVED] How to move a dialog to a relative position?

... to the main window because my clients have different resolutions and I use a centered window. Samir, Dialogs don't use the same measurement units as windows (see a discussion of this on my website in the article "Introduction to Fivewin.") The easy solution would be to just move ...
by sambomb
Mon Jun 10, 2013 12:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: [SOLVED] How to move a dialog to a relative position?
Replies: 9
Views: 2539
PreviousNext

Return to advanced search