viji s Posted November 7, 2016 Report Share Posted November 7, 2016 hi , I am new to ugfx. i have got the basic few codes running. I have created a screen with many widgets (i.e) buttons. but I am facing problem in fetching those all at a time . only one button shows up at a particular instant . And I am not even able to get the font written for that particular button. please, respond at the earliest. thanks and regards Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted November 7, 2016 Report Share Posted November 7, 2016 Hello and welcome to the community! 48 minutes ago, viji s said: I have created a screen with many widgets (i.e) buttons. but I am facing problem in fetching those all at a time . When you say that you can't show them at the same time, what do you have to do to make the others visible? Can you please check that the gwinXxxCreate() functions return valid handles? If the create functions return null pointers that usually indicates that you don't have enough memory left (heap!) to create additional widgets. In that case you want to increase the heap size that you can configure in the configuration file. Alternatively, you can always create all your objects statically and pass the corresponding object pointer as the first parameter to the create function. 51 minutes ago, viji s said: And I am not even able to get the font written for that particular button. Are you able to successfully open the font using gdispOpenFont() and draw with the opened font using gdispDrawString()? Link to comment Share on other sites More sharing options...
viji s Posted November 8, 2016 Author Report Share Posted November 8, 2016 Hi, Thanks for your response. As, per your post. I dont find any gwinXXXcreate() call in my auto generated code. thanks and regards Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted November 8, 2016 Report Share Posted November 8, 2016 The gwinXxxCreate() function doesn't exist in that literal form. The "Xxx" are place holders for the name of the widget. You will find functions like gwinButtonCreate(), gwinSliderCreate() and similar. The term gwinXxxCreate() refers to all of these. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now