Missing posts

17 views
Skip to first unread message

rd...@iinet.net.au

unread,
Jun 6, 2013, 10:24:02 AM6/6/13
to rt-thre...@googlegroups.com
I recently posted to this forum and now that post is gone. What is with this forum lately? Is it now moderated and posts have to be approved? If I had posted by email at least I would still have a copy of the post.
 
 

bernard

unread,
Jun 6, 2013, 10:45:13 AM6/6/13
to rt-thre...@googlegroups.com
It's managed by Google Group. The posts need to be approved by manager sometime, but no need at most time. 

I suggest you use web method to browse and post. 


I recently posted to this forum and now that post is gone. What is with this forum lately? Is it now moderated and posts have to be approved? If I had posted by email at least I would still have a copy of the post.
 
 

--
--
You received this message because you are subscribed to the Google
Groups "rt-thread-users" group.
To post to this group, send email to rt-thre...@googlegroups.com
To unsubscribe from this group, send email to
rt-thread-use...@googlegroups.com
 
---
You received this message because you are subscribed to the Google Groups "rt-thread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rt-thread-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

rd...@iinet.net.au

unread,
Jun 6, 2013, 10:53:35 AM6/6/13
to rt-thre...@googlegroups.com
Hi Bernard,
 
I do use the web to browse the posts, that is the problem. It says it created the topic and the post is there. The a little later the post is gone and I don't have any other copy of it, I need to retype it. It was 2 days ago that I posted it, I have some questions about RT-GUI.
 
Rob
 

bernard

unread,
Jun 6, 2013, 10:58:48 AM6/6/13
to rt-thre...@googlegroups.com
Hi Rob, 
You can post your questions on here directly. 


2013/6/6 <rd...@iinet.net.au>
Hi Bernard,
 
I do use the web to browse the posts, that is the problem. It says it created the topic and the post is there. The a little later the post is gone and I don't have any other copy of it, I need to retype it. It was 2 days ago that I posted it, I have some questions about RT-GUI.
 
Rob
 

--

rd...@iinet.net.au

unread,
Jun 8, 2013, 3:34:32 AM6/8/13
to rt-thre...@googlegroups.com
My missing post has finally appeared in my mailbox, but not in the forum. I don't know if anyone else has received it by email or not.
 
Rob
 

rd...@iinet.net.au

unread,
Jun 11, 2013, 1:06:18 PM6/11/13
to rt-thre...@googlegroups.com
Not sure there is much point in posting this again, this is the post that went missing:
 
I have converted RT-Thread.pdf to MS Word and translated it. Unfortunately it makes only a little more sense than it did in Chinese.
 
I have a few more questions regarding RT-GUI.
 
Can anyone explain the intended uses of the different container like widgets such as Window, Container, and Panel?
 
Why only Panel draws it's own borders and the user must draw the borders for other widgets? It's impossible to have a Label with borders as the text ends up on top of the border. I've had to modify the Label's paint event handler so that it draws the border, if any, and reduces the rectangle used to draw the text. I imagine the same will be true of other widgets if drawn with borders.
 
Label could handle it's memory allocation for the text more efficiently if it didn't allocate a new buffer if the new text would fit in the existing buffer. Even better would be a function like label_set_text_ptr() that would allow the user to provide storage for the buffer as an alternative.
 
A function such as rtgui_widget_get_inner_rect that returns a widgets rect that is inside any borders would save the user calling rtgui_rect_inflate(&rect, -RTGUI_WIDGET_BORDER(widget));
 
I also modified the button event handler so that btn->on_button(..) was called before calling rtgui_theme_draw_button(btn) so that the on_button handler could modify the appearance of the button, or prevent a state change, before the button was drawn. This eliminates the flicker caused by redrawing.
 

Comments?

Rob 

bernard

unread,
Jun 11, 2013, 10:48:32 PM6/11/13
to rt-thre...@googlegroups.com
Hi Rob, 
Window has window border;
Container is a abstract container, which is the parent class of Window and panel. 
Panel has border. 

Actually, RT-Thread GUI implements a basic widget, and there is no border for label. But if you want to add border to label, you can extend label to a new widget, such as your_label. You can add more filed in your_label, such as border kind etc. 

And you must define your event handler and handle the RTGUI_EVENT_PAINT event, for example:

rt_bool_t rtgui_your_label_event_handler(struct rtgui_object *object, struct rtgui_event *event)
{
    switch (event->type)
    {
    case RTGUI_EVENT_PAINT:
        rtgui_theme_draw_label(label);
        _draw_your_border(label);
       break;
   ....
   }
}

RT-Thread GUI is implemented as a Object-Oriented UI framework, therefore, when you want to custom it, you can extend it by object inheritance method. 



Regards, 
Bernard 



2013/6/12 <rd...@iinet.net.au>

--

Rob D'Entremont

unread,
Jul 9, 2013, 1:48:17 PM7/9/13
to rt-thre...@googlegroups.com
Hi Bernard,
 
So a Panel is like a Window but with different border?
 
A container can exist on it's own, in fact there is a function for creating them, therefore it's not exactly abstract.
 
I have managed to create my own widgets, but I think it's silly to create a new label object in order to add borders. All the border styles, logic, etc. are defined at the widget level. Only two lines of code are needed to add borders to a label, or any widget for that matter, without breaking existing code.
 
Rob
 
Reply all
Reply to author
Forward
0 new messages