Salve a tutti,
ho realizzato il mio progetto sotto mac, quando riporto l’eseguibile in windows tutte le combobox cambiano dimensioni rovinando le form. Esiste un modo per settarle in modo da mantenere grandezza costante per entrambi i sistemi?
Grazie
Umberto
io normalmente scrivo su mac il sw, poi su windows e linux modifico le sole schermate.
utilizzo una classe per tutte le finestre dove un’evento all’apertura imposta i font di tutte le entit
dim c as control
for i as integer = 0 to self.ControlCount -1
c = self.Control(i)
if c IsA TextFieldKoala then
TextFieldKoala(c).TextFont = app.kk_font
end if
if c IsA Label then
Label(c).TextFont = app.kk_font
end if
if c isA GroupBox then
GroupBox(c).TextFont = app.kk_font
end if
if c isA CheckBox then
CheckBox(c).TextFont = app.kk_font
end if
if c isA ComboBox then
ComboBox(c).TextFont = app.kk_font
end if
if c isA RadioButton then
RadioButton(c).TextFont = app.kk_font
end if
if c isA Listbox then
Listbox(c).TextFont = app.kk_font
end if
if c isA PopupMenu then
PopupMenu(c).TextFont = app.kk_font
end if
if c isA TextArea then
TextArea(c).TextFont = app.kk_font
end if
if c isA TabPanel then
TabPanel(c).TextFont = app.kk_font
end if
if c isA PushButton then
PushButton(c).TextFont = app.kk_font
end if
next
dove app.kk_font una costante stringa che contiene il nome del font.
Mi raccomando utilizza font che sono presenti sia su MAC OS che su WINDOWS