Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
Create own software - interface problems

Problems of interface, compilation error, how to do?



Hi,
Today we will talk about some problems who spoil us during coding with gambas 3.x
Som projects donwloaded from the net, some code sources are not the same than main coder done.
Interface is not the same , polices are ibigger than normal, widget not in the correct place, or worst, compilation error with some components not installed.


A) police size problems.

1- Solution without modify code : it's possible you don't have the same environment than main coder. It means your police is not the same size. Try to decrease on yuor desktop parameters size and see result. Sometime, it's enough to have good result.

2-  Modify code : By default, gambas use 'proportional FONT', if you see inside every widget FONT property, you need to put checkbox 'RELATIVE' to False. You will have good size on every desktop environment.

B- Problem of moved widgets on interface.

You need to know every form by default in gambas are vectorized. It means, it's existing one SCALED property to True.
Put False in all your forms and your application will be great on all desktop.
Remark : Scaled property is done to have good interface view of your application  because it depends of screen resolution.

C- Problem of compilation error.

One of the most common problem is one component not installed.
1- Try to install thsi compoent by your package manager.
2- In your application path, you  will find one file nammed .project who contain these lines :

# Gambas Project File 3.0
Title=Myproject
Startup=FMain
Version=0.0.83
Component=gb.image
Component=gb.qt4
Component=gb.form
Component=gb.db
Component=gb.db.form
Component=gb.db.sqlite3
Component=gb.desktop
Component=gb.desktop.x11
Component=gb.settings
Component=gb.net
Component=gb.net.curl
Component=gb.net.smtp
Component=gb.web
TabSize=2
Translate=1
Language=po
KeepDebugInfo=0
Packager=1


If for exemple you have error message : gb.qt4 is not installed, simply modify by text editor this file and replace gb.qt4 by gb.gtk.
save file, and open you project again in IDE.
3- Another problem is some widget are not available.
open with text editor your Form file and replace missed widget by another with approximatively the same properties .
In this example, i will replace LCDNumber by ValueBox:

  { mylcd LCDNumber
    MoveScaled(66,84,24,10)
    Background = &H000000&
  }
 
  Modifié par :
 
    { lcdco2 ValueBox
    MoveScaled(66,84,24,10)
    Background = &H000000&
  }

 
  in conclusion, you can visit this page for proportional view in gambas.
 
    http://gambaslinux.fr/articles.php?lng=fr&pg=2220
    
    Thanks for your attention.
    
cool


Creation date : 19/04/2021 @ 10:41
Last update : 19/04/2021 @ 10:41
Category : Create own software
Page read 1818 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^